diff --git a/JellyfinPlayer/APIs/JellyfinAPI.swift b/JellyfinPlayer/APIs/JellyfinAPI.swift index cebe8c4f..3a9fa572 100644 --- a/JellyfinPlayer/APIs/JellyfinAPI.swift +++ b/JellyfinPlayer/APIs/JellyfinAPI.swift @@ -1,5 +1,5 @@ // -// SearchAPI.swift +// JellyfinAPI.swift // JellyfinPlayer // // Created by PangMo5 on 2021/05/27. diff --git a/JellyfinPlayer/ContentView.swift b/JellyfinPlayer/ContentView.swift index 03209ca3..c58bb4df 100644 --- a/JellyfinPlayer/ContentView.swift +++ b/JellyfinPlayer/ContentView.swift @@ -65,7 +65,7 @@ struct ContentView: View { if _viewDidLoad.wrappedValue { return } - + _viewDidLoad.wrappedValue = true ImageCache.shared.costLimit = 125 * 1024 * 1024 // 125MB memory diff --git a/JellyfinPlayer/SeasonItemView.swift b/JellyfinPlayer/SeasonItemView.swift index 995a0d69..0931a379 100644 --- a/JellyfinPlayer/SeasonItemView.swift +++ b/JellyfinPlayer/SeasonItemView.swift @@ -203,7 +203,7 @@ struct SeasonItemView: View { } .contentMode(.aspectFill) .opacity(0.4) - .shadow(radius: 5) + .blur(radius: 2.0) } } @@ -223,11 +223,6 @@ struct SeasonItemView: View { .frame(width: 120, height: 180) .cornerRadius(10) VStack(alignment: .leading) { -// Text(fullItem.SeriesName ?? "") -// .font(.largeTitle) -// .fontWeight(.bold) -// .foregroundColor(.primary) -// .padding(.bottom, 8) Text(fullItem.Name).font(.headline) .fontWeight(.semibold) .foregroundColor(.primary) @@ -239,9 +234,9 @@ struct SeasonItemView: View { .foregroundColor(.secondary) .lineLimit(1) } - } + }.offset(y: -32) }.padding(.horizontal, 16) - .padding(.bottom, -22) + .offset(y: 22) } @ViewBuilder @@ -252,8 +247,6 @@ struct SeasonItemView: View { overlayAlignment: .bottomLeading, headerHeight: UIScreen.main.bounds.width * 0.5625) { LazyVStack(alignment: .leading) { - Spacer() - .frame(height: 22) if fullItem.Tagline != "" { Text(fullItem.Tagline).font(.body).italic().padding(.top, 7) .fixedSize(horizontal: false, vertical: true).padding(.leading, 16) @@ -289,6 +282,11 @@ struct SeasonItemView: View { .padding(0), alignment: .bottomLeading) VStack(alignment: .leading) { HStack { + Text("S\(String(episode.ParentIndexNumber ?? 0)):E\(String(episode.IndexNumber ?? 0))").font(.subheadline) + .fontWeight(.medium) + .foregroundColor(.secondary) + .lineLimit(1) + Spacer() Text(episode.Name).font(.subheadline) .fontWeight(.semibold) .foregroundColor(.primary) @@ -329,8 +327,8 @@ struct SeasonItemView: View { .foregroundColor(Color.secondary) }.padding(.leading, 16).padding(.trailing, 16) } - Spacer().frame(height: 3) - } + Spacer().frame(height: 6) + }.padding(.leading, 2) } } else { GeometryReader { geometry in @@ -356,6 +354,7 @@ struct SeasonItemView: View { .blur(radius: 2) HStack { VStack(alignment: .leading) { + Spacer().frame(height: 16) LazyImage(source: URL(string: "\(globalData.server?.baseURI ?? "")/Items/\(fullItem.Id)/Images/Primary?maxWidth=250&quality=90&tag=\(fullItem.Poster)")) .placeholderAndFailure { Image(uiImage: UIImage(blurHash: fullItem @@ -378,6 +377,7 @@ struct SeasonItemView: View { Spacer() } ScrollView { + Spacer().frame(height: 16) LazyVStack(alignment: .leading) { if fullItem.Tagline != "" { Text(fullItem.Tagline).font(.body).italic().padding(.top, 3) @@ -416,12 +416,7 @@ struct SeasonItemView: View { .padding(0), alignment: .bottomLeading) VStack(alignment: .leading) { HStack { - Text(episode.Name).font(.subheadline) - .fontWeight(.semibold) - .foregroundColor(.primary) - .fixedSize(horizontal: false, vertical: true) - .lineLimit(1) - Text(episode.Runtime).font(.subheadline) + Text("S\(String(episode.ParentIndexNumber ?? 0)):E\(String(episode.IndexNumber ?? 0))").font(.subheadline) .fontWeight(.medium) .foregroundColor(.secondary) .lineLimit(1) @@ -434,17 +429,17 @@ struct SeasonItemView: View { .overlay(RoundedRectangle(cornerRadius: 2) .stroke(Color.secondary, lineWidth: 1)) } - if episode.CommunityRating != "" { - HStack { - Image(systemName: "star").foregroundColor(.secondary) - Text(episode.CommunityRating).font(.subheadline) - .fontWeight(.semibold) - .foregroundColor(.secondary) - .lineLimit(1) - .offset(x: -6, y: 0) - } - } Spacer() + Text(episode.Name).font(.subheadline) + .fontWeight(.semibold) + .foregroundColor(.primary) + .fixedSize(horizontal: false, vertical: true) + .lineLimit(1) + Spacer() + Text(episode.Runtime).font(.subheadline) + .fontWeight(.medium) + .foregroundColor(.secondary) + .lineLimit(1) } Spacer() Text(episode.Overview).font(.footnote).foregroundColor(.secondary) @@ -475,10 +470,10 @@ struct SeasonItemView: View { .foregroundColor(Color.secondary) }.padding(.leading, 16).padding(.trailing, 16) } - Spacer().frame(height: 125) + Spacer().frame(height: 95) }.frame(maxHeight: .infinity) }.padding(.trailing, UIDevice.current.userInterfaceIdiom == .pad ? 16 : 55) - }.padding(.top, 16).padding(.leading, UIDevice.current.userInterfaceIdiom == .pad ? 16 : 0) + }.padding(.leading, UIDevice.current.userInterfaceIdiom == .pad ? 16 : 0) } } } diff --git a/JellyfinPlayer/SeriesItemView.swift b/JellyfinPlayer/SeriesItemView.swift index 9689cf32..c4ccb14f 100644 --- a/JellyfinPlayer/SeriesItemView.swift +++ b/JellyfinPlayer/SeriesItemView.swift @@ -92,6 +92,7 @@ struct SeriesItemView: View { var body: some View { LoadingView(isShowing: $isLoading) { ScrollView(.vertical) { + Spacer().frame(height: 16) LazyVGrid(columns: tracks) { ForEach(items, id: \.Id) { item in NavigationLink(destination: ItemView(item: item )) { diff --git a/JellyfinPlayer/Swaggers/APIHelper.swift b/JellyfinPlayer/Swaggers/APIHelper.swift deleted file mode 100644 index 81e7286d..00000000 --- a/JellyfinPlayer/Swaggers/APIHelper.swift +++ /dev/null @@ -1,65 +0,0 @@ -// APIHelper.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - -public struct APIHelper { - public static func rejectNil(_ source: [String:Any?]) -> [String:Any]? { - let destination = source.reduce(into: [String: Any]()) { (result, item) in - if let value = item.value { - result[item.key] = value - } - } - - if destination.isEmpty { - return nil - } - return destination - } - - public static func rejectNilHeaders(_ source: [String:Any?]) -> [String:String] { - return source.reduce(into: [String: String]()) { (result, item) in - if let collection = item.value as? Array { - result[item.key] = collection.filter({ $0 != nil }).map{ "\($0!)" }.joined(separator: ",") - } else if let value: Any = item.value { - result[item.key] = "\(value)" - } - } - } - - public static func convertBoolToString(_ source: [String: Any]?) -> [String:Any]? { - guard let source = source else { - return nil - } - - return source.reduce(into: [String: Any](), { (result, item) in - switch item.value { - case let x as Bool: - result[item.key] = x.description - default: - result[item.key] = item.value - } - }) - } - - - public static func mapValuesToQueryItems(_ source: [String:Any?]) -> [URLQueryItem]? { - let destination = source.filter({ $0.value != nil}).reduce(into: [URLQueryItem]()) { (result, item) in - if let collection = item.value as? Array { - let value = collection.filter({ $0 != nil }).map({"\($0!)"}).joined(separator: ",") - result.append(URLQueryItem(name: item.key, value: value)) - } else if let value = item.value { - result.append(URLQueryItem(name: item.key, value: "\(value)")) - } - } - - if destination.isEmpty { - return nil - } - return destination - } -} - diff --git a/JellyfinPlayer/Swaggers/APIs.swift b/JellyfinPlayer/Swaggers/APIs.swift deleted file mode 100644 index 985e4cf7..00000000 --- a/JellyfinPlayer/Swaggers/APIs.swift +++ /dev/null @@ -1,61 +0,0 @@ -// APIs.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - -open class SwaggerClientAPI { - public static var basePath = "http://localhost" - public static var credential: URLCredential? - public static var customHeaders: [String:String] = [:] - public static var requestBuilderFactory: RequestBuilderFactory = AlamofireRequestBuilderFactory() -} - -open class RequestBuilder { - var credential: URLCredential? - var headers: [String:String] - public let parameters: [String:Any]? - public let isBody: Bool - public let method: String - public let URLString: String - - /// Optional block to obtain a reference to the request's progress instance when available. - public var onProgressReady: ((Progress) -> ())? - - required public init(method: String, URLString: String, parameters: [String:Any]?, isBody: Bool, headers: [String:String] = [:]) { - self.method = method - self.URLString = URLString - self.parameters = parameters - self.isBody = isBody - self.headers = headers - - addHeaders(SwaggerClientAPI.customHeaders) - } - - open func addHeaders(_ aHeaders:[String:String]) { - for (header, value) in aHeaders { - headers[header] = value - } - } - - open func execute(_ completion: @escaping (_ response: Response?, _ error: Error?) -> Void) { } - - public func addHeader(name: String, value: String) -> Self { - if !value.isEmpty { - headers[name] = value - } - return self - } - - open func addCredential() -> Self { - self.credential = SwaggerClientAPI.credential - return self - } -} - -public protocol RequestBuilderFactory { - func getNonDecodableBuilder() -> RequestBuilder.Type - func getBuilder() -> RequestBuilder.Type -} diff --git a/JellyfinPlayer/Swaggers/APIs/ActivityLogAPI.swift b/JellyfinPlayer/Swaggers/APIs/ActivityLogAPI.swift deleted file mode 100644 index 4cc31e1e..00000000 --- a/JellyfinPlayer/Swaggers/APIs/ActivityLogAPI.swift +++ /dev/null @@ -1,88 +0,0 @@ -// -// ActivityLogAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class ActivityLogAPI { - /** - Gets activity log entries. - - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter minDate: (query) Optional. The minimum date. Format = ISO. (optional) - - parameter hasUserId: (query) Optional. Filter log entries if it has user id, or not. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getLogEntries(startIndex: Int? = nil, limit: Int? = nil, minDate: Date? = nil, hasUserId: Bool? = nil, completion: @escaping ((_ data: ActivityLogEntryQueryResult?,_ error: Error?) -> Void)) { - getLogEntriesWithRequestBuilder(startIndex: startIndex, limit: limit, minDate: minDate, hasUserId: hasUserId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets activity log entries. - - GET /System/ActivityLog/Entries - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 6, - "StartIndex" : 1, - "Items" : [ { - "Type" : "Type", - "UserId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Overview" : "Overview", - "UserPrimaryImageTag" : "UserPrimaryImageTag", - "Severity" : "", - "Id" : 0, - "ShortOverview" : "ShortOverview", - "ItemId" : "ItemId", - "Date" : "2000-01-23T04:56:07.000+00:00", - "Name" : "Name" - }, { - "Type" : "Type", - "UserId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Overview" : "Overview", - "UserPrimaryImageTag" : "UserPrimaryImageTag", - "Severity" : "", - "Id" : 0, - "ShortOverview" : "ShortOverview", - "ItemId" : "ItemId", - "Date" : "2000-01-23T04:56:07.000+00:00", - "Name" : "Name" - } ] -}}] - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter minDate: (query) Optional. The minimum date. Format = ISO. (optional) - - parameter hasUserId: (query) Optional. Filter log entries if it has user id, or not. (optional) - - - returns: RequestBuilder - */ - open class func getLogEntriesWithRequestBuilder(startIndex: Int? = nil, limit: Int? = nil, minDate: Date? = nil, hasUserId: Bool? = nil) -> RequestBuilder { - let path = "/System/ActivityLog/Entries" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "startIndex": startIndex?.encodeToJSON(), - "limit": limit?.encodeToJSON(), - "minDate": minDate?.encodeToJSON(), - "hasUserId": hasUserId - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/ApiKeyAPI.swift b/JellyfinPlayer/Swaggers/APIs/ApiKeyAPI.swift deleted file mode 100644 index 43a659da..00000000 --- a/JellyfinPlayer/Swaggers/APIs/ApiKeyAPI.swift +++ /dev/null @@ -1,164 +0,0 @@ -// -// ApiKeyAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class ApiKeyAPI { - /** - Create a new api key. - - - parameter app: (query) Name of the app using the authentication key. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func createKey(app: String, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - createKeyWithRequestBuilder(app: app).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Create a new api key. - - POST /Auth/Keys - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter app: (query) Name of the app using the authentication key. - - - returns: RequestBuilder - */ - open class func createKeyWithRequestBuilder(app: String) -> RequestBuilder { - let path = "/Auth/Keys" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "app": app - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get all keys. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getKeys(completion: @escaping ((_ data: AuthenticationInfoQueryResult?,_ error: Error?) -> Void)) { - getKeysWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get all keys. - - GET /Auth/Keys - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 6, - "StartIndex" : 1, - "Items" : [ { - "AppVersion" : "AppVersion", - "UserName" : "UserName", - "AccessToken" : "AccessToken", - "DeviceId" : "DeviceId", - "UserId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsActive" : true, - "DateRevoked" : "2000-01-23T04:56:07.000+00:00", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "Id" : 0, - "DateLastActivity" : "2000-01-23T04:56:07.000+00:00", - "AppName" : "AppName", - "DeviceName" : "DeviceName" - }, { - "AppVersion" : "AppVersion", - "UserName" : "UserName", - "AccessToken" : "AccessToken", - "DeviceId" : "DeviceId", - "UserId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsActive" : true, - "DateRevoked" : "2000-01-23T04:56:07.000+00:00", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "Id" : 0, - "DateLastActivity" : "2000-01-23T04:56:07.000+00:00", - "AppName" : "AppName", - "DeviceName" : "DeviceName" - } ] -}}] - - - returns: RequestBuilder - */ - open class func getKeysWithRequestBuilder() -> RequestBuilder { - let path = "/Auth/Keys" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Remove an api key. - - - parameter key: (path) The access token to delete. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func revokeKey(key: String, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - revokeKeyWithRequestBuilder(key: key).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Remove an api key. - - DELETE /Auth/Keys/{key} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter key: (path) The access token to delete. - - - returns: RequestBuilder - */ - open class func revokeKeyWithRequestBuilder(key: String) -> RequestBuilder { - var path = "/Auth/Keys/{key}" - let keyPreEscape = "\(key)" - let keyPostEscape = keyPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{key}", with: keyPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/ArtistsAPI.swift b/JellyfinPlayer/Swaggers/APIs/ArtistsAPI.swift deleted file mode 100644 index 9c41a176..00000000 --- a/JellyfinPlayer/Swaggers/APIs/ArtistsAPI.swift +++ /dev/null @@ -1,3490 +0,0 @@ -// -// ArtistsAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class ArtistsAPI { - /** - Gets all album artists from a given item, folder, or the entire library. - - - parameter minCommunityRating: (query) Optional filter by minimum community rating. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter searchTerm: (query) Optional. Search term. (optional) - - parameter parentId: (query) Specify this to localize the search to a specific item or folder. Omit to use the root. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter excludeItemTypes: (query) Optional. If specified, results will be filtered out based on item type. This allows multiple, comma delimited. (optional) - - parameter includeItemTypes: (query) Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. (optional) - - parameter filters: (query) Optional. Specify additional filters to apply. (optional) - - parameter isFavorite: (query) Optional filter by items that are marked as favorite, or not. (optional) - - parameter mediaTypes: (query) Optional filter by MediaType. Allows multiple, comma delimited. (optional) - - parameter genres: (query) Optional. If specified, results will be filtered based on genre. This allows multiple, pipe delimited. (optional) - - parameter genreIds: (query) Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimited. (optional) - - parameter officialRatings: (query) Optional. If specified, results will be filtered based on OfficialRating. This allows multiple, pipe delimited. (optional) - - parameter tags: (query) Optional. If specified, results will be filtered based on tag. This allows multiple, pipe delimited. (optional) - - parameter years: (query) Optional. If specified, results will be filtered based on production year. This allows multiple, comma delimited. (optional) - - parameter enableUserData: (query) Optional, include user data. (optional) - - parameter imageTypeLimit: (query) Optional, the max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter person: (query) Optional. If specified, results will be filtered to include only those containing the specified person. (optional) - - parameter personIds: (query) Optional. If specified, results will be filtered to include only those containing the specified person ids. (optional) - - parameter personTypes: (query) Optional. If specified, along with Person, results will be filtered to include only those containing the specified person and PersonType. Allows multiple, comma-delimited. (optional) - - parameter studios: (query) Optional. If specified, results will be filtered based on studio. This allows multiple, pipe delimited. (optional) - - parameter studioIds: (query) Optional. If specified, results will be filtered based on studio id. This allows multiple, pipe delimited. (optional) - - parameter userId: (query) User id. (optional) - - parameter nameStartsWithOrGreater: (query) Optional filter by items whose name is sorted equally or greater than a given input string. (optional) - - parameter nameStartsWith: (query) Optional filter by items whose name is sorted equally than a given input string. (optional) - - parameter nameLessThan: (query) Optional filter by items whose name is equally or lesser than a given input string. (optional) - - parameter enableImages: (query) Optional, include image information in output. (optional, default to true) - - parameter enableTotalRecordCount: (query) Total record count. (optional, default to true) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getAlbumArtists(minCommunityRating: Double? = nil, startIndex: Int? = nil, limit: Int? = nil, searchTerm: String? = nil, parentId: UUID? = nil, fields: [ItemFields]? = nil, excludeItemTypes: [String]? = nil, includeItemTypes: [String]? = nil, filters: [ItemFilter]? = nil, isFavorite: Bool? = nil, mediaTypes: [String]? = nil, genres: [String]? = nil, genreIds: [UUID]? = nil, officialRatings: [String]? = nil, tags: [String]? = nil, years: [Int]? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, person: String? = nil, personIds: [UUID]? = nil, personTypes: [String]? = nil, studios: [String]? = nil, studioIds: [UUID]? = nil, userId: UUID? = nil, nameStartsWithOrGreater: String? = nil, nameStartsWith: String? = nil, nameLessThan: String? = nil, enableImages: Bool? = nil, enableTotalRecordCount: Bool? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getAlbumArtistsWithRequestBuilder(minCommunityRating: minCommunityRating, startIndex: startIndex, limit: limit, searchTerm: searchTerm, parentId: parentId, fields: fields, excludeItemTypes: excludeItemTypes, includeItemTypes: includeItemTypes, filters: filters, isFavorite: isFavorite, mediaTypes: mediaTypes, genres: genres, genreIds: genreIds, officialRatings: officialRatings, tags: tags, years: years, enableUserData: enableUserData, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes, person: person, personIds: personIds, personTypes: personTypes, studios: studios, studioIds: studioIds, userId: userId, nameStartsWithOrGreater: nameStartsWithOrGreater, nameStartsWith: nameStartsWith, nameLessThan: nameLessThan, enableImages: enableImages, enableTotalRecordCount: enableTotalRecordCount).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets all album artists from a given item, folder, or the entire library. - - GET /Artists/AlbumArtists - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter minCommunityRating: (query) Optional filter by minimum community rating. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter searchTerm: (query) Optional. Search term. (optional) - - parameter parentId: (query) Specify this to localize the search to a specific item or folder. Omit to use the root. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter excludeItemTypes: (query) Optional. If specified, results will be filtered out based on item type. This allows multiple, comma delimited. (optional) - - parameter includeItemTypes: (query) Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. (optional) - - parameter filters: (query) Optional. Specify additional filters to apply. (optional) - - parameter isFavorite: (query) Optional filter by items that are marked as favorite, or not. (optional) - - parameter mediaTypes: (query) Optional filter by MediaType. Allows multiple, comma delimited. (optional) - - parameter genres: (query) Optional. If specified, results will be filtered based on genre. This allows multiple, pipe delimited. (optional) - - parameter genreIds: (query) Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimited. (optional) - - parameter officialRatings: (query) Optional. If specified, results will be filtered based on OfficialRating. This allows multiple, pipe delimited. (optional) - - parameter tags: (query) Optional. If specified, results will be filtered based on tag. This allows multiple, pipe delimited. (optional) - - parameter years: (query) Optional. If specified, results will be filtered based on production year. This allows multiple, comma delimited. (optional) - - parameter enableUserData: (query) Optional, include user data. (optional) - - parameter imageTypeLimit: (query) Optional, the max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter person: (query) Optional. If specified, results will be filtered to include only those containing the specified person. (optional) - - parameter personIds: (query) Optional. If specified, results will be filtered to include only those containing the specified person ids. (optional) - - parameter personTypes: (query) Optional. If specified, along with Person, results will be filtered to include only those containing the specified person and PersonType. Allows multiple, comma-delimited. (optional) - - parameter studios: (query) Optional. If specified, results will be filtered based on studio. This allows multiple, pipe delimited. (optional) - - parameter studioIds: (query) Optional. If specified, results will be filtered based on studio id. This allows multiple, pipe delimited. (optional) - - parameter userId: (query) User id. (optional) - - parameter nameStartsWithOrGreater: (query) Optional filter by items whose name is sorted equally or greater than a given input string. (optional) - - parameter nameStartsWith: (query) Optional filter by items whose name is sorted equally than a given input string. (optional) - - parameter nameLessThan: (query) Optional filter by items whose name is equally or lesser than a given input string. (optional) - - parameter enableImages: (query) Optional, include image information in output. (optional, default to true) - - parameter enableTotalRecordCount: (query) Total record count. (optional, default to true) - - - returns: RequestBuilder - */ - open class func getAlbumArtistsWithRequestBuilder(minCommunityRating: Double? = nil, startIndex: Int? = nil, limit: Int? = nil, searchTerm: String? = nil, parentId: UUID? = nil, fields: [ItemFields]? = nil, excludeItemTypes: [String]? = nil, includeItemTypes: [String]? = nil, filters: [ItemFilter]? = nil, isFavorite: Bool? = nil, mediaTypes: [String]? = nil, genres: [String]? = nil, genreIds: [UUID]? = nil, officialRatings: [String]? = nil, tags: [String]? = nil, years: [Int]? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, person: String? = nil, personIds: [UUID]? = nil, personTypes: [String]? = nil, studios: [String]? = nil, studioIds: [UUID]? = nil, userId: UUID? = nil, nameStartsWithOrGreater: String? = nil, nameStartsWith: String? = nil, nameLessThan: String? = nil, enableImages: Bool? = nil, enableTotalRecordCount: Bool? = nil) -> RequestBuilder { - let path = "/Artists/AlbumArtists" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "minCommunityRating": minCommunityRating, - "startIndex": startIndex?.encodeToJSON(), - "limit": limit?.encodeToJSON(), - "searchTerm": searchTerm, - "parentId": parentId, - "fields": fields, - "excludeItemTypes": excludeItemTypes, - "includeItemTypes": includeItemTypes, - "filters": filters, - "isFavorite": isFavorite, - "mediaTypes": mediaTypes, - "genres": genres, - "genreIds": genreIds, - "officialRatings": officialRatings, - "tags": tags, - "years": years, - "enableUserData": enableUserData, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes, - "person": person, - "personIds": personIds, - "personTypes": personTypes, - "studios": studios, - "studioIds": studioIds, - "userId": userId, - "nameStartsWithOrGreater": nameStartsWithOrGreater, - "nameStartsWith": nameStartsWith, - "nameLessThan": nameLessThan, - "enableImages": enableImages, - "enableTotalRecordCount": enableTotalRecordCount - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets an artist by name. - - - parameter name: (path) Studio name. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getArtistByName(name: String, userId: UUID? = nil, completion: @escaping ((_ data: BaseItemDto?,_ error: Error?) -> Void)) { - getArtistByNameWithRequestBuilder(name: name, userId: userId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets an artist by name. - - GET /Artists/{name} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 -}}] - - parameter name: (path) Studio name. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - - returns: RequestBuilder - */ - open class func getArtistByNameWithRequestBuilder(name: String, userId: UUID? = nil) -> RequestBuilder { - var path = "/Artists/{name}" - let namePreEscape = "\(name)" - let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets all artists from a given item, folder, or the entire library. - - - parameter minCommunityRating: (query) Optional filter by minimum community rating. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter searchTerm: (query) Optional. Search term. (optional) - - parameter parentId: (query) Specify this to localize the search to a specific item or folder. Omit to use the root. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter excludeItemTypes: (query) Optional. If specified, results will be filtered out based on item type. This allows multiple, comma delimited. (optional) - - parameter includeItemTypes: (query) Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. (optional) - - parameter filters: (query) Optional. Specify additional filters to apply. (optional) - - parameter isFavorite: (query) Optional filter by items that are marked as favorite, or not. (optional) - - parameter mediaTypes: (query) Optional filter by MediaType. Allows multiple, comma delimited. (optional) - - parameter genres: (query) Optional. If specified, results will be filtered based on genre. This allows multiple, pipe delimited. (optional) - - parameter genreIds: (query) Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimited. (optional) - - parameter officialRatings: (query) Optional. If specified, results will be filtered based on OfficialRating. This allows multiple, pipe delimited. (optional) - - parameter tags: (query) Optional. If specified, results will be filtered based on tag. This allows multiple, pipe delimited. (optional) - - parameter years: (query) Optional. If specified, results will be filtered based on production year. This allows multiple, comma delimited. (optional) - - parameter enableUserData: (query) Optional, include user data. (optional) - - parameter imageTypeLimit: (query) Optional, the max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter person: (query) Optional. If specified, results will be filtered to include only those containing the specified person. (optional) - - parameter personIds: (query) Optional. If specified, results will be filtered to include only those containing the specified person ids. (optional) - - parameter personTypes: (query) Optional. If specified, along with Person, results will be filtered to include only those containing the specified person and PersonType. Allows multiple, comma-delimited. (optional) - - parameter studios: (query) Optional. If specified, results will be filtered based on studio. This allows multiple, pipe delimited. (optional) - - parameter studioIds: (query) Optional. If specified, results will be filtered based on studio id. This allows multiple, pipe delimited. (optional) - - parameter userId: (query) User id. (optional) - - parameter nameStartsWithOrGreater: (query) Optional filter by items whose name is sorted equally or greater than a given input string. (optional) - - parameter nameStartsWith: (query) Optional filter by items whose name is sorted equally than a given input string. (optional) - - parameter nameLessThan: (query) Optional filter by items whose name is equally or lesser than a given input string. (optional) - - parameter enableImages: (query) Optional, include image information in output. (optional, default to true) - - parameter enableTotalRecordCount: (query) Total record count. (optional, default to true) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getArtists(minCommunityRating: Double? = nil, startIndex: Int? = nil, limit: Int? = nil, searchTerm: String? = nil, parentId: UUID? = nil, fields: [ItemFields]? = nil, excludeItemTypes: [String]? = nil, includeItemTypes: [String]? = nil, filters: [ItemFilter]? = nil, isFavorite: Bool? = nil, mediaTypes: [String]? = nil, genres: [String]? = nil, genreIds: [UUID]? = nil, officialRatings: [String]? = nil, tags: [String]? = nil, years: [Int]? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, person: String? = nil, personIds: [UUID]? = nil, personTypes: [String]? = nil, studios: [String]? = nil, studioIds: [UUID]? = nil, userId: UUID? = nil, nameStartsWithOrGreater: String? = nil, nameStartsWith: String? = nil, nameLessThan: String? = nil, enableImages: Bool? = nil, enableTotalRecordCount: Bool? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getArtistsWithRequestBuilder(minCommunityRating: minCommunityRating, startIndex: startIndex, limit: limit, searchTerm: searchTerm, parentId: parentId, fields: fields, excludeItemTypes: excludeItemTypes, includeItemTypes: includeItemTypes, filters: filters, isFavorite: isFavorite, mediaTypes: mediaTypes, genres: genres, genreIds: genreIds, officialRatings: officialRatings, tags: tags, years: years, enableUserData: enableUserData, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes, person: person, personIds: personIds, personTypes: personTypes, studios: studios, studioIds: studioIds, userId: userId, nameStartsWithOrGreater: nameStartsWithOrGreater, nameStartsWith: nameStartsWith, nameLessThan: nameLessThan, enableImages: enableImages, enableTotalRecordCount: enableTotalRecordCount).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets all artists from a given item, folder, or the entire library. - - GET /Artists - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter minCommunityRating: (query) Optional filter by minimum community rating. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter searchTerm: (query) Optional. Search term. (optional) - - parameter parentId: (query) Specify this to localize the search to a specific item or folder. Omit to use the root. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter excludeItemTypes: (query) Optional. If specified, results will be filtered out based on item type. This allows multiple, comma delimited. (optional) - - parameter includeItemTypes: (query) Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. (optional) - - parameter filters: (query) Optional. Specify additional filters to apply. (optional) - - parameter isFavorite: (query) Optional filter by items that are marked as favorite, or not. (optional) - - parameter mediaTypes: (query) Optional filter by MediaType. Allows multiple, comma delimited. (optional) - - parameter genres: (query) Optional. If specified, results will be filtered based on genre. This allows multiple, pipe delimited. (optional) - - parameter genreIds: (query) Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimited. (optional) - - parameter officialRatings: (query) Optional. If specified, results will be filtered based on OfficialRating. This allows multiple, pipe delimited. (optional) - - parameter tags: (query) Optional. If specified, results will be filtered based on tag. This allows multiple, pipe delimited. (optional) - - parameter years: (query) Optional. If specified, results will be filtered based on production year. This allows multiple, comma delimited. (optional) - - parameter enableUserData: (query) Optional, include user data. (optional) - - parameter imageTypeLimit: (query) Optional, the max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter person: (query) Optional. If specified, results will be filtered to include only those containing the specified person. (optional) - - parameter personIds: (query) Optional. If specified, results will be filtered to include only those containing the specified person ids. (optional) - - parameter personTypes: (query) Optional. If specified, along with Person, results will be filtered to include only those containing the specified person and PersonType. Allows multiple, comma-delimited. (optional) - - parameter studios: (query) Optional. If specified, results will be filtered based on studio. This allows multiple, pipe delimited. (optional) - - parameter studioIds: (query) Optional. If specified, results will be filtered based on studio id. This allows multiple, pipe delimited. (optional) - - parameter userId: (query) User id. (optional) - - parameter nameStartsWithOrGreater: (query) Optional filter by items whose name is sorted equally or greater than a given input string. (optional) - - parameter nameStartsWith: (query) Optional filter by items whose name is sorted equally than a given input string. (optional) - - parameter nameLessThan: (query) Optional filter by items whose name is equally or lesser than a given input string. (optional) - - parameter enableImages: (query) Optional, include image information in output. (optional, default to true) - - parameter enableTotalRecordCount: (query) Total record count. (optional, default to true) - - - returns: RequestBuilder - */ - open class func getArtistsWithRequestBuilder(minCommunityRating: Double? = nil, startIndex: Int? = nil, limit: Int? = nil, searchTerm: String? = nil, parentId: UUID? = nil, fields: [ItemFields]? = nil, excludeItemTypes: [String]? = nil, includeItemTypes: [String]? = nil, filters: [ItemFilter]? = nil, isFavorite: Bool? = nil, mediaTypes: [String]? = nil, genres: [String]? = nil, genreIds: [UUID]? = nil, officialRatings: [String]? = nil, tags: [String]? = nil, years: [Int]? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, person: String? = nil, personIds: [UUID]? = nil, personTypes: [String]? = nil, studios: [String]? = nil, studioIds: [UUID]? = nil, userId: UUID? = nil, nameStartsWithOrGreater: String? = nil, nameStartsWith: String? = nil, nameLessThan: String? = nil, enableImages: Bool? = nil, enableTotalRecordCount: Bool? = nil) -> RequestBuilder { - let path = "/Artists" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "minCommunityRating": minCommunityRating, - "startIndex": startIndex?.encodeToJSON(), - "limit": limit?.encodeToJSON(), - "searchTerm": searchTerm, - "parentId": parentId, - "fields": fields, - "excludeItemTypes": excludeItemTypes, - "includeItemTypes": includeItemTypes, - "filters": filters, - "isFavorite": isFavorite, - "mediaTypes": mediaTypes, - "genres": genres, - "genreIds": genreIds, - "officialRatings": officialRatings, - "tags": tags, - "years": years, - "enableUserData": enableUserData, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes, - "person": person, - "personIds": personIds, - "personTypes": personTypes, - "studios": studios, - "studioIds": studioIds, - "userId": userId, - "nameStartsWithOrGreater": nameStartsWithOrGreater, - "nameStartsWith": nameStartsWith, - "nameLessThan": nameLessThan, - "enableImages": enableImages, - "enableTotalRecordCount": enableTotalRecordCount - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/AudioAPI.swift b/JellyfinPlayer/Swaggers/APIs/AudioAPI.swift deleted file mode 100644 index 19fb1361..00000000 --- a/JellyfinPlayer/Swaggers/APIs/AudioAPI.swift +++ /dev/null @@ -1,749 +0,0 @@ -// -// AudioAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class AudioAPI { - /** - Gets an audio stream. - - - parameter itemId: (path) The item id. - - parameter container: (query) The audio container. (optional) - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment length. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamorphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getAudioStream(itemId: UUID, container: String? = nil, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, mediaSourceId: String? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context? = nil, streamOptions: [String:String]? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getAudioStreamWithRequestBuilder(itemId: itemId, container: container, _static: _static, params: params, tag: tag, deviceProfileId: deviceProfileId, playSessionId: playSessionId, segmentContainer: segmentContainer, segmentLength: segmentLength, minSegments: minSegments, mediaSourceId: mediaSourceId, deviceId: deviceId, audioCodec: audioCodec, enableAutoStreamCopy: enableAutoStreamCopy, allowVideoStreamCopy: allowVideoStreamCopy, allowAudioStreamCopy: allowAudioStreamCopy, breakOnNonKeyFrames: breakOnNonKeyFrames, audioSampleRate: audioSampleRate, maxAudioBitDepth: maxAudioBitDepth, audioBitRate: audioBitRate, audioChannels: audioChannels, maxAudioChannels: maxAudioChannels, profile: profile, level: level, framerate: framerate, maxFramerate: maxFramerate, copyTimestamps: copyTimestamps, startTimeTicks: startTimeTicks, width: width, height: height, videoBitRate: videoBitRate, subtitleStreamIndex: subtitleStreamIndex, subtitleMethod: subtitleMethod, maxRefFrames: maxRefFrames, maxVideoBitDepth: maxVideoBitDepth, requireAvc: requireAvc, deInterlace: deInterlace, requireNonAnamorphic: requireNonAnamorphic, transcodingMaxAudioChannels: transcodingMaxAudioChannels, cpuCoreLimit: cpuCoreLimit, liveStreamId: liveStreamId, enableMpegtsM2TsMode: enableMpegtsM2TsMode, videoCodec: videoCodec, subtitleCodec: subtitleCodec, transcodeReasons: transcodeReasons, audioStreamIndex: audioStreamIndex, videoStreamIndex: videoStreamIndex, context: context, streamOptions: streamOptions).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets an audio stream. - - GET /Audio/{itemId}/stream - - - - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) The item id. - - parameter container: (query) The audio container. (optional) - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment length. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamorphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - - returns: RequestBuilder - */ - open class func getAudioStreamWithRequestBuilder(itemId: UUID, container: String? = nil, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, mediaSourceId: String? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context? = nil, streamOptions: [String:String]? = nil) -> RequestBuilder { - var path = "/Audio/{itemId}/stream" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "container": container, - "static": _static, - "params": params, - "tag": tag, - "deviceProfileId": deviceProfileId, - "playSessionId": playSessionId, - "segmentContainer": segmentContainer, - "segmentLength": segmentLength?.encodeToJSON(), - "minSegments": minSegments?.encodeToJSON(), - "mediaSourceId": mediaSourceId, - "deviceId": deviceId, - "audioCodec": audioCodec, - "enableAutoStreamCopy": enableAutoStreamCopy, - "allowVideoStreamCopy": allowVideoStreamCopy, - "allowAudioStreamCopy": allowAudioStreamCopy, - "breakOnNonKeyFrames": breakOnNonKeyFrames, - "audioSampleRate": audioSampleRate?.encodeToJSON(), - "maxAudioBitDepth": maxAudioBitDepth?.encodeToJSON(), - "audioBitRate": audioBitRate?.encodeToJSON(), - "audioChannels": audioChannels?.encodeToJSON(), - "maxAudioChannels": maxAudioChannels?.encodeToJSON(), - "profile": profile, - "level": level, - "framerate": framerate, - "maxFramerate": maxFramerate, - "copyTimestamps": copyTimestamps, - "startTimeTicks": startTimeTicks?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "videoBitRate": videoBitRate?.encodeToJSON(), - "subtitleStreamIndex": subtitleStreamIndex?.encodeToJSON(), - "subtitleMethod": subtitleMethod, - "maxRefFrames": maxRefFrames?.encodeToJSON(), - "maxVideoBitDepth": maxVideoBitDepth?.encodeToJSON(), - "requireAvc": requireAvc, - "deInterlace": deInterlace, - "requireNonAnamorphic": requireNonAnamorphic, - "transcodingMaxAudioChannels": transcodingMaxAudioChannels?.encodeToJSON(), - "cpuCoreLimit": cpuCoreLimit?.encodeToJSON(), - "liveStreamId": liveStreamId, - "enableMpegtsM2TsMode": enableMpegtsM2TsMode, - "videoCodec": videoCodec, - "subtitleCodec": subtitleCodec, - "transcodeReasons": transcodeReasons, - "audioStreamIndex": audioStreamIndex?.encodeToJSON(), - "videoStreamIndex": videoStreamIndex?.encodeToJSON(), - "context": context, - "streamOptions": streamOptions - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets an audio stream. - - - parameter itemId: (path) The item id. - - parameter container: (path) The audio container. - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment lenght. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamporphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getAudioStreamByContainer(itemId: UUID, container: String, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, mediaSourceId: String? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod2? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context2? = nil, streamOptions: [String:String]? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getAudioStreamByContainerWithRequestBuilder(itemId: itemId, container: container, _static: _static, params: params, tag: tag, deviceProfileId: deviceProfileId, playSessionId: playSessionId, segmentContainer: segmentContainer, segmentLength: segmentLength, minSegments: minSegments, mediaSourceId: mediaSourceId, deviceId: deviceId, audioCodec: audioCodec, enableAutoStreamCopy: enableAutoStreamCopy, allowVideoStreamCopy: allowVideoStreamCopy, allowAudioStreamCopy: allowAudioStreamCopy, breakOnNonKeyFrames: breakOnNonKeyFrames, audioSampleRate: audioSampleRate, maxAudioBitDepth: maxAudioBitDepth, audioBitRate: audioBitRate, audioChannels: audioChannels, maxAudioChannels: maxAudioChannels, profile: profile, level: level, framerate: framerate, maxFramerate: maxFramerate, copyTimestamps: copyTimestamps, startTimeTicks: startTimeTicks, width: width, height: height, videoBitRate: videoBitRate, subtitleStreamIndex: subtitleStreamIndex, subtitleMethod: subtitleMethod, maxRefFrames: maxRefFrames, maxVideoBitDepth: maxVideoBitDepth, requireAvc: requireAvc, deInterlace: deInterlace, requireNonAnamorphic: requireNonAnamorphic, transcodingMaxAudioChannels: transcodingMaxAudioChannels, cpuCoreLimit: cpuCoreLimit, liveStreamId: liveStreamId, enableMpegtsM2TsMode: enableMpegtsM2TsMode, videoCodec: videoCodec, subtitleCodec: subtitleCodec, transcodeReasons: transcodeReasons, audioStreamIndex: audioStreamIndex, videoStreamIndex: videoStreamIndex, context: context, streamOptions: streamOptions).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets an audio stream. - - GET /Audio/{itemId}/stream.{container} - - - - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) The item id. - - parameter container: (path) The audio container. - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment lenght. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamporphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - - returns: RequestBuilder - */ - open class func getAudioStreamByContainerWithRequestBuilder(itemId: UUID, container: String, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, mediaSourceId: String? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod2? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context2? = nil, streamOptions: [String:String]? = nil) -> RequestBuilder { - var path = "/Audio/{itemId}/stream.{container}" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let containerPreEscape = "\(container)" - let containerPostEscape = containerPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{container}", with: containerPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "static": _static, - "params": params, - "tag": tag, - "deviceProfileId": deviceProfileId, - "playSessionId": playSessionId, - "segmentContainer": segmentContainer, - "segmentLength": segmentLength?.encodeToJSON(), - "minSegments": minSegments?.encodeToJSON(), - "mediaSourceId": mediaSourceId, - "deviceId": deviceId, - "audioCodec": audioCodec, - "enableAutoStreamCopy": enableAutoStreamCopy, - "allowVideoStreamCopy": allowVideoStreamCopy, - "allowAudioStreamCopy": allowAudioStreamCopy, - "breakOnNonKeyFrames": breakOnNonKeyFrames, - "audioSampleRate": audioSampleRate?.encodeToJSON(), - "maxAudioBitDepth": maxAudioBitDepth?.encodeToJSON(), - "audioBitRate": audioBitRate?.encodeToJSON(), - "audioChannels": audioChannels?.encodeToJSON(), - "maxAudioChannels": maxAudioChannels?.encodeToJSON(), - "profile": profile, - "level": level, - "framerate": framerate, - "maxFramerate": maxFramerate, - "copyTimestamps": copyTimestamps, - "startTimeTicks": startTimeTicks?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "videoBitRate": videoBitRate?.encodeToJSON(), - "subtitleStreamIndex": subtitleStreamIndex?.encodeToJSON(), - "subtitleMethod": subtitleMethod, - "maxRefFrames": maxRefFrames?.encodeToJSON(), - "maxVideoBitDepth": maxVideoBitDepth?.encodeToJSON(), - "requireAvc": requireAvc, - "deInterlace": deInterlace, - "requireNonAnamorphic": requireNonAnamorphic, - "transcodingMaxAudioChannels": transcodingMaxAudioChannels?.encodeToJSON(), - "cpuCoreLimit": cpuCoreLimit?.encodeToJSON(), - "liveStreamId": liveStreamId, - "enableMpegtsM2TsMode": enableMpegtsM2TsMode, - "videoCodec": videoCodec, - "subtitleCodec": subtitleCodec, - "transcodeReasons": transcodeReasons, - "audioStreamIndex": audioStreamIndex?.encodeToJSON(), - "videoStreamIndex": videoStreamIndex?.encodeToJSON(), - "context": context, - "streamOptions": streamOptions - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets an audio stream. - - - parameter itemId: (path) The item id. - - parameter container: (query) The audio container. (optional) - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment length. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamorphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func headAudioStream(itemId: UUID, container: String? = nil, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, mediaSourceId: String? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod1? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context1? = nil, streamOptions: [String:String]? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - headAudioStreamWithRequestBuilder(itemId: itemId, container: container, _static: _static, params: params, tag: tag, deviceProfileId: deviceProfileId, playSessionId: playSessionId, segmentContainer: segmentContainer, segmentLength: segmentLength, minSegments: minSegments, mediaSourceId: mediaSourceId, deviceId: deviceId, audioCodec: audioCodec, enableAutoStreamCopy: enableAutoStreamCopy, allowVideoStreamCopy: allowVideoStreamCopy, allowAudioStreamCopy: allowAudioStreamCopy, breakOnNonKeyFrames: breakOnNonKeyFrames, audioSampleRate: audioSampleRate, maxAudioBitDepth: maxAudioBitDepth, audioBitRate: audioBitRate, audioChannels: audioChannels, maxAudioChannels: maxAudioChannels, profile: profile, level: level, framerate: framerate, maxFramerate: maxFramerate, copyTimestamps: copyTimestamps, startTimeTicks: startTimeTicks, width: width, height: height, videoBitRate: videoBitRate, subtitleStreamIndex: subtitleStreamIndex, subtitleMethod: subtitleMethod, maxRefFrames: maxRefFrames, maxVideoBitDepth: maxVideoBitDepth, requireAvc: requireAvc, deInterlace: deInterlace, requireNonAnamorphic: requireNonAnamorphic, transcodingMaxAudioChannels: transcodingMaxAudioChannels, cpuCoreLimit: cpuCoreLimit, liveStreamId: liveStreamId, enableMpegtsM2TsMode: enableMpegtsM2TsMode, videoCodec: videoCodec, subtitleCodec: subtitleCodec, transcodeReasons: transcodeReasons, audioStreamIndex: audioStreamIndex, videoStreamIndex: videoStreamIndex, context: context, streamOptions: streamOptions).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets an audio stream. - - HEAD /Audio/{itemId}/stream - - - - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) The item id. - - parameter container: (query) The audio container. (optional) - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment length. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamorphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - - returns: RequestBuilder - */ - open class func headAudioStreamWithRequestBuilder(itemId: UUID, container: String? = nil, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, mediaSourceId: String? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod1? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context1? = nil, streamOptions: [String:String]? = nil) -> RequestBuilder { - var path = "/Audio/{itemId}/stream" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "container": container, - "static": _static, - "params": params, - "tag": tag, - "deviceProfileId": deviceProfileId, - "playSessionId": playSessionId, - "segmentContainer": segmentContainer, - "segmentLength": segmentLength?.encodeToJSON(), - "minSegments": minSegments?.encodeToJSON(), - "mediaSourceId": mediaSourceId, - "deviceId": deviceId, - "audioCodec": audioCodec, - "enableAutoStreamCopy": enableAutoStreamCopy, - "allowVideoStreamCopy": allowVideoStreamCopy, - "allowAudioStreamCopy": allowAudioStreamCopy, - "breakOnNonKeyFrames": breakOnNonKeyFrames, - "audioSampleRate": audioSampleRate?.encodeToJSON(), - "maxAudioBitDepth": maxAudioBitDepth?.encodeToJSON(), - "audioBitRate": audioBitRate?.encodeToJSON(), - "audioChannels": audioChannels?.encodeToJSON(), - "maxAudioChannels": maxAudioChannels?.encodeToJSON(), - "profile": profile, - "level": level, - "framerate": framerate, - "maxFramerate": maxFramerate, - "copyTimestamps": copyTimestamps, - "startTimeTicks": startTimeTicks?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "videoBitRate": videoBitRate?.encodeToJSON(), - "subtitleStreamIndex": subtitleStreamIndex?.encodeToJSON(), - "subtitleMethod": subtitleMethod, - "maxRefFrames": maxRefFrames?.encodeToJSON(), - "maxVideoBitDepth": maxVideoBitDepth?.encodeToJSON(), - "requireAvc": requireAvc, - "deInterlace": deInterlace, - "requireNonAnamorphic": requireNonAnamorphic, - "transcodingMaxAudioChannels": transcodingMaxAudioChannels?.encodeToJSON(), - "cpuCoreLimit": cpuCoreLimit?.encodeToJSON(), - "liveStreamId": liveStreamId, - "enableMpegtsM2TsMode": enableMpegtsM2TsMode, - "videoCodec": videoCodec, - "subtitleCodec": subtitleCodec, - "transcodeReasons": transcodeReasons, - "audioStreamIndex": audioStreamIndex?.encodeToJSON(), - "videoStreamIndex": videoStreamIndex?.encodeToJSON(), - "context": context, - "streamOptions": streamOptions - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "HEAD", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets an audio stream. - - - parameter itemId: (path) The item id. - - parameter container: (path) The audio container. - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment lenght. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamporphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func headAudioStreamByContainer(itemId: UUID, container: String, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, mediaSourceId: String? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod3? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context3? = nil, streamOptions: [String:String]? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - headAudioStreamByContainerWithRequestBuilder(itemId: itemId, container: container, _static: _static, params: params, tag: tag, deviceProfileId: deviceProfileId, playSessionId: playSessionId, segmentContainer: segmentContainer, segmentLength: segmentLength, minSegments: minSegments, mediaSourceId: mediaSourceId, deviceId: deviceId, audioCodec: audioCodec, enableAutoStreamCopy: enableAutoStreamCopy, allowVideoStreamCopy: allowVideoStreamCopy, allowAudioStreamCopy: allowAudioStreamCopy, breakOnNonKeyFrames: breakOnNonKeyFrames, audioSampleRate: audioSampleRate, maxAudioBitDepth: maxAudioBitDepth, audioBitRate: audioBitRate, audioChannels: audioChannels, maxAudioChannels: maxAudioChannels, profile: profile, level: level, framerate: framerate, maxFramerate: maxFramerate, copyTimestamps: copyTimestamps, startTimeTicks: startTimeTicks, width: width, height: height, videoBitRate: videoBitRate, subtitleStreamIndex: subtitleStreamIndex, subtitleMethod: subtitleMethod, maxRefFrames: maxRefFrames, maxVideoBitDepth: maxVideoBitDepth, requireAvc: requireAvc, deInterlace: deInterlace, requireNonAnamorphic: requireNonAnamorphic, transcodingMaxAudioChannels: transcodingMaxAudioChannels, cpuCoreLimit: cpuCoreLimit, liveStreamId: liveStreamId, enableMpegtsM2TsMode: enableMpegtsM2TsMode, videoCodec: videoCodec, subtitleCodec: subtitleCodec, transcodeReasons: transcodeReasons, audioStreamIndex: audioStreamIndex, videoStreamIndex: videoStreamIndex, context: context, streamOptions: streamOptions).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets an audio stream. - - HEAD /Audio/{itemId}/stream.{container} - - - - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) The item id. - - parameter container: (path) The audio container. - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment lenght. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamporphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - - returns: RequestBuilder - */ - open class func headAudioStreamByContainerWithRequestBuilder(itemId: UUID, container: String, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, mediaSourceId: String? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod3? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context3? = nil, streamOptions: [String:String]? = nil) -> RequestBuilder { - var path = "/Audio/{itemId}/stream.{container}" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let containerPreEscape = "\(container)" - let containerPostEscape = containerPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{container}", with: containerPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "static": _static, - "params": params, - "tag": tag, - "deviceProfileId": deviceProfileId, - "playSessionId": playSessionId, - "segmentContainer": segmentContainer, - "segmentLength": segmentLength?.encodeToJSON(), - "minSegments": minSegments?.encodeToJSON(), - "mediaSourceId": mediaSourceId, - "deviceId": deviceId, - "audioCodec": audioCodec, - "enableAutoStreamCopy": enableAutoStreamCopy, - "allowVideoStreamCopy": allowVideoStreamCopy, - "allowAudioStreamCopy": allowAudioStreamCopy, - "breakOnNonKeyFrames": breakOnNonKeyFrames, - "audioSampleRate": audioSampleRate?.encodeToJSON(), - "maxAudioBitDepth": maxAudioBitDepth?.encodeToJSON(), - "audioBitRate": audioBitRate?.encodeToJSON(), - "audioChannels": audioChannels?.encodeToJSON(), - "maxAudioChannels": maxAudioChannels?.encodeToJSON(), - "profile": profile, - "level": level, - "framerate": framerate, - "maxFramerate": maxFramerate, - "copyTimestamps": copyTimestamps, - "startTimeTicks": startTimeTicks?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "videoBitRate": videoBitRate?.encodeToJSON(), - "subtitleStreamIndex": subtitleStreamIndex?.encodeToJSON(), - "subtitleMethod": subtitleMethod, - "maxRefFrames": maxRefFrames?.encodeToJSON(), - "maxVideoBitDepth": maxVideoBitDepth?.encodeToJSON(), - "requireAvc": requireAvc, - "deInterlace": deInterlace, - "requireNonAnamorphic": requireNonAnamorphic, - "transcodingMaxAudioChannels": transcodingMaxAudioChannels?.encodeToJSON(), - "cpuCoreLimit": cpuCoreLimit?.encodeToJSON(), - "liveStreamId": liveStreamId, - "enableMpegtsM2TsMode": enableMpegtsM2TsMode, - "videoCodec": videoCodec, - "subtitleCodec": subtitleCodec, - "transcodeReasons": transcodeReasons, - "audioStreamIndex": audioStreamIndex?.encodeToJSON(), - "videoStreamIndex": videoStreamIndex?.encodeToJSON(), - "context": context, - "streamOptions": streamOptions - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "HEAD", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/BrandingAPI.swift b/JellyfinPlayer/Swaggers/APIs/BrandingAPI.swift deleted file mode 100644 index 40441a55..00000000 --- a/JellyfinPlayer/Swaggers/APIs/BrandingAPI.swift +++ /dev/null @@ -1,112 +0,0 @@ -// -// BrandingAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class BrandingAPI { - /** - Gets branding css. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getBrandingCss(completion: @escaping ((_ data: String?,_ error: Error?) -> Void)) { - getBrandingCssWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets branding css. - - GET /Branding/Css - - - - - examples: [{contentType=application/json, example=""}] - - - returns: RequestBuilder - */ - open class func getBrandingCssWithRequestBuilder() -> RequestBuilder { - let path = "/Branding/Css" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets branding css. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getBrandingCss2(completion: @escaping ((_ data: String?,_ error: Error?) -> Void)) { - getBrandingCss2WithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets branding css. - - GET /Branding/Css.css - - - - - examples: [{contentType=application/json, example=""}] - - - returns: RequestBuilder - */ - open class func getBrandingCss2WithRequestBuilder() -> RequestBuilder { - let path = "/Branding/Css.css" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets branding configuration. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getBrandingOptions(completion: @escaping ((_ data: BrandingOptions?,_ error: Error?) -> Void)) { - getBrandingOptionsWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets branding configuration. - - GET /Branding/Configuration - - - - - examples: [{contentType=application/json, example={ - "CustomCss" : "CustomCss", - "LoginDisclaimer" : "LoginDisclaimer" -}}] - - - returns: RequestBuilder - */ - open class func getBrandingOptionsWithRequestBuilder() -> RequestBuilder { - let path = "/Branding/Configuration" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/ChannelsAPI.swift b/JellyfinPlayer/Swaggers/APIs/ChannelsAPI.swift deleted file mode 100644 index fcd53414..00000000 --- a/JellyfinPlayer/Swaggers/APIs/ChannelsAPI.swift +++ /dev/null @@ -1,4119 +0,0 @@ -// -// ChannelsAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class ChannelsAPI { - /** - Get all channel features. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getAllChannelFeatures(completion: @escaping ((_ data: [ChannelFeatures]?,_ error: Error?) -> Void)) { - getAllChannelFeaturesWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get all channel features. - - GET /Channels/Features - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "MaxPageSize" : 0, - "AutoRefreshLevels" : 6, - "SupportsContentDownloading" : true, - "SupportsLatestMedia" : true, - "ContentTypes" : [ "Clip", "Clip" ], - "Id" : "Id", - "SupportsSortOrderToggle" : true, - "MediaTypes" : [ "Audio", "Audio" ], - "DefaultSortFields" : [ "Name", "Name" ], - "CanFilter" : true, - "Name" : "Name", - "CanSearch" : true -}, { - "MaxPageSize" : 0, - "AutoRefreshLevels" : 6, - "SupportsContentDownloading" : true, - "SupportsLatestMedia" : true, - "ContentTypes" : [ "Clip", "Clip" ], - "Id" : "Id", - "SupportsSortOrderToggle" : true, - "MediaTypes" : [ "Audio", "Audio" ], - "DefaultSortFields" : [ "Name", "Name" ], - "CanFilter" : true, - "Name" : "Name", - "CanSearch" : true -} ]}] - - - returns: RequestBuilder<[ChannelFeatures]> - */ - open class func getAllChannelFeaturesWithRequestBuilder() -> RequestBuilder<[ChannelFeatures]> { - let path = "/Channels/Features" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[ChannelFeatures]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get channel features. - - - parameter channelId: (path) Channel id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getChannelFeatures(channelId: UUID, completion: @escaping ((_ data: ChannelFeatures?,_ error: Error?) -> Void)) { - getChannelFeaturesWithRequestBuilder(channelId: channelId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get channel features. - - GET /Channels/{channelId}/Features - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "MaxPageSize" : 0, - "AutoRefreshLevels" : 6, - "SupportsContentDownloading" : true, - "SupportsLatestMedia" : true, - "ContentTypes" : [ "Clip", "Clip" ], - "Id" : "Id", - "SupportsSortOrderToggle" : true, - "MediaTypes" : [ "Audio", "Audio" ], - "DefaultSortFields" : [ "Name", "Name" ], - "CanFilter" : true, - "Name" : "Name", - "CanSearch" : true -}}] - - parameter channelId: (path) Channel id. - - - returns: RequestBuilder - */ - open class func getChannelFeaturesWithRequestBuilder(channelId: UUID) -> RequestBuilder { - var path = "/Channels/{channelId}/Features" - let channelIdPreEscape = "\(channelId)" - let channelIdPostEscape = channelIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{channelId}", with: channelIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get channel items. - - - parameter channelId: (path) Channel Id. - - parameter folderId: (query) Optional. Folder Id. (optional) - - parameter userId: (query) Optional. User Id. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter sortOrder: (query) Optional. Sort Order - Ascending,Descending. (optional) - - parameter filters: (query) Optional. Specify additional filters to apply. (optional) - - parameter sortBy: (query) Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getChannelItems(channelId: UUID, folderId: UUID? = nil, userId: UUID? = nil, startIndex: Int? = nil, limit: Int? = nil, sortOrder: [SortOrder]? = nil, filters: [ItemFilter]? = nil, sortBy: [String]? = nil, fields: [ItemFields]? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getChannelItemsWithRequestBuilder(channelId: channelId, folderId: folderId, userId: userId, startIndex: startIndex, limit: limit, sortOrder: sortOrder, filters: filters, sortBy: sortBy, fields: fields).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get channel items. - - GET /Channels/{channelId}/Items - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter channelId: (path) Channel Id. - - parameter folderId: (query) Optional. Folder Id. (optional) - - parameter userId: (query) Optional. User Id. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter sortOrder: (query) Optional. Sort Order - Ascending,Descending. (optional) - - parameter filters: (query) Optional. Specify additional filters to apply. (optional) - - parameter sortBy: (query) Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - - returns: RequestBuilder - */ - open class func getChannelItemsWithRequestBuilder(channelId: UUID, folderId: UUID? = nil, userId: UUID? = nil, startIndex: Int? = nil, limit: Int? = nil, sortOrder: [SortOrder]? = nil, filters: [ItemFilter]? = nil, sortBy: [String]? = nil, fields: [ItemFields]? = nil) -> RequestBuilder { - var path = "/Channels/{channelId}/Items" - let channelIdPreEscape = "\(channelId)" - let channelIdPostEscape = channelIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{channelId}", with: channelIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "folderId": folderId, - "userId": userId, - "startIndex": startIndex?.encodeToJSON(), - "limit": limit?.encodeToJSON(), - "sortOrder": sortOrder, - "filters": filters, - "sortBy": sortBy, - "fields": fields - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets available channels. - - - parameter userId: (query) User Id to filter by. Use System.Guid.Empty to not filter by user. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter supportsLatestItems: (query) Optional. Filter by channels that support getting latest items. (optional) - - parameter supportsMediaDeletion: (query) Optional. Filter by channels that support media deletion. (optional) - - parameter isFavorite: (query) Optional. Filter by channels that are favorite. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getChannels(userId: UUID? = nil, startIndex: Int? = nil, limit: Int? = nil, supportsLatestItems: Bool? = nil, supportsMediaDeletion: Bool? = nil, isFavorite: Bool? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getChannelsWithRequestBuilder(userId: userId, startIndex: startIndex, limit: limit, supportsLatestItems: supportsLatestItems, supportsMediaDeletion: supportsMediaDeletion, isFavorite: isFavorite).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets available channels. - - GET /Channels - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter userId: (query) User Id to filter by. Use System.Guid.Empty to not filter by user. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter supportsLatestItems: (query) Optional. Filter by channels that support getting latest items. (optional) - - parameter supportsMediaDeletion: (query) Optional. Filter by channels that support media deletion. (optional) - - parameter isFavorite: (query) Optional. Filter by channels that are favorite. (optional) - - - returns: RequestBuilder - */ - open class func getChannelsWithRequestBuilder(userId: UUID? = nil, startIndex: Int? = nil, limit: Int? = nil, supportsLatestItems: Bool? = nil, supportsMediaDeletion: Bool? = nil, isFavorite: Bool? = nil) -> RequestBuilder { - let path = "/Channels" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId, - "startIndex": startIndex?.encodeToJSON(), - "limit": limit?.encodeToJSON(), - "supportsLatestItems": supportsLatestItems, - "supportsMediaDeletion": supportsMediaDeletion, - "isFavorite": isFavorite - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets latest channel items. - - - parameter userId: (query) Optional. User Id. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter filters: (query) Optional. Specify additional filters to apply. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter channelIds: (query) Optional. Specify one or more channel id's, comma delimited. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getLatestChannelItems(userId: UUID? = nil, startIndex: Int? = nil, limit: Int? = nil, filters: [ItemFilter]? = nil, fields: [ItemFields]? = nil, channelIds: [UUID]? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getLatestChannelItemsWithRequestBuilder(userId: userId, startIndex: startIndex, limit: limit, filters: filters, fields: fields, channelIds: channelIds).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets latest channel items. - - GET /Channels/Items/Latest - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter userId: (query) Optional. User Id. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter filters: (query) Optional. Specify additional filters to apply. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter channelIds: (query) Optional. Specify one or more channel id's, comma delimited. (optional) - - - returns: RequestBuilder - */ - open class func getLatestChannelItemsWithRequestBuilder(userId: UUID? = nil, startIndex: Int? = nil, limit: Int? = nil, filters: [ItemFilter]? = nil, fields: [ItemFields]? = nil, channelIds: [UUID]? = nil) -> RequestBuilder { - let path = "/Channels/Items/Latest" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId, - "startIndex": startIndex?.encodeToJSON(), - "limit": limit?.encodeToJSON(), - "filters": filters, - "fields": fields, - "channelIds": channelIds - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/CollectionAPI.swift b/JellyfinPlayer/Swaggers/APIs/CollectionAPI.swift deleted file mode 100644 index ec54ace1..00000000 --- a/JellyfinPlayer/Swaggers/APIs/CollectionAPI.swift +++ /dev/null @@ -1,160 +0,0 @@ -// -// CollectionAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class CollectionAPI { - /** - Adds items to a collection. - - - parameter collectionId: (path) The collection id. - - parameter ids: (query) Item ids, comma delimited. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func addToCollection(collectionId: UUID, ids: [UUID], completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - addToCollectionWithRequestBuilder(collectionId: collectionId, ids: ids).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Adds items to a collection. - - POST /Collections/{collectionId}/Items - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter collectionId: (path) The collection id. - - parameter ids: (query) Item ids, comma delimited. - - - returns: RequestBuilder - */ - open class func addToCollectionWithRequestBuilder(collectionId: UUID, ids: [UUID]) -> RequestBuilder { - var path = "/Collections/{collectionId}/Items" - let collectionIdPreEscape = "\(collectionId)" - let collectionIdPostEscape = collectionIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{collectionId}", with: collectionIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "ids": ids - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Creates a new collection. - - - parameter name: (query) The name of the collection. (optional) - - parameter ids: (query) Item Ids to add to the collection. (optional) - - parameter parentId: (query) Optional. Create the collection within a specific folder. (optional) - - parameter isLocked: (query) Whether or not to lock the new collection. (optional, default to false) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func createCollection(name: String? = nil, ids: [String]? = nil, parentId: UUID? = nil, isLocked: Bool? = nil, completion: @escaping ((_ data: CollectionCreationResult?,_ error: Error?) -> Void)) { - createCollectionWithRequestBuilder(name: name, ids: ids, parentId: parentId, isLocked: isLocked).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Creates a new collection. - - POST /Collections - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" -}}] - - parameter name: (query) The name of the collection. (optional) - - parameter ids: (query) Item Ids to add to the collection. (optional) - - parameter parentId: (query) Optional. Create the collection within a specific folder. (optional) - - parameter isLocked: (query) Whether or not to lock the new collection. (optional, default to false) - - - returns: RequestBuilder - */ - open class func createCollectionWithRequestBuilder(name: String? = nil, ids: [String]? = nil, parentId: UUID? = nil, isLocked: Bool? = nil) -> RequestBuilder { - let path = "/Collections" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "name": name, - "ids": ids, - "parentId": parentId, - "isLocked": isLocked - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Removes items from a collection. - - - parameter collectionId: (path) The collection id. - - parameter ids: (query) Item ids, comma delimited. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func removeFromCollection(collectionId: UUID, ids: [UUID], completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - removeFromCollectionWithRequestBuilder(collectionId: collectionId, ids: ids).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Removes items from a collection. - - DELETE /Collections/{collectionId}/Items - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter collectionId: (path) The collection id. - - parameter ids: (query) Item ids, comma delimited. - - - returns: RequestBuilder - */ - open class func removeFromCollectionWithRequestBuilder(collectionId: UUID, ids: [UUID]) -> RequestBuilder { - var path = "/Collections/{collectionId}/Items" - let collectionIdPreEscape = "\(collectionId)" - let collectionIdPostEscape = collectionIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{collectionId}", with: collectionIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "ids": ids - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/ConfigurationAPI.swift b/JellyfinPlayer/Swaggers/APIs/ConfigurationAPI.swift deleted file mode 100644 index 07484567..00000000 --- a/JellyfinPlayer/Swaggers/APIs/ConfigurationAPI.swift +++ /dev/null @@ -1,374 +0,0 @@ -// -// ConfigurationAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class ConfigurationAPI { - /** - Gets application configuration. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getConfiguration(completion: @escaping ((_ data: ServerConfiguration?,_ error: Error?) -> Void)) { - getConfigurationWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets application configuration. - - GET /System/Configuration - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "RemoteIPFilter" : [ "RemoteIPFilter", "RemoteIPFilter" ], - "EnableSlowResponseWarning" : true, - "CorsHosts" : [ "CorsHosts", "CorsHosts" ], - "IsStartupWizardCompleted" : true, - "IsPortAuthorized" : true, - "UICulture" : "UICulture", - "CodecsUsed" : [ "CodecsUsed", "CodecsUsed" ], - "AutoDiscovery" : true, - "ImageSavingConvention" : "", - "LocalNetworkAddresses" : [ "LocalNetworkAddresses", "LocalNetworkAddresses" ], - "EnableUPnP" : true, - "EnableMultiSocketBinding" : true, - "EnableIPV4" : true, - "MetadataCountryCode" : "MetadataCountryCode", - "SaveMetadataHidden" : true, - "EnableIPV6" : true, - "UDPSendDelay" : 5, - "EnableNormalizedItemByNameIds" : true, - "MetadataNetworkPath" : "MetadataNetworkPath", - "LocalNetworkSubnets" : [ "LocalNetworkSubnets", "LocalNetworkSubnets" ], - "EnableNewOmdbSupport" : true, - "ActivityLogRetentionDays" : 1, - "PublishedServerUriBySubnet" : [ "PublishedServerUriBySubnet", "PublishedServerUriBySubnet" ], - "SortRemoveCharacters" : [ "SortRemoveCharacters", "SortRemoveCharacters" ], - "DisableLiveTvChannelUserDataName" : true, - "MaxResumePct" : 2, - "HttpServerPortNumber" : 7, - "MinResumeDurationSeconds" : 4, - "SlowResponseThresholdMs" : 7, - "RequireHttps" : true, - "LogFileRetentionDays" : 0, - "LibraryScanFanoutConcurrency" : 4, - "HDHomerunPortRange" : "HDHomerunPortRange", - "SkipDeserializationForBasicTypes" : true, - "MetadataOptions" : [ { - "DisabledImageFetchers" : [ "DisabledImageFetchers", "DisabledImageFetchers" ], - "DisabledMetadataSavers" : [ "DisabledMetadataSavers", "DisabledMetadataSavers" ], - "MetadataFetcherOrder" : [ "MetadataFetcherOrder", "MetadataFetcherOrder" ], - "ItemType" : "ItemType", - "DisabledMetadataFetchers" : [ "DisabledMetadataFetchers", "DisabledMetadataFetchers" ], - "ImageFetcherOrder" : [ "ImageFetcherOrder", "ImageFetcherOrder" ], - "LocalMetadataReaderOrder" : [ "LocalMetadataReaderOrder", "LocalMetadataReaderOrder" ] - }, { - "DisabledImageFetchers" : [ "DisabledImageFetchers", "DisabledImageFetchers" ], - "DisabledMetadataSavers" : [ "DisabledMetadataSavers", "DisabledMetadataSavers" ], - "MetadataFetcherOrder" : [ "MetadataFetcherOrder", "MetadataFetcherOrder" ], - "ItemType" : "ItemType", - "DisabledMetadataFetchers" : [ "DisabledMetadataFetchers", "DisabledMetadataFetchers" ], - "ImageFetcherOrder" : [ "ImageFetcherOrder", "ImageFetcherOrder" ], - "LocalMetadataReaderOrder" : [ "LocalMetadataReaderOrder", "LocalMetadataReaderOrder" ] - } ], - "HttpsPortNumber" : 9, - "MinResumePct" : 3, - "SSDPTracingFilter" : "SSDPTracingFilter", - "CertificatePassword" : "CertificatePassword", - "RemoteClientBitrateLimit" : 1, - "ImageExtractionTimeoutMs" : 6, - "EnableExternalContentInSuggestions" : true, - "RemoveOldPlugins" : true, - "UPnPCreateHttpPortMap" : true, - "LibraryMonitorDelay" : 1, - "EnableCaseSensitiveItemIds" : true, - "SortReplaceCharacters" : [ "SortReplaceCharacters", "SortReplaceCharacters" ], - "LibraryMetadataRefreshConcurrency" : 5, - "UDPPortRange" : "UDPPortRange", - "PreviousVersionStr" : "PreviousVersionStr", - "EnableSSDPTracing" : true, - "AutoDiscoveryTracing" : true, - "PathSubstitutions" : [ { - "From" : "From", - "To" : "To" - }, { - "From" : "From", - "To" : "To" - } ], - "CachePath" : "CachePath", - "MaxAudiobookResume" : 1, - "EnableFolderView" : true, - "BaseUrl" : "BaseUrl", - "UninstalledPlugins" : [ "UninstalledPlugins", "UninstalledPlugins" ], - "DisplaySpecialsWithinSeasons" : true, - "EnableDashboardResponseCaching" : true, - "EnableRemoteAccess" : true, - "MinAudiobookResume" : 7, - "KnownProxies" : [ "KnownProxies", "KnownProxies" ], - "CertificatePath" : "CertificatePath", - "PluginRepositories" : [ { - "Enabled" : true, - "Url" : "Url", - "Name" : "Name" - }, { - "Enabled" : true, - "Url" : "Url", - "Name" : "Name" - } ], - "IgnoreVirtualInterfaces" : true, - "ContentTypes" : [ { - "Value" : "Value", - "Name" : "Name" - }, { - "Value" : "Value", - "Name" : "Name" - } ], - "PreviousVersion" : "", - "GatewayMonitorPeriod" : 5, - "MetadataPath" : "MetadataPath", - "IsRemoteIPFilterBlacklist" : true, - "UDPSendCount" : 1, - "EnableMetrics" : true, - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "PublicHttpsPort" : 2, - "EnableHttps" : true, - "TrustAllIP6Interfaces" : true, - "ServerName" : "ServerName", - "QuickConnectAvailable" : true, - "VirtualInterfaceNames" : "VirtualInterfaceNames", - "SortRemoveWords" : [ "SortRemoveWords", "SortRemoveWords" ], - "EnableGroupingIntoCollections" : true, - "PublicPort" : 6 -}}] - - - returns: RequestBuilder - */ - open class func getConfigurationWithRequestBuilder() -> RequestBuilder { - let path = "/System/Configuration" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a default MetadataOptions object. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getDefaultMetadataOptions(completion: @escaping ((_ data: MetadataOptions?,_ error: Error?) -> Void)) { - getDefaultMetadataOptionsWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a default MetadataOptions object. - - GET /System/Configuration/MetadataOptions/Default - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "DisabledImageFetchers" : [ "DisabledImageFetchers", "DisabledImageFetchers" ], - "DisabledMetadataSavers" : [ "DisabledMetadataSavers", "DisabledMetadataSavers" ], - "MetadataFetcherOrder" : [ "MetadataFetcherOrder", "MetadataFetcherOrder" ], - "ItemType" : "ItemType", - "DisabledMetadataFetchers" : [ "DisabledMetadataFetchers", "DisabledMetadataFetchers" ], - "ImageFetcherOrder" : [ "ImageFetcherOrder", "ImageFetcherOrder" ], - "LocalMetadataReaderOrder" : [ "LocalMetadataReaderOrder", "LocalMetadataReaderOrder" ] -}}] - - - returns: RequestBuilder - */ - open class func getDefaultMetadataOptionsWithRequestBuilder() -> RequestBuilder { - let path = "/System/Configuration/MetadataOptions/Default" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a named configuration. - - - parameter key: (path) Configuration key. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getNamedConfiguration(key: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getNamedConfigurationWithRequestBuilder(key: key).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a named configuration. - - GET /System/Configuration/{key} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=""}] - - parameter key: (path) Configuration key. - - - returns: RequestBuilder - */ - open class func getNamedConfigurationWithRequestBuilder(key: String) -> RequestBuilder { - var path = "/System/Configuration/{key}" - let keyPreEscape = "\(key)" - let keyPostEscape = keyPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{key}", with: keyPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Updates application configuration. - - - parameter body: (body) Configuration. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func updateConfiguration(body: SystemConfigurationBody, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - updateConfigurationWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Updates application configuration. - - POST /System/Configuration - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) Configuration. - - - returns: RequestBuilder - */ - open class func updateConfigurationWithRequestBuilder(body: SystemConfigurationBody) -> RequestBuilder { - let path = "/System/Configuration" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Updates the path to the media encoder. - - - parameter body: (body) Media encoder path form body. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func updateMediaEncoderPath(body: MediaEncoderPathBody, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - updateMediaEncoderPathWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Updates the path to the media encoder. - - POST /System/MediaEncoder/Path - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) Media encoder path form body. - - - returns: RequestBuilder - */ - open class func updateMediaEncoderPathWithRequestBuilder(body: MediaEncoderPathBody) -> RequestBuilder { - let path = "/System/MediaEncoder/Path" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Updates named configuration. - - - parameter key: (path) Configuration key. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func updateNamedConfiguration(key: String, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - updateNamedConfigurationWithRequestBuilder(key: key).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Updates named configuration. - - POST /System/Configuration/{key} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter key: (path) Configuration key. - - - returns: RequestBuilder - */ - open class func updateNamedConfigurationWithRequestBuilder(key: String) -> RequestBuilder { - var path = "/System/Configuration/{key}" - let keyPreEscape = "\(key)" - let keyPostEscape = keyPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{key}", with: keyPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/DashboardAPI.swift b/JellyfinPlayer/Swaggers/APIs/DashboardAPI.swift deleted file mode 100644 index ce137dd2..00000000 --- a/JellyfinPlayer/Swaggers/APIs/DashboardAPI.swift +++ /dev/null @@ -1,106 +0,0 @@ -// -// DashboardAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class DashboardAPI { - /** - Gets the configuration pages. - - - parameter enableInMainMenu: (query) Whether to enable in the main menu. (optional) - - parameter pageType: (query) The Jellyfin.Api.Models.ConfigurationPageInfo. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getConfigurationPages(enableInMainMenu: Bool? = nil, pageType: PageType? = nil, completion: @escaping ((_ data: [ConfigurationPageInfo]?,_ error: Error?) -> Void)) { - getConfigurationPagesWithRequestBuilder(enableInMainMenu: enableInMainMenu, pageType: pageType).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets the configuration pages. - - GET /web/ConfigurationPages - - - - - examples: [{contentType=application/json, example=[ { - "MenuIcon" : "MenuIcon", - "EnableInMainMenu" : true, - "ConfigurationPageType" : "", - "DisplayName" : "DisplayName", - "MenuSection" : "MenuSection", - "PluginId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" -}, { - "MenuIcon" : "MenuIcon", - "EnableInMainMenu" : true, - "ConfigurationPageType" : "", - "DisplayName" : "DisplayName", - "MenuSection" : "MenuSection", - "PluginId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" -} ]}] - - parameter enableInMainMenu: (query) Whether to enable in the main menu. (optional) - - parameter pageType: (query) The Jellyfin.Api.Models.ConfigurationPageInfo. (optional) - - - returns: RequestBuilder<[ConfigurationPageInfo]> - */ - open class func getConfigurationPagesWithRequestBuilder(enableInMainMenu: Bool? = nil, pageType: PageType? = nil) -> RequestBuilder<[ConfigurationPageInfo]> { - let path = "/web/ConfigurationPages" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "enableInMainMenu": enableInMainMenu, - "pageType": pageType - ]) - - - let requestBuilder: RequestBuilder<[ConfigurationPageInfo]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a dashboard configuration page. - - - parameter name: (query) The name of the page. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getDashboardConfigurationPage(name: String? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getDashboardConfigurationPageWithRequestBuilder(name: name).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a dashboard configuration page. - - GET /web/ConfigurationPage - - - - - examples: [{contentType=application/json, example=""}] - - parameter name: (query) The name of the page. (optional) - - - returns: RequestBuilder - */ - open class func getDashboardConfigurationPageWithRequestBuilder(name: String? = nil) -> RequestBuilder { - let path = "/web/ConfigurationPage" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "name": name - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/DevicesAPI.swift b/JellyfinPlayer/Swaggers/APIs/DevicesAPI.swift deleted file mode 100644 index c515fca7..00000000 --- a/JellyfinPlayer/Swaggers/APIs/DevicesAPI.swift +++ /dev/null @@ -1,260 +0,0 @@ -// -// DevicesAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class DevicesAPI { - /** - Deletes a device. - - - parameter _id: (query) Device Id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func deleteDevice(_id: String, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - deleteDeviceWithRequestBuilder(_id: _id).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Deletes a device. - - DELETE /Devices - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter _id: (query) Device Id. - - - returns: RequestBuilder - */ - open class func deleteDeviceWithRequestBuilder(_id: String) -> RequestBuilder { - let path = "/Devices" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "id": _id - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get info for a device. - - - parameter _id: (query) Device Id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getDeviceInfo(_id: String, completion: @escaping ((_ data: DeviceInfo?,_ error: Error?) -> Void)) { - getDeviceInfoWithRequestBuilder(_id: _id).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get info for a device. - - GET /Devices/Info - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "AppVersion" : "AppVersion", - "IconUrl" : "IconUrl", - "LastUserName" : "LastUserName", - "Capabilities" : "", - "LastUserId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Id" : "Id", - "DateLastActivity" : "2000-01-23T04:56:07.000+00:00", - "Name" : "Name", - "AppName" : "AppName" -}}] - - parameter _id: (query) Device Id. - - - returns: RequestBuilder - */ - open class func getDeviceInfoWithRequestBuilder(_id: String) -> RequestBuilder { - let path = "/Devices/Info" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "id": _id - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get options for a device. - - - parameter _id: (query) Device Id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getDeviceOptions(_id: String, completion: @escaping ((_ data: DeviceOptions?,_ error: Error?) -> Void)) { - getDeviceOptionsWithRequestBuilder(_id: _id).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get options for a device. - - GET /Devices/Options - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "CustomName" : "CustomName" -}}] - - parameter _id: (query) Device Id. - - - returns: RequestBuilder - */ - open class func getDeviceOptionsWithRequestBuilder(_id: String) -> RequestBuilder { - let path = "/Devices/Options" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "id": _id - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get Devices. - - - parameter supportsSync: (query) Gets or sets a value indicating whether [supports synchronize]. (optional) - - parameter userId: (query) Gets or sets the user identifier. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getDevices(supportsSync: Bool? = nil, userId: UUID? = nil, completion: @escaping ((_ data: DeviceInfoQueryResult?,_ error: Error?) -> Void)) { - getDevicesWithRequestBuilder(supportsSync: supportsSync, userId: userId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get Devices. - - GET /Devices - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 0, - "StartIndex" : 6, - "Items" : [ { - "AppVersion" : "AppVersion", - "IconUrl" : "IconUrl", - "LastUserName" : "LastUserName", - "Capabilities" : "", - "LastUserId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Id" : "Id", - "DateLastActivity" : "2000-01-23T04:56:07.000+00:00", - "Name" : "Name", - "AppName" : "AppName" - }, { - "AppVersion" : "AppVersion", - "IconUrl" : "IconUrl", - "LastUserName" : "LastUserName", - "Capabilities" : "", - "LastUserId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Id" : "Id", - "DateLastActivity" : "2000-01-23T04:56:07.000+00:00", - "Name" : "Name", - "AppName" : "AppName" - } ] -}}] - - parameter supportsSync: (query) Gets or sets a value indicating whether [supports synchronize]. (optional) - - parameter userId: (query) Gets or sets the user identifier. (optional) - - - returns: RequestBuilder - */ - open class func getDevicesWithRequestBuilder(supportsSync: Bool? = nil, userId: UUID? = nil) -> RequestBuilder { - let path = "/Devices" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "supportsSync": supportsSync, - "userId": userId - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Update device options. - - - parameter body: (body) Device Options. - - parameter _id: (query) Device Id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func updateDeviceOptions(body: DevicesOptionsBody, _id: String, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - updateDeviceOptionsWithRequestBuilder(body: body, _id: _id).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Update device options. - - POST /Devices/Options - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) Device Options. - - parameter _id: (query) Device Id. - - - returns: RequestBuilder - */ - open class func updateDeviceOptionsWithRequestBuilder(body: DevicesOptionsBody, _id: String) -> RequestBuilder { - let path = "/Devices/Options" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "id": _id - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/DisplayPreferencesAPI.swift b/JellyfinPlayer/Swaggers/APIs/DisplayPreferencesAPI.swift deleted file mode 100644 index f490583e..00000000 --- a/JellyfinPlayer/Swaggers/APIs/DisplayPreferencesAPI.swift +++ /dev/null @@ -1,131 +0,0 @@ -// -// DisplayPreferencesAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class DisplayPreferencesAPI { - /** - Get Display Preferences. - - - parameter displayPreferencesId: (path) Display preferences id. - - parameter userId: (query) User id. - - parameter client: (query) Client. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getDisplayPreferences(displayPreferencesId: String, userId: UUID, client: String, completion: @escaping ((_ data: DisplayPreferencesDto?,_ error: Error?) -> Void)) { - getDisplayPreferencesWithRequestBuilder(displayPreferencesId: displayPreferencesId, userId: userId, client: client).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get Display Preferences. - - GET /DisplayPreferences/{displayPreferencesId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "RememberSorting" : true, - "RememberIndexing" : true, - "PrimaryImageWidth" : 6, - "ScrollDirection" : "", - "IndexBy" : "IndexBy", - "SortBy" : "SortBy", - "ShowBackdrop" : true, - "SortOrder" : "", - "ShowSidebar" : true, - "PrimaryImageHeight" : 0, - "Id" : "Id", - "Client" : "Client", - "CustomPrefs" : { - "key" : "CustomPrefs" - }, - "ViewType" : "ViewType" -}}] - - parameter displayPreferencesId: (path) Display preferences id. - - parameter userId: (query) User id. - - parameter client: (query) Client. - - - returns: RequestBuilder - */ - open class func getDisplayPreferencesWithRequestBuilder(displayPreferencesId: String, userId: UUID, client: String) -> RequestBuilder { - var path = "/DisplayPreferences/{displayPreferencesId}" - let displayPreferencesIdPreEscape = "\(displayPreferencesId)" - let displayPreferencesIdPostEscape = displayPreferencesIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{displayPreferencesId}", with: displayPreferencesIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId, - "client": client - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Update Display Preferences. - - - parameter body: (body) New Display Preferences object. - - parameter userId: (query) User Id. - - parameter client: (query) Client. - - parameter displayPreferencesId: (path) Display preferences id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func updateDisplayPreferences(body: DisplayPreferencesDisplayPreferencesIdBody, userId: UUID, client: String, displayPreferencesId: String, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - updateDisplayPreferencesWithRequestBuilder(body: body, userId: userId, client: client, displayPreferencesId: displayPreferencesId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Update Display Preferences. - - POST /DisplayPreferences/{displayPreferencesId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) New Display Preferences object. - - parameter userId: (query) User Id. - - parameter client: (query) Client. - - parameter displayPreferencesId: (path) Display preferences id. - - - returns: RequestBuilder - */ - open class func updateDisplayPreferencesWithRequestBuilder(body: DisplayPreferencesDisplayPreferencesIdBody, userId: UUID, client: String, displayPreferencesId: String) -> RequestBuilder { - var path = "/DisplayPreferences/{displayPreferencesId}" - let displayPreferencesIdPreEscape = "\(displayPreferencesId)" - let displayPreferencesIdPostEscape = displayPreferencesIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{displayPreferencesId}", with: displayPreferencesIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId, - "client": client - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/DlnaAPI.swift b/JellyfinPlayer/Swaggers/APIs/DlnaAPI.swift deleted file mode 100644 index b94a4a2c..00000000 --- a/JellyfinPlayer/Swaggers/APIs/DlnaAPI.swift +++ /dev/null @@ -1,571 +0,0 @@ -// -// DlnaAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class DlnaAPI { - /** - Creates a profile. - - - parameter body: (body) Device profile. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func createProfile(body: DlnaProfilesBody? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - createProfileWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Creates a profile. - - POST /Dlna/Profiles - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) Device profile. (optional) - - - returns: RequestBuilder - */ - open class func createProfileWithRequestBuilder(body: DlnaProfilesBody? = nil) -> RequestBuilder { - let path = "/Dlna/Profiles" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Deletes a profile. - - - parameter profileId: (path) Profile id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func deleteProfile(profileId: String, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - deleteProfileWithRequestBuilder(profileId: profileId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Deletes a profile. - - DELETE /Dlna/Profiles/{profileId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter profileId: (path) Profile id. - - - returns: RequestBuilder - */ - open class func deleteProfileWithRequestBuilder(profileId: String) -> RequestBuilder { - var path = "/Dlna/Profiles/{profileId}" - let profileIdPreEscape = "\(profileId)" - let profileIdPostEscape = profileIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{profileId}", with: profileIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets the default profile. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getDefaultProfile(completion: @escaping ((_ data: DeviceProfile?,_ error: Error?) -> Void)) { - getDefaultProfileWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets the default profile. - - GET /Dlna/Profiles/Default - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "ManufacturerUrl" : "ManufacturerUrl", - "EnableSingleAlbumArtLimit" : true, - "MusicStreamingTranscodingBitrate" : 7, - "AlbumArtPn" : "AlbumArtPn", - "TranscodingProfiles" : [ { - "Context" : "", - "BreakOnNonKeyFrames" : true, - "EnableSubtitlesInManifest" : true, - "CopyTimestamps" : true, - "MinSegments" : 2, - "EnableMpegtsM2TsMode" : true, - "MaxAudioChannels" : "MaxAudioChannels", - "VideoCodec" : "VideoCodec", - "Container" : "Container", - "Type" : "", - "EstimateContentLength" : true, - "SegmentLength" : 4, - "TranscodeSeekInfo" : "", - "Protocol" : "Protocol", - "AudioCodec" : "AudioCodec" - }, { - "Context" : "", - "BreakOnNonKeyFrames" : true, - "EnableSubtitlesInManifest" : true, - "CopyTimestamps" : true, - "MinSegments" : 2, - "EnableMpegtsM2TsMode" : true, - "MaxAudioChannels" : "MaxAudioChannels", - "VideoCodec" : "VideoCodec", - "Container" : "Container", - "Type" : "", - "EstimateContentLength" : true, - "SegmentLength" : 4, - "TranscodeSeekInfo" : "", - "Protocol" : "Protocol", - "AudioCodec" : "AudioCodec" - } ], - "Identification" : "", - "MaxStreamingBitrate" : 5, - "IgnoreTranscodeByteRangeRequests" : true, - "Name" : "Name", - "ResponseProfiles" : [ { - "Container" : "Container", - "Type" : "", - "OrgPn" : "OrgPn", - "VideoCodec" : "VideoCodec", - "AudioCodec" : "AudioCodec", - "MimeType" : "MimeType", - "Conditions" : [ null, null ] - }, { - "Container" : "Container", - "Type" : "", - "OrgPn" : "OrgPn", - "VideoCodec" : "VideoCodec", - "AudioCodec" : "AudioCodec", - "MimeType" : "MimeType", - "Conditions" : [ null, null ] - } ], - "ModelUrl" : "ModelUrl", - "MaxStaticBitrate" : 2, - "Manufacturer" : "Manufacturer", - "ProtocolInfo" : "ProtocolInfo", - "RequiresPlainVideoItems" : true, - "ModelDescription" : "ModelDescription", - "MaxAlbumArtWidth" : 0, - "ModelNumber" : "ModelNumber", - "XmlRootAttributes" : [ { - "Value" : "Value", - "Name" : "Name" - }, { - "Value" : "Value", - "Name" : "Name" - } ], - "ModelName" : "ModelName", - "FriendlyName" : "FriendlyName", - "MaxIconHeight" : 5, - "RequiresPlainFolders" : true, - "EnableSingleSubtitleLimit" : true, - "SubtitleProfiles" : [ { - "Container" : "Container", - "Format" : "Format", - "Language" : "Language", - "DidlMode" : "DidlMode", - "Method" : "" - }, { - "Container" : "Container", - "Format" : "Format", - "Language" : "Language", - "DidlMode" : "DidlMode", - "Method" : "" - } ], - "MaxAlbumArtHeight" : 6, - "EnableAlbumArtInDidl" : true, - "EnableMSMediaReceiverRegistrar" : true, - "SerialNumber" : "SerialNumber", - "SupportedMediaTypes" : "SupportedMediaTypes", - "CodecProfiles" : [ { - "Type" : "", - "Codec" : "Codec", - "Container" : "Container", - "ApplyConditions" : [ null, null ], - "Conditions" : [ null, null ] - }, { - "Type" : "", - "Codec" : "Codec", - "Container" : "Container", - "ApplyConditions" : [ null, null ], - "Conditions" : [ null, null ] - } ], - "SonyAggregationFlags" : "SonyAggregationFlags", - "UserId" : "UserId", - "MaxIconWidth" : 1, - "TimelineOffsetSeconds" : 3, - "MaxStaticMusicBitrate" : 9, - "DirectPlayProfiles" : [ { - "Container" : "Container", - "Type" : "", - "VideoCodec" : "VideoCodec", - "AudioCodec" : "AudioCodec" - }, { - "Container" : "Container", - "Type" : "", - "VideoCodec" : "VideoCodec", - "AudioCodec" : "AudioCodec" - } ], - "ContainerProfiles" : [ { - "Type" : "", - "Container" : "Container", - "Conditions" : [ { - "Condition" : "", - "IsRequired" : true, - "Value" : "Value", - "Property" : "" - }, { - "Condition" : "", - "IsRequired" : true, - "Value" : "Value", - "Property" : "" - } ] - }, { - "Type" : "", - "Container" : "Container", - "Conditions" : [ { - "Condition" : "", - "IsRequired" : true, - "Value" : "Value", - "Property" : "" - }, { - "Condition" : "", - "IsRequired" : true, - "Value" : "Value", - "Property" : "" - } ] - } ], - "Id" : "Id" -}}] - - - returns: RequestBuilder - */ - open class func getDefaultProfileWithRequestBuilder() -> RequestBuilder { - let path = "/Dlna/Profiles/Default" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a single profile. - - - parameter profileId: (path) Profile Id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getProfile(profileId: String, completion: @escaping ((_ data: DeviceProfile?,_ error: Error?) -> Void)) { - getProfileWithRequestBuilder(profileId: profileId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a single profile. - - GET /Dlna/Profiles/{profileId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "ManufacturerUrl" : "ManufacturerUrl", - "EnableSingleAlbumArtLimit" : true, - "MusicStreamingTranscodingBitrate" : 7, - "AlbumArtPn" : "AlbumArtPn", - "TranscodingProfiles" : [ { - "Context" : "", - "BreakOnNonKeyFrames" : true, - "EnableSubtitlesInManifest" : true, - "CopyTimestamps" : true, - "MinSegments" : 2, - "EnableMpegtsM2TsMode" : true, - "MaxAudioChannels" : "MaxAudioChannels", - "VideoCodec" : "VideoCodec", - "Container" : "Container", - "Type" : "", - "EstimateContentLength" : true, - "SegmentLength" : 4, - "TranscodeSeekInfo" : "", - "Protocol" : "Protocol", - "AudioCodec" : "AudioCodec" - }, { - "Context" : "", - "BreakOnNonKeyFrames" : true, - "EnableSubtitlesInManifest" : true, - "CopyTimestamps" : true, - "MinSegments" : 2, - "EnableMpegtsM2TsMode" : true, - "MaxAudioChannels" : "MaxAudioChannels", - "VideoCodec" : "VideoCodec", - "Container" : "Container", - "Type" : "", - "EstimateContentLength" : true, - "SegmentLength" : 4, - "TranscodeSeekInfo" : "", - "Protocol" : "Protocol", - "AudioCodec" : "AudioCodec" - } ], - "Identification" : "", - "MaxStreamingBitrate" : 5, - "IgnoreTranscodeByteRangeRequests" : true, - "Name" : "Name", - "ResponseProfiles" : [ { - "Container" : "Container", - "Type" : "", - "OrgPn" : "OrgPn", - "VideoCodec" : "VideoCodec", - "AudioCodec" : "AudioCodec", - "MimeType" : "MimeType", - "Conditions" : [ null, null ] - }, { - "Container" : "Container", - "Type" : "", - "OrgPn" : "OrgPn", - "VideoCodec" : "VideoCodec", - "AudioCodec" : "AudioCodec", - "MimeType" : "MimeType", - "Conditions" : [ null, null ] - } ], - "ModelUrl" : "ModelUrl", - "MaxStaticBitrate" : 2, - "Manufacturer" : "Manufacturer", - "ProtocolInfo" : "ProtocolInfo", - "RequiresPlainVideoItems" : true, - "ModelDescription" : "ModelDescription", - "MaxAlbumArtWidth" : 0, - "ModelNumber" : "ModelNumber", - "XmlRootAttributes" : [ { - "Value" : "Value", - "Name" : "Name" - }, { - "Value" : "Value", - "Name" : "Name" - } ], - "ModelName" : "ModelName", - "FriendlyName" : "FriendlyName", - "MaxIconHeight" : 5, - "RequiresPlainFolders" : true, - "EnableSingleSubtitleLimit" : true, - "SubtitleProfiles" : [ { - "Container" : "Container", - "Format" : "Format", - "Language" : "Language", - "DidlMode" : "DidlMode", - "Method" : "" - }, { - "Container" : "Container", - "Format" : "Format", - "Language" : "Language", - "DidlMode" : "DidlMode", - "Method" : "" - } ], - "MaxAlbumArtHeight" : 6, - "EnableAlbumArtInDidl" : true, - "EnableMSMediaReceiverRegistrar" : true, - "SerialNumber" : "SerialNumber", - "SupportedMediaTypes" : "SupportedMediaTypes", - "CodecProfiles" : [ { - "Type" : "", - "Codec" : "Codec", - "Container" : "Container", - "ApplyConditions" : [ null, null ], - "Conditions" : [ null, null ] - }, { - "Type" : "", - "Codec" : "Codec", - "Container" : "Container", - "ApplyConditions" : [ null, null ], - "Conditions" : [ null, null ] - } ], - "SonyAggregationFlags" : "SonyAggregationFlags", - "UserId" : "UserId", - "MaxIconWidth" : 1, - "TimelineOffsetSeconds" : 3, - "MaxStaticMusicBitrate" : 9, - "DirectPlayProfiles" : [ { - "Container" : "Container", - "Type" : "", - "VideoCodec" : "VideoCodec", - "AudioCodec" : "AudioCodec" - }, { - "Container" : "Container", - "Type" : "", - "VideoCodec" : "VideoCodec", - "AudioCodec" : "AudioCodec" - } ], - "ContainerProfiles" : [ { - "Type" : "", - "Container" : "Container", - "Conditions" : [ { - "Condition" : "", - "IsRequired" : true, - "Value" : "Value", - "Property" : "" - }, { - "Condition" : "", - "IsRequired" : true, - "Value" : "Value", - "Property" : "" - } ] - }, { - "Type" : "", - "Container" : "Container", - "Conditions" : [ { - "Condition" : "", - "IsRequired" : true, - "Value" : "Value", - "Property" : "" - }, { - "Condition" : "", - "IsRequired" : true, - "Value" : "Value", - "Property" : "" - } ] - } ], - "Id" : "Id" -}}] - - parameter profileId: (path) Profile Id. - - - returns: RequestBuilder - */ - open class func getProfileWithRequestBuilder(profileId: String) -> RequestBuilder { - var path = "/Dlna/Profiles/{profileId}" - let profileIdPreEscape = "\(profileId)" - let profileIdPostEscape = profileIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{profileId}", with: profileIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get profile infos. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getProfileInfos(completion: @escaping ((_ data: [DeviceProfileInfo]?,_ error: Error?) -> Void)) { - getProfileInfosWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get profile infos. - - GET /Dlna/ProfileInfos - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "Type" : "", - "Id" : "Id", - "Name" : "Name" -}, { - "Type" : "", - "Id" : "Id", - "Name" : "Name" -} ]}] - - - returns: RequestBuilder<[DeviceProfileInfo]> - */ - open class func getProfileInfosWithRequestBuilder() -> RequestBuilder<[DeviceProfileInfo]> { - let path = "/Dlna/ProfileInfos" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[DeviceProfileInfo]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Updates a profile. - - - parameter profileId: (path) Profile id. - - parameter body: (body) Device profile. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func updateProfile(profileId: String, body: ProfilesProfileIdBody? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - updateProfileWithRequestBuilder(profileId: profileId, body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Updates a profile. - - POST /Dlna/Profiles/{profileId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter profileId: (path) Profile id. - - parameter body: (body) Device profile. (optional) - - - returns: RequestBuilder - */ - open class func updateProfileWithRequestBuilder(profileId: String, body: ProfilesProfileIdBody? = nil) -> RequestBuilder { - var path = "/Dlna/Profiles/{profileId}" - let profileIdPreEscape = "\(profileId)" - let profileIdPostEscape = profileIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{profileId}", with: profileIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/DlnaServerAPI.swift b/JellyfinPlayer/Swaggers/APIs/DlnaServerAPI.swift deleted file mode 100644 index 9becc79c..00000000 --- a/JellyfinPlayer/Swaggers/APIs/DlnaServerAPI.swift +++ /dev/null @@ -1,610 +0,0 @@ -// -// DlnaServerAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class DlnaServerAPI { - /** - Gets Dlna media receiver registrar xml. - - - parameter serverId: (path) Server UUID. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getConnectionManager(serverId: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getConnectionManagerWithRequestBuilder(serverId: serverId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets Dlna media receiver registrar xml. - - GET /Dlna/{serverId}/ConnectionManager - - - - - examples: [{contentType=application/json, example=""}] - - parameter serverId: (path) Server UUID. - - - returns: RequestBuilder - */ - open class func getConnectionManagerWithRequestBuilder(serverId: String) -> RequestBuilder { - var path = "/Dlna/{serverId}/ConnectionManager" - let serverIdPreEscape = "\(serverId)" - let serverIdPostEscape = serverIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{serverId}", with: serverIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets Dlna media receiver registrar xml. - - - parameter serverId: (path) Server UUID. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getConnectionManager2(serverId: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getConnectionManager2WithRequestBuilder(serverId: serverId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets Dlna media receiver registrar xml. - - GET /Dlna/{serverId}/ConnectionManager/ConnectionManager - - - - - examples: [{contentType=application/json, example=""}] - - parameter serverId: (path) Server UUID. - - - returns: RequestBuilder - */ - open class func getConnectionManager2WithRequestBuilder(serverId: String) -> RequestBuilder { - var path = "/Dlna/{serverId}/ConnectionManager/ConnectionManager" - let serverIdPreEscape = "\(serverId)" - let serverIdPostEscape = serverIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{serverId}", with: serverIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets Dlna media receiver registrar xml. - - - parameter serverId: (path) Server UUID. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getConnectionManager3(serverId: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getConnectionManager3WithRequestBuilder(serverId: serverId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets Dlna media receiver registrar xml. - - GET /Dlna/{serverId}/ConnectionManager/ConnectionManager.xml - - - - - examples: [{contentType=application/json, example=""}] - - parameter serverId: (path) Server UUID. - - - returns: RequestBuilder - */ - open class func getConnectionManager3WithRequestBuilder(serverId: String) -> RequestBuilder { - var path = "/Dlna/{serverId}/ConnectionManager/ConnectionManager.xml" - let serverIdPreEscape = "\(serverId)" - let serverIdPostEscape = serverIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{serverId}", with: serverIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets Dlna content directory xml. - - - parameter serverId: (path) Server UUID. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getContentDirectory(serverId: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getContentDirectoryWithRequestBuilder(serverId: serverId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets Dlna content directory xml. - - GET /Dlna/{serverId}/ContentDirectory - - - - - examples: [{contentType=application/json, example=""}] - - parameter serverId: (path) Server UUID. - - - returns: RequestBuilder - */ - open class func getContentDirectoryWithRequestBuilder(serverId: String) -> RequestBuilder { - var path = "/Dlna/{serverId}/ContentDirectory" - let serverIdPreEscape = "\(serverId)" - let serverIdPostEscape = serverIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{serverId}", with: serverIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets Dlna content directory xml. - - - parameter serverId: (path) Server UUID. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getContentDirectory2(serverId: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getContentDirectory2WithRequestBuilder(serverId: serverId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets Dlna content directory xml. - - GET /Dlna/{serverId}/ContentDirectory/ContentDirectory - - - - - examples: [{contentType=application/json, example=""}] - - parameter serverId: (path) Server UUID. - - - returns: RequestBuilder - */ - open class func getContentDirectory2WithRequestBuilder(serverId: String) -> RequestBuilder { - var path = "/Dlna/{serverId}/ContentDirectory/ContentDirectory" - let serverIdPreEscape = "\(serverId)" - let serverIdPostEscape = serverIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{serverId}", with: serverIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets Dlna content directory xml. - - - parameter serverId: (path) Server UUID. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getContentDirectory3(serverId: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getContentDirectory3WithRequestBuilder(serverId: serverId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets Dlna content directory xml. - - GET /Dlna/{serverId}/ContentDirectory/ContentDirectory.xml - - - - - examples: [{contentType=application/json, example=""}] - - parameter serverId: (path) Server UUID. - - - returns: RequestBuilder - */ - open class func getContentDirectory3WithRequestBuilder(serverId: String) -> RequestBuilder { - var path = "/Dlna/{serverId}/ContentDirectory/ContentDirectory.xml" - let serverIdPreEscape = "\(serverId)" - let serverIdPostEscape = serverIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{serverId}", with: serverIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get Description Xml. - - - parameter serverId: (path) Server UUID. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getDescriptionXml(serverId: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getDescriptionXmlWithRequestBuilder(serverId: serverId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get Description Xml. - - GET /Dlna/{serverId}/description - - - - - examples: [{contentType=application/json, example=""}] - - parameter serverId: (path) Server UUID. - - - returns: RequestBuilder - */ - open class func getDescriptionXmlWithRequestBuilder(serverId: String) -> RequestBuilder { - var path = "/Dlna/{serverId}/description" - let serverIdPreEscape = "\(serverId)" - let serverIdPostEscape = serverIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{serverId}", with: serverIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get Description Xml. - - - parameter serverId: (path) Server UUID. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getDescriptionXml2(serverId: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getDescriptionXml2WithRequestBuilder(serverId: serverId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get Description Xml. - - GET /Dlna/{serverId}/description.xml - - - - - examples: [{contentType=application/json, example=""}] - - parameter serverId: (path) Server UUID. - - - returns: RequestBuilder - */ - open class func getDescriptionXml2WithRequestBuilder(serverId: String) -> RequestBuilder { - var path = "/Dlna/{serverId}/description.xml" - let serverIdPreEscape = "\(serverId)" - let serverIdPostEscape = serverIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{serverId}", with: serverIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a server icon. - - - parameter fileName: (path) The icon filename. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getIcon(fileName: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getIconWithRequestBuilder(fileName: fileName).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a server icon. - - GET /Dlna/icons/{fileName} - - - - - examples: [{contentType=application/json, example=""}] - - parameter fileName: (path) The icon filename. - - - returns: RequestBuilder - */ - open class func getIconWithRequestBuilder(fileName: String) -> RequestBuilder { - var path = "/Dlna/icons/{fileName}" - let fileNamePreEscape = "\(fileName)" - let fileNamePostEscape = fileNamePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{fileName}", with: fileNamePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a server icon. - - - parameter serverId: (path) Server UUID. - - parameter fileName: (path) The icon filename. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getIconId(serverId: String, fileName: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getIconIdWithRequestBuilder(serverId: serverId, fileName: fileName).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a server icon. - - GET /Dlna/{serverId}/icons/{fileName} - - - - - examples: [{contentType=application/json, example=""}] - - parameter serverId: (path) Server UUID. - - parameter fileName: (path) The icon filename. - - - returns: RequestBuilder - */ - open class func getIconIdWithRequestBuilder(serverId: String, fileName: String) -> RequestBuilder { - var path = "/Dlna/{serverId}/icons/{fileName}" - let serverIdPreEscape = "\(serverId)" - let serverIdPostEscape = serverIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{serverId}", with: serverIdPostEscape, options: .literal, range: nil) - let fileNamePreEscape = "\(fileName)" - let fileNamePostEscape = fileNamePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{fileName}", with: fileNamePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets Dlna media receiver registrar xml. - - - parameter serverId: (path) Server UUID. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getMediaReceiverRegistrar(serverId: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getMediaReceiverRegistrarWithRequestBuilder(serverId: serverId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets Dlna media receiver registrar xml. - - GET /Dlna/{serverId}/MediaReceiverRegistrar - - - - - examples: [{contentType=application/json, example=""}] - - parameter serverId: (path) Server UUID. - - - returns: RequestBuilder - */ - open class func getMediaReceiverRegistrarWithRequestBuilder(serverId: String) -> RequestBuilder { - var path = "/Dlna/{serverId}/MediaReceiverRegistrar" - let serverIdPreEscape = "\(serverId)" - let serverIdPostEscape = serverIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{serverId}", with: serverIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets Dlna media receiver registrar xml. - - - parameter serverId: (path) Server UUID. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getMediaReceiverRegistrar2(serverId: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getMediaReceiverRegistrar2WithRequestBuilder(serverId: serverId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets Dlna media receiver registrar xml. - - GET /Dlna/{serverId}/MediaReceiverRegistrar/MediaReceiverRegistrar - - - - - examples: [{contentType=application/json, example=""}] - - parameter serverId: (path) Server UUID. - - - returns: RequestBuilder - */ - open class func getMediaReceiverRegistrar2WithRequestBuilder(serverId: String) -> RequestBuilder { - var path = "/Dlna/{serverId}/MediaReceiverRegistrar/MediaReceiverRegistrar" - let serverIdPreEscape = "\(serverId)" - let serverIdPostEscape = serverIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{serverId}", with: serverIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets Dlna media receiver registrar xml. - - - parameter serverId: (path) Server UUID. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getMediaReceiverRegistrar3(serverId: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getMediaReceiverRegistrar3WithRequestBuilder(serverId: serverId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets Dlna media receiver registrar xml. - - GET /Dlna/{serverId}/MediaReceiverRegistrar/MediaReceiverRegistrar.xml - - - - - examples: [{contentType=application/json, example=""}] - - parameter serverId: (path) Server UUID. - - - returns: RequestBuilder - */ - open class func getMediaReceiverRegistrar3WithRequestBuilder(serverId: String) -> RequestBuilder { - var path = "/Dlna/{serverId}/MediaReceiverRegistrar/MediaReceiverRegistrar.xml" - let serverIdPreEscape = "\(serverId)" - let serverIdPostEscape = serverIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{serverId}", with: serverIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Process a connection manager control request. - - - parameter serverId: (path) Server UUID. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func processConnectionManagerControlRequest(serverId: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - processConnectionManagerControlRequestWithRequestBuilder(serverId: serverId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Process a connection manager control request. - - POST /Dlna/{serverId}/ConnectionManager/Control - - - - - examples: [{contentType=application/json, example=""}] - - parameter serverId: (path) Server UUID. - - - returns: RequestBuilder - */ - open class func processConnectionManagerControlRequestWithRequestBuilder(serverId: String) -> RequestBuilder { - var path = "/Dlna/{serverId}/ConnectionManager/Control" - let serverIdPreEscape = "\(serverId)" - let serverIdPostEscape = serverIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{serverId}", with: serverIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Process a content directory control request. - - - parameter serverId: (path) Server UUID. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func processContentDirectoryControlRequest(serverId: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - processContentDirectoryControlRequestWithRequestBuilder(serverId: serverId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Process a content directory control request. - - POST /Dlna/{serverId}/ContentDirectory/Control - - - - - examples: [{contentType=application/json, example=""}] - - parameter serverId: (path) Server UUID. - - - returns: RequestBuilder - */ - open class func processContentDirectoryControlRequestWithRequestBuilder(serverId: String) -> RequestBuilder { - var path = "/Dlna/{serverId}/ContentDirectory/Control" - let serverIdPreEscape = "\(serverId)" - let serverIdPostEscape = serverIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{serverId}", with: serverIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Process a media receiver registrar control request. - - - parameter serverId: (path) Server UUID. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func processMediaReceiverRegistrarControlRequest(serverId: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - processMediaReceiverRegistrarControlRequestWithRequestBuilder(serverId: serverId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Process a media receiver registrar control request. - - POST /Dlna/{serverId}/MediaReceiverRegistrar/Control - - - - - examples: [{contentType=application/json, example=""}] - - parameter serverId: (path) Server UUID. - - - returns: RequestBuilder - */ - open class func processMediaReceiverRegistrarControlRequestWithRequestBuilder(serverId: String) -> RequestBuilder { - var path = "/Dlna/{serverId}/MediaReceiverRegistrar/Control" - let serverIdPreEscape = "\(serverId)" - let serverIdPostEscape = serverIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{serverId}", with: serverIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/DynamicHlsAPI.swift b/JellyfinPlayer/Swaggers/APIs/DynamicHlsAPI.swift deleted file mode 100644 index 9b93ca71..00000000 --- a/JellyfinPlayer/Swaggers/APIs/DynamicHlsAPI.swift +++ /dev/null @@ -1,1531 +0,0 @@ -// -// DynamicHlsAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class DynamicHlsAPI { - /** - Gets a video stream using HTTP live streaming. - - - parameter itemId: (path) The item id. - - parameter playlistId: (path) The playlist id. - - parameter segmentId: (path) The segment id. - - parameter container: (path) The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv. - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment length. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter maxStreamingBitrate: (query) Optional. The maximum streaming bitrate. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamorphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getHlsAudioSegment(itemId: UUID, playlistId: String, segmentId: Int, container: String, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, mediaSourceId: String? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, maxStreamingBitrate: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod4? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context4? = nil, streamOptions: [String:String]? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getHlsAudioSegmentWithRequestBuilder(itemId: itemId, playlistId: playlistId, segmentId: segmentId, container: container, _static: _static, params: params, tag: tag, deviceProfileId: deviceProfileId, playSessionId: playSessionId, segmentContainer: segmentContainer, segmentLength: segmentLength, minSegments: minSegments, mediaSourceId: mediaSourceId, deviceId: deviceId, audioCodec: audioCodec, enableAutoStreamCopy: enableAutoStreamCopy, allowVideoStreamCopy: allowVideoStreamCopy, allowAudioStreamCopy: allowAudioStreamCopy, breakOnNonKeyFrames: breakOnNonKeyFrames, audioSampleRate: audioSampleRate, maxAudioBitDepth: maxAudioBitDepth, maxStreamingBitrate: maxStreamingBitrate, audioBitRate: audioBitRate, audioChannels: audioChannels, maxAudioChannels: maxAudioChannels, profile: profile, level: level, framerate: framerate, maxFramerate: maxFramerate, copyTimestamps: copyTimestamps, startTimeTicks: startTimeTicks, width: width, height: height, videoBitRate: videoBitRate, subtitleStreamIndex: subtitleStreamIndex, subtitleMethod: subtitleMethod, maxRefFrames: maxRefFrames, maxVideoBitDepth: maxVideoBitDepth, requireAvc: requireAvc, deInterlace: deInterlace, requireNonAnamorphic: requireNonAnamorphic, transcodingMaxAudioChannels: transcodingMaxAudioChannels, cpuCoreLimit: cpuCoreLimit, liveStreamId: liveStreamId, enableMpegtsM2TsMode: enableMpegtsM2TsMode, videoCodec: videoCodec, subtitleCodec: subtitleCodec, transcodeReasons: transcodeReasons, audioStreamIndex: audioStreamIndex, videoStreamIndex: videoStreamIndex, context: context, streamOptions: streamOptions).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a video stream using HTTP live streaming. - - GET /Audio/{itemId}/hls1/{playlistId}/{segmentId}.{container} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) The item id. - - parameter playlistId: (path) The playlist id. - - parameter segmentId: (path) The segment id. - - parameter container: (path) The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv. - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment length. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter maxStreamingBitrate: (query) Optional. The maximum streaming bitrate. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamorphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - - returns: RequestBuilder - */ - open class func getHlsAudioSegmentWithRequestBuilder(itemId: UUID, playlistId: String, segmentId: Int, container: String, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, mediaSourceId: String? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, maxStreamingBitrate: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod4? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context4? = nil, streamOptions: [String:String]? = nil) -> RequestBuilder { - var path = "/Audio/{itemId}/hls1/{playlistId}/{segmentId}.{container}" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let playlistIdPreEscape = "\(playlistId)" - let playlistIdPostEscape = playlistIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{playlistId}", with: playlistIdPostEscape, options: .literal, range: nil) - let segmentIdPreEscape = "\(segmentId)" - let segmentIdPostEscape = segmentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{segmentId}", with: segmentIdPostEscape, options: .literal, range: nil) - let containerPreEscape = "\(container)" - let containerPostEscape = containerPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{container}", with: containerPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "static": _static, - "params": params, - "tag": tag, - "deviceProfileId": deviceProfileId, - "playSessionId": playSessionId, - "segmentContainer": segmentContainer, - "segmentLength": segmentLength?.encodeToJSON(), - "minSegments": minSegments?.encodeToJSON(), - "mediaSourceId": mediaSourceId, - "deviceId": deviceId, - "audioCodec": audioCodec, - "enableAutoStreamCopy": enableAutoStreamCopy, - "allowVideoStreamCopy": allowVideoStreamCopy, - "allowAudioStreamCopy": allowAudioStreamCopy, - "breakOnNonKeyFrames": breakOnNonKeyFrames, - "audioSampleRate": audioSampleRate?.encodeToJSON(), - "maxAudioBitDepth": maxAudioBitDepth?.encodeToJSON(), - "maxStreamingBitrate": maxStreamingBitrate?.encodeToJSON(), - "audioBitRate": audioBitRate?.encodeToJSON(), - "audioChannels": audioChannels?.encodeToJSON(), - "maxAudioChannels": maxAudioChannels?.encodeToJSON(), - "profile": profile, - "level": level, - "framerate": framerate, - "maxFramerate": maxFramerate, - "copyTimestamps": copyTimestamps, - "startTimeTicks": startTimeTicks?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "videoBitRate": videoBitRate?.encodeToJSON(), - "subtitleStreamIndex": subtitleStreamIndex?.encodeToJSON(), - "subtitleMethod": subtitleMethod, - "maxRefFrames": maxRefFrames?.encodeToJSON(), - "maxVideoBitDepth": maxVideoBitDepth?.encodeToJSON(), - "requireAvc": requireAvc, - "deInterlace": deInterlace, - "requireNonAnamorphic": requireNonAnamorphic, - "transcodingMaxAudioChannels": transcodingMaxAudioChannels?.encodeToJSON(), - "cpuCoreLimit": cpuCoreLimit?.encodeToJSON(), - "liveStreamId": liveStreamId, - "enableMpegtsM2TsMode": enableMpegtsM2TsMode, - "videoCodec": videoCodec, - "subtitleCodec": subtitleCodec, - "transcodeReasons": transcodeReasons, - "audioStreamIndex": audioStreamIndex?.encodeToJSON(), - "videoStreamIndex": videoStreamIndex?.encodeToJSON(), - "context": context, - "streamOptions": streamOptions - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a video stream using HTTP live streaming. - - - parameter itemId: (path) The item id. - - parameter playlistId: (path) The playlist id. - - parameter segmentId: (path) The segment id. - - parameter container: (path) The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv. - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment lenght. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamorphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getHlsVideoSegment(itemId: UUID, playlistId: String, segmentId: Int, container: String, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, mediaSourceId: String? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod8? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context8? = nil, streamOptions: [String:String]? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getHlsVideoSegmentWithRequestBuilder(itemId: itemId, playlistId: playlistId, segmentId: segmentId, container: container, _static: _static, params: params, tag: tag, deviceProfileId: deviceProfileId, playSessionId: playSessionId, segmentContainer: segmentContainer, segmentLength: segmentLength, minSegments: minSegments, mediaSourceId: mediaSourceId, deviceId: deviceId, audioCodec: audioCodec, enableAutoStreamCopy: enableAutoStreamCopy, allowVideoStreamCopy: allowVideoStreamCopy, allowAudioStreamCopy: allowAudioStreamCopy, breakOnNonKeyFrames: breakOnNonKeyFrames, audioSampleRate: audioSampleRate, maxAudioBitDepth: maxAudioBitDepth, audioBitRate: audioBitRate, audioChannels: audioChannels, maxAudioChannels: maxAudioChannels, profile: profile, level: level, framerate: framerate, maxFramerate: maxFramerate, copyTimestamps: copyTimestamps, startTimeTicks: startTimeTicks, width: width, height: height, videoBitRate: videoBitRate, subtitleStreamIndex: subtitleStreamIndex, subtitleMethod: subtitleMethod, maxRefFrames: maxRefFrames, maxVideoBitDepth: maxVideoBitDepth, requireAvc: requireAvc, deInterlace: deInterlace, requireNonAnamorphic: requireNonAnamorphic, transcodingMaxAudioChannels: transcodingMaxAudioChannels, cpuCoreLimit: cpuCoreLimit, liveStreamId: liveStreamId, enableMpegtsM2TsMode: enableMpegtsM2TsMode, videoCodec: videoCodec, subtitleCodec: subtitleCodec, transcodeReasons: transcodeReasons, audioStreamIndex: audioStreamIndex, videoStreamIndex: videoStreamIndex, context: context, streamOptions: streamOptions).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a video stream using HTTP live streaming. - - GET /Videos/{itemId}/hls1/{playlistId}/{segmentId}.{container} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) The item id. - - parameter playlistId: (path) The playlist id. - - parameter segmentId: (path) The segment id. - - parameter container: (path) The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv. - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment lenght. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamorphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - - returns: RequestBuilder - */ - open class func getHlsVideoSegmentWithRequestBuilder(itemId: UUID, playlistId: String, segmentId: Int, container: String, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, mediaSourceId: String? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod8? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context8? = nil, streamOptions: [String:String]? = nil) -> RequestBuilder { - var path = "/Videos/{itemId}/hls1/{playlistId}/{segmentId}.{container}" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let playlistIdPreEscape = "\(playlistId)" - let playlistIdPostEscape = playlistIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{playlistId}", with: playlistIdPostEscape, options: .literal, range: nil) - let segmentIdPreEscape = "\(segmentId)" - let segmentIdPostEscape = segmentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{segmentId}", with: segmentIdPostEscape, options: .literal, range: nil) - let containerPreEscape = "\(container)" - let containerPostEscape = containerPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{container}", with: containerPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "static": _static, - "params": params, - "tag": tag, - "deviceProfileId": deviceProfileId, - "playSessionId": playSessionId, - "segmentContainer": segmentContainer, - "segmentLength": segmentLength?.encodeToJSON(), - "minSegments": minSegments?.encodeToJSON(), - "mediaSourceId": mediaSourceId, - "deviceId": deviceId, - "audioCodec": audioCodec, - "enableAutoStreamCopy": enableAutoStreamCopy, - "allowVideoStreamCopy": allowVideoStreamCopy, - "allowAudioStreamCopy": allowAudioStreamCopy, - "breakOnNonKeyFrames": breakOnNonKeyFrames, - "audioSampleRate": audioSampleRate?.encodeToJSON(), - "maxAudioBitDepth": maxAudioBitDepth?.encodeToJSON(), - "audioBitRate": audioBitRate?.encodeToJSON(), - "audioChannels": audioChannels?.encodeToJSON(), - "maxAudioChannels": maxAudioChannels?.encodeToJSON(), - "profile": profile, - "level": level, - "framerate": framerate, - "maxFramerate": maxFramerate, - "copyTimestamps": copyTimestamps, - "startTimeTicks": startTimeTicks?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "videoBitRate": videoBitRate?.encodeToJSON(), - "subtitleStreamIndex": subtitleStreamIndex?.encodeToJSON(), - "subtitleMethod": subtitleMethod, - "maxRefFrames": maxRefFrames?.encodeToJSON(), - "maxVideoBitDepth": maxVideoBitDepth?.encodeToJSON(), - "requireAvc": requireAvc, - "deInterlace": deInterlace, - "requireNonAnamorphic": requireNonAnamorphic, - "transcodingMaxAudioChannels": transcodingMaxAudioChannels?.encodeToJSON(), - "cpuCoreLimit": cpuCoreLimit?.encodeToJSON(), - "liveStreamId": liveStreamId, - "enableMpegtsM2TsMode": enableMpegtsM2TsMode, - "videoCodec": videoCodec, - "subtitleCodec": subtitleCodec, - "transcodeReasons": transcodeReasons, - "audioStreamIndex": audioStreamIndex?.encodeToJSON(), - "videoStreamIndex": videoStreamIndex?.encodeToJSON(), - "context": context, - "streamOptions": streamOptions - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets an audio hls playlist stream. - - - parameter itemId: (path) The item id. - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment length. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter maxStreamingBitrate: (query) Optional. The maximum streaming bitrate. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamorphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - parameter enableAdaptiveBitrateStreaming: (query) Enable adaptive bitrate streaming. (optional, default to true) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getMasterHlsAudioPlaylist(itemId: UUID, mediaSourceId: String, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, maxStreamingBitrate: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod6? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context6? = nil, streamOptions: [String:String]? = nil, enableAdaptiveBitrateStreaming: Bool? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getMasterHlsAudioPlaylistWithRequestBuilder(itemId: itemId, mediaSourceId: mediaSourceId, _static: _static, params: params, tag: tag, deviceProfileId: deviceProfileId, playSessionId: playSessionId, segmentContainer: segmentContainer, segmentLength: segmentLength, minSegments: minSegments, deviceId: deviceId, audioCodec: audioCodec, enableAutoStreamCopy: enableAutoStreamCopy, allowVideoStreamCopy: allowVideoStreamCopy, allowAudioStreamCopy: allowAudioStreamCopy, breakOnNonKeyFrames: breakOnNonKeyFrames, audioSampleRate: audioSampleRate, maxAudioBitDepth: maxAudioBitDepth, maxStreamingBitrate: maxStreamingBitrate, audioBitRate: audioBitRate, audioChannels: audioChannels, maxAudioChannels: maxAudioChannels, profile: profile, level: level, framerate: framerate, maxFramerate: maxFramerate, copyTimestamps: copyTimestamps, startTimeTicks: startTimeTicks, width: width, height: height, videoBitRate: videoBitRate, subtitleStreamIndex: subtitleStreamIndex, subtitleMethod: subtitleMethod, maxRefFrames: maxRefFrames, maxVideoBitDepth: maxVideoBitDepth, requireAvc: requireAvc, deInterlace: deInterlace, requireNonAnamorphic: requireNonAnamorphic, transcodingMaxAudioChannels: transcodingMaxAudioChannels, cpuCoreLimit: cpuCoreLimit, liveStreamId: liveStreamId, enableMpegtsM2TsMode: enableMpegtsM2TsMode, videoCodec: videoCodec, subtitleCodec: subtitleCodec, transcodeReasons: transcodeReasons, audioStreamIndex: audioStreamIndex, videoStreamIndex: videoStreamIndex, context: context, streamOptions: streamOptions, enableAdaptiveBitrateStreaming: enableAdaptiveBitrateStreaming).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets an audio hls playlist stream. - - GET /Audio/{itemId}/master.m3u8 - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) The item id. - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment length. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter maxStreamingBitrate: (query) Optional. The maximum streaming bitrate. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamorphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - parameter enableAdaptiveBitrateStreaming: (query) Enable adaptive bitrate streaming. (optional, default to true) - - - returns: RequestBuilder - */ - open class func getMasterHlsAudioPlaylistWithRequestBuilder(itemId: UUID, mediaSourceId: String, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, maxStreamingBitrate: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod6? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context6? = nil, streamOptions: [String:String]? = nil, enableAdaptiveBitrateStreaming: Bool? = nil) -> RequestBuilder { - var path = "/Audio/{itemId}/master.m3u8" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "static": _static, - "params": params, - "tag": tag, - "deviceProfileId": deviceProfileId, - "playSessionId": playSessionId, - "segmentContainer": segmentContainer, - "segmentLength": segmentLength?.encodeToJSON(), - "minSegments": minSegments?.encodeToJSON(), - "mediaSourceId": mediaSourceId, - "deviceId": deviceId, - "audioCodec": audioCodec, - "enableAutoStreamCopy": enableAutoStreamCopy, - "allowVideoStreamCopy": allowVideoStreamCopy, - "allowAudioStreamCopy": allowAudioStreamCopy, - "breakOnNonKeyFrames": breakOnNonKeyFrames, - "audioSampleRate": audioSampleRate?.encodeToJSON(), - "maxAudioBitDepth": maxAudioBitDepth?.encodeToJSON(), - "maxStreamingBitrate": maxStreamingBitrate?.encodeToJSON(), - "audioBitRate": audioBitRate?.encodeToJSON(), - "audioChannels": audioChannels?.encodeToJSON(), - "maxAudioChannels": maxAudioChannels?.encodeToJSON(), - "profile": profile, - "level": level, - "framerate": framerate, - "maxFramerate": maxFramerate, - "copyTimestamps": copyTimestamps, - "startTimeTicks": startTimeTicks?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "videoBitRate": videoBitRate?.encodeToJSON(), - "subtitleStreamIndex": subtitleStreamIndex?.encodeToJSON(), - "subtitleMethod": subtitleMethod, - "maxRefFrames": maxRefFrames?.encodeToJSON(), - "maxVideoBitDepth": maxVideoBitDepth?.encodeToJSON(), - "requireAvc": requireAvc, - "deInterlace": deInterlace, - "requireNonAnamorphic": requireNonAnamorphic, - "transcodingMaxAudioChannels": transcodingMaxAudioChannels?.encodeToJSON(), - "cpuCoreLimit": cpuCoreLimit?.encodeToJSON(), - "liveStreamId": liveStreamId, - "enableMpegtsM2TsMode": enableMpegtsM2TsMode, - "videoCodec": videoCodec, - "subtitleCodec": subtitleCodec, - "transcodeReasons": transcodeReasons, - "audioStreamIndex": audioStreamIndex?.encodeToJSON(), - "videoStreamIndex": videoStreamIndex?.encodeToJSON(), - "context": context, - "streamOptions": streamOptions, - "enableAdaptiveBitrateStreaming": enableAdaptiveBitrateStreaming - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a video hls playlist stream. - - - parameter itemId: (path) The item id. - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment length. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamorphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - parameter enableAdaptiveBitrateStreaming: (query) Enable adaptive bitrate streaming. (optional, default to true) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getMasterHlsVideoPlaylist(itemId: UUID, mediaSourceId: String, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod10? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context10? = nil, streamOptions: [String:String]? = nil, enableAdaptiveBitrateStreaming: Bool? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getMasterHlsVideoPlaylistWithRequestBuilder(itemId: itemId, mediaSourceId: mediaSourceId, _static: _static, params: params, tag: tag, deviceProfileId: deviceProfileId, playSessionId: playSessionId, segmentContainer: segmentContainer, segmentLength: segmentLength, minSegments: minSegments, deviceId: deviceId, audioCodec: audioCodec, enableAutoStreamCopy: enableAutoStreamCopy, allowVideoStreamCopy: allowVideoStreamCopy, allowAudioStreamCopy: allowAudioStreamCopy, breakOnNonKeyFrames: breakOnNonKeyFrames, audioSampleRate: audioSampleRate, maxAudioBitDepth: maxAudioBitDepth, audioBitRate: audioBitRate, audioChannels: audioChannels, maxAudioChannels: maxAudioChannels, profile: profile, level: level, framerate: framerate, maxFramerate: maxFramerate, copyTimestamps: copyTimestamps, startTimeTicks: startTimeTicks, width: width, height: height, videoBitRate: videoBitRate, subtitleStreamIndex: subtitleStreamIndex, subtitleMethod: subtitleMethod, maxRefFrames: maxRefFrames, maxVideoBitDepth: maxVideoBitDepth, requireAvc: requireAvc, deInterlace: deInterlace, requireNonAnamorphic: requireNonAnamorphic, transcodingMaxAudioChannels: transcodingMaxAudioChannels, cpuCoreLimit: cpuCoreLimit, liveStreamId: liveStreamId, enableMpegtsM2TsMode: enableMpegtsM2TsMode, videoCodec: videoCodec, subtitleCodec: subtitleCodec, transcodeReasons: transcodeReasons, audioStreamIndex: audioStreamIndex, videoStreamIndex: videoStreamIndex, context: context, streamOptions: streamOptions, enableAdaptiveBitrateStreaming: enableAdaptiveBitrateStreaming).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a video hls playlist stream. - - GET /Videos/{itemId}/master.m3u8 - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) The item id. - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment length. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamorphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - parameter enableAdaptiveBitrateStreaming: (query) Enable adaptive bitrate streaming. (optional, default to true) - - - returns: RequestBuilder - */ - open class func getMasterHlsVideoPlaylistWithRequestBuilder(itemId: UUID, mediaSourceId: String, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod10? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context10? = nil, streamOptions: [String:String]? = nil, enableAdaptiveBitrateStreaming: Bool? = nil) -> RequestBuilder { - var path = "/Videos/{itemId}/master.m3u8" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "static": _static, - "params": params, - "tag": tag, - "deviceProfileId": deviceProfileId, - "playSessionId": playSessionId, - "segmentContainer": segmentContainer, - "segmentLength": segmentLength?.encodeToJSON(), - "minSegments": minSegments?.encodeToJSON(), - "mediaSourceId": mediaSourceId, - "deviceId": deviceId, - "audioCodec": audioCodec, - "enableAutoStreamCopy": enableAutoStreamCopy, - "allowVideoStreamCopy": allowVideoStreamCopy, - "allowAudioStreamCopy": allowAudioStreamCopy, - "breakOnNonKeyFrames": breakOnNonKeyFrames, - "audioSampleRate": audioSampleRate?.encodeToJSON(), - "maxAudioBitDepth": maxAudioBitDepth?.encodeToJSON(), - "audioBitRate": audioBitRate?.encodeToJSON(), - "audioChannels": audioChannels?.encodeToJSON(), - "maxAudioChannels": maxAudioChannels?.encodeToJSON(), - "profile": profile, - "level": level, - "framerate": framerate, - "maxFramerate": maxFramerate, - "copyTimestamps": copyTimestamps, - "startTimeTicks": startTimeTicks?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "videoBitRate": videoBitRate?.encodeToJSON(), - "subtitleStreamIndex": subtitleStreamIndex?.encodeToJSON(), - "subtitleMethod": subtitleMethod, - "maxRefFrames": maxRefFrames?.encodeToJSON(), - "maxVideoBitDepth": maxVideoBitDepth?.encodeToJSON(), - "requireAvc": requireAvc, - "deInterlace": deInterlace, - "requireNonAnamorphic": requireNonAnamorphic, - "transcodingMaxAudioChannels": transcodingMaxAudioChannels?.encodeToJSON(), - "cpuCoreLimit": cpuCoreLimit?.encodeToJSON(), - "liveStreamId": liveStreamId, - "enableMpegtsM2TsMode": enableMpegtsM2TsMode, - "videoCodec": videoCodec, - "subtitleCodec": subtitleCodec, - "transcodeReasons": transcodeReasons, - "audioStreamIndex": audioStreamIndex?.encodeToJSON(), - "videoStreamIndex": videoStreamIndex?.encodeToJSON(), - "context": context, - "streamOptions": streamOptions, - "enableAdaptiveBitrateStreaming": enableAdaptiveBitrateStreaming - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets an audio stream using HTTP live streaming. - - - parameter itemId: (path) The item id. - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment length. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter maxStreamingBitrate: (query) Optional. The maximum streaming bitrate. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamorphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getVariantHlsAudioPlaylist(itemId: UUID, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, mediaSourceId: String? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, maxStreamingBitrate: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod5? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context5? = nil, streamOptions: [String:String]? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getVariantHlsAudioPlaylistWithRequestBuilder(itemId: itemId, _static: _static, params: params, tag: tag, deviceProfileId: deviceProfileId, playSessionId: playSessionId, segmentContainer: segmentContainer, segmentLength: segmentLength, minSegments: minSegments, mediaSourceId: mediaSourceId, deviceId: deviceId, audioCodec: audioCodec, enableAutoStreamCopy: enableAutoStreamCopy, allowVideoStreamCopy: allowVideoStreamCopy, allowAudioStreamCopy: allowAudioStreamCopy, breakOnNonKeyFrames: breakOnNonKeyFrames, audioSampleRate: audioSampleRate, maxAudioBitDepth: maxAudioBitDepth, maxStreamingBitrate: maxStreamingBitrate, audioBitRate: audioBitRate, audioChannels: audioChannels, maxAudioChannels: maxAudioChannels, profile: profile, level: level, framerate: framerate, maxFramerate: maxFramerate, copyTimestamps: copyTimestamps, startTimeTicks: startTimeTicks, width: width, height: height, videoBitRate: videoBitRate, subtitleStreamIndex: subtitleStreamIndex, subtitleMethod: subtitleMethod, maxRefFrames: maxRefFrames, maxVideoBitDepth: maxVideoBitDepth, requireAvc: requireAvc, deInterlace: deInterlace, requireNonAnamorphic: requireNonAnamorphic, transcodingMaxAudioChannels: transcodingMaxAudioChannels, cpuCoreLimit: cpuCoreLimit, liveStreamId: liveStreamId, enableMpegtsM2TsMode: enableMpegtsM2TsMode, videoCodec: videoCodec, subtitleCodec: subtitleCodec, transcodeReasons: transcodeReasons, audioStreamIndex: audioStreamIndex, videoStreamIndex: videoStreamIndex, context: context, streamOptions: streamOptions).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets an audio stream using HTTP live streaming. - - GET /Audio/{itemId}/main.m3u8 - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) The item id. - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment length. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter maxStreamingBitrate: (query) Optional. The maximum streaming bitrate. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamorphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - - returns: RequestBuilder - */ - open class func getVariantHlsAudioPlaylistWithRequestBuilder(itemId: UUID, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, mediaSourceId: String? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, maxStreamingBitrate: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod5? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context5? = nil, streamOptions: [String:String]? = nil) -> RequestBuilder { - var path = "/Audio/{itemId}/main.m3u8" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "static": _static, - "params": params, - "tag": tag, - "deviceProfileId": deviceProfileId, - "playSessionId": playSessionId, - "segmentContainer": segmentContainer, - "segmentLength": segmentLength?.encodeToJSON(), - "minSegments": minSegments?.encodeToJSON(), - "mediaSourceId": mediaSourceId, - "deviceId": deviceId, - "audioCodec": audioCodec, - "enableAutoStreamCopy": enableAutoStreamCopy, - "allowVideoStreamCopy": allowVideoStreamCopy, - "allowAudioStreamCopy": allowAudioStreamCopy, - "breakOnNonKeyFrames": breakOnNonKeyFrames, - "audioSampleRate": audioSampleRate?.encodeToJSON(), - "maxAudioBitDepth": maxAudioBitDepth?.encodeToJSON(), - "maxStreamingBitrate": maxStreamingBitrate?.encodeToJSON(), - "audioBitRate": audioBitRate?.encodeToJSON(), - "audioChannels": audioChannels?.encodeToJSON(), - "maxAudioChannels": maxAudioChannels?.encodeToJSON(), - "profile": profile, - "level": level, - "framerate": framerate, - "maxFramerate": maxFramerate, - "copyTimestamps": copyTimestamps, - "startTimeTicks": startTimeTicks?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "videoBitRate": videoBitRate?.encodeToJSON(), - "subtitleStreamIndex": subtitleStreamIndex?.encodeToJSON(), - "subtitleMethod": subtitleMethod, - "maxRefFrames": maxRefFrames?.encodeToJSON(), - "maxVideoBitDepth": maxVideoBitDepth?.encodeToJSON(), - "requireAvc": requireAvc, - "deInterlace": deInterlace, - "requireNonAnamorphic": requireNonAnamorphic, - "transcodingMaxAudioChannels": transcodingMaxAudioChannels?.encodeToJSON(), - "cpuCoreLimit": cpuCoreLimit?.encodeToJSON(), - "liveStreamId": liveStreamId, - "enableMpegtsM2TsMode": enableMpegtsM2TsMode, - "videoCodec": videoCodec, - "subtitleCodec": subtitleCodec, - "transcodeReasons": transcodeReasons, - "audioStreamIndex": audioStreamIndex?.encodeToJSON(), - "videoStreamIndex": videoStreamIndex?.encodeToJSON(), - "context": context, - "streamOptions": streamOptions - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a video stream using HTTP live streaming. - - - parameter itemId: (path) The item id. - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment length. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamorphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getVariantHlsVideoPlaylist(itemId: UUID, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, mediaSourceId: String? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod9? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context9? = nil, streamOptions: [String:String]? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getVariantHlsVideoPlaylistWithRequestBuilder(itemId: itemId, _static: _static, params: params, tag: tag, deviceProfileId: deviceProfileId, playSessionId: playSessionId, segmentContainer: segmentContainer, segmentLength: segmentLength, minSegments: minSegments, mediaSourceId: mediaSourceId, deviceId: deviceId, audioCodec: audioCodec, enableAutoStreamCopy: enableAutoStreamCopy, allowVideoStreamCopy: allowVideoStreamCopy, allowAudioStreamCopy: allowAudioStreamCopy, breakOnNonKeyFrames: breakOnNonKeyFrames, audioSampleRate: audioSampleRate, maxAudioBitDepth: maxAudioBitDepth, audioBitRate: audioBitRate, audioChannels: audioChannels, maxAudioChannels: maxAudioChannels, profile: profile, level: level, framerate: framerate, maxFramerate: maxFramerate, copyTimestamps: copyTimestamps, startTimeTicks: startTimeTicks, width: width, height: height, videoBitRate: videoBitRate, subtitleStreamIndex: subtitleStreamIndex, subtitleMethod: subtitleMethod, maxRefFrames: maxRefFrames, maxVideoBitDepth: maxVideoBitDepth, requireAvc: requireAvc, deInterlace: deInterlace, requireNonAnamorphic: requireNonAnamorphic, transcodingMaxAudioChannels: transcodingMaxAudioChannels, cpuCoreLimit: cpuCoreLimit, liveStreamId: liveStreamId, enableMpegtsM2TsMode: enableMpegtsM2TsMode, videoCodec: videoCodec, subtitleCodec: subtitleCodec, transcodeReasons: transcodeReasons, audioStreamIndex: audioStreamIndex, videoStreamIndex: videoStreamIndex, context: context, streamOptions: streamOptions).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a video stream using HTTP live streaming. - - GET /Videos/{itemId}/main.m3u8 - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) The item id. - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment length. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamorphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - - returns: RequestBuilder - */ - open class func getVariantHlsVideoPlaylistWithRequestBuilder(itemId: UUID, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, mediaSourceId: String? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod9? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context9? = nil, streamOptions: [String:String]? = nil) -> RequestBuilder { - var path = "/Videos/{itemId}/main.m3u8" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "static": _static, - "params": params, - "tag": tag, - "deviceProfileId": deviceProfileId, - "playSessionId": playSessionId, - "segmentContainer": segmentContainer, - "segmentLength": segmentLength?.encodeToJSON(), - "minSegments": minSegments?.encodeToJSON(), - "mediaSourceId": mediaSourceId, - "deviceId": deviceId, - "audioCodec": audioCodec, - "enableAutoStreamCopy": enableAutoStreamCopy, - "allowVideoStreamCopy": allowVideoStreamCopy, - "allowAudioStreamCopy": allowAudioStreamCopy, - "breakOnNonKeyFrames": breakOnNonKeyFrames, - "audioSampleRate": audioSampleRate?.encodeToJSON(), - "maxAudioBitDepth": maxAudioBitDepth?.encodeToJSON(), - "audioBitRate": audioBitRate?.encodeToJSON(), - "audioChannels": audioChannels?.encodeToJSON(), - "maxAudioChannels": maxAudioChannels?.encodeToJSON(), - "profile": profile, - "level": level, - "framerate": framerate, - "maxFramerate": maxFramerate, - "copyTimestamps": copyTimestamps, - "startTimeTicks": startTimeTicks?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "videoBitRate": videoBitRate?.encodeToJSON(), - "subtitleStreamIndex": subtitleStreamIndex?.encodeToJSON(), - "subtitleMethod": subtitleMethod, - "maxRefFrames": maxRefFrames?.encodeToJSON(), - "maxVideoBitDepth": maxVideoBitDepth?.encodeToJSON(), - "requireAvc": requireAvc, - "deInterlace": deInterlace, - "requireNonAnamorphic": requireNonAnamorphic, - "transcodingMaxAudioChannels": transcodingMaxAudioChannels?.encodeToJSON(), - "cpuCoreLimit": cpuCoreLimit?.encodeToJSON(), - "liveStreamId": liveStreamId, - "enableMpegtsM2TsMode": enableMpegtsM2TsMode, - "videoCodec": videoCodec, - "subtitleCodec": subtitleCodec, - "transcodeReasons": transcodeReasons, - "audioStreamIndex": audioStreamIndex?.encodeToJSON(), - "videoStreamIndex": videoStreamIndex?.encodeToJSON(), - "context": context, - "streamOptions": streamOptions - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets an audio hls playlist stream. - - - parameter itemId: (path) The item id. - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment length. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter maxStreamingBitrate: (query) Optional. The maximum streaming bitrate. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamorphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - parameter enableAdaptiveBitrateStreaming: (query) Enable adaptive bitrate streaming. (optional, default to true) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func headMasterHlsAudioPlaylist(itemId: UUID, mediaSourceId: String, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, maxStreamingBitrate: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod7? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context7? = nil, streamOptions: [String:String]? = nil, enableAdaptiveBitrateStreaming: Bool? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - headMasterHlsAudioPlaylistWithRequestBuilder(itemId: itemId, mediaSourceId: mediaSourceId, _static: _static, params: params, tag: tag, deviceProfileId: deviceProfileId, playSessionId: playSessionId, segmentContainer: segmentContainer, segmentLength: segmentLength, minSegments: minSegments, deviceId: deviceId, audioCodec: audioCodec, enableAutoStreamCopy: enableAutoStreamCopy, allowVideoStreamCopy: allowVideoStreamCopy, allowAudioStreamCopy: allowAudioStreamCopy, breakOnNonKeyFrames: breakOnNonKeyFrames, audioSampleRate: audioSampleRate, maxAudioBitDepth: maxAudioBitDepth, maxStreamingBitrate: maxStreamingBitrate, audioBitRate: audioBitRate, audioChannels: audioChannels, maxAudioChannels: maxAudioChannels, profile: profile, level: level, framerate: framerate, maxFramerate: maxFramerate, copyTimestamps: copyTimestamps, startTimeTicks: startTimeTicks, width: width, height: height, videoBitRate: videoBitRate, subtitleStreamIndex: subtitleStreamIndex, subtitleMethod: subtitleMethod, maxRefFrames: maxRefFrames, maxVideoBitDepth: maxVideoBitDepth, requireAvc: requireAvc, deInterlace: deInterlace, requireNonAnamorphic: requireNonAnamorphic, transcodingMaxAudioChannels: transcodingMaxAudioChannels, cpuCoreLimit: cpuCoreLimit, liveStreamId: liveStreamId, enableMpegtsM2TsMode: enableMpegtsM2TsMode, videoCodec: videoCodec, subtitleCodec: subtitleCodec, transcodeReasons: transcodeReasons, audioStreamIndex: audioStreamIndex, videoStreamIndex: videoStreamIndex, context: context, streamOptions: streamOptions, enableAdaptiveBitrateStreaming: enableAdaptiveBitrateStreaming).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets an audio hls playlist stream. - - HEAD /Audio/{itemId}/master.m3u8 - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) The item id. - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment length. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter maxStreamingBitrate: (query) Optional. The maximum streaming bitrate. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamorphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - parameter enableAdaptiveBitrateStreaming: (query) Enable adaptive bitrate streaming. (optional, default to true) - - - returns: RequestBuilder - */ - open class func headMasterHlsAudioPlaylistWithRequestBuilder(itemId: UUID, mediaSourceId: String, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, maxStreamingBitrate: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod7? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context7? = nil, streamOptions: [String:String]? = nil, enableAdaptiveBitrateStreaming: Bool? = nil) -> RequestBuilder { - var path = "/Audio/{itemId}/master.m3u8" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "static": _static, - "params": params, - "tag": tag, - "deviceProfileId": deviceProfileId, - "playSessionId": playSessionId, - "segmentContainer": segmentContainer, - "segmentLength": segmentLength?.encodeToJSON(), - "minSegments": minSegments?.encodeToJSON(), - "mediaSourceId": mediaSourceId, - "deviceId": deviceId, - "audioCodec": audioCodec, - "enableAutoStreamCopy": enableAutoStreamCopy, - "allowVideoStreamCopy": allowVideoStreamCopy, - "allowAudioStreamCopy": allowAudioStreamCopy, - "breakOnNonKeyFrames": breakOnNonKeyFrames, - "audioSampleRate": audioSampleRate?.encodeToJSON(), - "maxAudioBitDepth": maxAudioBitDepth?.encodeToJSON(), - "maxStreamingBitrate": maxStreamingBitrate?.encodeToJSON(), - "audioBitRate": audioBitRate?.encodeToJSON(), - "audioChannels": audioChannels?.encodeToJSON(), - "maxAudioChannels": maxAudioChannels?.encodeToJSON(), - "profile": profile, - "level": level, - "framerate": framerate, - "maxFramerate": maxFramerate, - "copyTimestamps": copyTimestamps, - "startTimeTicks": startTimeTicks?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "videoBitRate": videoBitRate?.encodeToJSON(), - "subtitleStreamIndex": subtitleStreamIndex?.encodeToJSON(), - "subtitleMethod": subtitleMethod, - "maxRefFrames": maxRefFrames?.encodeToJSON(), - "maxVideoBitDepth": maxVideoBitDepth?.encodeToJSON(), - "requireAvc": requireAvc, - "deInterlace": deInterlace, - "requireNonAnamorphic": requireNonAnamorphic, - "transcodingMaxAudioChannels": transcodingMaxAudioChannels?.encodeToJSON(), - "cpuCoreLimit": cpuCoreLimit?.encodeToJSON(), - "liveStreamId": liveStreamId, - "enableMpegtsM2TsMode": enableMpegtsM2TsMode, - "videoCodec": videoCodec, - "subtitleCodec": subtitleCodec, - "transcodeReasons": transcodeReasons, - "audioStreamIndex": audioStreamIndex?.encodeToJSON(), - "videoStreamIndex": videoStreamIndex?.encodeToJSON(), - "context": context, - "streamOptions": streamOptions, - "enableAdaptiveBitrateStreaming": enableAdaptiveBitrateStreaming - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "HEAD", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a video hls playlist stream. - - - parameter itemId: (path) The item id. - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment length. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamorphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - parameter enableAdaptiveBitrateStreaming: (query) Enable adaptive bitrate streaming. (optional, default to true) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func headMasterHlsVideoPlaylist(itemId: UUID, mediaSourceId: String, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod11? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context11? = nil, streamOptions: [String:String]? = nil, enableAdaptiveBitrateStreaming: Bool? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - headMasterHlsVideoPlaylistWithRequestBuilder(itemId: itemId, mediaSourceId: mediaSourceId, _static: _static, params: params, tag: tag, deviceProfileId: deviceProfileId, playSessionId: playSessionId, segmentContainer: segmentContainer, segmentLength: segmentLength, minSegments: minSegments, deviceId: deviceId, audioCodec: audioCodec, enableAutoStreamCopy: enableAutoStreamCopy, allowVideoStreamCopy: allowVideoStreamCopy, allowAudioStreamCopy: allowAudioStreamCopy, breakOnNonKeyFrames: breakOnNonKeyFrames, audioSampleRate: audioSampleRate, maxAudioBitDepth: maxAudioBitDepth, audioBitRate: audioBitRate, audioChannels: audioChannels, maxAudioChannels: maxAudioChannels, profile: profile, level: level, framerate: framerate, maxFramerate: maxFramerate, copyTimestamps: copyTimestamps, startTimeTicks: startTimeTicks, width: width, height: height, videoBitRate: videoBitRate, subtitleStreamIndex: subtitleStreamIndex, subtitleMethod: subtitleMethod, maxRefFrames: maxRefFrames, maxVideoBitDepth: maxVideoBitDepth, requireAvc: requireAvc, deInterlace: deInterlace, requireNonAnamorphic: requireNonAnamorphic, transcodingMaxAudioChannels: transcodingMaxAudioChannels, cpuCoreLimit: cpuCoreLimit, liveStreamId: liveStreamId, enableMpegtsM2TsMode: enableMpegtsM2TsMode, videoCodec: videoCodec, subtitleCodec: subtitleCodec, transcodeReasons: transcodeReasons, audioStreamIndex: audioStreamIndex, videoStreamIndex: videoStreamIndex, context: context, streamOptions: streamOptions, enableAdaptiveBitrateStreaming: enableAdaptiveBitrateStreaming).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a video hls playlist stream. - - HEAD /Videos/{itemId}/master.m3u8 - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) The item id. - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment length. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamorphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - parameter enableAdaptiveBitrateStreaming: (query) Enable adaptive bitrate streaming. (optional, default to true) - - - returns: RequestBuilder - */ - open class func headMasterHlsVideoPlaylistWithRequestBuilder(itemId: UUID, mediaSourceId: String, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod11? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context11? = nil, streamOptions: [String:String]? = nil, enableAdaptiveBitrateStreaming: Bool? = nil) -> RequestBuilder { - var path = "/Videos/{itemId}/master.m3u8" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "static": _static, - "params": params, - "tag": tag, - "deviceProfileId": deviceProfileId, - "playSessionId": playSessionId, - "segmentContainer": segmentContainer, - "segmentLength": segmentLength?.encodeToJSON(), - "minSegments": minSegments?.encodeToJSON(), - "mediaSourceId": mediaSourceId, - "deviceId": deviceId, - "audioCodec": audioCodec, - "enableAutoStreamCopy": enableAutoStreamCopy, - "allowVideoStreamCopy": allowVideoStreamCopy, - "allowAudioStreamCopy": allowAudioStreamCopy, - "breakOnNonKeyFrames": breakOnNonKeyFrames, - "audioSampleRate": audioSampleRate?.encodeToJSON(), - "maxAudioBitDepth": maxAudioBitDepth?.encodeToJSON(), - "audioBitRate": audioBitRate?.encodeToJSON(), - "audioChannels": audioChannels?.encodeToJSON(), - "maxAudioChannels": maxAudioChannels?.encodeToJSON(), - "profile": profile, - "level": level, - "framerate": framerate, - "maxFramerate": maxFramerate, - "copyTimestamps": copyTimestamps, - "startTimeTicks": startTimeTicks?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "videoBitRate": videoBitRate?.encodeToJSON(), - "subtitleStreamIndex": subtitleStreamIndex?.encodeToJSON(), - "subtitleMethod": subtitleMethod, - "maxRefFrames": maxRefFrames?.encodeToJSON(), - "maxVideoBitDepth": maxVideoBitDepth?.encodeToJSON(), - "requireAvc": requireAvc, - "deInterlace": deInterlace, - "requireNonAnamorphic": requireNonAnamorphic, - "transcodingMaxAudioChannels": transcodingMaxAudioChannels?.encodeToJSON(), - "cpuCoreLimit": cpuCoreLimit?.encodeToJSON(), - "liveStreamId": liveStreamId, - "enableMpegtsM2TsMode": enableMpegtsM2TsMode, - "videoCodec": videoCodec, - "subtitleCodec": subtitleCodec, - "transcodeReasons": transcodeReasons, - "audioStreamIndex": audioStreamIndex?.encodeToJSON(), - "videoStreamIndex": videoStreamIndex?.encodeToJSON(), - "context": context, - "streamOptions": streamOptions, - "enableAdaptiveBitrateStreaming": enableAdaptiveBitrateStreaming - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "HEAD", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/EnvironmentAPI.swift b/JellyfinPlayer/Swaggers/APIs/EnvironmentAPI.swift deleted file mode 100644 index 027b3c92..00000000 --- a/JellyfinPlayer/Swaggers/APIs/EnvironmentAPI.swift +++ /dev/null @@ -1,270 +0,0 @@ -// -// EnvironmentAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class EnvironmentAPI { - /** - Get Default directory browser. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getDefaultDirectoryBrowser(completion: @escaping ((_ data: DefaultDirectoryBrowserInfoDto?,_ error: Error?) -> Void)) { - getDefaultDirectoryBrowserWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get Default directory browser. - - GET /Environment/DefaultDirectoryBrowser - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "Path" : "Path" -}}] - - - returns: RequestBuilder - */ - open class func getDefaultDirectoryBrowserWithRequestBuilder() -> RequestBuilder { - let path = "/Environment/DefaultDirectoryBrowser" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets the contents of a given directory in the file system. - - - parameter path: (query) The path. - - parameter includeFiles: (query) An optional filter to include or exclude files from the results. true/false. (optional, default to false) - - parameter includeDirectories: (query) An optional filter to include or exclude folders from the results. true/false. (optional, default to false) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getDirectoryContents(path: String, includeFiles: Bool? = nil, includeDirectories: Bool? = nil, completion: @escaping ((_ data: [FileSystemEntryInfo]?,_ error: Error?) -> Void)) { - getDirectoryContentsWithRequestBuilder(path: path, includeFiles: includeFiles, includeDirectories: includeDirectories).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets the contents of a given directory in the file system. - - GET /Environment/DirectoryContents - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "Path" : "Path", - "Type" : "", - "Name" : "Name" -}, { - "Path" : "Path", - "Type" : "", - "Name" : "Name" -} ]}] - - parameter path: (query) The path. - - parameter includeFiles: (query) An optional filter to include or exclude files from the results. true/false. (optional, default to false) - - parameter includeDirectories: (query) An optional filter to include or exclude folders from the results. true/false. (optional, default to false) - - - returns: RequestBuilder<[FileSystemEntryInfo]> - */ - open class func getDirectoryContentsWithRequestBuilder(path: String, includeFiles: Bool? = nil, includeDirectories: Bool? = nil) -> RequestBuilder<[FileSystemEntryInfo]> { - let path = "/Environment/DirectoryContents" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "path": path, - "includeFiles": includeFiles, - "includeDirectories": includeDirectories - ]) - - - let requestBuilder: RequestBuilder<[FileSystemEntryInfo]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets available drives from the server's file system. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getDrives(completion: @escaping ((_ data: [FileSystemEntryInfo]?,_ error: Error?) -> Void)) { - getDrivesWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets available drives from the server's file system. - - GET /Environment/Drives - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "Path" : "Path", - "Type" : "", - "Name" : "Name" -}, { - "Path" : "Path", - "Type" : "", - "Name" : "Name" -} ]}] - - - returns: RequestBuilder<[FileSystemEntryInfo]> - */ - open class func getDrivesWithRequestBuilder() -> RequestBuilder<[FileSystemEntryInfo]> { - let path = "/Environment/Drives" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[FileSystemEntryInfo]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets network paths. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getNetworkShares(completion: @escaping ((_ data: [FileSystemEntryInfo]?,_ error: Error?) -> Void)) { - getNetworkSharesWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets network paths. - - GET /Environment/NetworkShares - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "Path" : "Path", - "Type" : "", - "Name" : "Name" -}, { - "Path" : "Path", - "Type" : "", - "Name" : "Name" -} ]}] - - - returns: RequestBuilder<[FileSystemEntryInfo]> - */ - open class func getNetworkSharesWithRequestBuilder() -> RequestBuilder<[FileSystemEntryInfo]> { - let path = "/Environment/NetworkShares" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[FileSystemEntryInfo]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets the parent path of a given path. - - - parameter path: (query) The path. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getParentPath(path: String, completion: @escaping ((_ data: String?,_ error: Error?) -> Void)) { - getParentPathWithRequestBuilder(path: path).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets the parent path of a given path. - - GET /Environment/ParentPath - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=""}] - - parameter path: (query) The path. - - - returns: RequestBuilder - */ - open class func getParentPathWithRequestBuilder(path: String) -> RequestBuilder { - let path = "/Environment/ParentPath" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "path": path - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Validates path. - - - parameter body: (body) Validate request object. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func validatePath(body: EnvironmentValidatePathBody, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - validatePathWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Validates path. - - POST /Environment/ValidatePath - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) Validate request object. - - - returns: RequestBuilder - */ - open class func validatePathWithRequestBuilder(body: EnvironmentValidatePathBody) -> RequestBuilder { - let path = "/Environment/ValidatePath" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/FilterAPI.swift b/JellyfinPlayer/Swaggers/APIs/FilterAPI.swift deleted file mode 100644 index aeebc079..00000000 --- a/JellyfinPlayer/Swaggers/APIs/FilterAPI.swift +++ /dev/null @@ -1,143 +0,0 @@ -// -// FilterAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class FilterAPI { - /** - Gets query filters. - - - parameter userId: (query) Optional. User id. (optional) - - parameter parentId: (query) Optional. Specify this to localize the search to a specific item or folder. Omit to use the root. (optional) - - parameter includeItemTypes: (query) Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. (optional) - - parameter isAiring: (query) Optional. Is item airing. (optional) - - parameter isMovie: (query) Optional. Is item movie. (optional) - - parameter isSports: (query) Optional. Is item sports. (optional) - - parameter isKids: (query) Optional. Is item kids. (optional) - - parameter isNews: (query) Optional. Is item news. (optional) - - parameter isSeries: (query) Optional. Is item series. (optional) - - parameter recursive: (query) Optional. Search recursive. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getQueryFilters(userId: UUID? = nil, parentId: UUID? = nil, includeItemTypes: [String]? = nil, isAiring: Bool? = nil, isMovie: Bool? = nil, isSports: Bool? = nil, isKids: Bool? = nil, isNews: Bool? = nil, isSeries: Bool? = nil, recursive: Bool? = nil, completion: @escaping ((_ data: QueryFilters?,_ error: Error?) -> Void)) { - getQueryFiltersWithRequestBuilder(userId: userId, parentId: parentId, includeItemTypes: includeItemTypes, isAiring: isAiring, isMovie: isMovie, isSports: isSports, isKids: isKids, isNews: isNews, isSeries: isSeries, recursive: recursive).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets query filters. - - GET /Items/Filters2 - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "Genres" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "Tags" : [ "Tags", "Tags" ] -}}] - - parameter userId: (query) Optional. User id. (optional) - - parameter parentId: (query) Optional. Specify this to localize the search to a specific item or folder. Omit to use the root. (optional) - - parameter includeItemTypes: (query) Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. (optional) - - parameter isAiring: (query) Optional. Is item airing. (optional) - - parameter isMovie: (query) Optional. Is item movie. (optional) - - parameter isSports: (query) Optional. Is item sports. (optional) - - parameter isKids: (query) Optional. Is item kids. (optional) - - parameter isNews: (query) Optional. Is item news. (optional) - - parameter isSeries: (query) Optional. Is item series. (optional) - - parameter recursive: (query) Optional. Search recursive. (optional) - - - returns: RequestBuilder - */ - open class func getQueryFiltersWithRequestBuilder(userId: UUID? = nil, parentId: UUID? = nil, includeItemTypes: [String]? = nil, isAiring: Bool? = nil, isMovie: Bool? = nil, isSports: Bool? = nil, isKids: Bool? = nil, isNews: Bool? = nil, isSeries: Bool? = nil, recursive: Bool? = nil) -> RequestBuilder { - let path = "/Items/Filters2" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId, - "parentId": parentId, - "includeItemTypes": includeItemTypes, - "isAiring": isAiring, - "isMovie": isMovie, - "isSports": isSports, - "isKids": isKids, - "isNews": isNews, - "isSeries": isSeries, - "recursive": recursive - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets legacy query filters. - - - parameter userId: (query) Optional. User id. (optional) - - parameter parentId: (query) Optional. Parent id. (optional) - - parameter includeItemTypes: (query) Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. (optional) - - parameter mediaTypes: (query) Optional. Filter by MediaType. Allows multiple, comma delimited. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getQueryFiltersLegacy(userId: UUID? = nil, parentId: UUID? = nil, includeItemTypes: [String]? = nil, mediaTypes: [String]? = nil, completion: @escaping ((_ data: QueryFiltersLegacy?,_ error: Error?) -> Void)) { - getQueryFiltersLegacyWithRequestBuilder(userId: userId, parentId: parentId, includeItemTypes: includeItemTypes, mediaTypes: mediaTypes).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets legacy query filters. - - GET /Items/Filters - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "Years" : [ 0, 0 ], - "OfficialRatings" : [ "OfficialRatings", "OfficialRatings" ], - "Genres" : [ "Genres", "Genres" ], - "Tags" : [ "Tags", "Tags" ] -}}] - - parameter userId: (query) Optional. User id. (optional) - - parameter parentId: (query) Optional. Parent id. (optional) - - parameter includeItemTypes: (query) Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. (optional) - - parameter mediaTypes: (query) Optional. Filter by MediaType. Allows multiple, comma delimited. (optional) - - - returns: RequestBuilder - */ - open class func getQueryFiltersLegacyWithRequestBuilder(userId: UUID? = nil, parentId: UUID? = nil, includeItemTypes: [String]? = nil, mediaTypes: [String]? = nil) -> RequestBuilder { - let path = "/Items/Filters" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId, - "parentId": parentId, - "includeItemTypes": includeItemTypes, - "mediaTypes": mediaTypes - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/GenresAPI.swift b/JellyfinPlayer/Swaggers/APIs/GenresAPI.swift deleted file mode 100644 index 3d663e64..00000000 --- a/JellyfinPlayer/Swaggers/APIs/GenresAPI.swift +++ /dev/null @@ -1,2049 +0,0 @@ -// -// GenresAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class GenresAPI { - /** - Gets a genre, by name. - - - parameter genreName: (path) The genre name. - - parameter userId: (query) The user id. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getGenre(genreName: String, userId: UUID? = nil, completion: @escaping ((_ data: BaseItemDto?,_ error: Error?) -> Void)) { - getGenreWithRequestBuilder(genreName: genreName, userId: userId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a genre, by name. - - GET /Genres/{genreName} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 -}}] - - parameter genreName: (path) The genre name. - - parameter userId: (query) The user id. (optional) - - - returns: RequestBuilder - */ - open class func getGenreWithRequestBuilder(genreName: String, userId: UUID? = nil) -> RequestBuilder { - var path = "/Genres/{genreName}" - let genreNamePreEscape = "\(genreName)" - let genreNamePostEscape = genreNamePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{genreName}", with: genreNamePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets all genres from a given item, folder, or the entire library. - - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter searchTerm: (query) The search term. (optional) - - parameter parentId: (query) Specify this to localize the search to a specific item or folder. Omit to use the root. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter excludeItemTypes: (query) Optional. If specified, results will be filtered out based on item type. This allows multiple, comma delimited. (optional) - - parameter includeItemTypes: (query) Optional. If specified, results will be filtered in based on item type. This allows multiple, comma delimited. (optional) - - parameter isFavorite: (query) Optional filter by items that are marked as favorite, or not. (optional) - - parameter imageTypeLimit: (query) Optional, the max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter userId: (query) User id. (optional) - - parameter nameStartsWithOrGreater: (query) Optional filter by items whose name is sorted equally or greater than a given input string. (optional) - - parameter nameStartsWith: (query) Optional filter by items whose name is sorted equally than a given input string. (optional) - - parameter nameLessThan: (query) Optional filter by items whose name is equally or lesser than a given input string. (optional) - - parameter enableImages: (query) Optional, include image information in output. (optional, default to true) - - parameter enableTotalRecordCount: (query) Optional. Include total record count. (optional, default to true) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getGenres(startIndex: Int? = nil, limit: Int? = nil, searchTerm: String? = nil, parentId: UUID? = nil, fields: [ItemFields]? = nil, excludeItemTypes: [String]? = nil, includeItemTypes: [String]? = nil, isFavorite: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, userId: UUID? = nil, nameStartsWithOrGreater: String? = nil, nameStartsWith: String? = nil, nameLessThan: String? = nil, enableImages: Bool? = nil, enableTotalRecordCount: Bool? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getGenresWithRequestBuilder(startIndex: startIndex, limit: limit, searchTerm: searchTerm, parentId: parentId, fields: fields, excludeItemTypes: excludeItemTypes, includeItemTypes: includeItemTypes, isFavorite: isFavorite, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes, userId: userId, nameStartsWithOrGreater: nameStartsWithOrGreater, nameStartsWith: nameStartsWith, nameLessThan: nameLessThan, enableImages: enableImages, enableTotalRecordCount: enableTotalRecordCount).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets all genres from a given item, folder, or the entire library. - - GET /Genres - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter searchTerm: (query) The search term. (optional) - - parameter parentId: (query) Specify this to localize the search to a specific item or folder. Omit to use the root. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter excludeItemTypes: (query) Optional. If specified, results will be filtered out based on item type. This allows multiple, comma delimited. (optional) - - parameter includeItemTypes: (query) Optional. If specified, results will be filtered in based on item type. This allows multiple, comma delimited. (optional) - - parameter isFavorite: (query) Optional filter by items that are marked as favorite, or not. (optional) - - parameter imageTypeLimit: (query) Optional, the max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter userId: (query) User id. (optional) - - parameter nameStartsWithOrGreater: (query) Optional filter by items whose name is sorted equally or greater than a given input string. (optional) - - parameter nameStartsWith: (query) Optional filter by items whose name is sorted equally than a given input string. (optional) - - parameter nameLessThan: (query) Optional filter by items whose name is equally or lesser than a given input string. (optional) - - parameter enableImages: (query) Optional, include image information in output. (optional, default to true) - - parameter enableTotalRecordCount: (query) Optional. Include total record count. (optional, default to true) - - - returns: RequestBuilder - */ - open class func getGenresWithRequestBuilder(startIndex: Int? = nil, limit: Int? = nil, searchTerm: String? = nil, parentId: UUID? = nil, fields: [ItemFields]? = nil, excludeItemTypes: [String]? = nil, includeItemTypes: [String]? = nil, isFavorite: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, userId: UUID? = nil, nameStartsWithOrGreater: String? = nil, nameStartsWith: String? = nil, nameLessThan: String? = nil, enableImages: Bool? = nil, enableTotalRecordCount: Bool? = nil) -> RequestBuilder { - let path = "/Genres" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "startIndex": startIndex?.encodeToJSON(), - "limit": limit?.encodeToJSON(), - "searchTerm": searchTerm, - "parentId": parentId, - "fields": fields, - "excludeItemTypes": excludeItemTypes, - "includeItemTypes": includeItemTypes, - "isFavorite": isFavorite, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes, - "userId": userId, - "nameStartsWithOrGreater": nameStartsWithOrGreater, - "nameStartsWith": nameStartsWith, - "nameLessThan": nameLessThan, - "enableImages": enableImages, - "enableTotalRecordCount": enableTotalRecordCount - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/HlsSegmentAPI.swift b/JellyfinPlayer/Swaggers/APIs/HlsSegmentAPI.swift deleted file mode 100644 index c20fd523..00000000 --- a/JellyfinPlayer/Swaggers/APIs/HlsSegmentAPI.swift +++ /dev/null @@ -1,240 +0,0 @@ -// -// HlsSegmentAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class HlsSegmentAPI { - /** - Gets the specified audio segment for an audio item. - - - parameter itemId: (path) The item id. - - parameter segmentId: (path) The segment id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getHlsAudioSegmentLegacyAac(itemId: String, segmentId: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getHlsAudioSegmentLegacyAacWithRequestBuilder(itemId: itemId, segmentId: segmentId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets the specified audio segment for an audio item. - - GET /Audio/{itemId}/hls/{segmentId}/stream.aac - - - - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) The item id. - - parameter segmentId: (path) The segment id. - - - returns: RequestBuilder - */ - open class func getHlsAudioSegmentLegacyAacWithRequestBuilder(itemId: String, segmentId: String) -> RequestBuilder { - var path = "/Audio/{itemId}/hls/{segmentId}/stream.aac" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let segmentIdPreEscape = "\(segmentId)" - let segmentIdPostEscape = segmentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{segmentId}", with: segmentIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets the specified audio segment for an audio item. - - - parameter itemId: (path) The item id. - - parameter segmentId: (path) The segment id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getHlsAudioSegmentLegacyMp3(itemId: String, segmentId: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getHlsAudioSegmentLegacyMp3WithRequestBuilder(itemId: itemId, segmentId: segmentId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets the specified audio segment for an audio item. - - GET /Audio/{itemId}/hls/{segmentId}/stream.mp3 - - - - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) The item id. - - parameter segmentId: (path) The segment id. - - - returns: RequestBuilder - */ - open class func getHlsAudioSegmentLegacyMp3WithRequestBuilder(itemId: String, segmentId: String) -> RequestBuilder { - var path = "/Audio/{itemId}/hls/{segmentId}/stream.mp3" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let segmentIdPreEscape = "\(segmentId)" - let segmentIdPostEscape = segmentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{segmentId}", with: segmentIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a hls video playlist. - - - parameter itemId: (path) The video id. - - parameter playlistId: (path) The playlist id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getHlsPlaylistLegacy(itemId: String, playlistId: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getHlsPlaylistLegacyWithRequestBuilder(itemId: itemId, playlistId: playlistId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a hls video playlist. - - GET /Videos/{itemId}/hls/{playlistId}/stream.m3u8 - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) The video id. - - parameter playlistId: (path) The playlist id. - - - returns: RequestBuilder - */ - open class func getHlsPlaylistLegacyWithRequestBuilder(itemId: String, playlistId: String) -> RequestBuilder { - var path = "/Videos/{itemId}/hls/{playlistId}/stream.m3u8" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let playlistIdPreEscape = "\(playlistId)" - let playlistIdPostEscape = playlistIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{playlistId}", with: playlistIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a hls video segment. - - - parameter itemId: (path) The item id. - - parameter playlistId: (path) The playlist id. - - parameter segmentId: (path) The segment id. - - parameter segmentContainer: (path) The segment container. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getHlsVideoSegmentLegacy(itemId: String, playlistId: String, segmentId: String, segmentContainer: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getHlsVideoSegmentLegacyWithRequestBuilder(itemId: itemId, playlistId: playlistId, segmentId: segmentId, segmentContainer: segmentContainer).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a hls video segment. - - GET /Videos/{itemId}/hls/{playlistId}/{segmentId}.{segmentContainer} - - - - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) The item id. - - parameter playlistId: (path) The playlist id. - - parameter segmentId: (path) The segment id. - - parameter segmentContainer: (path) The segment container. - - - returns: RequestBuilder - */ - open class func getHlsVideoSegmentLegacyWithRequestBuilder(itemId: String, playlistId: String, segmentId: String, segmentContainer: String) -> RequestBuilder { - var path = "/Videos/{itemId}/hls/{playlistId}/{segmentId}.{segmentContainer}" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let playlistIdPreEscape = "\(playlistId)" - let playlistIdPostEscape = playlistIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{playlistId}", with: playlistIdPostEscape, options: .literal, range: nil) - let segmentIdPreEscape = "\(segmentId)" - let segmentIdPostEscape = segmentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{segmentId}", with: segmentIdPostEscape, options: .literal, range: nil) - let segmentContainerPreEscape = "\(segmentContainer)" - let segmentContainerPostEscape = segmentContainerPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{segmentContainer}", with: segmentContainerPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Stops an active encoding. - - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. - - parameter playSessionId: (query) The play session id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func stopEncodingProcess(deviceId: String, playSessionId: String, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - stopEncodingProcessWithRequestBuilder(deviceId: deviceId, playSessionId: playSessionId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Stops an active encoding. - - DELETE /Videos/ActiveEncodings - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. - - parameter playSessionId: (query) The play session id. - - - returns: RequestBuilder - */ - open class func stopEncodingProcessWithRequestBuilder(deviceId: String, playSessionId: String) -> RequestBuilder { - let path = "/Videos/ActiveEncodings" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "deviceId": deviceId, - "playSessionId": playSessionId - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/ImageAPI.swift b/JellyfinPlayer/Swaggers/APIs/ImageAPI.swift deleted file mode 100644 index 1b00704d..00000000 --- a/JellyfinPlayer/Swaggers/APIs/ImageAPI.swift +++ /dev/null @@ -1,3272 +0,0 @@ -// -// ImageAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class ImageAPI { - /** - Delete an item's image. - - - parameter itemId: (path) Item id. - - parameter imageType: (path) Image type. - - parameter imageIndex: (query) The image index. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func deleteItemImage(itemId: UUID, imageType: ImageType9, imageIndex: Int? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - deleteItemImageWithRequestBuilder(itemId: itemId, imageType: imageType, imageIndex: imageIndex).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Delete an item's image. - - DELETE /Items/{itemId}/Images/{imageType} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter itemId: (path) Item id. - - parameter imageType: (path) Image type. - - parameter imageIndex: (query) The image index. (optional) - - - returns: RequestBuilder - */ - open class func deleteItemImageWithRequestBuilder(itemId: UUID, imageType: ImageType9, imageIndex: Int? = nil) -> RequestBuilder { - var path = "/Items/{itemId}/Images/{imageType}" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "imageIndex": imageIndex?.encodeToJSON() - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Delete an item's image. - - - parameter itemId: (path) Item id. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) The image index. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func deleteItemImageByIndex(itemId: UUID, imageType: ImageType13, imageIndex: Int, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - deleteItemImageByIndexWithRequestBuilder(itemId: itemId, imageType: imageType, imageIndex: imageIndex).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Delete an item's image. - - DELETE /Items/{itemId}/Images/{imageType}/{imageIndex} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter itemId: (path) Item id. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) The image index. - - - returns: RequestBuilder - */ - open class func deleteItemImageByIndexWithRequestBuilder(itemId: UUID, imageType: ImageType13, imageIndex: Int) -> RequestBuilder { - var path = "/Items/{itemId}/Images/{imageType}/{imageIndex}" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let imageIndexPreEscape = "\(imageIndex)" - let imageIndexPostEscape = imageIndexPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageIndex}", with: imageIndexPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Delete the user's image. - - - parameter userId: (path) User Id. - - parameter imageType: (path) (Unused) Image type. - - parameter index: (query) (Unused) Image index. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func deleteUserImage(userId: UUID, imageType: ImageType32, index: Int? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - deleteUserImageWithRequestBuilder(userId: userId, imageType: imageType, index: index).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Delete the user's image. - - DELETE /Users/{userId}/Images/{imageType} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter userId: (path) User Id. - - parameter imageType: (path) (Unused) Image type. - - parameter index: (query) (Unused) Image index. (optional) - - - returns: RequestBuilder - */ - open class func deleteUserImageWithRequestBuilder(userId: UUID, imageType: ImageType32, index: Int? = nil) -> RequestBuilder { - var path = "/Users/{userId}/Images/{imageType}" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "index": index?.encodeToJSON() - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Delete the user's image. - - - parameter userId: (path) User Id. - - parameter imageType: (path) (Unused) Image type. - - parameter index: (path) (Unused) Image index. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func deleteUserImageByIndex(userId: UUID, imageType: ImageType36, index: Int, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - deleteUserImageByIndexWithRequestBuilder(userId: userId, imageType: imageType, index: index).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Delete the user's image. - - DELETE /Users/{userId}/Images/{imageType}/{index} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter userId: (path) User Id. - - parameter imageType: (path) (Unused) Image type. - - parameter index: (path) (Unused) Image index. - - - returns: RequestBuilder - */ - open class func deleteUserImageByIndexWithRequestBuilder(userId: UUID, imageType: ImageType36, index: Int) -> RequestBuilder { - var path = "/Users/{userId}/Images/{imageType}/{index}" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let indexPreEscape = "\(index)" - let indexPostEscape = indexPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{index}", with: indexPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get artist image by name. - - - parameter name: (path) Artist name. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) Image index. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getArtistImage(name: String, imageType: ImageType, imageIndex: Int, tag: String? = nil, format: Format? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getArtistImageWithRequestBuilder(name: name, imageType: imageType, imageIndex: imageIndex, tag: tag, format: format, maxWidth: maxWidth, maxHeight: maxHeight, percentPlayed: percentPlayed, unplayedCount: unplayedCount, width: width, height: height, quality: quality, fillWidth: fillWidth, fillHeight: fillHeight, cropWhitespace: cropWhitespace, addPlayedIndicator: addPlayedIndicator, blur: blur, backgroundColor: backgroundColor, foregroundLayer: foregroundLayer).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get artist image by name. - - GET /Artists/{name}/Images/{imageType}/{imageIndex} - - - - - examples: [{contentType=application/json, example=""}] - - parameter name: (path) Artist name. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) Image index. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - - returns: RequestBuilder - */ - open class func getArtistImageWithRequestBuilder(name: String, imageType: ImageType, imageIndex: Int, tag: String? = nil, format: Format? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil) -> RequestBuilder { - var path = "/Artists/{name}/Images/{imageType}/{imageIndex}" - let namePreEscape = "\(name)" - let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let imageIndexPreEscape = "\(imageIndex)" - let imageIndexPostEscape = imageIndexPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageIndex}", with: imageIndexPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "tag": tag, - "format": format, - "maxWidth": maxWidth?.encodeToJSON(), - "maxHeight": maxHeight?.encodeToJSON(), - "percentPlayed": percentPlayed, - "unplayedCount": unplayedCount?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "quality": quality?.encodeToJSON(), - "fillWidth": fillWidth?.encodeToJSON(), - "fillHeight": fillHeight?.encodeToJSON(), - "cropWhitespace": cropWhitespace, - "addPlayedIndicator": addPlayedIndicator, - "blur": blur?.encodeToJSON(), - "backgroundColor": backgroundColor, - "foregroundLayer": foregroundLayer - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get genre image by name. - - - parameter name: (path) Genre name. - - parameter imageType: (path) Image type. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter imageIndex: (query) Image index. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getGenreImage(name: String, imageType: ImageType2, tag: String? = nil, format: Format2? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, imageIndex: Int? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getGenreImageWithRequestBuilder(name: name, imageType: imageType, tag: tag, format: format, maxWidth: maxWidth, maxHeight: maxHeight, percentPlayed: percentPlayed, unplayedCount: unplayedCount, width: width, height: height, quality: quality, fillWidth: fillWidth, fillHeight: fillHeight, cropWhitespace: cropWhitespace, addPlayedIndicator: addPlayedIndicator, blur: blur, backgroundColor: backgroundColor, foregroundLayer: foregroundLayer, imageIndex: imageIndex).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get genre image by name. - - GET /Genres/{name}/Images/{imageType} - - - - - examples: [{contentType=application/json, example=""}] - - parameter name: (path) Genre name. - - parameter imageType: (path) Image type. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter imageIndex: (query) Image index. (optional) - - - returns: RequestBuilder - */ - open class func getGenreImageWithRequestBuilder(name: String, imageType: ImageType2, tag: String? = nil, format: Format2? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, imageIndex: Int? = nil) -> RequestBuilder { - var path = "/Genres/{name}/Images/{imageType}" - let namePreEscape = "\(name)" - let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "tag": tag, - "format": format, - "maxWidth": maxWidth?.encodeToJSON(), - "maxHeight": maxHeight?.encodeToJSON(), - "percentPlayed": percentPlayed, - "unplayedCount": unplayedCount?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "quality": quality?.encodeToJSON(), - "fillWidth": fillWidth?.encodeToJSON(), - "fillHeight": fillHeight?.encodeToJSON(), - "cropWhitespace": cropWhitespace, - "addPlayedIndicator": addPlayedIndicator, - "blur": blur?.encodeToJSON(), - "backgroundColor": backgroundColor, - "foregroundLayer": foregroundLayer, - "imageIndex": imageIndex?.encodeToJSON() - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get genre image by name. - - - parameter name: (path) Genre name. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) Image index. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getGenreImageByIndex(name: String, imageType: ImageType4, imageIndex: Int, tag: String? = nil, format: Format4? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getGenreImageByIndexWithRequestBuilder(name: name, imageType: imageType, imageIndex: imageIndex, tag: tag, format: format, maxWidth: maxWidth, maxHeight: maxHeight, percentPlayed: percentPlayed, unplayedCount: unplayedCount, width: width, height: height, quality: quality, fillWidth: fillWidth, fillHeight: fillHeight, cropWhitespace: cropWhitespace, addPlayedIndicator: addPlayedIndicator, blur: blur, backgroundColor: backgroundColor, foregroundLayer: foregroundLayer).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get genre image by name. - - GET /Genres/{name}/Images/{imageType}/{imageIndex} - - - - - examples: [{contentType=application/json, example=""}] - - parameter name: (path) Genre name. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) Image index. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - - returns: RequestBuilder - */ - open class func getGenreImageByIndexWithRequestBuilder(name: String, imageType: ImageType4, imageIndex: Int, tag: String? = nil, format: Format4? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil) -> RequestBuilder { - var path = "/Genres/{name}/Images/{imageType}/{imageIndex}" - let namePreEscape = "\(name)" - let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let imageIndexPreEscape = "\(imageIndex)" - let imageIndexPostEscape = imageIndexPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageIndex}", with: imageIndexPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "tag": tag, - "format": format, - "maxWidth": maxWidth?.encodeToJSON(), - "maxHeight": maxHeight?.encodeToJSON(), - "percentPlayed": percentPlayed, - "unplayedCount": unplayedCount?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "quality": quality?.encodeToJSON(), - "fillWidth": fillWidth?.encodeToJSON(), - "fillHeight": fillHeight?.encodeToJSON(), - "cropWhitespace": cropWhitespace, - "addPlayedIndicator": addPlayedIndicator, - "blur": blur?.encodeToJSON(), - "backgroundColor": backgroundColor, - "foregroundLayer": foregroundLayer - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets the item's image. - - - parameter itemId: (path) Item id. - - parameter imageType: (path) Image type. - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter format: (query) Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter imageIndex: (query) Image index. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getItemImage(itemId: UUID, imageType: ImageType6, maxWidth: Int? = nil, maxHeight: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, tag: String? = nil, cropWhitespace: Bool? = nil, format: Format6? = nil, addPlayedIndicator: Bool? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, imageIndex: Int? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getItemImageWithRequestBuilder(itemId: itemId, imageType: imageType, maxWidth: maxWidth, maxHeight: maxHeight, width: width, height: height, quality: quality, fillWidth: fillWidth, fillHeight: fillHeight, tag: tag, cropWhitespace: cropWhitespace, format: format, addPlayedIndicator: addPlayedIndicator, percentPlayed: percentPlayed, unplayedCount: unplayedCount, blur: blur, backgroundColor: backgroundColor, foregroundLayer: foregroundLayer, imageIndex: imageIndex).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets the item's image. - - GET /Items/{itemId}/Images/{imageType} - - - - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) Item id. - - parameter imageType: (path) Image type. - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter format: (query) Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter imageIndex: (query) Image index. (optional) - - - returns: RequestBuilder - */ - open class func getItemImageWithRequestBuilder(itemId: UUID, imageType: ImageType6, maxWidth: Int? = nil, maxHeight: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, tag: String? = nil, cropWhitespace: Bool? = nil, format: Format6? = nil, addPlayedIndicator: Bool? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, imageIndex: Int? = nil) -> RequestBuilder { - var path = "/Items/{itemId}/Images/{imageType}" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "maxWidth": maxWidth?.encodeToJSON(), - "maxHeight": maxHeight?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "quality": quality?.encodeToJSON(), - "fillWidth": fillWidth?.encodeToJSON(), - "fillHeight": fillHeight?.encodeToJSON(), - "tag": tag, - "cropWhitespace": cropWhitespace, - "format": format, - "addPlayedIndicator": addPlayedIndicator, - "percentPlayed": percentPlayed, - "unplayedCount": unplayedCount?.encodeToJSON(), - "blur": blur?.encodeToJSON(), - "backgroundColor": backgroundColor, - "foregroundLayer": foregroundLayer, - "imageIndex": imageIndex?.encodeToJSON() - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets the item's image. - - - parameter itemId: (path) Item id. - - parameter imageType: (path) Image type. - - parameter maxWidth: (path) The maximum image width to return. - - parameter maxHeight: (path) The maximum image height to return. - - parameter tag: (path) Optional. Supply the cache tag from the item object to receive strong caching headers. - - parameter format: (path) Determines the output format of the image - original,gif,jpg,png. - - parameter percentPlayed: (path) Optional. Percent to render for the percent played overlay. - - parameter unplayedCount: (path) Optional. Unplayed count overlay to render. - - parameter imageIndex: (path) Image index. - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getItemImage2(itemId: UUID, imageType: ImageType14, maxWidth: Int, maxHeight: Int, tag: String, format: Format10, percentPlayed: Double, unplayedCount: Int, imageIndex: Int, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getItemImage2WithRequestBuilder(itemId: itemId, imageType: imageType, maxWidth: maxWidth, maxHeight: maxHeight, tag: tag, format: format, percentPlayed: percentPlayed, unplayedCount: unplayedCount, imageIndex: imageIndex, width: width, height: height, quality: quality, fillWidth: fillWidth, fillHeight: fillHeight, cropWhitespace: cropWhitespace, addPlayedIndicator: addPlayedIndicator, blur: blur, backgroundColor: backgroundColor, foregroundLayer: foregroundLayer).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets the item's image. - - GET /Items/{itemId}/Images/{imageType}/{imageIndex}/{tag}/{format}/{maxWidth}/{maxHeight}/{percentPlayed}/{unplayedCount} - - - - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) Item id. - - parameter imageType: (path) Image type. - - parameter maxWidth: (path) The maximum image width to return. - - parameter maxHeight: (path) The maximum image height to return. - - parameter tag: (path) Optional. Supply the cache tag from the item object to receive strong caching headers. - - parameter format: (path) Determines the output format of the image - original,gif,jpg,png. - - parameter percentPlayed: (path) Optional. Percent to render for the percent played overlay. - - parameter unplayedCount: (path) Optional. Unplayed count overlay to render. - - parameter imageIndex: (path) Image index. - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - - returns: RequestBuilder - */ - open class func getItemImage2WithRequestBuilder(itemId: UUID, imageType: ImageType14, maxWidth: Int, maxHeight: Int, tag: String, format: Format10, percentPlayed: Double, unplayedCount: Int, imageIndex: Int, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil) -> RequestBuilder { - var path = "/Items/{itemId}/Images/{imageType}/{imageIndex}/{tag}/{format}/{maxWidth}/{maxHeight}/{percentPlayed}/{unplayedCount}" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let maxWidthPreEscape = "\(maxWidth)" - let maxWidthPostEscape = maxWidthPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{maxWidth}", with: maxWidthPostEscape, options: .literal, range: nil) - let maxHeightPreEscape = "\(maxHeight)" - let maxHeightPostEscape = maxHeightPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{maxHeight}", with: maxHeightPostEscape, options: .literal, range: nil) - let tagPreEscape = "\(tag)" - let tagPostEscape = tagPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{tag}", with: tagPostEscape, options: .literal, range: nil) - let formatPreEscape = "\(format)" - let formatPostEscape = formatPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{format}", with: formatPostEscape, options: .literal, range: nil) - let percentPlayedPreEscape = "\(percentPlayed)" - let percentPlayedPostEscape = percentPlayedPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{percentPlayed}", with: percentPlayedPostEscape, options: .literal, range: nil) - let unplayedCountPreEscape = "\(unplayedCount)" - let unplayedCountPostEscape = unplayedCountPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{unplayedCount}", with: unplayedCountPostEscape, options: .literal, range: nil) - let imageIndexPreEscape = "\(imageIndex)" - let imageIndexPostEscape = imageIndexPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageIndex}", with: imageIndexPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "quality": quality?.encodeToJSON(), - "fillWidth": fillWidth?.encodeToJSON(), - "fillHeight": fillHeight?.encodeToJSON(), - "cropWhitespace": cropWhitespace, - "addPlayedIndicator": addPlayedIndicator, - "blur": blur?.encodeToJSON(), - "backgroundColor": backgroundColor, - "foregroundLayer": foregroundLayer - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets the item's image. - - - parameter itemId: (path) Item id. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) Image index. - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter format: (query) Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getItemImageByIndex(itemId: UUID, imageType: ImageType10, imageIndex: Int, maxWidth: Int? = nil, maxHeight: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, tag: String? = nil, cropWhitespace: Bool? = nil, format: Format8? = nil, addPlayedIndicator: Bool? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getItemImageByIndexWithRequestBuilder(itemId: itemId, imageType: imageType, imageIndex: imageIndex, maxWidth: maxWidth, maxHeight: maxHeight, width: width, height: height, quality: quality, fillWidth: fillWidth, fillHeight: fillHeight, tag: tag, cropWhitespace: cropWhitespace, format: format, addPlayedIndicator: addPlayedIndicator, percentPlayed: percentPlayed, unplayedCount: unplayedCount, blur: blur, backgroundColor: backgroundColor, foregroundLayer: foregroundLayer).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets the item's image. - - GET /Items/{itemId}/Images/{imageType}/{imageIndex} - - - - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) Item id. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) Image index. - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter format: (query) Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - - returns: RequestBuilder - */ - open class func getItemImageByIndexWithRequestBuilder(itemId: UUID, imageType: ImageType10, imageIndex: Int, maxWidth: Int? = nil, maxHeight: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, tag: String? = nil, cropWhitespace: Bool? = nil, format: Format8? = nil, addPlayedIndicator: Bool? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil) -> RequestBuilder { - var path = "/Items/{itemId}/Images/{imageType}/{imageIndex}" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let imageIndexPreEscape = "\(imageIndex)" - let imageIndexPostEscape = imageIndexPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageIndex}", with: imageIndexPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "maxWidth": maxWidth?.encodeToJSON(), - "maxHeight": maxHeight?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "quality": quality?.encodeToJSON(), - "fillWidth": fillWidth?.encodeToJSON(), - "fillHeight": fillHeight?.encodeToJSON(), - "tag": tag, - "cropWhitespace": cropWhitespace, - "format": format, - "addPlayedIndicator": addPlayedIndicator, - "percentPlayed": percentPlayed, - "unplayedCount": unplayedCount?.encodeToJSON(), - "blur": blur?.encodeToJSON(), - "backgroundColor": backgroundColor, - "foregroundLayer": foregroundLayer - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get item image infos. - - - parameter itemId: (path) Item id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getItemImageInfos(itemId: UUID, completion: @escaping ((_ data: [ImageInfo]?,_ error: Error?) -> Void)) { - getItemImageInfosWithRequestBuilder(itemId: itemId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get item image infos. - - GET /Items/{itemId}/Images - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "Path" : "Path", - "ImageTag" : "ImageTag", - "Size" : 5, - "Height" : 6, - "BlurHash" : "BlurHash", - "ImageIndex" : 0, - "Width" : 1, - "ImageType" : "" -}, { - "Path" : "Path", - "ImageTag" : "ImageTag", - "Size" : 5, - "Height" : 6, - "BlurHash" : "BlurHash", - "ImageIndex" : 0, - "Width" : 1, - "ImageType" : "" -} ]}] - - parameter itemId: (path) Item id. - - - returns: RequestBuilder<[ImageInfo]> - */ - open class func getItemImageInfosWithRequestBuilder(itemId: UUID) -> RequestBuilder<[ImageInfo]> { - var path = "/Items/{itemId}/Images" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[ImageInfo]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get music genre image by name. - - - parameter name: (path) Music genre name. - - parameter imageType: (path) Image type. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter imageIndex: (query) Image index. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getMusicGenreImage(name: String, imageType: ImageType17, tag: String? = nil, format: Format12? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, imageIndex: Int? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getMusicGenreImageWithRequestBuilder(name: name, imageType: imageType, tag: tag, format: format, maxWidth: maxWidth, maxHeight: maxHeight, percentPlayed: percentPlayed, unplayedCount: unplayedCount, width: width, height: height, quality: quality, fillWidth: fillWidth, fillHeight: fillHeight, cropWhitespace: cropWhitespace, addPlayedIndicator: addPlayedIndicator, blur: blur, backgroundColor: backgroundColor, foregroundLayer: foregroundLayer, imageIndex: imageIndex).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get music genre image by name. - - GET /MusicGenres/{name}/Images/{imageType} - - - - - examples: [{contentType=application/json, example=""}] - - parameter name: (path) Music genre name. - - parameter imageType: (path) Image type. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter imageIndex: (query) Image index. (optional) - - - returns: RequestBuilder - */ - open class func getMusicGenreImageWithRequestBuilder(name: String, imageType: ImageType17, tag: String? = nil, format: Format12? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, imageIndex: Int? = nil) -> RequestBuilder { - var path = "/MusicGenres/{name}/Images/{imageType}" - let namePreEscape = "\(name)" - let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "tag": tag, - "format": format, - "maxWidth": maxWidth?.encodeToJSON(), - "maxHeight": maxHeight?.encodeToJSON(), - "percentPlayed": percentPlayed, - "unplayedCount": unplayedCount?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "quality": quality?.encodeToJSON(), - "fillWidth": fillWidth?.encodeToJSON(), - "fillHeight": fillHeight?.encodeToJSON(), - "cropWhitespace": cropWhitespace, - "addPlayedIndicator": addPlayedIndicator, - "blur": blur?.encodeToJSON(), - "backgroundColor": backgroundColor, - "foregroundLayer": foregroundLayer, - "imageIndex": imageIndex?.encodeToJSON() - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get music genre image by name. - - - parameter name: (path) Music genre name. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) Image index. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getMusicGenreImageByIndex(name: String, imageType: ImageType19, imageIndex: Int, tag: String? = nil, format: Format14? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getMusicGenreImageByIndexWithRequestBuilder(name: name, imageType: imageType, imageIndex: imageIndex, tag: tag, format: format, maxWidth: maxWidth, maxHeight: maxHeight, percentPlayed: percentPlayed, unplayedCount: unplayedCount, width: width, height: height, quality: quality, fillWidth: fillWidth, fillHeight: fillHeight, cropWhitespace: cropWhitespace, addPlayedIndicator: addPlayedIndicator, blur: blur, backgroundColor: backgroundColor, foregroundLayer: foregroundLayer).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get music genre image by name. - - GET /MusicGenres/{name}/Images/{imageType}/{imageIndex} - - - - - examples: [{contentType=application/json, example=""}] - - parameter name: (path) Music genre name. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) Image index. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - - returns: RequestBuilder - */ - open class func getMusicGenreImageByIndexWithRequestBuilder(name: String, imageType: ImageType19, imageIndex: Int, tag: String? = nil, format: Format14? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil) -> RequestBuilder { - var path = "/MusicGenres/{name}/Images/{imageType}/{imageIndex}" - let namePreEscape = "\(name)" - let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let imageIndexPreEscape = "\(imageIndex)" - let imageIndexPostEscape = imageIndexPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageIndex}", with: imageIndexPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "tag": tag, - "format": format, - "maxWidth": maxWidth?.encodeToJSON(), - "maxHeight": maxHeight?.encodeToJSON(), - "percentPlayed": percentPlayed, - "unplayedCount": unplayedCount?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "quality": quality?.encodeToJSON(), - "fillWidth": fillWidth?.encodeToJSON(), - "fillHeight": fillHeight?.encodeToJSON(), - "cropWhitespace": cropWhitespace, - "addPlayedIndicator": addPlayedIndicator, - "blur": blur?.encodeToJSON(), - "backgroundColor": backgroundColor, - "foregroundLayer": foregroundLayer - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get person image by name. - - - parameter name: (path) Person name. - - parameter imageType: (path) Image type. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter imageIndex: (query) Image index. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getPersonImage(name: String, imageType: ImageType21, tag: String? = nil, format: Format16? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, imageIndex: Int? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getPersonImageWithRequestBuilder(name: name, imageType: imageType, tag: tag, format: format, maxWidth: maxWidth, maxHeight: maxHeight, percentPlayed: percentPlayed, unplayedCount: unplayedCount, width: width, height: height, quality: quality, fillWidth: fillWidth, fillHeight: fillHeight, cropWhitespace: cropWhitespace, addPlayedIndicator: addPlayedIndicator, blur: blur, backgroundColor: backgroundColor, foregroundLayer: foregroundLayer, imageIndex: imageIndex).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get person image by name. - - GET /Persons/{name}/Images/{imageType} - - - - - examples: [{contentType=application/json, example=""}] - - parameter name: (path) Person name. - - parameter imageType: (path) Image type. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter imageIndex: (query) Image index. (optional) - - - returns: RequestBuilder - */ - open class func getPersonImageWithRequestBuilder(name: String, imageType: ImageType21, tag: String? = nil, format: Format16? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, imageIndex: Int? = nil) -> RequestBuilder { - var path = "/Persons/{name}/Images/{imageType}" - let namePreEscape = "\(name)" - let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "tag": tag, - "format": format, - "maxWidth": maxWidth?.encodeToJSON(), - "maxHeight": maxHeight?.encodeToJSON(), - "percentPlayed": percentPlayed, - "unplayedCount": unplayedCount?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "quality": quality?.encodeToJSON(), - "fillWidth": fillWidth?.encodeToJSON(), - "fillHeight": fillHeight?.encodeToJSON(), - "cropWhitespace": cropWhitespace, - "addPlayedIndicator": addPlayedIndicator, - "blur": blur?.encodeToJSON(), - "backgroundColor": backgroundColor, - "foregroundLayer": foregroundLayer, - "imageIndex": imageIndex?.encodeToJSON() - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get person image by name. - - - parameter name: (path) Person name. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) Image index. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getPersonImageByIndex(name: String, imageType: ImageType23, imageIndex: Int, tag: String? = nil, format: Format18? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getPersonImageByIndexWithRequestBuilder(name: name, imageType: imageType, imageIndex: imageIndex, tag: tag, format: format, maxWidth: maxWidth, maxHeight: maxHeight, percentPlayed: percentPlayed, unplayedCount: unplayedCount, width: width, height: height, quality: quality, fillWidth: fillWidth, fillHeight: fillHeight, cropWhitespace: cropWhitespace, addPlayedIndicator: addPlayedIndicator, blur: blur, backgroundColor: backgroundColor, foregroundLayer: foregroundLayer).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get person image by name. - - GET /Persons/{name}/Images/{imageType}/{imageIndex} - - - - - examples: [{contentType=application/json, example=""}] - - parameter name: (path) Person name. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) Image index. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - - returns: RequestBuilder - */ - open class func getPersonImageByIndexWithRequestBuilder(name: String, imageType: ImageType23, imageIndex: Int, tag: String? = nil, format: Format18? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil) -> RequestBuilder { - var path = "/Persons/{name}/Images/{imageType}/{imageIndex}" - let namePreEscape = "\(name)" - let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let imageIndexPreEscape = "\(imageIndex)" - let imageIndexPostEscape = imageIndexPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageIndex}", with: imageIndexPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "tag": tag, - "format": format, - "maxWidth": maxWidth?.encodeToJSON(), - "maxHeight": maxHeight?.encodeToJSON(), - "percentPlayed": percentPlayed, - "unplayedCount": unplayedCount?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "quality": quality?.encodeToJSON(), - "fillWidth": fillWidth?.encodeToJSON(), - "fillHeight": fillHeight?.encodeToJSON(), - "cropWhitespace": cropWhitespace, - "addPlayedIndicator": addPlayedIndicator, - "blur": blur?.encodeToJSON(), - "backgroundColor": backgroundColor, - "foregroundLayer": foregroundLayer - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get studio image by name. - - - parameter name: (path) Studio name. - - parameter imageType: (path) Image type. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter imageIndex: (query) Image index. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getStudioImage(name: String, imageType: ImageType25, tag: String? = nil, format: Format20? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, imageIndex: Int? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getStudioImageWithRequestBuilder(name: name, imageType: imageType, tag: tag, format: format, maxWidth: maxWidth, maxHeight: maxHeight, percentPlayed: percentPlayed, unplayedCount: unplayedCount, width: width, height: height, quality: quality, fillWidth: fillWidth, fillHeight: fillHeight, cropWhitespace: cropWhitespace, addPlayedIndicator: addPlayedIndicator, blur: blur, backgroundColor: backgroundColor, foregroundLayer: foregroundLayer, imageIndex: imageIndex).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get studio image by name. - - GET /Studios/{name}/Images/{imageType} - - - - - examples: [{contentType=application/json, example=""}] - - parameter name: (path) Studio name. - - parameter imageType: (path) Image type. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter imageIndex: (query) Image index. (optional) - - - returns: RequestBuilder - */ - open class func getStudioImageWithRequestBuilder(name: String, imageType: ImageType25, tag: String? = nil, format: Format20? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, imageIndex: Int? = nil) -> RequestBuilder { - var path = "/Studios/{name}/Images/{imageType}" - let namePreEscape = "\(name)" - let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "tag": tag, - "format": format, - "maxWidth": maxWidth?.encodeToJSON(), - "maxHeight": maxHeight?.encodeToJSON(), - "percentPlayed": percentPlayed, - "unplayedCount": unplayedCount?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "quality": quality?.encodeToJSON(), - "fillWidth": fillWidth?.encodeToJSON(), - "fillHeight": fillHeight?.encodeToJSON(), - "cropWhitespace": cropWhitespace, - "addPlayedIndicator": addPlayedIndicator, - "blur": blur?.encodeToJSON(), - "backgroundColor": backgroundColor, - "foregroundLayer": foregroundLayer, - "imageIndex": imageIndex?.encodeToJSON() - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get studio image by name. - - - parameter name: (path) Studio name. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) Image index. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getStudioImageByIndex(name: String, imageType: ImageType27, imageIndex: Int, tag: String? = nil, format: Format22? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getStudioImageByIndexWithRequestBuilder(name: name, imageType: imageType, imageIndex: imageIndex, tag: tag, format: format, maxWidth: maxWidth, maxHeight: maxHeight, percentPlayed: percentPlayed, unplayedCount: unplayedCount, width: width, height: height, quality: quality, fillWidth: fillWidth, fillHeight: fillHeight, cropWhitespace: cropWhitespace, addPlayedIndicator: addPlayedIndicator, blur: blur, backgroundColor: backgroundColor, foregroundLayer: foregroundLayer).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get studio image by name. - - GET /Studios/{name}/Images/{imageType}/{imageIndex} - - - - - examples: [{contentType=application/json, example=""}] - - parameter name: (path) Studio name. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) Image index. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - - returns: RequestBuilder - */ - open class func getStudioImageByIndexWithRequestBuilder(name: String, imageType: ImageType27, imageIndex: Int, tag: String? = nil, format: Format22? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil) -> RequestBuilder { - var path = "/Studios/{name}/Images/{imageType}/{imageIndex}" - let namePreEscape = "\(name)" - let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let imageIndexPreEscape = "\(imageIndex)" - let imageIndexPostEscape = imageIndexPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageIndex}", with: imageIndexPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "tag": tag, - "format": format, - "maxWidth": maxWidth?.encodeToJSON(), - "maxHeight": maxHeight?.encodeToJSON(), - "percentPlayed": percentPlayed, - "unplayedCount": unplayedCount?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "quality": quality?.encodeToJSON(), - "fillWidth": fillWidth?.encodeToJSON(), - "fillHeight": fillHeight?.encodeToJSON(), - "cropWhitespace": cropWhitespace, - "addPlayedIndicator": addPlayedIndicator, - "blur": blur?.encodeToJSON(), - "backgroundColor": backgroundColor, - "foregroundLayer": foregroundLayer - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get user profile image. - - - parameter userId: (path) User id. - - parameter imageType: (path) Image type. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter imageIndex: (query) Image index. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getUserImage(userId: UUID, imageType: ImageType29, tag: String? = nil, format: Format24? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, imageIndex: Int? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getUserImageWithRequestBuilder(userId: userId, imageType: imageType, tag: tag, format: format, maxWidth: maxWidth, maxHeight: maxHeight, percentPlayed: percentPlayed, unplayedCount: unplayedCount, width: width, height: height, quality: quality, fillWidth: fillWidth, fillHeight: fillHeight, cropWhitespace: cropWhitespace, addPlayedIndicator: addPlayedIndicator, blur: blur, backgroundColor: backgroundColor, foregroundLayer: foregroundLayer, imageIndex: imageIndex).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get user profile image. - - GET /Users/{userId}/Images/{imageType} - - - - - examples: [{contentType=application/json, example=""}] - - parameter userId: (path) User id. - - parameter imageType: (path) Image type. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter imageIndex: (query) Image index. (optional) - - - returns: RequestBuilder - */ - open class func getUserImageWithRequestBuilder(userId: UUID, imageType: ImageType29, tag: String? = nil, format: Format24? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, imageIndex: Int? = nil) -> RequestBuilder { - var path = "/Users/{userId}/Images/{imageType}" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "tag": tag, - "format": format, - "maxWidth": maxWidth?.encodeToJSON(), - "maxHeight": maxHeight?.encodeToJSON(), - "percentPlayed": percentPlayed, - "unplayedCount": unplayedCount?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "quality": quality?.encodeToJSON(), - "fillWidth": fillWidth?.encodeToJSON(), - "fillHeight": fillHeight?.encodeToJSON(), - "cropWhitespace": cropWhitespace, - "addPlayedIndicator": addPlayedIndicator, - "blur": blur?.encodeToJSON(), - "backgroundColor": backgroundColor, - "foregroundLayer": foregroundLayer, - "imageIndex": imageIndex?.encodeToJSON() - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get user profile image. - - - parameter userId: (path) User id. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) Image index. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getUserImageByIndex(userId: UUID, imageType: ImageType33, imageIndex: Int, tag: String? = nil, format: Format26? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getUserImageByIndexWithRequestBuilder(userId: userId, imageType: imageType, imageIndex: imageIndex, tag: tag, format: format, maxWidth: maxWidth, maxHeight: maxHeight, percentPlayed: percentPlayed, unplayedCount: unplayedCount, width: width, height: height, quality: quality, fillWidth: fillWidth, fillHeight: fillHeight, cropWhitespace: cropWhitespace, addPlayedIndicator: addPlayedIndicator, blur: blur, backgroundColor: backgroundColor, foregroundLayer: foregroundLayer).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get user profile image. - - GET /Users/{userId}/Images/{imageType}/{imageIndex} - - - - - examples: [{contentType=application/json, example=""}] - - parameter userId: (path) User id. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) Image index. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - - returns: RequestBuilder - */ - open class func getUserImageByIndexWithRequestBuilder(userId: UUID, imageType: ImageType33, imageIndex: Int, tag: String? = nil, format: Format26? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil) -> RequestBuilder { - var path = "/Users/{userId}/Images/{imageType}/{imageIndex}" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let imageIndexPreEscape = "\(imageIndex)" - let imageIndexPostEscape = imageIndexPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageIndex}", with: imageIndexPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "tag": tag, - "format": format, - "maxWidth": maxWidth?.encodeToJSON(), - "maxHeight": maxHeight?.encodeToJSON(), - "percentPlayed": percentPlayed, - "unplayedCount": unplayedCount?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "quality": quality?.encodeToJSON(), - "fillWidth": fillWidth?.encodeToJSON(), - "fillHeight": fillHeight?.encodeToJSON(), - "cropWhitespace": cropWhitespace, - "addPlayedIndicator": addPlayedIndicator, - "blur": blur?.encodeToJSON(), - "backgroundColor": backgroundColor, - "foregroundLayer": foregroundLayer - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get artist image by name. - - - parameter name: (path) Artist name. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) Image index. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func headArtistImage(name: String, imageType: ImageType1, imageIndex: Int, tag: String? = nil, format: Format1? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - headArtistImageWithRequestBuilder(name: name, imageType: imageType, imageIndex: imageIndex, tag: tag, format: format, maxWidth: maxWidth, maxHeight: maxHeight, percentPlayed: percentPlayed, unplayedCount: unplayedCount, width: width, height: height, quality: quality, fillWidth: fillWidth, fillHeight: fillHeight, cropWhitespace: cropWhitespace, addPlayedIndicator: addPlayedIndicator, blur: blur, backgroundColor: backgroundColor, foregroundLayer: foregroundLayer).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get artist image by name. - - HEAD /Artists/{name}/Images/{imageType}/{imageIndex} - - - - - examples: [{contentType=application/json, example=""}] - - parameter name: (path) Artist name. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) Image index. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - - returns: RequestBuilder - */ - open class func headArtistImageWithRequestBuilder(name: String, imageType: ImageType1, imageIndex: Int, tag: String? = nil, format: Format1? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil) -> RequestBuilder { - var path = "/Artists/{name}/Images/{imageType}/{imageIndex}" - let namePreEscape = "\(name)" - let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let imageIndexPreEscape = "\(imageIndex)" - let imageIndexPostEscape = imageIndexPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageIndex}", with: imageIndexPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "tag": tag, - "format": format, - "maxWidth": maxWidth?.encodeToJSON(), - "maxHeight": maxHeight?.encodeToJSON(), - "percentPlayed": percentPlayed, - "unplayedCount": unplayedCount?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "quality": quality?.encodeToJSON(), - "fillWidth": fillWidth?.encodeToJSON(), - "fillHeight": fillHeight?.encodeToJSON(), - "cropWhitespace": cropWhitespace, - "addPlayedIndicator": addPlayedIndicator, - "blur": blur?.encodeToJSON(), - "backgroundColor": backgroundColor, - "foregroundLayer": foregroundLayer - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "HEAD", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get genre image by name. - - - parameter name: (path) Genre name. - - parameter imageType: (path) Image type. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter imageIndex: (query) Image index. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func headGenreImage(name: String, imageType: ImageType3, tag: String? = nil, format: Format3? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, imageIndex: Int? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - headGenreImageWithRequestBuilder(name: name, imageType: imageType, tag: tag, format: format, maxWidth: maxWidth, maxHeight: maxHeight, percentPlayed: percentPlayed, unplayedCount: unplayedCount, width: width, height: height, quality: quality, fillWidth: fillWidth, fillHeight: fillHeight, cropWhitespace: cropWhitespace, addPlayedIndicator: addPlayedIndicator, blur: blur, backgroundColor: backgroundColor, foregroundLayer: foregroundLayer, imageIndex: imageIndex).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get genre image by name. - - HEAD /Genres/{name}/Images/{imageType} - - - - - examples: [{contentType=application/json, example=""}] - - parameter name: (path) Genre name. - - parameter imageType: (path) Image type. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter imageIndex: (query) Image index. (optional) - - - returns: RequestBuilder - */ - open class func headGenreImageWithRequestBuilder(name: String, imageType: ImageType3, tag: String? = nil, format: Format3? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, imageIndex: Int? = nil) -> RequestBuilder { - var path = "/Genres/{name}/Images/{imageType}" - let namePreEscape = "\(name)" - let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "tag": tag, - "format": format, - "maxWidth": maxWidth?.encodeToJSON(), - "maxHeight": maxHeight?.encodeToJSON(), - "percentPlayed": percentPlayed, - "unplayedCount": unplayedCount?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "quality": quality?.encodeToJSON(), - "fillWidth": fillWidth?.encodeToJSON(), - "fillHeight": fillHeight?.encodeToJSON(), - "cropWhitespace": cropWhitespace, - "addPlayedIndicator": addPlayedIndicator, - "blur": blur?.encodeToJSON(), - "backgroundColor": backgroundColor, - "foregroundLayer": foregroundLayer, - "imageIndex": imageIndex?.encodeToJSON() - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "HEAD", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get genre image by name. - - - parameter name: (path) Genre name. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) Image index. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func headGenreImageByIndex(name: String, imageType: ImageType5, imageIndex: Int, tag: String? = nil, format: Format5? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - headGenreImageByIndexWithRequestBuilder(name: name, imageType: imageType, imageIndex: imageIndex, tag: tag, format: format, maxWidth: maxWidth, maxHeight: maxHeight, percentPlayed: percentPlayed, unplayedCount: unplayedCount, width: width, height: height, quality: quality, fillWidth: fillWidth, fillHeight: fillHeight, cropWhitespace: cropWhitespace, addPlayedIndicator: addPlayedIndicator, blur: blur, backgroundColor: backgroundColor, foregroundLayer: foregroundLayer).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get genre image by name. - - HEAD /Genres/{name}/Images/{imageType}/{imageIndex} - - - - - examples: [{contentType=application/json, example=""}] - - parameter name: (path) Genre name. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) Image index. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - - returns: RequestBuilder - */ - open class func headGenreImageByIndexWithRequestBuilder(name: String, imageType: ImageType5, imageIndex: Int, tag: String? = nil, format: Format5? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil) -> RequestBuilder { - var path = "/Genres/{name}/Images/{imageType}/{imageIndex}" - let namePreEscape = "\(name)" - let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let imageIndexPreEscape = "\(imageIndex)" - let imageIndexPostEscape = imageIndexPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageIndex}", with: imageIndexPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "tag": tag, - "format": format, - "maxWidth": maxWidth?.encodeToJSON(), - "maxHeight": maxHeight?.encodeToJSON(), - "percentPlayed": percentPlayed, - "unplayedCount": unplayedCount?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "quality": quality?.encodeToJSON(), - "fillWidth": fillWidth?.encodeToJSON(), - "fillHeight": fillHeight?.encodeToJSON(), - "cropWhitespace": cropWhitespace, - "addPlayedIndicator": addPlayedIndicator, - "blur": blur?.encodeToJSON(), - "backgroundColor": backgroundColor, - "foregroundLayer": foregroundLayer - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "HEAD", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets the item's image. - - - parameter itemId: (path) Item id. - - parameter imageType: (path) Image type. - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter format: (query) Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter imageIndex: (query) Image index. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func headItemImage(itemId: UUID, imageType: ImageType7, maxWidth: Int? = nil, maxHeight: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, tag: String? = nil, cropWhitespace: Bool? = nil, format: Format7? = nil, addPlayedIndicator: Bool? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, imageIndex: Int? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - headItemImageWithRequestBuilder(itemId: itemId, imageType: imageType, maxWidth: maxWidth, maxHeight: maxHeight, width: width, height: height, quality: quality, fillWidth: fillWidth, fillHeight: fillHeight, tag: tag, cropWhitespace: cropWhitespace, format: format, addPlayedIndicator: addPlayedIndicator, percentPlayed: percentPlayed, unplayedCount: unplayedCount, blur: blur, backgroundColor: backgroundColor, foregroundLayer: foregroundLayer, imageIndex: imageIndex).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets the item's image. - - HEAD /Items/{itemId}/Images/{imageType} - - - - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) Item id. - - parameter imageType: (path) Image type. - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter format: (query) Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter imageIndex: (query) Image index. (optional) - - - returns: RequestBuilder - */ - open class func headItemImageWithRequestBuilder(itemId: UUID, imageType: ImageType7, maxWidth: Int? = nil, maxHeight: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, tag: String? = nil, cropWhitespace: Bool? = nil, format: Format7? = nil, addPlayedIndicator: Bool? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, imageIndex: Int? = nil) -> RequestBuilder { - var path = "/Items/{itemId}/Images/{imageType}" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "maxWidth": maxWidth?.encodeToJSON(), - "maxHeight": maxHeight?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "quality": quality?.encodeToJSON(), - "fillWidth": fillWidth?.encodeToJSON(), - "fillHeight": fillHeight?.encodeToJSON(), - "tag": tag, - "cropWhitespace": cropWhitespace, - "format": format, - "addPlayedIndicator": addPlayedIndicator, - "percentPlayed": percentPlayed, - "unplayedCount": unplayedCount?.encodeToJSON(), - "blur": blur?.encodeToJSON(), - "backgroundColor": backgroundColor, - "foregroundLayer": foregroundLayer, - "imageIndex": imageIndex?.encodeToJSON() - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "HEAD", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets the item's image. - - - parameter itemId: (path) Item id. - - parameter imageType: (path) Image type. - - parameter maxWidth: (path) The maximum image width to return. - - parameter maxHeight: (path) The maximum image height to return. - - parameter tag: (path) Optional. Supply the cache tag from the item object to receive strong caching headers. - - parameter format: (path) Determines the output format of the image - original,gif,jpg,png. - - parameter percentPlayed: (path) Optional. Percent to render for the percent played overlay. - - parameter unplayedCount: (path) Optional. Unplayed count overlay to render. - - parameter imageIndex: (path) Image index. - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func headItemImage2(itemId: UUID, imageType: ImageType15, maxWidth: Int, maxHeight: Int, tag: String, format: Format11, percentPlayed: Double, unplayedCount: Int, imageIndex: Int, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - headItemImage2WithRequestBuilder(itemId: itemId, imageType: imageType, maxWidth: maxWidth, maxHeight: maxHeight, tag: tag, format: format, percentPlayed: percentPlayed, unplayedCount: unplayedCount, imageIndex: imageIndex, width: width, height: height, quality: quality, fillWidth: fillWidth, fillHeight: fillHeight, cropWhitespace: cropWhitespace, addPlayedIndicator: addPlayedIndicator, blur: blur, backgroundColor: backgroundColor, foregroundLayer: foregroundLayer).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets the item's image. - - HEAD /Items/{itemId}/Images/{imageType}/{imageIndex}/{tag}/{format}/{maxWidth}/{maxHeight}/{percentPlayed}/{unplayedCount} - - - - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) Item id. - - parameter imageType: (path) Image type. - - parameter maxWidth: (path) The maximum image width to return. - - parameter maxHeight: (path) The maximum image height to return. - - parameter tag: (path) Optional. Supply the cache tag from the item object to receive strong caching headers. - - parameter format: (path) Determines the output format of the image - original,gif,jpg,png. - - parameter percentPlayed: (path) Optional. Percent to render for the percent played overlay. - - parameter unplayedCount: (path) Optional. Unplayed count overlay to render. - - parameter imageIndex: (path) Image index. - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - - returns: RequestBuilder - */ - open class func headItemImage2WithRequestBuilder(itemId: UUID, imageType: ImageType15, maxWidth: Int, maxHeight: Int, tag: String, format: Format11, percentPlayed: Double, unplayedCount: Int, imageIndex: Int, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil) -> RequestBuilder { - var path = "/Items/{itemId}/Images/{imageType}/{imageIndex}/{tag}/{format}/{maxWidth}/{maxHeight}/{percentPlayed}/{unplayedCount}" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let maxWidthPreEscape = "\(maxWidth)" - let maxWidthPostEscape = maxWidthPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{maxWidth}", with: maxWidthPostEscape, options: .literal, range: nil) - let maxHeightPreEscape = "\(maxHeight)" - let maxHeightPostEscape = maxHeightPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{maxHeight}", with: maxHeightPostEscape, options: .literal, range: nil) - let tagPreEscape = "\(tag)" - let tagPostEscape = tagPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{tag}", with: tagPostEscape, options: .literal, range: nil) - let formatPreEscape = "\(format)" - let formatPostEscape = formatPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{format}", with: formatPostEscape, options: .literal, range: nil) - let percentPlayedPreEscape = "\(percentPlayed)" - let percentPlayedPostEscape = percentPlayedPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{percentPlayed}", with: percentPlayedPostEscape, options: .literal, range: nil) - let unplayedCountPreEscape = "\(unplayedCount)" - let unplayedCountPostEscape = unplayedCountPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{unplayedCount}", with: unplayedCountPostEscape, options: .literal, range: nil) - let imageIndexPreEscape = "\(imageIndex)" - let imageIndexPostEscape = imageIndexPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageIndex}", with: imageIndexPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "quality": quality?.encodeToJSON(), - "fillWidth": fillWidth?.encodeToJSON(), - "fillHeight": fillHeight?.encodeToJSON(), - "cropWhitespace": cropWhitespace, - "addPlayedIndicator": addPlayedIndicator, - "blur": blur?.encodeToJSON(), - "backgroundColor": backgroundColor, - "foregroundLayer": foregroundLayer - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "HEAD", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets the item's image. - - - parameter itemId: (path) Item id. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) Image index. - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter format: (query) Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func headItemImageByIndex(itemId: UUID, imageType: ImageType11, imageIndex: Int, maxWidth: Int? = nil, maxHeight: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, tag: String? = nil, cropWhitespace: Bool? = nil, format: Format9? = nil, addPlayedIndicator: Bool? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - headItemImageByIndexWithRequestBuilder(itemId: itemId, imageType: imageType, imageIndex: imageIndex, maxWidth: maxWidth, maxHeight: maxHeight, width: width, height: height, quality: quality, fillWidth: fillWidth, fillHeight: fillHeight, tag: tag, cropWhitespace: cropWhitespace, format: format, addPlayedIndicator: addPlayedIndicator, percentPlayed: percentPlayed, unplayedCount: unplayedCount, blur: blur, backgroundColor: backgroundColor, foregroundLayer: foregroundLayer).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets the item's image. - - HEAD /Items/{itemId}/Images/{imageType}/{imageIndex} - - - - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) Item id. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) Image index. - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter format: (query) Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - - returns: RequestBuilder - */ - open class func headItemImageByIndexWithRequestBuilder(itemId: UUID, imageType: ImageType11, imageIndex: Int, maxWidth: Int? = nil, maxHeight: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, tag: String? = nil, cropWhitespace: Bool? = nil, format: Format9? = nil, addPlayedIndicator: Bool? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil) -> RequestBuilder { - var path = "/Items/{itemId}/Images/{imageType}/{imageIndex}" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let imageIndexPreEscape = "\(imageIndex)" - let imageIndexPostEscape = imageIndexPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageIndex}", with: imageIndexPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "maxWidth": maxWidth?.encodeToJSON(), - "maxHeight": maxHeight?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "quality": quality?.encodeToJSON(), - "fillWidth": fillWidth?.encodeToJSON(), - "fillHeight": fillHeight?.encodeToJSON(), - "tag": tag, - "cropWhitespace": cropWhitespace, - "format": format, - "addPlayedIndicator": addPlayedIndicator, - "percentPlayed": percentPlayed, - "unplayedCount": unplayedCount?.encodeToJSON(), - "blur": blur?.encodeToJSON(), - "backgroundColor": backgroundColor, - "foregroundLayer": foregroundLayer - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "HEAD", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get music genre image by name. - - - parameter name: (path) Music genre name. - - parameter imageType: (path) Image type. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter imageIndex: (query) Image index. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func headMusicGenreImage(name: String, imageType: ImageType18, tag: String? = nil, format: Format13? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, imageIndex: Int? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - headMusicGenreImageWithRequestBuilder(name: name, imageType: imageType, tag: tag, format: format, maxWidth: maxWidth, maxHeight: maxHeight, percentPlayed: percentPlayed, unplayedCount: unplayedCount, width: width, height: height, quality: quality, fillWidth: fillWidth, fillHeight: fillHeight, cropWhitespace: cropWhitespace, addPlayedIndicator: addPlayedIndicator, blur: blur, backgroundColor: backgroundColor, foregroundLayer: foregroundLayer, imageIndex: imageIndex).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get music genre image by name. - - HEAD /MusicGenres/{name}/Images/{imageType} - - - - - examples: [{contentType=application/json, example=""}] - - parameter name: (path) Music genre name. - - parameter imageType: (path) Image type. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter imageIndex: (query) Image index. (optional) - - - returns: RequestBuilder - */ - open class func headMusicGenreImageWithRequestBuilder(name: String, imageType: ImageType18, tag: String? = nil, format: Format13? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, imageIndex: Int? = nil) -> RequestBuilder { - var path = "/MusicGenres/{name}/Images/{imageType}" - let namePreEscape = "\(name)" - let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "tag": tag, - "format": format, - "maxWidth": maxWidth?.encodeToJSON(), - "maxHeight": maxHeight?.encodeToJSON(), - "percentPlayed": percentPlayed, - "unplayedCount": unplayedCount?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "quality": quality?.encodeToJSON(), - "fillWidth": fillWidth?.encodeToJSON(), - "fillHeight": fillHeight?.encodeToJSON(), - "cropWhitespace": cropWhitespace, - "addPlayedIndicator": addPlayedIndicator, - "blur": blur?.encodeToJSON(), - "backgroundColor": backgroundColor, - "foregroundLayer": foregroundLayer, - "imageIndex": imageIndex?.encodeToJSON() - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "HEAD", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get music genre image by name. - - - parameter name: (path) Music genre name. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) Image index. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func headMusicGenreImageByIndex(name: String, imageType: ImageType20, imageIndex: Int, tag: String? = nil, format: Format15? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - headMusicGenreImageByIndexWithRequestBuilder(name: name, imageType: imageType, imageIndex: imageIndex, tag: tag, format: format, maxWidth: maxWidth, maxHeight: maxHeight, percentPlayed: percentPlayed, unplayedCount: unplayedCount, width: width, height: height, quality: quality, fillWidth: fillWidth, fillHeight: fillHeight, cropWhitespace: cropWhitespace, addPlayedIndicator: addPlayedIndicator, blur: blur, backgroundColor: backgroundColor, foregroundLayer: foregroundLayer).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get music genre image by name. - - HEAD /MusicGenres/{name}/Images/{imageType}/{imageIndex} - - - - - examples: [{contentType=application/json, example=""}] - - parameter name: (path) Music genre name. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) Image index. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - - returns: RequestBuilder - */ - open class func headMusicGenreImageByIndexWithRequestBuilder(name: String, imageType: ImageType20, imageIndex: Int, tag: String? = nil, format: Format15? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil) -> RequestBuilder { - var path = "/MusicGenres/{name}/Images/{imageType}/{imageIndex}" - let namePreEscape = "\(name)" - let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let imageIndexPreEscape = "\(imageIndex)" - let imageIndexPostEscape = imageIndexPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageIndex}", with: imageIndexPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "tag": tag, - "format": format, - "maxWidth": maxWidth?.encodeToJSON(), - "maxHeight": maxHeight?.encodeToJSON(), - "percentPlayed": percentPlayed, - "unplayedCount": unplayedCount?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "quality": quality?.encodeToJSON(), - "fillWidth": fillWidth?.encodeToJSON(), - "fillHeight": fillHeight?.encodeToJSON(), - "cropWhitespace": cropWhitespace, - "addPlayedIndicator": addPlayedIndicator, - "blur": blur?.encodeToJSON(), - "backgroundColor": backgroundColor, - "foregroundLayer": foregroundLayer - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "HEAD", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get person image by name. - - - parameter name: (path) Person name. - - parameter imageType: (path) Image type. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter imageIndex: (query) Image index. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func headPersonImage(name: String, imageType: ImageType22, tag: String? = nil, format: Format17? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, imageIndex: Int? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - headPersonImageWithRequestBuilder(name: name, imageType: imageType, tag: tag, format: format, maxWidth: maxWidth, maxHeight: maxHeight, percentPlayed: percentPlayed, unplayedCount: unplayedCount, width: width, height: height, quality: quality, fillWidth: fillWidth, fillHeight: fillHeight, cropWhitespace: cropWhitespace, addPlayedIndicator: addPlayedIndicator, blur: blur, backgroundColor: backgroundColor, foregroundLayer: foregroundLayer, imageIndex: imageIndex).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get person image by name. - - HEAD /Persons/{name}/Images/{imageType} - - - - - examples: [{contentType=application/json, example=""}] - - parameter name: (path) Person name. - - parameter imageType: (path) Image type. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter imageIndex: (query) Image index. (optional) - - - returns: RequestBuilder - */ - open class func headPersonImageWithRequestBuilder(name: String, imageType: ImageType22, tag: String? = nil, format: Format17? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, imageIndex: Int? = nil) -> RequestBuilder { - var path = "/Persons/{name}/Images/{imageType}" - let namePreEscape = "\(name)" - let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "tag": tag, - "format": format, - "maxWidth": maxWidth?.encodeToJSON(), - "maxHeight": maxHeight?.encodeToJSON(), - "percentPlayed": percentPlayed, - "unplayedCount": unplayedCount?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "quality": quality?.encodeToJSON(), - "fillWidth": fillWidth?.encodeToJSON(), - "fillHeight": fillHeight?.encodeToJSON(), - "cropWhitespace": cropWhitespace, - "addPlayedIndicator": addPlayedIndicator, - "blur": blur?.encodeToJSON(), - "backgroundColor": backgroundColor, - "foregroundLayer": foregroundLayer, - "imageIndex": imageIndex?.encodeToJSON() - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "HEAD", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get person image by name. - - - parameter name: (path) Person name. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) Image index. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func headPersonImageByIndex(name: String, imageType: ImageType24, imageIndex: Int, tag: String? = nil, format: Format19? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - headPersonImageByIndexWithRequestBuilder(name: name, imageType: imageType, imageIndex: imageIndex, tag: tag, format: format, maxWidth: maxWidth, maxHeight: maxHeight, percentPlayed: percentPlayed, unplayedCount: unplayedCount, width: width, height: height, quality: quality, fillWidth: fillWidth, fillHeight: fillHeight, cropWhitespace: cropWhitespace, addPlayedIndicator: addPlayedIndicator, blur: blur, backgroundColor: backgroundColor, foregroundLayer: foregroundLayer).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get person image by name. - - HEAD /Persons/{name}/Images/{imageType}/{imageIndex} - - - - - examples: [{contentType=application/json, example=""}] - - parameter name: (path) Person name. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) Image index. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - - returns: RequestBuilder - */ - open class func headPersonImageByIndexWithRequestBuilder(name: String, imageType: ImageType24, imageIndex: Int, tag: String? = nil, format: Format19? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil) -> RequestBuilder { - var path = "/Persons/{name}/Images/{imageType}/{imageIndex}" - let namePreEscape = "\(name)" - let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let imageIndexPreEscape = "\(imageIndex)" - let imageIndexPostEscape = imageIndexPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageIndex}", with: imageIndexPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "tag": tag, - "format": format, - "maxWidth": maxWidth?.encodeToJSON(), - "maxHeight": maxHeight?.encodeToJSON(), - "percentPlayed": percentPlayed, - "unplayedCount": unplayedCount?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "quality": quality?.encodeToJSON(), - "fillWidth": fillWidth?.encodeToJSON(), - "fillHeight": fillHeight?.encodeToJSON(), - "cropWhitespace": cropWhitespace, - "addPlayedIndicator": addPlayedIndicator, - "blur": blur?.encodeToJSON(), - "backgroundColor": backgroundColor, - "foregroundLayer": foregroundLayer - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "HEAD", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get studio image by name. - - - parameter name: (path) Studio name. - - parameter imageType: (path) Image type. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter imageIndex: (query) Image index. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func headStudioImage(name: String, imageType: ImageType26, tag: String? = nil, format: Format21? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, imageIndex: Int? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - headStudioImageWithRequestBuilder(name: name, imageType: imageType, tag: tag, format: format, maxWidth: maxWidth, maxHeight: maxHeight, percentPlayed: percentPlayed, unplayedCount: unplayedCount, width: width, height: height, quality: quality, fillWidth: fillWidth, fillHeight: fillHeight, cropWhitespace: cropWhitespace, addPlayedIndicator: addPlayedIndicator, blur: blur, backgroundColor: backgroundColor, foregroundLayer: foregroundLayer, imageIndex: imageIndex).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get studio image by name. - - HEAD /Studios/{name}/Images/{imageType} - - - - - examples: [{contentType=application/json, example=""}] - - parameter name: (path) Studio name. - - parameter imageType: (path) Image type. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter imageIndex: (query) Image index. (optional) - - - returns: RequestBuilder - */ - open class func headStudioImageWithRequestBuilder(name: String, imageType: ImageType26, tag: String? = nil, format: Format21? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, imageIndex: Int? = nil) -> RequestBuilder { - var path = "/Studios/{name}/Images/{imageType}" - let namePreEscape = "\(name)" - let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "tag": tag, - "format": format, - "maxWidth": maxWidth?.encodeToJSON(), - "maxHeight": maxHeight?.encodeToJSON(), - "percentPlayed": percentPlayed, - "unplayedCount": unplayedCount?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "quality": quality?.encodeToJSON(), - "fillWidth": fillWidth?.encodeToJSON(), - "fillHeight": fillHeight?.encodeToJSON(), - "cropWhitespace": cropWhitespace, - "addPlayedIndicator": addPlayedIndicator, - "blur": blur?.encodeToJSON(), - "backgroundColor": backgroundColor, - "foregroundLayer": foregroundLayer, - "imageIndex": imageIndex?.encodeToJSON() - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "HEAD", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get studio image by name. - - - parameter name: (path) Studio name. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) Image index. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func headStudioImageByIndex(name: String, imageType: ImageType28, imageIndex: Int, tag: String? = nil, format: Format23? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - headStudioImageByIndexWithRequestBuilder(name: name, imageType: imageType, imageIndex: imageIndex, tag: tag, format: format, maxWidth: maxWidth, maxHeight: maxHeight, percentPlayed: percentPlayed, unplayedCount: unplayedCount, width: width, height: height, quality: quality, fillWidth: fillWidth, fillHeight: fillHeight, cropWhitespace: cropWhitespace, addPlayedIndicator: addPlayedIndicator, blur: blur, backgroundColor: backgroundColor, foregroundLayer: foregroundLayer).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get studio image by name. - - HEAD /Studios/{name}/Images/{imageType}/{imageIndex} - - - - - examples: [{contentType=application/json, example=""}] - - parameter name: (path) Studio name. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) Image index. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - - returns: RequestBuilder - */ - open class func headStudioImageByIndexWithRequestBuilder(name: String, imageType: ImageType28, imageIndex: Int, tag: String? = nil, format: Format23? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil) -> RequestBuilder { - var path = "/Studios/{name}/Images/{imageType}/{imageIndex}" - let namePreEscape = "\(name)" - let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let imageIndexPreEscape = "\(imageIndex)" - let imageIndexPostEscape = imageIndexPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageIndex}", with: imageIndexPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "tag": tag, - "format": format, - "maxWidth": maxWidth?.encodeToJSON(), - "maxHeight": maxHeight?.encodeToJSON(), - "percentPlayed": percentPlayed, - "unplayedCount": unplayedCount?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "quality": quality?.encodeToJSON(), - "fillWidth": fillWidth?.encodeToJSON(), - "fillHeight": fillHeight?.encodeToJSON(), - "cropWhitespace": cropWhitespace, - "addPlayedIndicator": addPlayedIndicator, - "blur": blur?.encodeToJSON(), - "backgroundColor": backgroundColor, - "foregroundLayer": foregroundLayer - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "HEAD", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get user profile image. - - - parameter userId: (path) User id. - - parameter imageType: (path) Image type. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter imageIndex: (query) Image index. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func headUserImage(userId: UUID, imageType: ImageType30, tag: String? = nil, format: Format25? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, imageIndex: Int? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - headUserImageWithRequestBuilder(userId: userId, imageType: imageType, tag: tag, format: format, maxWidth: maxWidth, maxHeight: maxHeight, percentPlayed: percentPlayed, unplayedCount: unplayedCount, width: width, height: height, quality: quality, fillWidth: fillWidth, fillHeight: fillHeight, cropWhitespace: cropWhitespace, addPlayedIndicator: addPlayedIndicator, blur: blur, backgroundColor: backgroundColor, foregroundLayer: foregroundLayer, imageIndex: imageIndex).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get user profile image. - - HEAD /Users/{userId}/Images/{imageType} - - - - - examples: [{contentType=application/json, example=""}] - - parameter userId: (path) User id. - - parameter imageType: (path) Image type. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter imageIndex: (query) Image index. (optional) - - - returns: RequestBuilder - */ - open class func headUserImageWithRequestBuilder(userId: UUID, imageType: ImageType30, tag: String? = nil, format: Format25? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, imageIndex: Int? = nil) -> RequestBuilder { - var path = "/Users/{userId}/Images/{imageType}" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "tag": tag, - "format": format, - "maxWidth": maxWidth?.encodeToJSON(), - "maxHeight": maxHeight?.encodeToJSON(), - "percentPlayed": percentPlayed, - "unplayedCount": unplayedCount?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "quality": quality?.encodeToJSON(), - "fillWidth": fillWidth?.encodeToJSON(), - "fillHeight": fillHeight?.encodeToJSON(), - "cropWhitespace": cropWhitespace, - "addPlayedIndicator": addPlayedIndicator, - "blur": blur?.encodeToJSON(), - "backgroundColor": backgroundColor, - "foregroundLayer": foregroundLayer, - "imageIndex": imageIndex?.encodeToJSON() - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "HEAD", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get user profile image. - - - parameter userId: (path) User id. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) Image index. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func headUserImageByIndex(userId: UUID, imageType: ImageType34, imageIndex: Int, tag: String? = nil, format: Format27? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - headUserImageByIndexWithRequestBuilder(userId: userId, imageType: imageType, imageIndex: imageIndex, tag: tag, format: format, maxWidth: maxWidth, maxHeight: maxHeight, percentPlayed: percentPlayed, unplayedCount: unplayedCount, width: width, height: height, quality: quality, fillWidth: fillWidth, fillHeight: fillHeight, cropWhitespace: cropWhitespace, addPlayedIndicator: addPlayedIndicator, blur: blur, backgroundColor: backgroundColor, foregroundLayer: foregroundLayer).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get user profile image. - - HEAD /Users/{userId}/Images/{imageType}/{imageIndex} - - - - - examples: [{contentType=application/json, example=""}] - - parameter userId: (path) User id. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) Image index. - - parameter tag: (query) Optional. Supply the cache tag from the item object to receive strong caching headers. (optional) - - parameter format: (query) Determines the output format of the image - original,gif,jpg,png. (optional) - - parameter maxWidth: (query) The maximum image width to return. (optional) - - parameter maxHeight: (query) The maximum image height to return. (optional) - - parameter percentPlayed: (query) Optional. Percent to render for the percent played overlay. (optional) - - parameter unplayedCount: (query) Optional. Unplayed count overlay to render. (optional) - - parameter width: (query) The fixed image width to return. (optional) - - parameter height: (query) The fixed image height to return. (optional) - - parameter quality: (query) Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. (optional) - - parameter fillWidth: (query) Width of box to fill. (optional) - - parameter fillHeight: (query) Height of box to fill. (optional) - - parameter cropWhitespace: (query) Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. (optional) - - parameter addPlayedIndicator: (query) Optional. Add a played indicator. (optional) - - parameter blur: (query) Optional. Blur image. (optional) - - parameter backgroundColor: (query) Optional. Apply a background color for transparent images. (optional) - - parameter foregroundLayer: (query) Optional. Apply a foreground layer on top of the image. (optional) - - - returns: RequestBuilder - */ - open class func headUserImageByIndexWithRequestBuilder(userId: UUID, imageType: ImageType34, imageIndex: Int, tag: String? = nil, format: Format27? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, percentPlayed: Double? = nil, unplayedCount: Int? = nil, width: Int? = nil, height: Int? = nil, quality: Int? = nil, fillWidth: Int? = nil, fillHeight: Int? = nil, cropWhitespace: Bool? = nil, addPlayedIndicator: Bool? = nil, blur: Int? = nil, backgroundColor: String? = nil, foregroundLayer: String? = nil) -> RequestBuilder { - var path = "/Users/{userId}/Images/{imageType}/{imageIndex}" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let imageIndexPreEscape = "\(imageIndex)" - let imageIndexPostEscape = imageIndexPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageIndex}", with: imageIndexPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "tag": tag, - "format": format, - "maxWidth": maxWidth?.encodeToJSON(), - "maxHeight": maxHeight?.encodeToJSON(), - "percentPlayed": percentPlayed, - "unplayedCount": unplayedCount?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "quality": quality?.encodeToJSON(), - "fillWidth": fillWidth?.encodeToJSON(), - "fillHeight": fillHeight?.encodeToJSON(), - "cropWhitespace": cropWhitespace, - "addPlayedIndicator": addPlayedIndicator, - "blur": blur?.encodeToJSON(), - "backgroundColor": backgroundColor, - "foregroundLayer": foregroundLayer - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "HEAD", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Sets the user image. - - - parameter userId: (path) User Id. - - parameter imageType: (path) (Unused) Image type. - - parameter body: (body) (optional) - - parameter index: (query) (Unused) Image index. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func postUserImage(userId: UUID, imageType: ImageType31, body: Object? = nil, index: Int? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - postUserImageWithRequestBuilder(userId: userId, imageType: imageType, body: body, index: index).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Sets the user image. - - POST /Users/{userId}/Images/{imageType} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter userId: (path) User Id. - - parameter imageType: (path) (Unused) Image type. - - parameter body: (body) (optional) - - parameter index: (query) (Unused) Image index. (optional) - - - returns: RequestBuilder - */ - open class func postUserImageWithRequestBuilder(userId: UUID, imageType: ImageType31, body: Object? = nil, index: Int? = nil) -> RequestBuilder { - var path = "/Users/{userId}/Images/{imageType}" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "index": index?.encodeToJSON() - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Sets the user image. - - - parameter userId: (path) User Id. - - parameter imageType: (path) (Unused) Image type. - - parameter index: (path) (Unused) Image index. - - parameter body: (body) (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func postUserImageByIndex(userId: UUID, imageType: ImageType35, index: Int, body: Object? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - postUserImageByIndexWithRequestBuilder(userId: userId, imageType: imageType, index: index, body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Sets the user image. - - POST /Users/{userId}/Images/{imageType}/{index} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter userId: (path) User Id. - - parameter imageType: (path) (Unused) Image type. - - parameter index: (path) (Unused) Image index. - - parameter body: (body) (optional) - - - returns: RequestBuilder - */ - open class func postUserImageByIndexWithRequestBuilder(userId: UUID, imageType: ImageType35, index: Int, body: Object? = nil) -> RequestBuilder { - var path = "/Users/{userId}/Images/{imageType}/{index}" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let indexPreEscape = "\(index)" - let indexPostEscape = indexPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{index}", with: indexPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Set item image. - - - parameter itemId: (path) Item id. - - parameter imageType: (path) Image type. - - parameter body: (body) (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func setItemImage(itemId: UUID, imageType: ImageType8, body: Object? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - setItemImageWithRequestBuilder(itemId: itemId, imageType: imageType, body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Set item image. - - POST /Items/{itemId}/Images/{imageType} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter itemId: (path) Item id. - - parameter imageType: (path) Image type. - - parameter body: (body) (optional) - - - returns: RequestBuilder - */ - open class func setItemImageWithRequestBuilder(itemId: UUID, imageType: ImageType8, body: Object? = nil) -> RequestBuilder { - var path = "/Items/{itemId}/Images/{imageType}" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Set item image. - - - parameter itemId: (path) Item id. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) (Unused) Image index. - - parameter body: (body) (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func setItemImageByIndex(itemId: UUID, imageType: ImageType12, imageIndex: Int, body: Object? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - setItemImageByIndexWithRequestBuilder(itemId: itemId, imageType: imageType, imageIndex: imageIndex, body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Set item image. - - POST /Items/{itemId}/Images/{imageType}/{imageIndex} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter itemId: (path) Item id. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) (Unused) Image index. - - parameter body: (body) (optional) - - - returns: RequestBuilder - */ - open class func setItemImageByIndexWithRequestBuilder(itemId: UUID, imageType: ImageType12, imageIndex: Int, body: Object? = nil) -> RequestBuilder { - var path = "/Items/{itemId}/Images/{imageType}/{imageIndex}" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let imageIndexPreEscape = "\(imageIndex)" - let imageIndexPostEscape = imageIndexPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageIndex}", with: imageIndexPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Updates the index for an item image. - - - parameter itemId: (path) Item id. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) Old image index. - - parameter newIndex: (query) New image index. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func updateItemImageIndex(itemId: UUID, imageType: ImageType16, imageIndex: Int, newIndex: Int, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - updateItemImageIndexWithRequestBuilder(itemId: itemId, imageType: imageType, imageIndex: imageIndex, newIndex: newIndex).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Updates the index for an item image. - - POST /Items/{itemId}/Images/{imageType}/{imageIndex}/Index - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter itemId: (path) Item id. - - parameter imageType: (path) Image type. - - parameter imageIndex: (path) Old image index. - - parameter newIndex: (query) New image index. - - - returns: RequestBuilder - */ - open class func updateItemImageIndexWithRequestBuilder(itemId: UUID, imageType: ImageType16, imageIndex: Int, newIndex: Int) -> RequestBuilder { - var path = "/Items/{itemId}/Images/{imageType}/{imageIndex}/Index" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let imageTypePreEscape = "\(imageType)" - let imageTypePostEscape = imageTypePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageType}", with: imageTypePostEscape, options: .literal, range: nil) - let imageIndexPreEscape = "\(imageIndex)" - let imageIndexPostEscape = imageIndexPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{imageIndex}", with: imageIndexPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "newIndex": newIndex.encodeToJSON() - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/ImageByNameAPI.swift b/JellyfinPlayer/Swaggers/APIs/ImageByNameAPI.swift deleted file mode 100644 index 1420a7dc..00000000 --- a/JellyfinPlayer/Swaggers/APIs/ImageByNameAPI.swift +++ /dev/null @@ -1,280 +0,0 @@ -// -// ImageByNameAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class ImageByNameAPI { - /** - Get General Image. - - - parameter name: (path) The name of the image. - - parameter type: (path) Image Type (primary, backdrop, logo, etc). - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getGeneralImage(name: String, type: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getGeneralImageWithRequestBuilder(name: name, type: type).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get General Image. - - GET /Images/General/{name}/{type} - - - - - examples: [{contentType=application/json, example=""}] - - parameter name: (path) The name of the image. - - parameter type: (path) Image Type (primary, backdrop, logo, etc). - - - returns: RequestBuilder - */ - open class func getGeneralImageWithRequestBuilder(name: String, type: String) -> RequestBuilder { - var path = "/Images/General/{name}/{type}" - let namePreEscape = "\(name)" - let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil) - let typePreEscape = "\(type)" - let typePostEscape = typePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{type}", with: typePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get all general images. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getGeneralImages(completion: @escaping ((_ data: [ImageByNameInfo]?,_ error: Error?) -> Void)) { - getGeneralImagesWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get all general images. - - GET /Images/General - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "Context" : "Context", - "Format" : "Format", - "Theme" : "Theme", - "Name" : "Name", - "FileLength" : 0 -}, { - "Context" : "Context", - "Format" : "Format", - "Theme" : "Theme", - "Name" : "Name", - "FileLength" : 0 -} ]}] - - - returns: RequestBuilder<[ImageByNameInfo]> - */ - open class func getGeneralImagesWithRequestBuilder() -> RequestBuilder<[ImageByNameInfo]> { - let path = "/Images/General" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[ImageByNameInfo]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get media info image. - - - parameter theme: (path) The theme to get the image from. - - parameter name: (path) The name of the image. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getMediaInfoImage(theme: String, name: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getMediaInfoImageWithRequestBuilder(theme: theme, name: name).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get media info image. - - GET /Images/MediaInfo/{theme}/{name} - - - - - examples: [{contentType=application/json, example=""}] - - parameter theme: (path) The theme to get the image from. - - parameter name: (path) The name of the image. - - - returns: RequestBuilder - */ - open class func getMediaInfoImageWithRequestBuilder(theme: String, name: String) -> RequestBuilder { - var path = "/Images/MediaInfo/{theme}/{name}" - let themePreEscape = "\(theme)" - let themePostEscape = themePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{theme}", with: themePostEscape, options: .literal, range: nil) - let namePreEscape = "\(name)" - let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get all media info images. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getMediaInfoImages(completion: @escaping ((_ data: [ImageByNameInfo]?,_ error: Error?) -> Void)) { - getMediaInfoImagesWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get all media info images. - - GET /Images/MediaInfo - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "Context" : "Context", - "Format" : "Format", - "Theme" : "Theme", - "Name" : "Name", - "FileLength" : 0 -}, { - "Context" : "Context", - "Format" : "Format", - "Theme" : "Theme", - "Name" : "Name", - "FileLength" : 0 -} ]}] - - - returns: RequestBuilder<[ImageByNameInfo]> - */ - open class func getMediaInfoImagesWithRequestBuilder() -> RequestBuilder<[ImageByNameInfo]> { - let path = "/Images/MediaInfo" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[ImageByNameInfo]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get rating image. - - - parameter theme: (path) The theme to get the image from. - - parameter name: (path) The name of the image. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getRatingImage(theme: String, name: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getRatingImageWithRequestBuilder(theme: theme, name: name).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get rating image. - - GET /Images/Ratings/{theme}/{name} - - - - - examples: [{contentType=application/json, example=""}] - - parameter theme: (path) The theme to get the image from. - - parameter name: (path) The name of the image. - - - returns: RequestBuilder - */ - open class func getRatingImageWithRequestBuilder(theme: String, name: String) -> RequestBuilder { - var path = "/Images/Ratings/{theme}/{name}" - let themePreEscape = "\(theme)" - let themePostEscape = themePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{theme}", with: themePostEscape, options: .literal, range: nil) - let namePreEscape = "\(name)" - let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get all general images. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getRatingImages(completion: @escaping ((_ data: [ImageByNameInfo]?,_ error: Error?) -> Void)) { - getRatingImagesWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get all general images. - - GET /Images/Ratings - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "Context" : "Context", - "Format" : "Format", - "Theme" : "Theme", - "Name" : "Name", - "FileLength" : 0 -}, { - "Context" : "Context", - "Format" : "Format", - "Theme" : "Theme", - "Name" : "Name", - "FileLength" : 0 -} ]}] - - - returns: RequestBuilder<[ImageByNameInfo]> - */ - open class func getRatingImagesWithRequestBuilder() -> RequestBuilder<[ImageByNameInfo]> { - let path = "/Images/Ratings" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[ImageByNameInfo]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/InstantMixAPI.swift b/JellyfinPlayer/Swaggers/APIs/InstantMixAPI.swift deleted file mode 100644 index 127b332f..00000000 --- a/JellyfinPlayer/Swaggers/APIs/InstantMixAPI.swift +++ /dev/null @@ -1,12024 +0,0 @@ -// -// InstantMixAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class InstantMixAPI { - /** - Creates an instant playlist based on a given album. - - - parameter _id: (path) The item id. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getInstantMixFromAlbum(_id: UUID, userId: UUID? = nil, limit: Int? = nil, fields: [ItemFields]? = nil, enableImages: Bool? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getInstantMixFromAlbumWithRequestBuilder(_id: _id, userId: userId, limit: limit, fields: fields, enableImages: enableImages, enableUserData: enableUserData, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Creates an instant playlist based on a given album. - - GET /Albums/{id}/InstantMix - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter _id: (path) The item id. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - - returns: RequestBuilder - */ - open class func getInstantMixFromAlbumWithRequestBuilder(_id: UUID, userId: UUID? = nil, limit: Int? = nil, fields: [ItemFields]? = nil, enableImages: Bool? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil) -> RequestBuilder { - var path = "/Albums/{id}/InstantMix" - let _idPreEscape = "\(_id)" - let _idPostEscape = _idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{id}", with: _idPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId, - "limit": limit?.encodeToJSON(), - "fields": fields, - "enableImages": enableImages, - "enableUserData": enableUserData, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Creates an instant playlist based on a given artist. - - - parameter _id: (path) The item id. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getInstantMixFromArtists(_id: UUID, userId: UUID? = nil, limit: Int? = nil, fields: [ItemFields]? = nil, enableImages: Bool? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getInstantMixFromArtistsWithRequestBuilder(_id: _id, userId: userId, limit: limit, fields: fields, enableImages: enableImages, enableUserData: enableUserData, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Creates an instant playlist based on a given artist. - - GET /Artists/{id}/InstantMix - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter _id: (path) The item id. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - - returns: RequestBuilder - */ - open class func getInstantMixFromArtistsWithRequestBuilder(_id: UUID, userId: UUID? = nil, limit: Int? = nil, fields: [ItemFields]? = nil, enableImages: Bool? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil) -> RequestBuilder { - var path = "/Artists/{id}/InstantMix" - let _idPreEscape = "\(_id)" - let _idPostEscape = _idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{id}", with: _idPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId, - "limit": limit?.encodeToJSON(), - "fields": fields, - "enableImages": enableImages, - "enableUserData": enableUserData, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Creates an instant playlist based on a given artist. - - - parameter _id: (query) The item id. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getInstantMixFromArtists2(_id: UUID, userId: UUID? = nil, limit: Int? = nil, fields: [ItemFields]? = nil, enableImages: Bool? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getInstantMixFromArtists2WithRequestBuilder(_id: _id, userId: userId, limit: limit, fields: fields, enableImages: enableImages, enableUserData: enableUserData, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Creates an instant playlist based on a given artist. - - GET /Artists/InstantMix - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter _id: (query) The item id. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - - returns: RequestBuilder - */ - open class func getInstantMixFromArtists2WithRequestBuilder(_id: UUID, userId: UUID? = nil, limit: Int? = nil, fields: [ItemFields]? = nil, enableImages: Bool? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil) -> RequestBuilder { - let path = "/Artists/InstantMix" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "id": _id, - "userId": userId, - "limit": limit?.encodeToJSON(), - "fields": fields, - "enableImages": enableImages, - "enableUserData": enableUserData, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Creates an instant playlist based on a given item. - - - parameter _id: (path) The item id. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getInstantMixFromItem(_id: UUID, userId: UUID? = nil, limit: Int? = nil, fields: [ItemFields]? = nil, enableImages: Bool? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getInstantMixFromItemWithRequestBuilder(_id: _id, userId: userId, limit: limit, fields: fields, enableImages: enableImages, enableUserData: enableUserData, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Creates an instant playlist based on a given item. - - GET /Items/{id}/InstantMix - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter _id: (path) The item id. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - - returns: RequestBuilder - */ - open class func getInstantMixFromItemWithRequestBuilder(_id: UUID, userId: UUID? = nil, limit: Int? = nil, fields: [ItemFields]? = nil, enableImages: Bool? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil) -> RequestBuilder { - var path = "/Items/{id}/InstantMix" - let _idPreEscape = "\(_id)" - let _idPostEscape = _idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{id}", with: _idPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId, - "limit": limit?.encodeToJSON(), - "fields": fields, - "enableImages": enableImages, - "enableUserData": enableUserData, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Creates an instant playlist based on a given genre. - - - parameter _id: (path) The item id. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getInstantMixFromMusicGenreById(_id: UUID, userId: UUID? = nil, limit: Int? = nil, fields: [ItemFields]? = nil, enableImages: Bool? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getInstantMixFromMusicGenreByIdWithRequestBuilder(_id: _id, userId: userId, limit: limit, fields: fields, enableImages: enableImages, enableUserData: enableUserData, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Creates an instant playlist based on a given genre. - - GET /MusicGenres/{id}/InstantMix - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter _id: (path) The item id. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - - returns: RequestBuilder - */ - open class func getInstantMixFromMusicGenreByIdWithRequestBuilder(_id: UUID, userId: UUID? = nil, limit: Int? = nil, fields: [ItemFields]? = nil, enableImages: Bool? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil) -> RequestBuilder { - var path = "/MusicGenres/{id}/InstantMix" - let _idPreEscape = "\(_id)" - let _idPostEscape = _idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{id}", with: _idPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId, - "limit": limit?.encodeToJSON(), - "fields": fields, - "enableImages": enableImages, - "enableUserData": enableUserData, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Creates an instant playlist based on a given genre. - - - parameter _id: (query) The item id. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getInstantMixFromMusicGenreById2(_id: UUID, userId: UUID? = nil, limit: Int? = nil, fields: [ItemFields]? = nil, enableImages: Bool? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getInstantMixFromMusicGenreById2WithRequestBuilder(_id: _id, userId: userId, limit: limit, fields: fields, enableImages: enableImages, enableUserData: enableUserData, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Creates an instant playlist based on a given genre. - - GET /MusicGenres/InstantMix - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter _id: (query) The item id. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - - returns: RequestBuilder - */ - open class func getInstantMixFromMusicGenreById2WithRequestBuilder(_id: UUID, userId: UUID? = nil, limit: Int? = nil, fields: [ItemFields]? = nil, enableImages: Bool? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil) -> RequestBuilder { - let path = "/MusicGenres/InstantMix" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "id": _id, - "userId": userId, - "limit": limit?.encodeToJSON(), - "fields": fields, - "enableImages": enableImages, - "enableUserData": enableUserData, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Creates an instant playlist based on a given genre. - - - parameter name: (path) The genre name. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getInstantMixFromMusicGenreByName(name: String, userId: UUID? = nil, limit: Int? = nil, fields: [ItemFields]? = nil, enableImages: Bool? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getInstantMixFromMusicGenreByNameWithRequestBuilder(name: name, userId: userId, limit: limit, fields: fields, enableImages: enableImages, enableUserData: enableUserData, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Creates an instant playlist based on a given genre. - - GET /MusicGenres/{name}/InstantMix - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter name: (path) The genre name. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - - returns: RequestBuilder - */ - open class func getInstantMixFromMusicGenreByNameWithRequestBuilder(name: String, userId: UUID? = nil, limit: Int? = nil, fields: [ItemFields]? = nil, enableImages: Bool? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil) -> RequestBuilder { - var path = "/MusicGenres/{name}/InstantMix" - let namePreEscape = "\(name)" - let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId, - "limit": limit?.encodeToJSON(), - "fields": fields, - "enableImages": enableImages, - "enableUserData": enableUserData, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Creates an instant playlist based on a given playlist. - - - parameter _id: (path) The item id. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getInstantMixFromPlaylist(_id: UUID, userId: UUID? = nil, limit: Int? = nil, fields: [ItemFields]? = nil, enableImages: Bool? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getInstantMixFromPlaylistWithRequestBuilder(_id: _id, userId: userId, limit: limit, fields: fields, enableImages: enableImages, enableUserData: enableUserData, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Creates an instant playlist based on a given playlist. - - GET /Playlists/{id}/InstantMix - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter _id: (path) The item id. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - - returns: RequestBuilder - */ - open class func getInstantMixFromPlaylistWithRequestBuilder(_id: UUID, userId: UUID? = nil, limit: Int? = nil, fields: [ItemFields]? = nil, enableImages: Bool? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil) -> RequestBuilder { - var path = "/Playlists/{id}/InstantMix" - let _idPreEscape = "\(_id)" - let _idPostEscape = _idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{id}", with: _idPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId, - "limit": limit?.encodeToJSON(), - "fields": fields, - "enableImages": enableImages, - "enableUserData": enableUserData, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Creates an instant playlist based on a given song. - - - parameter _id: (path) The item id. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getInstantMixFromSong(_id: UUID, userId: UUID? = nil, limit: Int? = nil, fields: [ItemFields]? = nil, enableImages: Bool? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getInstantMixFromSongWithRequestBuilder(_id: _id, userId: userId, limit: limit, fields: fields, enableImages: enableImages, enableUserData: enableUserData, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Creates an instant playlist based on a given song. - - GET /Songs/{id}/InstantMix - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter _id: (path) The item id. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - - returns: RequestBuilder - */ - open class func getInstantMixFromSongWithRequestBuilder(_id: UUID, userId: UUID? = nil, limit: Int? = nil, fields: [ItemFields]? = nil, enableImages: Bool? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil) -> RequestBuilder { - var path = "/Songs/{id}/InstantMix" - let _idPreEscape = "\(_id)" - let _idPostEscape = _idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{id}", with: _idPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId, - "limit": limit?.encodeToJSON(), - "fields": fields, - "enableImages": enableImages, - "enableUserData": enableUserData, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/ItemLookupAPI.swift b/JellyfinPlayer/Swaggers/APIs/ItemLookupAPI.swift deleted file mode 100644 index 4a69ed07..00000000 --- a/JellyfinPlayer/Swaggers/APIs/ItemLookupAPI.swift +++ /dev/null @@ -1,716 +0,0 @@ -// -// ItemLookupAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class ItemLookupAPI { - /** - Applies search criteria to an item and refreshes metadata. - - - parameter body: (body) The remote search result. - - parameter itemId: (path) Item id. - - parameter replaceAllImages: (query) Optional. Whether or not to replace all images. Default: True. (optional, default to true) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func applySearchCriteria(body: ApplyItemIdBody, itemId: UUID, replaceAllImages: Bool? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - applySearchCriteriaWithRequestBuilder(body: body, itemId: itemId, replaceAllImages: replaceAllImages).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Applies search criteria to an item and refreshes metadata. - - POST /Items/RemoteSearch/Apply/{itemId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The remote search result. - - parameter itemId: (path) Item id. - - parameter replaceAllImages: (query) Optional. Whether or not to replace all images. Default: True. (optional, default to true) - - - returns: RequestBuilder - */ - open class func applySearchCriteriaWithRequestBuilder(body: ApplyItemIdBody, itemId: UUID, replaceAllImages: Bool? = nil) -> RequestBuilder { - var path = "/Items/RemoteSearch/Apply/{itemId}" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "replaceAllImages": replaceAllImages - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Get book remote search. - - - parameter body: (body) Remote search query. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getBookRemoteSearchResults(body: RemoteSearchBookBody, completion: @escaping ((_ data: [RemoteSearchResult]?,_ error: Error?) -> Void)) { - getBookRemoteSearchResultsWithRequestBuilder(body: body).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get book remote search. - - POST /Items/RemoteSearch/Book - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "IndexNumberEnd" : 1, - "ProductionYear" : 0, - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "ImageUrl" : "ImageUrl", - "IndexNumber" : 6, - "Overview" : "Overview", - "ParentIndexNumber" : 5, - "SearchProviderName" : "SearchProviderName", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "Artists" : [ null, null ], - "AlbumArtist" : "", - "Name" : "Name" -}, { - "IndexNumberEnd" : 1, - "ProductionYear" : 0, - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "ImageUrl" : "ImageUrl", - "IndexNumber" : 6, - "Overview" : "Overview", - "ParentIndexNumber" : 5, - "SearchProviderName" : "SearchProviderName", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "Artists" : [ null, null ], - "AlbumArtist" : "", - "Name" : "Name" -} ]}] - - parameter body: (body) Remote search query. - - - returns: RequestBuilder<[RemoteSearchResult]> - */ - open class func getBookRemoteSearchResultsWithRequestBuilder(body: RemoteSearchBookBody) -> RequestBuilder<[RemoteSearchResult]> { - let path = "/Items/RemoteSearch/Book" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[RemoteSearchResult]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Get box set remote search. - - - parameter body: (body) Remote search query. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getBoxSetRemoteSearchResults(body: RemoteSearchBoxSetBody, completion: @escaping ((_ data: [RemoteSearchResult]?,_ error: Error?) -> Void)) { - getBoxSetRemoteSearchResultsWithRequestBuilder(body: body).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get box set remote search. - - POST /Items/RemoteSearch/BoxSet - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "IndexNumberEnd" : 1, - "ProductionYear" : 0, - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "ImageUrl" : "ImageUrl", - "IndexNumber" : 6, - "Overview" : "Overview", - "ParentIndexNumber" : 5, - "SearchProviderName" : "SearchProviderName", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "Artists" : [ null, null ], - "AlbumArtist" : "", - "Name" : "Name" -}, { - "IndexNumberEnd" : 1, - "ProductionYear" : 0, - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "ImageUrl" : "ImageUrl", - "IndexNumber" : 6, - "Overview" : "Overview", - "ParentIndexNumber" : 5, - "SearchProviderName" : "SearchProviderName", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "Artists" : [ null, null ], - "AlbumArtist" : "", - "Name" : "Name" -} ]}] - - parameter body: (body) Remote search query. - - - returns: RequestBuilder<[RemoteSearchResult]> - */ - open class func getBoxSetRemoteSearchResultsWithRequestBuilder(body: RemoteSearchBoxSetBody) -> RequestBuilder<[RemoteSearchResult]> { - let path = "/Items/RemoteSearch/BoxSet" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[RemoteSearchResult]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Get the item's external id info. - - - parameter itemId: (path) Item id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getExternalIdInfos(itemId: UUID, completion: @escaping ((_ data: [ExternalIdInfo]?,_ error: Error?) -> Void)) { - getExternalIdInfosWithRequestBuilder(itemId: itemId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get the item's external id info. - - GET /Items/{itemId}/ExternalIdInfos - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "Type" : "", - "Key" : "Key", - "Name" : "Name", - "UrlFormatString" : "UrlFormatString" -}, { - "Type" : "", - "Key" : "Key", - "Name" : "Name", - "UrlFormatString" : "UrlFormatString" -} ]}] - - parameter itemId: (path) Item id. - - - returns: RequestBuilder<[ExternalIdInfo]> - */ - open class func getExternalIdInfosWithRequestBuilder(itemId: UUID) -> RequestBuilder<[ExternalIdInfo]> { - var path = "/Items/{itemId}/ExternalIdInfos" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[ExternalIdInfo]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get movie remote search. - - - parameter body: (body) Remote search query. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getMovieRemoteSearchResults(body: RemoteSearchMovieBody, completion: @escaping ((_ data: [RemoteSearchResult]?,_ error: Error?) -> Void)) { - getMovieRemoteSearchResultsWithRequestBuilder(body: body).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get movie remote search. - - POST /Items/RemoteSearch/Movie - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "IndexNumberEnd" : 1, - "ProductionYear" : 0, - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "ImageUrl" : "ImageUrl", - "IndexNumber" : 6, - "Overview" : "Overview", - "ParentIndexNumber" : 5, - "SearchProviderName" : "SearchProviderName", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "Artists" : [ null, null ], - "AlbumArtist" : "", - "Name" : "Name" -}, { - "IndexNumberEnd" : 1, - "ProductionYear" : 0, - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "ImageUrl" : "ImageUrl", - "IndexNumber" : 6, - "Overview" : "Overview", - "ParentIndexNumber" : 5, - "SearchProviderName" : "SearchProviderName", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "Artists" : [ null, null ], - "AlbumArtist" : "", - "Name" : "Name" -} ]}] - - parameter body: (body) Remote search query. - - - returns: RequestBuilder<[RemoteSearchResult]> - */ - open class func getMovieRemoteSearchResultsWithRequestBuilder(body: RemoteSearchMovieBody) -> RequestBuilder<[RemoteSearchResult]> { - let path = "/Items/RemoteSearch/Movie" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[RemoteSearchResult]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Get music album remote search. - - - parameter body: (body) Remote search query. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getMusicAlbumRemoteSearchResults(body: RemoteSearchMusicAlbumBody, completion: @escaping ((_ data: [RemoteSearchResult]?,_ error: Error?) -> Void)) { - getMusicAlbumRemoteSearchResultsWithRequestBuilder(body: body).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get music album remote search. - - POST /Items/RemoteSearch/MusicAlbum - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "IndexNumberEnd" : 1, - "ProductionYear" : 0, - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "ImageUrl" : "ImageUrl", - "IndexNumber" : 6, - "Overview" : "Overview", - "ParentIndexNumber" : 5, - "SearchProviderName" : "SearchProviderName", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "Artists" : [ null, null ], - "AlbumArtist" : "", - "Name" : "Name" -}, { - "IndexNumberEnd" : 1, - "ProductionYear" : 0, - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "ImageUrl" : "ImageUrl", - "IndexNumber" : 6, - "Overview" : "Overview", - "ParentIndexNumber" : 5, - "SearchProviderName" : "SearchProviderName", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "Artists" : [ null, null ], - "AlbumArtist" : "", - "Name" : "Name" -} ]}] - - parameter body: (body) Remote search query. - - - returns: RequestBuilder<[RemoteSearchResult]> - */ - open class func getMusicAlbumRemoteSearchResultsWithRequestBuilder(body: RemoteSearchMusicAlbumBody) -> RequestBuilder<[RemoteSearchResult]> { - let path = "/Items/RemoteSearch/MusicAlbum" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[RemoteSearchResult]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Get music artist remote search. - - - parameter body: (body) Remote search query. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getMusicArtistRemoteSearchResults(body: RemoteSearchMusicArtistBody, completion: @escaping ((_ data: [RemoteSearchResult]?,_ error: Error?) -> Void)) { - getMusicArtistRemoteSearchResultsWithRequestBuilder(body: body).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get music artist remote search. - - POST /Items/RemoteSearch/MusicArtist - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "IndexNumberEnd" : 1, - "ProductionYear" : 0, - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "ImageUrl" : "ImageUrl", - "IndexNumber" : 6, - "Overview" : "Overview", - "ParentIndexNumber" : 5, - "SearchProviderName" : "SearchProviderName", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "Artists" : [ null, null ], - "AlbumArtist" : "", - "Name" : "Name" -}, { - "IndexNumberEnd" : 1, - "ProductionYear" : 0, - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "ImageUrl" : "ImageUrl", - "IndexNumber" : 6, - "Overview" : "Overview", - "ParentIndexNumber" : 5, - "SearchProviderName" : "SearchProviderName", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "Artists" : [ null, null ], - "AlbumArtist" : "", - "Name" : "Name" -} ]}] - - parameter body: (body) Remote search query. - - - returns: RequestBuilder<[RemoteSearchResult]> - */ - open class func getMusicArtistRemoteSearchResultsWithRequestBuilder(body: RemoteSearchMusicArtistBody) -> RequestBuilder<[RemoteSearchResult]> { - let path = "/Items/RemoteSearch/MusicArtist" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[RemoteSearchResult]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Get music video remote search. - - - parameter body: (body) Remote search query. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getMusicVideoRemoteSearchResults(body: RemoteSearchMusicVideoBody, completion: @escaping ((_ data: [RemoteSearchResult]?,_ error: Error?) -> Void)) { - getMusicVideoRemoteSearchResultsWithRequestBuilder(body: body).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get music video remote search. - - POST /Items/RemoteSearch/MusicVideo - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "IndexNumberEnd" : 1, - "ProductionYear" : 0, - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "ImageUrl" : "ImageUrl", - "IndexNumber" : 6, - "Overview" : "Overview", - "ParentIndexNumber" : 5, - "SearchProviderName" : "SearchProviderName", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "Artists" : [ null, null ], - "AlbumArtist" : "", - "Name" : "Name" -}, { - "IndexNumberEnd" : 1, - "ProductionYear" : 0, - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "ImageUrl" : "ImageUrl", - "IndexNumber" : 6, - "Overview" : "Overview", - "ParentIndexNumber" : 5, - "SearchProviderName" : "SearchProviderName", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "Artists" : [ null, null ], - "AlbumArtist" : "", - "Name" : "Name" -} ]}] - - parameter body: (body) Remote search query. - - - returns: RequestBuilder<[RemoteSearchResult]> - */ - open class func getMusicVideoRemoteSearchResultsWithRequestBuilder(body: RemoteSearchMusicVideoBody) -> RequestBuilder<[RemoteSearchResult]> { - let path = "/Items/RemoteSearch/MusicVideo" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[RemoteSearchResult]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Get person remote search. - - - parameter body: (body) Remote search query. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getPersonRemoteSearchResults(body: RemoteSearchPersonBody, completion: @escaping ((_ data: [RemoteSearchResult]?,_ error: Error?) -> Void)) { - getPersonRemoteSearchResultsWithRequestBuilder(body: body).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get person remote search. - - POST /Items/RemoteSearch/Person - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "IndexNumberEnd" : 1, - "ProductionYear" : 0, - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "ImageUrl" : "ImageUrl", - "IndexNumber" : 6, - "Overview" : "Overview", - "ParentIndexNumber" : 5, - "SearchProviderName" : "SearchProviderName", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "Artists" : [ null, null ], - "AlbumArtist" : "", - "Name" : "Name" -}, { - "IndexNumberEnd" : 1, - "ProductionYear" : 0, - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "ImageUrl" : "ImageUrl", - "IndexNumber" : 6, - "Overview" : "Overview", - "ParentIndexNumber" : 5, - "SearchProviderName" : "SearchProviderName", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "Artists" : [ null, null ], - "AlbumArtist" : "", - "Name" : "Name" -} ]}] - - parameter body: (body) Remote search query. - - - returns: RequestBuilder<[RemoteSearchResult]> - */ - open class func getPersonRemoteSearchResultsWithRequestBuilder(body: RemoteSearchPersonBody) -> RequestBuilder<[RemoteSearchResult]> { - let path = "/Items/RemoteSearch/Person" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[RemoteSearchResult]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Get series remote search. - - - parameter body: (body) Remote search query. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getSeriesRemoteSearchResults(body: RemoteSearchSeriesBody, completion: @escaping ((_ data: [RemoteSearchResult]?,_ error: Error?) -> Void)) { - getSeriesRemoteSearchResultsWithRequestBuilder(body: body).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get series remote search. - - POST /Items/RemoteSearch/Series - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "IndexNumberEnd" : 1, - "ProductionYear" : 0, - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "ImageUrl" : "ImageUrl", - "IndexNumber" : 6, - "Overview" : "Overview", - "ParentIndexNumber" : 5, - "SearchProviderName" : "SearchProviderName", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "Artists" : [ null, null ], - "AlbumArtist" : "", - "Name" : "Name" -}, { - "IndexNumberEnd" : 1, - "ProductionYear" : 0, - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "ImageUrl" : "ImageUrl", - "IndexNumber" : 6, - "Overview" : "Overview", - "ParentIndexNumber" : 5, - "SearchProviderName" : "SearchProviderName", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "Artists" : [ null, null ], - "AlbumArtist" : "", - "Name" : "Name" -} ]}] - - parameter body: (body) Remote search query. - - - returns: RequestBuilder<[RemoteSearchResult]> - */ - open class func getSeriesRemoteSearchResultsWithRequestBuilder(body: RemoteSearchSeriesBody) -> RequestBuilder<[RemoteSearchResult]> { - let path = "/Items/RemoteSearch/Series" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[RemoteSearchResult]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Get trailer remote search. - - - parameter body: (body) Remote search query. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getTrailerRemoteSearchResults(body: RemoteSearchTrailerBody, completion: @escaping ((_ data: [RemoteSearchResult]?,_ error: Error?) -> Void)) { - getTrailerRemoteSearchResultsWithRequestBuilder(body: body).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get trailer remote search. - - POST /Items/RemoteSearch/Trailer - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "IndexNumberEnd" : 1, - "ProductionYear" : 0, - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "ImageUrl" : "ImageUrl", - "IndexNumber" : 6, - "Overview" : "Overview", - "ParentIndexNumber" : 5, - "SearchProviderName" : "SearchProviderName", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "Artists" : [ null, null ], - "AlbumArtist" : "", - "Name" : "Name" -}, { - "IndexNumberEnd" : 1, - "ProductionYear" : 0, - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "ImageUrl" : "ImageUrl", - "IndexNumber" : 6, - "Overview" : "Overview", - "ParentIndexNumber" : 5, - "SearchProviderName" : "SearchProviderName", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "Artists" : [ null, null ], - "AlbumArtist" : "", - "Name" : "Name" -} ]}] - - parameter body: (body) Remote search query. - - - returns: RequestBuilder<[RemoteSearchResult]> - */ - open class func getTrailerRemoteSearchResultsWithRequestBuilder(body: RemoteSearchTrailerBody) -> RequestBuilder<[RemoteSearchResult]> { - let path = "/Items/RemoteSearch/Trailer" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[RemoteSearchResult]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/ItemRefreshAPI.swift b/JellyfinPlayer/Swaggers/APIs/ItemRefreshAPI.swift deleted file mode 100644 index 2d5d286a..00000000 --- a/JellyfinPlayer/Swaggers/APIs/ItemRefreshAPI.swift +++ /dev/null @@ -1,70 +0,0 @@ -// -// ItemRefreshAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class ItemRefreshAPI { - /** - Refreshes metadata for an item. - - - parameter itemId: (path) Item id. - - parameter metadataRefreshMode: (query) (Optional) Specifies the metadata refresh mode. (optional) - - parameter imageRefreshMode: (query) (Optional) Specifies the image refresh mode. (optional) - - parameter replaceAllMetadata: (query) (Optional) Determines if metadata should be replaced. Only applicable if mode is FullRefresh. (optional, default to false) - - parameter replaceAllImages: (query) (Optional) Determines if images should be replaced. Only applicable if mode is FullRefresh. (optional, default to false) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func post(itemId: UUID, metadataRefreshMode: MetadataRefreshMode? = nil, imageRefreshMode: ImageRefreshMode? = nil, replaceAllMetadata: Bool? = nil, replaceAllImages: Bool? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - postWithRequestBuilder(itemId: itemId, metadataRefreshMode: metadataRefreshMode, imageRefreshMode: imageRefreshMode, replaceAllMetadata: replaceAllMetadata, replaceAllImages: replaceAllImages).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Refreshes metadata for an item. - - POST /Items/{itemId}/Refresh - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter itemId: (path) Item id. - - parameter metadataRefreshMode: (query) (Optional) Specifies the metadata refresh mode. (optional) - - parameter imageRefreshMode: (query) (Optional) Specifies the image refresh mode. (optional) - - parameter replaceAllMetadata: (query) (Optional) Determines if metadata should be replaced. Only applicable if mode is FullRefresh. (optional, default to false) - - parameter replaceAllImages: (query) (Optional) Determines if images should be replaced. Only applicable if mode is FullRefresh. (optional, default to false) - - - returns: RequestBuilder - */ - open class func postWithRequestBuilder(itemId: UUID, metadataRefreshMode: MetadataRefreshMode? = nil, imageRefreshMode: ImageRefreshMode? = nil, replaceAllMetadata: Bool? = nil, replaceAllImages: Bool? = nil) -> RequestBuilder { - var path = "/Items/{itemId}/Refresh" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "metadataRefreshMode": metadataRefreshMode, - "imageRefreshMode": imageRefreshMode, - "replaceAllMetadata": replaceAllMetadata, - "replaceAllImages": replaceAllImages - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/ItemUpdateAPI.swift b/JellyfinPlayer/Swaggers/APIs/ItemUpdateAPI.swift deleted file mode 100644 index b09c2040..00000000 --- a/JellyfinPlayer/Swaggers/APIs/ItemUpdateAPI.swift +++ /dev/null @@ -1,197 +0,0 @@ -// -// ItemUpdateAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class ItemUpdateAPI { - /** - Gets metadata editor info for an item. - - - parameter itemId: (path) The item id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getMetadataEditorInfo(itemId: UUID, completion: @escaping ((_ data: MetadataEditorInfo?,_ error: Error?) -> Void)) { - getMetadataEditorInfoWithRequestBuilder(itemId: itemId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets metadata editor info for an item. - - GET /Items/{itemId}/MetadataEditor - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "ParentalRatingOptions" : [ { - "Value" : 0, - "Name" : "Name" - }, { - "Value" : 0, - "Name" : "Name" - } ], - "ContentType" : "ContentType", - "Countries" : [ { - "TwoLetterISORegionName" : "TwoLetterISORegionName", - "ThreeLetterISORegionName" : "ThreeLetterISORegionName", - "DisplayName" : "DisplayName", - "Name" : "Name" - }, { - "TwoLetterISORegionName" : "TwoLetterISORegionName", - "ThreeLetterISORegionName" : "ThreeLetterISORegionName", - "DisplayName" : "DisplayName", - "Name" : "Name" - } ], - "Cultures" : [ { - "ThreeLetterISOLanguageNames" : [ "ThreeLetterISOLanguageNames", "ThreeLetterISOLanguageNames" ], - "ThreeLetterISOLanguageName" : "ThreeLetterISOLanguageName", - "DisplayName" : "DisplayName", - "Name" : "Name", - "TwoLetterISOLanguageName" : "TwoLetterISOLanguageName" - }, { - "ThreeLetterISOLanguageNames" : [ "ThreeLetterISOLanguageNames", "ThreeLetterISOLanguageNames" ], - "ThreeLetterISOLanguageName" : "ThreeLetterISOLanguageName", - "DisplayName" : "DisplayName", - "Name" : "Name", - "TwoLetterISOLanguageName" : "TwoLetterISOLanguageName" - } ], - "ExternalIdInfos" : [ { - "Type" : "", - "Key" : "Key", - "Name" : "Name", - "UrlFormatString" : "UrlFormatString" - }, { - "Type" : "", - "Key" : "Key", - "Name" : "Name", - "UrlFormatString" : "UrlFormatString" - } ], - "ContentTypeOptions" : [ { - "Value" : "Value", - "Name" : "Name" - }, { - "Value" : "Value", - "Name" : "Name" - } ] -}}] - - parameter itemId: (path) The item id. - - - returns: RequestBuilder - */ - open class func getMetadataEditorInfoWithRequestBuilder(itemId: UUID) -> RequestBuilder { - var path = "/Items/{itemId}/MetadataEditor" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Updates an item. - - - parameter body: (body) The new item properties. - - parameter itemId: (path) The item id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func updateItem(body: ItemsItemIdBody, itemId: UUID, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - updateItemWithRequestBuilder(body: body, itemId: itemId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Updates an item. - - POST /Items/{itemId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The new item properties. - - parameter itemId: (path) The item id. - - - returns: RequestBuilder - */ - open class func updateItemWithRequestBuilder(body: ItemsItemIdBody, itemId: UUID) -> RequestBuilder { - var path = "/Items/{itemId}" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Updates an item's content type. - - - parameter itemId: (path) The item id. - - parameter contentType: (query) The content type of the item. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func updateItemContentType(itemId: UUID, contentType: String? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - updateItemContentTypeWithRequestBuilder(itemId: itemId, contentType: contentType).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Updates an item's content type. - - POST /Items/{itemId}/ContentType - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter itemId: (path) The item id. - - parameter contentType: (query) The content type of the item. (optional) - - - returns: RequestBuilder - */ - open class func updateItemContentTypeWithRequestBuilder(itemId: UUID, contentType: String? = nil) -> RequestBuilder { - var path = "/Items/{itemId}/ContentType" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "contentType": contentType - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/ItemsAPI.swift b/JellyfinPlayer/Swaggers/APIs/ItemsAPI.swift deleted file mode 100644 index f99e6e3b..00000000 --- a/JellyfinPlayer/Swaggers/APIs/ItemsAPI.swift +++ /dev/null @@ -1,4466 +0,0 @@ -// -// ItemsAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class ItemsAPI { - /** - Gets items based on a query. - - - parameter userId: (query) The user id supplied as query parameter. (optional) - - parameter maxOfficialRating: (query) Optional filter by maximum official rating (PG, PG-13, TV-MA, etc). (optional) - - parameter hasThemeSong: (query) Optional filter by items with theme songs. (optional) - - parameter hasThemeVideo: (query) Optional filter by items with theme videos. (optional) - - parameter hasSubtitles: (query) Optional filter by items with subtitles. (optional) - - parameter hasSpecialFeature: (query) Optional filter by items with special features. (optional) - - parameter hasTrailer: (query) Optional filter by items with trailers. (optional) - - parameter adjacentTo: (query) Optional. Return items that are siblings of a supplied item. (optional) - - parameter parentIndexNumber: (query) Optional filter by parent index number. (optional) - - parameter hasParentalRating: (query) Optional filter by items that have or do not have a parental rating. (optional) - - parameter isHd: (query) Optional filter by items that are HD or not. (optional) - - parameter is4K: (query) Optional filter by items that are 4K or not. (optional) - - parameter locationTypes: (query) Optional. If specified, results will be filtered based on LocationType. This allows multiple, comma delimited. (optional) - - parameter excludeLocationTypes: (query) Optional. If specified, results will be filtered based on the LocationType. This allows multiple, comma delimited. (optional) - - parameter isMissing: (query) Optional filter by items that are missing episodes or not. (optional) - - parameter isUnaired: (query) Optional filter by items that are unaired episodes or not. (optional) - - parameter minCommunityRating: (query) Optional filter by minimum community rating. (optional) - - parameter minCriticRating: (query) Optional filter by minimum critic rating. (optional) - - parameter minPremiereDate: (query) Optional. The minimum premiere date. Format = ISO. (optional) - - parameter minDateLastSaved: (query) Optional. The minimum last saved date. Format = ISO. (optional) - - parameter minDateLastSavedForUser: (query) Optional. The minimum last saved date for the current user. Format = ISO. (optional) - - parameter maxPremiereDate: (query) Optional. The maximum premiere date. Format = ISO. (optional) - - parameter hasOverview: (query) Optional filter by items that have an overview or not. (optional) - - parameter hasImdbId: (query) Optional filter by items that have an imdb id or not. (optional) - - parameter hasTmdbId: (query) Optional filter by items that have a tmdb id or not. (optional) - - parameter hasTvdbId: (query) Optional filter by items that have a tvdb id or not. (optional) - - parameter excludeItemIds: (query) Optional. If specified, results will be filtered by excluding item ids. This allows multiple, comma delimited. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter recursive: (query) When searching within folders, this determines whether or not the search will be recursive. true/false. (optional) - - parameter searchTerm: (query) Optional. Filter based on a search term. (optional) - - parameter sortOrder: (query) Sort Order - Ascending,Descending. (optional) - - parameter parentId: (query) Specify this to localize the search to a specific item or folder. Omit to use the root. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines. (optional) - - parameter excludeItemTypes: (query) Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. (optional) - - parameter includeItemTypes: (query) Optional. If specified, results will be filtered based on the item type. This allows multiple, comma delimited. (optional) - - parameter filters: (query) Optional. Specify additional filters to apply. This allows multiple, comma delimited. Options: IsFolder, IsNotFolder, IsUnplayed, IsPlayed, IsFavorite, IsResumable, Likes, Dislikes. (optional) - - parameter isFavorite: (query) Optional filter by items that are marked as favorite, or not. (optional) - - parameter mediaTypes: (query) Optional filter by MediaType. Allows multiple, comma delimited. (optional) - - parameter imageTypes: (query) Optional. If specified, results will be filtered based on those containing image types. This allows multiple, comma delimited. (optional) - - parameter sortBy: (query) Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. (optional) - - parameter isPlayed: (query) Optional filter by items that are played, or not. (optional) - - parameter genres: (query) Optional. If specified, results will be filtered based on genre. This allows multiple, pipe delimited. (optional) - - parameter officialRatings: (query) Optional. If specified, results will be filtered based on OfficialRating. This allows multiple, pipe delimited. (optional) - - parameter tags: (query) Optional. If specified, results will be filtered based on tag. This allows multiple, pipe delimited. (optional) - - parameter years: (query) Optional. If specified, results will be filtered based on production year. This allows multiple, comma delimited. (optional) - - parameter enableUserData: (query) Optional, include user data. (optional) - - parameter imageTypeLimit: (query) Optional, the max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter person: (query) Optional. If specified, results will be filtered to include only those containing the specified person. (optional) - - parameter personIds: (query) Optional. If specified, results will be filtered to include only those containing the specified person id. (optional) - - parameter personTypes: (query) Optional. If specified, along with Person, results will be filtered to include only those containing the specified person and PersonType. Allows multiple, comma-delimited. (optional) - - parameter studios: (query) Optional. If specified, results will be filtered based on studio. This allows multiple, pipe delimited. (optional) - - parameter artists: (query) Optional. If specified, results will be filtered based on artists. This allows multiple, pipe delimited. (optional) - - parameter excludeArtistIds: (query) Optional. If specified, results will be filtered based on artist id. This allows multiple, pipe delimited. (optional) - - parameter artistIds: (query) Optional. If specified, results will be filtered to include only those containing the specified artist id. (optional) - - parameter albumArtistIds: (query) Optional. If specified, results will be filtered to include only those containing the specified album artist id. (optional) - - parameter contributingArtistIds: (query) Optional. If specified, results will be filtered to include only those containing the specified contributing artist id. (optional) - - parameter albums: (query) Optional. If specified, results will be filtered based on album. This allows multiple, pipe delimited. (optional) - - parameter albumIds: (query) Optional. If specified, results will be filtered based on album id. This allows multiple, pipe delimited. (optional) - - parameter ids: (query) Optional. If specific items are needed, specify a list of item id's to retrieve. This allows multiple, comma delimited. (optional) - - parameter videoTypes: (query) Optional filter by VideoType (videofile, dvd, bluray, iso). Allows multiple, comma delimited. (optional) - - parameter minOfficialRating: (query) Optional filter by minimum official rating (PG, PG-13, TV-MA, etc). (optional) - - parameter isLocked: (query) Optional filter by items that are locked. (optional) - - parameter isPlaceHolder: (query) Optional filter by items that are placeholders. (optional) - - parameter hasOfficialRating: (query) Optional filter by items that have official ratings. (optional) - - parameter collapseBoxSetItems: (query) Whether or not to hide items behind their boxsets. (optional) - - parameter minWidth: (query) Optional. Filter by the minimum width of the item. (optional) - - parameter minHeight: (query) Optional. Filter by the minimum height of the item. (optional) - - parameter maxWidth: (query) Optional. Filter by the maximum width of the item. (optional) - - parameter maxHeight: (query) Optional. Filter by the maximum height of the item. (optional) - - parameter is3D: (query) Optional filter by items that are 3D, or not. (optional) - - parameter seriesStatus: (query) Optional filter by Series Status. Allows multiple, comma delimited. (optional) - - parameter nameStartsWithOrGreater: (query) Optional filter by items whose name is sorted equally or greater than a given input string. (optional) - - parameter nameStartsWith: (query) Optional filter by items whose name is sorted equally than a given input string. (optional) - - parameter nameLessThan: (query) Optional filter by items whose name is equally or lesser than a given input string. (optional) - - parameter studioIds: (query) Optional. If specified, results will be filtered based on studio id. This allows multiple, pipe delimited. (optional) - - parameter genreIds: (query) Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimited. (optional) - - parameter enableTotalRecordCount: (query) Optional. Enable the total record count. (optional, default to true) - - parameter enableImages: (query) Optional, include image information in output. (optional, default to true) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getItems(userId: UUID? = nil, maxOfficialRating: String? = nil, hasThemeSong: Bool? = nil, hasThemeVideo: Bool? = nil, hasSubtitles: Bool? = nil, hasSpecialFeature: Bool? = nil, hasTrailer: Bool? = nil, adjacentTo: String? = nil, parentIndexNumber: Int? = nil, hasParentalRating: Bool? = nil, isHd: Bool? = nil, is4K: Bool? = nil, locationTypes: [LocationType]? = nil, excludeLocationTypes: [LocationType]? = nil, isMissing: Bool? = nil, isUnaired: Bool? = nil, minCommunityRating: Double? = nil, minCriticRating: Double? = nil, minPremiereDate: Date? = nil, minDateLastSaved: Date? = nil, minDateLastSavedForUser: Date? = nil, maxPremiereDate: Date? = nil, hasOverview: Bool? = nil, hasImdbId: Bool? = nil, hasTmdbId: Bool? = nil, hasTvdbId: Bool? = nil, excludeItemIds: [UUID]? = nil, startIndex: Int? = nil, limit: Int? = nil, recursive: Bool? = nil, searchTerm: String? = nil, sortOrder: [SortOrder]? = nil, parentId: UUID? = nil, fields: [ItemFields]? = nil, excludeItemTypes: [String]? = nil, includeItemTypes: [String]? = nil, filters: [ItemFilter]? = nil, isFavorite: Bool? = nil, mediaTypes: [String]? = nil, imageTypes: [ImageType]? = nil, sortBy: [String]? = nil, isPlayed: Bool? = nil, genres: [String]? = nil, officialRatings: [String]? = nil, tags: [String]? = nil, years: [Int]? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, person: String? = nil, personIds: [UUID]? = nil, personTypes: [String]? = nil, studios: [String]? = nil, artists: [String]? = nil, excludeArtistIds: [UUID]? = nil, artistIds: [UUID]? = nil, albumArtistIds: [UUID]? = nil, contributingArtistIds: [UUID]? = nil, albums: [String]? = nil, albumIds: [UUID]? = nil, ids: [UUID]? = nil, videoTypes: [VideoType]? = nil, minOfficialRating: String? = nil, isLocked: Bool? = nil, isPlaceHolder: Bool? = nil, hasOfficialRating: Bool? = nil, collapseBoxSetItems: Bool? = nil, minWidth: Int? = nil, minHeight: Int? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, is3D: Bool? = nil, seriesStatus: [SeriesStatus]? = nil, nameStartsWithOrGreater: String? = nil, nameStartsWith: String? = nil, nameLessThan: String? = nil, studioIds: [UUID]? = nil, genreIds: [UUID]? = nil, enableTotalRecordCount: Bool? = nil, enableImages: Bool? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getItemsWithRequestBuilder(userId: userId, maxOfficialRating: maxOfficialRating, hasThemeSong: hasThemeSong, hasThemeVideo: hasThemeVideo, hasSubtitles: hasSubtitles, hasSpecialFeature: hasSpecialFeature, hasTrailer: hasTrailer, adjacentTo: adjacentTo, parentIndexNumber: parentIndexNumber, hasParentalRating: hasParentalRating, isHd: isHd, is4K: is4K, locationTypes: locationTypes, excludeLocationTypes: excludeLocationTypes, isMissing: isMissing, isUnaired: isUnaired, minCommunityRating: minCommunityRating, minCriticRating: minCriticRating, minPremiereDate: minPremiereDate, minDateLastSaved: minDateLastSaved, minDateLastSavedForUser: minDateLastSavedForUser, maxPremiereDate: maxPremiereDate, hasOverview: hasOverview, hasImdbId: hasImdbId, hasTmdbId: hasTmdbId, hasTvdbId: hasTvdbId, excludeItemIds: excludeItemIds, startIndex: startIndex, limit: limit, recursive: recursive, searchTerm: searchTerm, sortOrder: sortOrder, parentId: parentId, fields: fields, excludeItemTypes: excludeItemTypes, includeItemTypes: includeItemTypes, filters: filters, isFavorite: isFavorite, mediaTypes: mediaTypes, imageTypes: imageTypes, sortBy: sortBy, isPlayed: isPlayed, genres: genres, officialRatings: officialRatings, tags: tags, years: years, enableUserData: enableUserData, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes, person: person, personIds: personIds, personTypes: personTypes, studios: studios, artists: artists, excludeArtistIds: excludeArtistIds, artistIds: artistIds, albumArtistIds: albumArtistIds, contributingArtistIds: contributingArtistIds, albums: albums, albumIds: albumIds, ids: ids, videoTypes: videoTypes, minOfficialRating: minOfficialRating, isLocked: isLocked, isPlaceHolder: isPlaceHolder, hasOfficialRating: hasOfficialRating, collapseBoxSetItems: collapseBoxSetItems, minWidth: minWidth, minHeight: minHeight, maxWidth: maxWidth, maxHeight: maxHeight, is3D: is3D, seriesStatus: seriesStatus, nameStartsWithOrGreater: nameStartsWithOrGreater, nameStartsWith: nameStartsWith, nameLessThan: nameLessThan, studioIds: studioIds, genreIds: genreIds, enableTotalRecordCount: enableTotalRecordCount, enableImages: enableImages).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets items based on a query. - - GET /Items - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter userId: (query) The user id supplied as query parameter. (optional) - - parameter maxOfficialRating: (query) Optional filter by maximum official rating (PG, PG-13, TV-MA, etc). (optional) - - parameter hasThemeSong: (query) Optional filter by items with theme songs. (optional) - - parameter hasThemeVideo: (query) Optional filter by items with theme videos. (optional) - - parameter hasSubtitles: (query) Optional filter by items with subtitles. (optional) - - parameter hasSpecialFeature: (query) Optional filter by items with special features. (optional) - - parameter hasTrailer: (query) Optional filter by items with trailers. (optional) - - parameter adjacentTo: (query) Optional. Return items that are siblings of a supplied item. (optional) - - parameter parentIndexNumber: (query) Optional filter by parent index number. (optional) - - parameter hasParentalRating: (query) Optional filter by items that have or do not have a parental rating. (optional) - - parameter isHd: (query) Optional filter by items that are HD or not. (optional) - - parameter is4K: (query) Optional filter by items that are 4K or not. (optional) - - parameter locationTypes: (query) Optional. If specified, results will be filtered based on LocationType. This allows multiple, comma delimited. (optional) - - parameter excludeLocationTypes: (query) Optional. If specified, results will be filtered based on the LocationType. This allows multiple, comma delimited. (optional) - - parameter isMissing: (query) Optional filter by items that are missing episodes or not. (optional) - - parameter isUnaired: (query) Optional filter by items that are unaired episodes or not. (optional) - - parameter minCommunityRating: (query) Optional filter by minimum community rating. (optional) - - parameter minCriticRating: (query) Optional filter by minimum critic rating. (optional) - - parameter minPremiereDate: (query) Optional. The minimum premiere date. Format = ISO. (optional) - - parameter minDateLastSaved: (query) Optional. The minimum last saved date. Format = ISO. (optional) - - parameter minDateLastSavedForUser: (query) Optional. The minimum last saved date for the current user. Format = ISO. (optional) - - parameter maxPremiereDate: (query) Optional. The maximum premiere date. Format = ISO. (optional) - - parameter hasOverview: (query) Optional filter by items that have an overview or not. (optional) - - parameter hasImdbId: (query) Optional filter by items that have an imdb id or not. (optional) - - parameter hasTmdbId: (query) Optional filter by items that have a tmdb id or not. (optional) - - parameter hasTvdbId: (query) Optional filter by items that have a tvdb id or not. (optional) - - parameter excludeItemIds: (query) Optional. If specified, results will be filtered by excluding item ids. This allows multiple, comma delimited. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter recursive: (query) When searching within folders, this determines whether or not the search will be recursive. true/false. (optional) - - parameter searchTerm: (query) Optional. Filter based on a search term. (optional) - - parameter sortOrder: (query) Sort Order - Ascending,Descending. (optional) - - parameter parentId: (query) Specify this to localize the search to a specific item or folder. Omit to use the root. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines. (optional) - - parameter excludeItemTypes: (query) Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. (optional) - - parameter includeItemTypes: (query) Optional. If specified, results will be filtered based on the item type. This allows multiple, comma delimited. (optional) - - parameter filters: (query) Optional. Specify additional filters to apply. This allows multiple, comma delimited. Options: IsFolder, IsNotFolder, IsUnplayed, IsPlayed, IsFavorite, IsResumable, Likes, Dislikes. (optional) - - parameter isFavorite: (query) Optional filter by items that are marked as favorite, or not. (optional) - - parameter mediaTypes: (query) Optional filter by MediaType. Allows multiple, comma delimited. (optional) - - parameter imageTypes: (query) Optional. If specified, results will be filtered based on those containing image types. This allows multiple, comma delimited. (optional) - - parameter sortBy: (query) Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. (optional) - - parameter isPlayed: (query) Optional filter by items that are played, or not. (optional) - - parameter genres: (query) Optional. If specified, results will be filtered based on genre. This allows multiple, pipe delimited. (optional) - - parameter officialRatings: (query) Optional. If specified, results will be filtered based on OfficialRating. This allows multiple, pipe delimited. (optional) - - parameter tags: (query) Optional. If specified, results will be filtered based on tag. This allows multiple, pipe delimited. (optional) - - parameter years: (query) Optional. If specified, results will be filtered based on production year. This allows multiple, comma delimited. (optional) - - parameter enableUserData: (query) Optional, include user data. (optional) - - parameter imageTypeLimit: (query) Optional, the max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter person: (query) Optional. If specified, results will be filtered to include only those containing the specified person. (optional) - - parameter personIds: (query) Optional. If specified, results will be filtered to include only those containing the specified person id. (optional) - - parameter personTypes: (query) Optional. If specified, along with Person, results will be filtered to include only those containing the specified person and PersonType. Allows multiple, comma-delimited. (optional) - - parameter studios: (query) Optional. If specified, results will be filtered based on studio. This allows multiple, pipe delimited. (optional) - - parameter artists: (query) Optional. If specified, results will be filtered based on artists. This allows multiple, pipe delimited. (optional) - - parameter excludeArtistIds: (query) Optional. If specified, results will be filtered based on artist id. This allows multiple, pipe delimited. (optional) - - parameter artistIds: (query) Optional. If specified, results will be filtered to include only those containing the specified artist id. (optional) - - parameter albumArtistIds: (query) Optional. If specified, results will be filtered to include only those containing the specified album artist id. (optional) - - parameter contributingArtistIds: (query) Optional. If specified, results will be filtered to include only those containing the specified contributing artist id. (optional) - - parameter albums: (query) Optional. If specified, results will be filtered based on album. This allows multiple, pipe delimited. (optional) - - parameter albumIds: (query) Optional. If specified, results will be filtered based on album id. This allows multiple, pipe delimited. (optional) - - parameter ids: (query) Optional. If specific items are needed, specify a list of item id's to retrieve. This allows multiple, comma delimited. (optional) - - parameter videoTypes: (query) Optional filter by VideoType (videofile, dvd, bluray, iso). Allows multiple, comma delimited. (optional) - - parameter minOfficialRating: (query) Optional filter by minimum official rating (PG, PG-13, TV-MA, etc). (optional) - - parameter isLocked: (query) Optional filter by items that are locked. (optional) - - parameter isPlaceHolder: (query) Optional filter by items that are placeholders. (optional) - - parameter hasOfficialRating: (query) Optional filter by items that have official ratings. (optional) - - parameter collapseBoxSetItems: (query) Whether or not to hide items behind their boxsets. (optional) - - parameter minWidth: (query) Optional. Filter by the minimum width of the item. (optional) - - parameter minHeight: (query) Optional. Filter by the minimum height of the item. (optional) - - parameter maxWidth: (query) Optional. Filter by the maximum width of the item. (optional) - - parameter maxHeight: (query) Optional. Filter by the maximum height of the item. (optional) - - parameter is3D: (query) Optional filter by items that are 3D, or not. (optional) - - parameter seriesStatus: (query) Optional filter by Series Status. Allows multiple, comma delimited. (optional) - - parameter nameStartsWithOrGreater: (query) Optional filter by items whose name is sorted equally or greater than a given input string. (optional) - - parameter nameStartsWith: (query) Optional filter by items whose name is sorted equally than a given input string. (optional) - - parameter nameLessThan: (query) Optional filter by items whose name is equally or lesser than a given input string. (optional) - - parameter studioIds: (query) Optional. If specified, results will be filtered based on studio id. This allows multiple, pipe delimited. (optional) - - parameter genreIds: (query) Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimited. (optional) - - parameter enableTotalRecordCount: (query) Optional. Enable the total record count. (optional, default to true) - - parameter enableImages: (query) Optional, include image information in output. (optional, default to true) - - - returns: RequestBuilder - */ - open class func getItemsWithRequestBuilder(userId: UUID? = nil, maxOfficialRating: String? = nil, hasThemeSong: Bool? = nil, hasThemeVideo: Bool? = nil, hasSubtitles: Bool? = nil, hasSpecialFeature: Bool? = nil, hasTrailer: Bool? = nil, adjacentTo: String? = nil, parentIndexNumber: Int? = nil, hasParentalRating: Bool? = nil, isHd: Bool? = nil, is4K: Bool? = nil, locationTypes: [LocationType]? = nil, excludeLocationTypes: [LocationType]? = nil, isMissing: Bool? = nil, isUnaired: Bool? = nil, minCommunityRating: Double? = nil, minCriticRating: Double? = nil, minPremiereDate: Date? = nil, minDateLastSaved: Date? = nil, minDateLastSavedForUser: Date? = nil, maxPremiereDate: Date? = nil, hasOverview: Bool? = nil, hasImdbId: Bool? = nil, hasTmdbId: Bool? = nil, hasTvdbId: Bool? = nil, excludeItemIds: [UUID]? = nil, startIndex: Int? = nil, limit: Int? = nil, recursive: Bool? = nil, searchTerm: String? = nil, sortOrder: [SortOrder]? = nil, parentId: UUID? = nil, fields: [ItemFields]? = nil, excludeItemTypes: [String]? = nil, includeItemTypes: [String]? = nil, filters: [ItemFilter]? = nil, isFavorite: Bool? = nil, mediaTypes: [String]? = nil, imageTypes: [ImageType]? = nil, sortBy: [String]? = nil, isPlayed: Bool? = nil, genres: [String]? = nil, officialRatings: [String]? = nil, tags: [String]? = nil, years: [Int]? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, person: String? = nil, personIds: [UUID]? = nil, personTypes: [String]? = nil, studios: [String]? = nil, artists: [String]? = nil, excludeArtistIds: [UUID]? = nil, artistIds: [UUID]? = nil, albumArtistIds: [UUID]? = nil, contributingArtistIds: [UUID]? = nil, albums: [String]? = nil, albumIds: [UUID]? = nil, ids: [UUID]? = nil, videoTypes: [VideoType]? = nil, minOfficialRating: String? = nil, isLocked: Bool? = nil, isPlaceHolder: Bool? = nil, hasOfficialRating: Bool? = nil, collapseBoxSetItems: Bool? = nil, minWidth: Int? = nil, minHeight: Int? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, is3D: Bool? = nil, seriesStatus: [SeriesStatus]? = nil, nameStartsWithOrGreater: String? = nil, nameStartsWith: String? = nil, nameLessThan: String? = nil, studioIds: [UUID]? = nil, genreIds: [UUID]? = nil, enableTotalRecordCount: Bool? = nil, enableImages: Bool? = nil) -> RequestBuilder { - let path = "/Items" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId, - "maxOfficialRating": maxOfficialRating, - "hasThemeSong": hasThemeSong, - "hasThemeVideo": hasThemeVideo, - "hasSubtitles": hasSubtitles, - "hasSpecialFeature": hasSpecialFeature, - "hasTrailer": hasTrailer, - "adjacentTo": adjacentTo, - "parentIndexNumber": parentIndexNumber?.encodeToJSON(), - "hasParentalRating": hasParentalRating, - "isHd": isHd, - "is4K": is4K, - "locationTypes": locationTypes, - "excludeLocationTypes": excludeLocationTypes, - "isMissing": isMissing, - "isUnaired": isUnaired, - "minCommunityRating": minCommunityRating, - "minCriticRating": minCriticRating, - "minPremiereDate": minPremiereDate?.encodeToJSON(), - "minDateLastSaved": minDateLastSaved?.encodeToJSON(), - "minDateLastSavedForUser": minDateLastSavedForUser?.encodeToJSON(), - "maxPremiereDate": maxPremiereDate?.encodeToJSON(), - "hasOverview": hasOverview, - "hasImdbId": hasImdbId, - "hasTmdbId": hasTmdbId, - "hasTvdbId": hasTvdbId, - "excludeItemIds": excludeItemIds, - "startIndex": startIndex?.encodeToJSON(), - "limit": limit?.encodeToJSON(), - "recursive": recursive, - "searchTerm": searchTerm, - "sortOrder": sortOrder, - "parentId": parentId, - "fields": fields, - "excludeItemTypes": excludeItemTypes, - "includeItemTypes": includeItemTypes, - "filters": filters, - "isFavorite": isFavorite, - "mediaTypes": mediaTypes, - "imageTypes": imageTypes, - "sortBy": sortBy, - "isPlayed": isPlayed, - "genres": genres, - "officialRatings": officialRatings, - "tags": tags, - "years": years, - "enableUserData": enableUserData, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes, - "person": person, - "personIds": personIds, - "personTypes": personTypes, - "studios": studios, - "artists": artists, - "excludeArtistIds": excludeArtistIds, - "artistIds": artistIds, - "albumArtistIds": albumArtistIds, - "contributingArtistIds": contributingArtistIds, - "albums": albums, - "albumIds": albumIds, - "ids": ids, - "videoTypes": videoTypes, - "minOfficialRating": minOfficialRating, - "isLocked": isLocked, - "isPlaceHolder": isPlaceHolder, - "hasOfficialRating": hasOfficialRating, - "collapseBoxSetItems": collapseBoxSetItems, - "minWidth": minWidth?.encodeToJSON(), - "minHeight": minHeight?.encodeToJSON(), - "maxWidth": maxWidth?.encodeToJSON(), - "maxHeight": maxHeight?.encodeToJSON(), - "is3D": is3D, - "seriesStatus": seriesStatus, - "nameStartsWithOrGreater": nameStartsWithOrGreater, - "nameStartsWith": nameStartsWith, - "nameLessThan": nameLessThan, - "studioIds": studioIds, - "genreIds": genreIds, - "enableTotalRecordCount": enableTotalRecordCount, - "enableImages": enableImages - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets items based on a query. - - - parameter userId: (path) The user id supplied as query parameter. - - parameter maxOfficialRating: (query) Optional filter by maximum official rating (PG, PG-13, TV-MA, etc). (optional) - - parameter hasThemeSong: (query) Optional filter by items with theme songs. (optional) - - parameter hasThemeVideo: (query) Optional filter by items with theme videos. (optional) - - parameter hasSubtitles: (query) Optional filter by items with subtitles. (optional) - - parameter hasSpecialFeature: (query) Optional filter by items with special features. (optional) - - parameter hasTrailer: (query) Optional filter by items with trailers. (optional) - - parameter adjacentTo: (query) Optional. Return items that are siblings of a supplied item. (optional) - - parameter parentIndexNumber: (query) Optional filter by parent index number. (optional) - - parameter hasParentalRating: (query) Optional filter by items that have or do not have a parental rating. (optional) - - parameter isHd: (query) Optional filter by items that are HD or not. (optional) - - parameter is4K: (query) Optional filter by items that are 4K or not. (optional) - - parameter locationTypes: (query) Optional. If specified, results will be filtered based on LocationType. This allows multiple, comma delimeted. (optional) - - parameter excludeLocationTypes: (query) Optional. If specified, results will be filtered based on the LocationType. This allows multiple, comma delimeted. (optional) - - parameter isMissing: (query) Optional filter by items that are missing episodes or not. (optional) - - parameter isUnaired: (query) Optional filter by items that are unaired episodes or not. (optional) - - parameter minCommunityRating: (query) Optional filter by minimum community rating. (optional) - - parameter minCriticRating: (query) Optional filter by minimum critic rating. (optional) - - parameter minPremiereDate: (query) Optional. The minimum premiere date. Format = ISO. (optional) - - parameter minDateLastSaved: (query) Optional. The minimum last saved date. Format = ISO. (optional) - - parameter minDateLastSavedForUser: (query) Optional. The minimum last saved date for the current user. Format = ISO. (optional) - - parameter maxPremiereDate: (query) Optional. The maximum premiere date. Format = ISO. (optional) - - parameter hasOverview: (query) Optional filter by items that have an overview or not. (optional) - - parameter hasImdbId: (query) Optional filter by items that have an imdb id or not. (optional) - - parameter hasTmdbId: (query) Optional filter by items that have a tmdb id or not. (optional) - - parameter hasTvdbId: (query) Optional filter by items that have a tvdb id or not. (optional) - - parameter excludeItemIds: (query) Optional. If specified, results will be filtered by exxcluding item ids. This allows multiple, comma delimeted. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter recursive: (query) When searching within folders, this determines whether or not the search will be recursive. true/false. (optional) - - parameter searchTerm: (query) Optional. Filter based on a search term. (optional) - - parameter sortOrder: (query) Sort Order - Ascending,Descending. (optional) - - parameter parentId: (query) Specify this to localize the search to a specific item or folder. Omit to use the root. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimeted. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines. (optional) - - parameter excludeItemTypes: (query) Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimeted. (optional) - - parameter includeItemTypes: (query) Optional. If specified, results will be filtered based on the item type. This allows multiple, comma delimeted. (optional) - - parameter filters: (query) Optional. Specify additional filters to apply. This allows multiple, comma delimeted. Options: IsFolder, IsNotFolder, IsUnplayed, IsPlayed, IsFavorite, IsResumable, Likes, Dislikes. (optional) - - parameter isFavorite: (query) Optional filter by items that are marked as favorite, or not. (optional) - - parameter mediaTypes: (query) Optional filter by MediaType. Allows multiple, comma delimited. (optional) - - parameter imageTypes: (query) Optional. If specified, results will be filtered based on those containing image types. This allows multiple, comma delimited. (optional) - - parameter sortBy: (query) Optional. Specify one or more sort orders, comma delimeted. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. (optional) - - parameter isPlayed: (query) Optional filter by items that are played, or not. (optional) - - parameter genres: (query) Optional. If specified, results will be filtered based on genre. This allows multiple, pipe delimeted. (optional) - - parameter officialRatings: (query) Optional. If specified, results will be filtered based on OfficialRating. This allows multiple, pipe delimeted. (optional) - - parameter tags: (query) Optional. If specified, results will be filtered based on tag. This allows multiple, pipe delimeted. (optional) - - parameter years: (query) Optional. If specified, results will be filtered based on production year. This allows multiple, comma delimeted. (optional) - - parameter enableUserData: (query) Optional, include user data. (optional) - - parameter imageTypeLimit: (query) Optional, the max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter person: (query) Optional. If specified, results will be filtered to include only those containing the specified person. (optional) - - parameter personIds: (query) Optional. If specified, results will be filtered to include only those containing the specified person id. (optional) - - parameter personTypes: (query) Optional. If specified, along with Person, results will be filtered to include only those containing the specified person and PersonType. Allows multiple, comma-delimited. (optional) - - parameter studios: (query) Optional. If specified, results will be filtered based on studio. This allows multiple, pipe delimeted. (optional) - - parameter artists: (query) Optional. If specified, results will be filtered based on artists. This allows multiple, pipe delimeted. (optional) - - parameter excludeArtistIds: (query) Optional. If specified, results will be filtered based on artist id. This allows multiple, pipe delimeted. (optional) - - parameter artistIds: (query) Optional. If specified, results will be filtered to include only those containing the specified artist id. (optional) - - parameter albumArtistIds: (query) Optional. If specified, results will be filtered to include only those containing the specified album artist id. (optional) - - parameter contributingArtistIds: (query) Optional. If specified, results will be filtered to include only those containing the specified contributing artist id. (optional) - - parameter albums: (query) Optional. If specified, results will be filtered based on album. This allows multiple, pipe delimeted. (optional) - - parameter albumIds: (query) Optional. If specified, results will be filtered based on album id. This allows multiple, pipe delimeted. (optional) - - parameter ids: (query) Optional. If specific items are needed, specify a list of item id's to retrieve. This allows multiple, comma delimited. (optional) - - parameter videoTypes: (query) Optional filter by VideoType (videofile, dvd, bluray, iso). Allows multiple, comma delimeted. (optional) - - parameter minOfficialRating: (query) Optional filter by minimum official rating (PG, PG-13, TV-MA, etc). (optional) - - parameter isLocked: (query) Optional filter by items that are locked. (optional) - - parameter isPlaceHolder: (query) Optional filter by items that are placeholders. (optional) - - parameter hasOfficialRating: (query) Optional filter by items that have official ratings. (optional) - - parameter collapseBoxSetItems: (query) Whether or not to hide items behind their boxsets. (optional) - - parameter minWidth: (query) Optional. Filter by the minimum width of the item. (optional) - - parameter minHeight: (query) Optional. Filter by the minimum height of the item. (optional) - - parameter maxWidth: (query) Optional. Filter by the maximum width of the item. (optional) - - parameter maxHeight: (query) Optional. Filter by the maximum height of the item. (optional) - - parameter is3D: (query) Optional filter by items that are 3D, or not. (optional) - - parameter seriesStatus: (query) Optional filter by Series Status. Allows multiple, comma delimeted. (optional) - - parameter nameStartsWithOrGreater: (query) Optional filter by items whose name is sorted equally or greater than a given input string. (optional) - - parameter nameStartsWith: (query) Optional filter by items whose name is sorted equally than a given input string. (optional) - - parameter nameLessThan: (query) Optional filter by items whose name is equally or lesser than a given input string. (optional) - - parameter studioIds: (query) Optional. If specified, results will be filtered based on studio id. This allows multiple, pipe delimeted. (optional) - - parameter genreIds: (query) Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimeted. (optional) - - parameter enableTotalRecordCount: (query) Optional. Enable the total record count. (optional, default to true) - - parameter enableImages: (query) Optional, include image information in output. (optional, default to true) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getItemsByUserId(userId: UUID, maxOfficialRating: String? = nil, hasThemeSong: Bool? = nil, hasThemeVideo: Bool? = nil, hasSubtitles: Bool? = nil, hasSpecialFeature: Bool? = nil, hasTrailer: Bool? = nil, adjacentTo: String? = nil, parentIndexNumber: Int? = nil, hasParentalRating: Bool? = nil, isHd: Bool? = nil, is4K: Bool? = nil, locationTypes: [LocationType]? = nil, excludeLocationTypes: [LocationType]? = nil, isMissing: Bool? = nil, isUnaired: Bool? = nil, minCommunityRating: Double? = nil, minCriticRating: Double? = nil, minPremiereDate: Date? = nil, minDateLastSaved: Date? = nil, minDateLastSavedForUser: Date? = nil, maxPremiereDate: Date? = nil, hasOverview: Bool? = nil, hasImdbId: Bool? = nil, hasTmdbId: Bool? = nil, hasTvdbId: Bool? = nil, excludeItemIds: [UUID]? = nil, startIndex: Int? = nil, limit: Int? = nil, recursive: Bool? = nil, searchTerm: String? = nil, sortOrder: [SortOrder]? = nil, parentId: UUID? = nil, fields: [ItemFields]? = nil, excludeItemTypes: [String]? = nil, includeItemTypes: [String]? = nil, filters: [ItemFilter]? = nil, isFavorite: Bool? = nil, mediaTypes: [String]? = nil, imageTypes: [ImageType]? = nil, sortBy: [String]? = nil, isPlayed: Bool? = nil, genres: [String]? = nil, officialRatings: [String]? = nil, tags: [String]? = nil, years: [Int]? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, person: String? = nil, personIds: [UUID]? = nil, personTypes: [String]? = nil, studios: [String]? = nil, artists: [String]? = nil, excludeArtistIds: [UUID]? = nil, artistIds: [UUID]? = nil, albumArtistIds: [UUID]? = nil, contributingArtistIds: [UUID]? = nil, albums: [String]? = nil, albumIds: [UUID]? = nil, ids: [UUID]? = nil, videoTypes: [VideoType]? = nil, minOfficialRating: String? = nil, isLocked: Bool? = nil, isPlaceHolder: Bool? = nil, hasOfficialRating: Bool? = nil, collapseBoxSetItems: Bool? = nil, minWidth: Int? = nil, minHeight: Int? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, is3D: Bool? = nil, seriesStatus: [SeriesStatus]? = nil, nameStartsWithOrGreater: String? = nil, nameStartsWith: String? = nil, nameLessThan: String? = nil, studioIds: [UUID]? = nil, genreIds: [UUID]? = nil, enableTotalRecordCount: Bool? = nil, enableImages: Bool? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getItemsByUserIdWithRequestBuilder(userId: userId, maxOfficialRating: maxOfficialRating, hasThemeSong: hasThemeSong, hasThemeVideo: hasThemeVideo, hasSubtitles: hasSubtitles, hasSpecialFeature: hasSpecialFeature, hasTrailer: hasTrailer, adjacentTo: adjacentTo, parentIndexNumber: parentIndexNumber, hasParentalRating: hasParentalRating, isHd: isHd, is4K: is4K, locationTypes: locationTypes, excludeLocationTypes: excludeLocationTypes, isMissing: isMissing, isUnaired: isUnaired, minCommunityRating: minCommunityRating, minCriticRating: minCriticRating, minPremiereDate: minPremiereDate, minDateLastSaved: minDateLastSaved, minDateLastSavedForUser: minDateLastSavedForUser, maxPremiereDate: maxPremiereDate, hasOverview: hasOverview, hasImdbId: hasImdbId, hasTmdbId: hasTmdbId, hasTvdbId: hasTvdbId, excludeItemIds: excludeItemIds, startIndex: startIndex, limit: limit, recursive: recursive, searchTerm: searchTerm, sortOrder: sortOrder, parentId: parentId, fields: fields, excludeItemTypes: excludeItemTypes, includeItemTypes: includeItemTypes, filters: filters, isFavorite: isFavorite, mediaTypes: mediaTypes, imageTypes: imageTypes, sortBy: sortBy, isPlayed: isPlayed, genres: genres, officialRatings: officialRatings, tags: tags, years: years, enableUserData: enableUserData, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes, person: person, personIds: personIds, personTypes: personTypes, studios: studios, artists: artists, excludeArtistIds: excludeArtistIds, artistIds: artistIds, albumArtistIds: albumArtistIds, contributingArtistIds: contributingArtistIds, albums: albums, albumIds: albumIds, ids: ids, videoTypes: videoTypes, minOfficialRating: minOfficialRating, isLocked: isLocked, isPlaceHolder: isPlaceHolder, hasOfficialRating: hasOfficialRating, collapseBoxSetItems: collapseBoxSetItems, minWidth: minWidth, minHeight: minHeight, maxWidth: maxWidth, maxHeight: maxHeight, is3D: is3D, seriesStatus: seriesStatus, nameStartsWithOrGreater: nameStartsWithOrGreater, nameStartsWith: nameStartsWith, nameLessThan: nameLessThan, studioIds: studioIds, genreIds: genreIds, enableTotalRecordCount: enableTotalRecordCount, enableImages: enableImages).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets items based on a query. - - GET /Users/{userId}/Items - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter userId: (path) The user id supplied as query parameter. - - parameter maxOfficialRating: (query) Optional filter by maximum official rating (PG, PG-13, TV-MA, etc). (optional) - - parameter hasThemeSong: (query) Optional filter by items with theme songs. (optional) - - parameter hasThemeVideo: (query) Optional filter by items with theme videos. (optional) - - parameter hasSubtitles: (query) Optional filter by items with subtitles. (optional) - - parameter hasSpecialFeature: (query) Optional filter by items with special features. (optional) - - parameter hasTrailer: (query) Optional filter by items with trailers. (optional) - - parameter adjacentTo: (query) Optional. Return items that are siblings of a supplied item. (optional) - - parameter parentIndexNumber: (query) Optional filter by parent index number. (optional) - - parameter hasParentalRating: (query) Optional filter by items that have or do not have a parental rating. (optional) - - parameter isHd: (query) Optional filter by items that are HD or not. (optional) - - parameter is4K: (query) Optional filter by items that are 4K or not. (optional) - - parameter locationTypes: (query) Optional. If specified, results will be filtered based on LocationType. This allows multiple, comma delimeted. (optional) - - parameter excludeLocationTypes: (query) Optional. If specified, results will be filtered based on the LocationType. This allows multiple, comma delimeted. (optional) - - parameter isMissing: (query) Optional filter by items that are missing episodes or not. (optional) - - parameter isUnaired: (query) Optional filter by items that are unaired episodes or not. (optional) - - parameter minCommunityRating: (query) Optional filter by minimum community rating. (optional) - - parameter minCriticRating: (query) Optional filter by minimum critic rating. (optional) - - parameter minPremiereDate: (query) Optional. The minimum premiere date. Format = ISO. (optional) - - parameter minDateLastSaved: (query) Optional. The minimum last saved date. Format = ISO. (optional) - - parameter minDateLastSavedForUser: (query) Optional. The minimum last saved date for the current user. Format = ISO. (optional) - - parameter maxPremiereDate: (query) Optional. The maximum premiere date. Format = ISO. (optional) - - parameter hasOverview: (query) Optional filter by items that have an overview or not. (optional) - - parameter hasImdbId: (query) Optional filter by items that have an imdb id or not. (optional) - - parameter hasTmdbId: (query) Optional filter by items that have a tmdb id or not. (optional) - - parameter hasTvdbId: (query) Optional filter by items that have a tvdb id or not. (optional) - - parameter excludeItemIds: (query) Optional. If specified, results will be filtered by exxcluding item ids. This allows multiple, comma delimeted. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter recursive: (query) When searching within folders, this determines whether or not the search will be recursive. true/false. (optional) - - parameter searchTerm: (query) Optional. Filter based on a search term. (optional) - - parameter sortOrder: (query) Sort Order - Ascending,Descending. (optional) - - parameter parentId: (query) Specify this to localize the search to a specific item or folder. Omit to use the root. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimeted. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines. (optional) - - parameter excludeItemTypes: (query) Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimeted. (optional) - - parameter includeItemTypes: (query) Optional. If specified, results will be filtered based on the item type. This allows multiple, comma delimeted. (optional) - - parameter filters: (query) Optional. Specify additional filters to apply. This allows multiple, comma delimeted. Options: IsFolder, IsNotFolder, IsUnplayed, IsPlayed, IsFavorite, IsResumable, Likes, Dislikes. (optional) - - parameter isFavorite: (query) Optional filter by items that are marked as favorite, or not. (optional) - - parameter mediaTypes: (query) Optional filter by MediaType. Allows multiple, comma delimited. (optional) - - parameter imageTypes: (query) Optional. If specified, results will be filtered based on those containing image types. This allows multiple, comma delimited. (optional) - - parameter sortBy: (query) Optional. Specify one or more sort orders, comma delimeted. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. (optional) - - parameter isPlayed: (query) Optional filter by items that are played, or not. (optional) - - parameter genres: (query) Optional. If specified, results will be filtered based on genre. This allows multiple, pipe delimeted. (optional) - - parameter officialRatings: (query) Optional. If specified, results will be filtered based on OfficialRating. This allows multiple, pipe delimeted. (optional) - - parameter tags: (query) Optional. If specified, results will be filtered based on tag. This allows multiple, pipe delimeted. (optional) - - parameter years: (query) Optional. If specified, results will be filtered based on production year. This allows multiple, comma delimeted. (optional) - - parameter enableUserData: (query) Optional, include user data. (optional) - - parameter imageTypeLimit: (query) Optional, the max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter person: (query) Optional. If specified, results will be filtered to include only those containing the specified person. (optional) - - parameter personIds: (query) Optional. If specified, results will be filtered to include only those containing the specified person id. (optional) - - parameter personTypes: (query) Optional. If specified, along with Person, results will be filtered to include only those containing the specified person and PersonType. Allows multiple, comma-delimited. (optional) - - parameter studios: (query) Optional. If specified, results will be filtered based on studio. This allows multiple, pipe delimeted. (optional) - - parameter artists: (query) Optional. If specified, results will be filtered based on artists. This allows multiple, pipe delimeted. (optional) - - parameter excludeArtistIds: (query) Optional. If specified, results will be filtered based on artist id. This allows multiple, pipe delimeted. (optional) - - parameter artistIds: (query) Optional. If specified, results will be filtered to include only those containing the specified artist id. (optional) - - parameter albumArtistIds: (query) Optional. If specified, results will be filtered to include only those containing the specified album artist id. (optional) - - parameter contributingArtistIds: (query) Optional. If specified, results will be filtered to include only those containing the specified contributing artist id. (optional) - - parameter albums: (query) Optional. If specified, results will be filtered based on album. This allows multiple, pipe delimeted. (optional) - - parameter albumIds: (query) Optional. If specified, results will be filtered based on album id. This allows multiple, pipe delimeted. (optional) - - parameter ids: (query) Optional. If specific items are needed, specify a list of item id's to retrieve. This allows multiple, comma delimited. (optional) - - parameter videoTypes: (query) Optional filter by VideoType (videofile, dvd, bluray, iso). Allows multiple, comma delimeted. (optional) - - parameter minOfficialRating: (query) Optional filter by minimum official rating (PG, PG-13, TV-MA, etc). (optional) - - parameter isLocked: (query) Optional filter by items that are locked. (optional) - - parameter isPlaceHolder: (query) Optional filter by items that are placeholders. (optional) - - parameter hasOfficialRating: (query) Optional filter by items that have official ratings. (optional) - - parameter collapseBoxSetItems: (query) Whether or not to hide items behind their boxsets. (optional) - - parameter minWidth: (query) Optional. Filter by the minimum width of the item. (optional) - - parameter minHeight: (query) Optional. Filter by the minimum height of the item. (optional) - - parameter maxWidth: (query) Optional. Filter by the maximum width of the item. (optional) - - parameter maxHeight: (query) Optional. Filter by the maximum height of the item. (optional) - - parameter is3D: (query) Optional filter by items that are 3D, or not. (optional) - - parameter seriesStatus: (query) Optional filter by Series Status. Allows multiple, comma delimeted. (optional) - - parameter nameStartsWithOrGreater: (query) Optional filter by items whose name is sorted equally or greater than a given input string. (optional) - - parameter nameStartsWith: (query) Optional filter by items whose name is sorted equally than a given input string. (optional) - - parameter nameLessThan: (query) Optional filter by items whose name is equally or lesser than a given input string. (optional) - - parameter studioIds: (query) Optional. If specified, results will be filtered based on studio id. This allows multiple, pipe delimeted. (optional) - - parameter genreIds: (query) Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimeted. (optional) - - parameter enableTotalRecordCount: (query) Optional. Enable the total record count. (optional, default to true) - - parameter enableImages: (query) Optional, include image information in output. (optional, default to true) - - - returns: RequestBuilder - */ - open class func getItemsByUserIdWithRequestBuilder(userId: UUID, maxOfficialRating: String? = nil, hasThemeSong: Bool? = nil, hasThemeVideo: Bool? = nil, hasSubtitles: Bool? = nil, hasSpecialFeature: Bool? = nil, hasTrailer: Bool? = nil, adjacentTo: String? = nil, parentIndexNumber: Int? = nil, hasParentalRating: Bool? = nil, isHd: Bool? = nil, is4K: Bool? = nil, locationTypes: [LocationType]? = nil, excludeLocationTypes: [LocationType]? = nil, isMissing: Bool? = nil, isUnaired: Bool? = nil, minCommunityRating: Double? = nil, minCriticRating: Double? = nil, minPremiereDate: Date? = nil, minDateLastSaved: Date? = nil, minDateLastSavedForUser: Date? = nil, maxPremiereDate: Date? = nil, hasOverview: Bool? = nil, hasImdbId: Bool? = nil, hasTmdbId: Bool? = nil, hasTvdbId: Bool? = nil, excludeItemIds: [UUID]? = nil, startIndex: Int? = nil, limit: Int? = nil, recursive: Bool? = nil, searchTerm: String? = nil, sortOrder: [SortOrder]? = nil, parentId: UUID? = nil, fields: [ItemFields]? = nil, excludeItemTypes: [String]? = nil, includeItemTypes: [String]? = nil, filters: [ItemFilter]? = nil, isFavorite: Bool? = nil, mediaTypes: [String]? = nil, imageTypes: [ImageType]? = nil, sortBy: [String]? = nil, isPlayed: Bool? = nil, genres: [String]? = nil, officialRatings: [String]? = nil, tags: [String]? = nil, years: [Int]? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, person: String? = nil, personIds: [UUID]? = nil, personTypes: [String]? = nil, studios: [String]? = nil, artists: [String]? = nil, excludeArtistIds: [UUID]? = nil, artistIds: [UUID]? = nil, albumArtistIds: [UUID]? = nil, contributingArtistIds: [UUID]? = nil, albums: [String]? = nil, albumIds: [UUID]? = nil, ids: [UUID]? = nil, videoTypes: [VideoType]? = nil, minOfficialRating: String? = nil, isLocked: Bool? = nil, isPlaceHolder: Bool? = nil, hasOfficialRating: Bool? = nil, collapseBoxSetItems: Bool? = nil, minWidth: Int? = nil, minHeight: Int? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, is3D: Bool? = nil, seriesStatus: [SeriesStatus]? = nil, nameStartsWithOrGreater: String? = nil, nameStartsWith: String? = nil, nameLessThan: String? = nil, studioIds: [UUID]? = nil, genreIds: [UUID]? = nil, enableTotalRecordCount: Bool? = nil, enableImages: Bool? = nil) -> RequestBuilder { - var path = "/Users/{userId}/Items" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "maxOfficialRating": maxOfficialRating, - "hasThemeSong": hasThemeSong, - "hasThemeVideo": hasThemeVideo, - "hasSubtitles": hasSubtitles, - "hasSpecialFeature": hasSpecialFeature, - "hasTrailer": hasTrailer, - "adjacentTo": adjacentTo, - "parentIndexNumber": parentIndexNumber?.encodeToJSON(), - "hasParentalRating": hasParentalRating, - "isHd": isHd, - "is4K": is4K, - "locationTypes": locationTypes, - "excludeLocationTypes": excludeLocationTypes, - "isMissing": isMissing, - "isUnaired": isUnaired, - "minCommunityRating": minCommunityRating, - "minCriticRating": minCriticRating, - "minPremiereDate": minPremiereDate?.encodeToJSON(), - "minDateLastSaved": minDateLastSaved?.encodeToJSON(), - "minDateLastSavedForUser": minDateLastSavedForUser?.encodeToJSON(), - "maxPremiereDate": maxPremiereDate?.encodeToJSON(), - "hasOverview": hasOverview, - "hasImdbId": hasImdbId, - "hasTmdbId": hasTmdbId, - "hasTvdbId": hasTvdbId, - "excludeItemIds": excludeItemIds, - "startIndex": startIndex?.encodeToJSON(), - "limit": limit?.encodeToJSON(), - "recursive": recursive, - "searchTerm": searchTerm, - "sortOrder": sortOrder, - "parentId": parentId, - "fields": fields, - "excludeItemTypes": excludeItemTypes, - "includeItemTypes": includeItemTypes, - "filters": filters, - "isFavorite": isFavorite, - "mediaTypes": mediaTypes, - "imageTypes": imageTypes, - "sortBy": sortBy, - "isPlayed": isPlayed, - "genres": genres, - "officialRatings": officialRatings, - "tags": tags, - "years": years, - "enableUserData": enableUserData, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes, - "person": person, - "personIds": personIds, - "personTypes": personTypes, - "studios": studios, - "artists": artists, - "excludeArtistIds": excludeArtistIds, - "artistIds": artistIds, - "albumArtistIds": albumArtistIds, - "contributingArtistIds": contributingArtistIds, - "albums": albums, - "albumIds": albumIds, - "ids": ids, - "videoTypes": videoTypes, - "minOfficialRating": minOfficialRating, - "isLocked": isLocked, - "isPlaceHolder": isPlaceHolder, - "hasOfficialRating": hasOfficialRating, - "collapseBoxSetItems": collapseBoxSetItems, - "minWidth": minWidth?.encodeToJSON(), - "minHeight": minHeight?.encodeToJSON(), - "maxWidth": maxWidth?.encodeToJSON(), - "maxHeight": maxHeight?.encodeToJSON(), - "is3D": is3D, - "seriesStatus": seriesStatus, - "nameStartsWithOrGreater": nameStartsWithOrGreater, - "nameStartsWith": nameStartsWith, - "nameLessThan": nameLessThan, - "studioIds": studioIds, - "genreIds": genreIds, - "enableTotalRecordCount": enableTotalRecordCount, - "enableImages": enableImages - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets items based on a query. - - - parameter userId: (path) The user id. - - parameter startIndex: (query) The start index. (optional) - - parameter limit: (query) The item limit. (optional) - - parameter searchTerm: (query) The search term. (optional) - - parameter parentId: (query) Specify this to localize the search to a specific item or folder. Omit to use the root. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines. (optional) - - parameter mediaTypes: (query) Optional. Filter by MediaType. Allows multiple, comma delimited. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter excludeItemTypes: (query) Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. (optional) - - parameter includeItemTypes: (query) Optional. If specified, results will be filtered based on the item type. This allows multiple, comma delimited. (optional) - - parameter enableTotalRecordCount: (query) Optional. Enable the total record count. (optional, default to true) - - parameter enableImages: (query) Optional. Include image information in output. (optional, default to true) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getResumeItems(userId: UUID, startIndex: Int? = nil, limit: Int? = nil, searchTerm: String? = nil, parentId: UUID? = nil, fields: [ItemFields]? = nil, mediaTypes: [String]? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, excludeItemTypes: [String]? = nil, includeItemTypes: [String]? = nil, enableTotalRecordCount: Bool? = nil, enableImages: Bool? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getResumeItemsWithRequestBuilder(userId: userId, startIndex: startIndex, limit: limit, searchTerm: searchTerm, parentId: parentId, fields: fields, mediaTypes: mediaTypes, enableUserData: enableUserData, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes, excludeItemTypes: excludeItemTypes, includeItemTypes: includeItemTypes, enableTotalRecordCount: enableTotalRecordCount, enableImages: enableImages).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets items based on a query. - - GET /Users/{userId}/Items/Resume - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter userId: (path) The user id. - - parameter startIndex: (query) The start index. (optional) - - parameter limit: (query) The item limit. (optional) - - parameter searchTerm: (query) The search term. (optional) - - parameter parentId: (query) Specify this to localize the search to a specific item or folder. Omit to use the root. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines. (optional) - - parameter mediaTypes: (query) Optional. Filter by MediaType. Allows multiple, comma delimited. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter excludeItemTypes: (query) Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. (optional) - - parameter includeItemTypes: (query) Optional. If specified, results will be filtered based on the item type. This allows multiple, comma delimited. (optional) - - parameter enableTotalRecordCount: (query) Optional. Enable the total record count. (optional, default to true) - - parameter enableImages: (query) Optional. Include image information in output. (optional, default to true) - - - returns: RequestBuilder - */ - open class func getResumeItemsWithRequestBuilder(userId: UUID, startIndex: Int? = nil, limit: Int? = nil, searchTerm: String? = nil, parentId: UUID? = nil, fields: [ItemFields]? = nil, mediaTypes: [String]? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, excludeItemTypes: [String]? = nil, includeItemTypes: [String]? = nil, enableTotalRecordCount: Bool? = nil, enableImages: Bool? = nil) -> RequestBuilder { - var path = "/Users/{userId}/Items/Resume" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "startIndex": startIndex?.encodeToJSON(), - "limit": limit?.encodeToJSON(), - "searchTerm": searchTerm, - "parentId": parentId, - "fields": fields, - "mediaTypes": mediaTypes, - "enableUserData": enableUserData, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes, - "excludeItemTypes": excludeItemTypes, - "includeItemTypes": includeItemTypes, - "enableTotalRecordCount": enableTotalRecordCount, - "enableImages": enableImages - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/LibraryAPI.swift b/JellyfinPlayer/Swaggers/APIs/LibraryAPI.swift deleted file mode 100644 index 0dce22da..00000000 --- a/JellyfinPlayer/Swaggers/APIs/LibraryAPI.swift +++ /dev/null @@ -1,15195 +0,0 @@ -// -// LibraryAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class LibraryAPI { - /** - Deletes an item from the library and filesystem. - - - parameter itemId: (path) The item id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func deleteItem(itemId: UUID, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - deleteItemWithRequestBuilder(itemId: itemId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Deletes an item from the library and filesystem. - - DELETE /Items/{itemId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter itemId: (path) The item id. - - - returns: RequestBuilder - */ - open class func deleteItemWithRequestBuilder(itemId: UUID) -> RequestBuilder { - var path = "/Items/{itemId}" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Deletes items from the library and filesystem. - - - parameter ids: (query) The item ids. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func deleteItems(ids: [UUID]? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - deleteItemsWithRequestBuilder(ids: ids).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Deletes items from the library and filesystem. - - DELETE /Items - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter ids: (query) The item ids. (optional) - - - returns: RequestBuilder - */ - open class func deleteItemsWithRequestBuilder(ids: [UUID]? = nil) -> RequestBuilder { - let path = "/Items" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "ids": ids - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets all parents of an item. - - - parameter itemId: (path) The item id. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getAncestors(itemId: UUID, userId: UUID? = nil, completion: @escaping ((_ data: [BaseItemDto]?,_ error: Error?) -> Void)) { - getAncestorsWithRequestBuilder(itemId: itemId, userId: userId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets all parents of an item. - - GET /Items/{itemId}/Ancestors - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 -}, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 -} ]}] - - parameter itemId: (path) The item id. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - - returns: RequestBuilder<[BaseItemDto]> - */ - open class func getAncestorsWithRequestBuilder(itemId: UUID, userId: UUID? = nil) -> RequestBuilder<[BaseItemDto]> { - var path = "/Items/{itemId}/Ancestors" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId - ]) - - - let requestBuilder: RequestBuilder<[BaseItemDto]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets critic review for an item. - - - parameter itemId: (path) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getCriticReviews(itemId: String, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getCriticReviewsWithRequestBuilder(itemId: itemId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets critic review for an item. - - GET /Items/{itemId}/CriticReviews - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter itemId: (path) - - - returns: RequestBuilder - */ - open class func getCriticReviewsWithRequestBuilder(itemId: String) -> RequestBuilder { - var path = "/Items/{itemId}/CriticReviews" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Downloads item media. - - - parameter itemId: (path) The item id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getDownload(itemId: UUID, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getDownloadWithRequestBuilder(itemId: itemId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Downloads item media. - - GET /Items/{itemId}/Download - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) The item id. - - - returns: RequestBuilder - */ - open class func getDownloadWithRequestBuilder(itemId: UUID) -> RequestBuilder { - var path = "/Items/{itemId}/Download" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get the original file of an item. - - - parameter itemId: (path) The item id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getFile(itemId: UUID, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getFileWithRequestBuilder(itemId: itemId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get the original file of an item. - - GET /Items/{itemId}/File - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) The item id. - - - returns: RequestBuilder - */ - open class func getFileWithRequestBuilder(itemId: UUID) -> RequestBuilder { - var path = "/Items/{itemId}/File" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get item counts. - - - parameter userId: (query) Optional. Get counts from a specific user's library. (optional) - - parameter isFavorite: (query) Optional. Get counts of favorite items. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getItemCounts(userId: UUID? = nil, isFavorite: Bool? = nil, completion: @escaping ((_ data: ItemCounts?,_ error: Error?) -> Void)) { - getItemCountsWithRequestBuilder(userId: userId, isFavorite: isFavorite).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get item counts. - - GET /Items/Counts - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "SeriesCount" : 6, - "BookCount" : 4, - "TrailerCount" : 2, - "AlbumCount" : 9, - "MusicVideoCount" : 3, - "MovieCount" : 0, - "BoxSetCount" : 2, - "EpisodeCount" : 1, - "ProgramCount" : 5, - "ItemCount" : 7, - "SongCount" : 7, - "ArtistCount" : 5 -}}] - - parameter userId: (query) Optional. Get counts from a specific user's library. (optional) - - parameter isFavorite: (query) Optional. Get counts of favorite items. (optional) - - - returns: RequestBuilder - */ - open class func getItemCountsWithRequestBuilder(userId: UUID? = nil, isFavorite: Bool? = nil) -> RequestBuilder { - let path = "/Items/Counts" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId, - "isFavorite": isFavorite - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets the library options info. - - - parameter libraryContentType: (query) Library content type. (optional) - - parameter isNewLibrary: (query) Whether this is a new library. (optional, default to false) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getLibraryOptionsInfo(libraryContentType: String? = nil, isNewLibrary: Bool? = nil, completion: @escaping ((_ data: LibraryOptionsResultDto?,_ error: Error?) -> Void)) { - getLibraryOptionsInfoWithRequestBuilder(libraryContentType: libraryContentType, isNewLibrary: isNewLibrary).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets the library options info. - - GET /Libraries/AvailableOptions - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TypeOptions" : [ { - "DefaultImageOptions" : [ { - "Type" : "", - "Limit" : 0, - "MinWidth" : 6 - }, { - "Type" : "", - "Limit" : 0, - "MinWidth" : 6 - } ], - "Type" : "Type", - "SupportedImageTypes" : [ "Primary", "Primary" ], - "ImageFetchers" : [ null, null ], - "MetadataFetchers" : [ null, null ] - }, { - "DefaultImageOptions" : [ { - "Type" : "", - "Limit" : 0, - "MinWidth" : 6 - }, { - "Type" : "", - "Limit" : 0, - "MinWidth" : 6 - } ], - "Type" : "Type", - "SupportedImageTypes" : [ "Primary", "Primary" ], - "ImageFetchers" : [ null, null ], - "MetadataFetchers" : [ null, null ] - } ], - "MetadataReaders" : [ null, null ], - "SubtitleFetchers" : [ null, null ], - "MetadataSavers" : [ { - "DefaultEnabled" : true, - "Name" : "Name" - }, { - "DefaultEnabled" : true, - "Name" : "Name" - } ] -}}] - - parameter libraryContentType: (query) Library content type. (optional) - - parameter isNewLibrary: (query) Whether this is a new library. (optional, default to false) - - - returns: RequestBuilder - */ - open class func getLibraryOptionsInfoWithRequestBuilder(libraryContentType: String? = nil, isNewLibrary: Bool? = nil) -> RequestBuilder { - let path = "/Libraries/AvailableOptions" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "libraryContentType": libraryContentType, - "isNewLibrary": isNewLibrary - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets all user media folders. - - - parameter isHidden: (query) Optional. Filter by folders that are marked hidden, or not. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getMediaFolders(isHidden: Bool? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getMediaFoldersWithRequestBuilder(isHidden: isHidden).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets all user media folders. - - GET /Library/MediaFolders - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter isHidden: (query) Optional. Filter by folders that are marked hidden, or not. (optional) - - - returns: RequestBuilder - */ - open class func getMediaFoldersWithRequestBuilder(isHidden: Bool? = nil) -> RequestBuilder { - let path = "/Library/MediaFolders" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "isHidden": isHidden - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a list of physical paths from virtual folders. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getPhysicalPaths(completion: @escaping ((_ data: [String]?,_ error: Error?) -> Void)) { - getPhysicalPathsWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a list of physical paths from virtual folders. - - GET /Library/PhysicalPaths - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ "", "" ]}] - - - returns: RequestBuilder<[String]> - */ - open class func getPhysicalPathsWithRequestBuilder() -> RequestBuilder<[String]> { - let path = "/Library/PhysicalPaths" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[String]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets similar items. - - - parameter itemId: (path) The item id. - - parameter excludeArtistIds: (query) Exclude artist ids. (optional) - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getSimilarAlbums(itemId: UUID, excludeArtistIds: [UUID]? = nil, userId: UUID? = nil, limit: Int? = nil, fields: [ItemFields]? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getSimilarAlbumsWithRequestBuilder(itemId: itemId, excludeArtistIds: excludeArtistIds, userId: userId, limit: limit, fields: fields).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets similar items. - - GET /Albums/{itemId}/Similar - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter itemId: (path) The item id. - - parameter excludeArtistIds: (query) Exclude artist ids. (optional) - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls. (optional) - - - returns: RequestBuilder - */ - open class func getSimilarAlbumsWithRequestBuilder(itemId: UUID, excludeArtistIds: [UUID]? = nil, userId: UUID? = nil, limit: Int? = nil, fields: [ItemFields]? = nil) -> RequestBuilder { - var path = "/Albums/{itemId}/Similar" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "excludeArtistIds": excludeArtistIds, - "userId": userId, - "limit": limit?.encodeToJSON(), - "fields": fields - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets similar items. - - - parameter itemId: (path) The item id. - - parameter excludeArtistIds: (query) Exclude artist ids. (optional) - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getSimilarArtists(itemId: UUID, excludeArtistIds: [UUID]? = nil, userId: UUID? = nil, limit: Int? = nil, fields: [ItemFields]? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getSimilarArtistsWithRequestBuilder(itemId: itemId, excludeArtistIds: excludeArtistIds, userId: userId, limit: limit, fields: fields).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets similar items. - - GET /Artists/{itemId}/Similar - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter itemId: (path) The item id. - - parameter excludeArtistIds: (query) Exclude artist ids. (optional) - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls. (optional) - - - returns: RequestBuilder - */ - open class func getSimilarArtistsWithRequestBuilder(itemId: UUID, excludeArtistIds: [UUID]? = nil, userId: UUID? = nil, limit: Int? = nil, fields: [ItemFields]? = nil) -> RequestBuilder { - var path = "/Artists/{itemId}/Similar" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "excludeArtistIds": excludeArtistIds, - "userId": userId, - "limit": limit?.encodeToJSON(), - "fields": fields - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets similar items. - - - parameter itemId: (path) The item id. - - parameter excludeArtistIds: (query) Exclude artist ids. (optional) - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getSimilarItems(itemId: UUID, excludeArtistIds: [UUID]? = nil, userId: UUID? = nil, limit: Int? = nil, fields: [ItemFields]? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getSimilarItemsWithRequestBuilder(itemId: itemId, excludeArtistIds: excludeArtistIds, userId: userId, limit: limit, fields: fields).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets similar items. - - GET /Items/{itemId}/Similar - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter itemId: (path) The item id. - - parameter excludeArtistIds: (query) Exclude artist ids. (optional) - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls. (optional) - - - returns: RequestBuilder - */ - open class func getSimilarItemsWithRequestBuilder(itemId: UUID, excludeArtistIds: [UUID]? = nil, userId: UUID? = nil, limit: Int? = nil, fields: [ItemFields]? = nil) -> RequestBuilder { - var path = "/Items/{itemId}/Similar" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "excludeArtistIds": excludeArtistIds, - "userId": userId, - "limit": limit?.encodeToJSON(), - "fields": fields - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets similar items. - - - parameter itemId: (path) The item id. - - parameter excludeArtistIds: (query) Exclude artist ids. (optional) - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getSimilarMovies(itemId: UUID, excludeArtistIds: [UUID]? = nil, userId: UUID? = nil, limit: Int? = nil, fields: [ItemFields]? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getSimilarMoviesWithRequestBuilder(itemId: itemId, excludeArtistIds: excludeArtistIds, userId: userId, limit: limit, fields: fields).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets similar items. - - GET /Movies/{itemId}/Similar - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter itemId: (path) The item id. - - parameter excludeArtistIds: (query) Exclude artist ids. (optional) - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls. (optional) - - - returns: RequestBuilder - */ - open class func getSimilarMoviesWithRequestBuilder(itemId: UUID, excludeArtistIds: [UUID]? = nil, userId: UUID? = nil, limit: Int? = nil, fields: [ItemFields]? = nil) -> RequestBuilder { - var path = "/Movies/{itemId}/Similar" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "excludeArtistIds": excludeArtistIds, - "userId": userId, - "limit": limit?.encodeToJSON(), - "fields": fields - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets similar items. - - - parameter itemId: (path) The item id. - - parameter excludeArtistIds: (query) Exclude artist ids. (optional) - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getSimilarShows(itemId: UUID, excludeArtistIds: [UUID]? = nil, userId: UUID? = nil, limit: Int? = nil, fields: [ItemFields]? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getSimilarShowsWithRequestBuilder(itemId: itemId, excludeArtistIds: excludeArtistIds, userId: userId, limit: limit, fields: fields).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets similar items. - - GET /Shows/{itemId}/Similar - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter itemId: (path) The item id. - - parameter excludeArtistIds: (query) Exclude artist ids. (optional) - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls. (optional) - - - returns: RequestBuilder - */ - open class func getSimilarShowsWithRequestBuilder(itemId: UUID, excludeArtistIds: [UUID]? = nil, userId: UUID? = nil, limit: Int? = nil, fields: [ItemFields]? = nil) -> RequestBuilder { - var path = "/Shows/{itemId}/Similar" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "excludeArtistIds": excludeArtistIds, - "userId": userId, - "limit": limit?.encodeToJSON(), - "fields": fields - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets similar items. - - - parameter itemId: (path) The item id. - - parameter excludeArtistIds: (query) Exclude artist ids. (optional) - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getSimilarTrailers(itemId: UUID, excludeArtistIds: [UUID]? = nil, userId: UUID? = nil, limit: Int? = nil, fields: [ItemFields]? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getSimilarTrailersWithRequestBuilder(itemId: itemId, excludeArtistIds: excludeArtistIds, userId: userId, limit: limit, fields: fields).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets similar items. - - GET /Trailers/{itemId}/Similar - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter itemId: (path) The item id. - - parameter excludeArtistIds: (query) Exclude artist ids. (optional) - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls. (optional) - - - returns: RequestBuilder - */ - open class func getSimilarTrailersWithRequestBuilder(itemId: UUID, excludeArtistIds: [UUID]? = nil, userId: UUID? = nil, limit: Int? = nil, fields: [ItemFields]? = nil) -> RequestBuilder { - var path = "/Trailers/{itemId}/Similar" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "excludeArtistIds": excludeArtistIds, - "userId": userId, - "limit": limit?.encodeToJSON(), - "fields": fields - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get theme songs and videos for an item. - - - parameter itemId: (path) The item id. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter inheritFromParent: (query) Optional. Determines whether or not parent items should be searched for theme media. (optional, default to false) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getThemeMedia(itemId: UUID, userId: UUID? = nil, inheritFromParent: Bool? = nil, completion: @escaping ((_ data: AllThemeMediaResult?,_ error: Error?) -> Void)) { - getThemeMediaWithRequestBuilder(itemId: itemId, userId: userId, inheritFromParent: inheritFromParent).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get theme songs and videos for an item. - - GET /Items/{itemId}/ThemeMedia - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "ThemeVideosResult" : "", - "SoundtrackSongsResult" : "", - "ThemeSongsResult" : "" -}}] - - parameter itemId: (path) The item id. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter inheritFromParent: (query) Optional. Determines whether or not parent items should be searched for theme media. (optional, default to false) - - - returns: RequestBuilder - */ - open class func getThemeMediaWithRequestBuilder(itemId: UUID, userId: UUID? = nil, inheritFromParent: Bool? = nil) -> RequestBuilder { - var path = "/Items/{itemId}/ThemeMedia" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId, - "inheritFromParent": inheritFromParent - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get theme songs for an item. - - - parameter itemId: (path) The item id. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter inheritFromParent: (query) Optional. Determines whether or not parent items should be searched for theme media. (optional, default to false) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getThemeSongs(itemId: UUID, userId: UUID? = nil, inheritFromParent: Bool? = nil, completion: @escaping ((_ data: ThemeMediaResult?,_ error: Error?) -> Void)) { - getThemeSongsWithRequestBuilder(itemId: itemId, userId: userId, inheritFromParent: inheritFromParent).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get theme songs for an item. - - GET /Items/{itemId}/ThemeSongs - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 0, - "StartIndex" : 6, - "OwnerId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter itemId: (path) The item id. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter inheritFromParent: (query) Optional. Determines whether or not parent items should be searched for theme media. (optional, default to false) - - - returns: RequestBuilder - */ - open class func getThemeSongsWithRequestBuilder(itemId: UUID, userId: UUID? = nil, inheritFromParent: Bool? = nil) -> RequestBuilder { - var path = "/Items/{itemId}/ThemeSongs" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId, - "inheritFromParent": inheritFromParent - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get theme videos for an item. - - - parameter itemId: (path) The item id. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter inheritFromParent: (query) Optional. Determines whether or not parent items should be searched for theme media. (optional, default to false) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getThemeVideos(itemId: UUID, userId: UUID? = nil, inheritFromParent: Bool? = nil, completion: @escaping ((_ data: ThemeMediaResult?,_ error: Error?) -> Void)) { - getThemeVideosWithRequestBuilder(itemId: itemId, userId: userId, inheritFromParent: inheritFromParent).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get theme videos for an item. - - GET /Items/{itemId}/ThemeVideos - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 0, - "StartIndex" : 6, - "OwnerId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter itemId: (path) The item id. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter inheritFromParent: (query) Optional. Determines whether or not parent items should be searched for theme media. (optional, default to false) - - - returns: RequestBuilder - */ - open class func getThemeVideosWithRequestBuilder(itemId: UUID, userId: UUID? = nil, inheritFromParent: Bool? = nil) -> RequestBuilder { - var path = "/Items/{itemId}/ThemeVideos" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId, - "inheritFromParent": inheritFromParent - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Reports that new movies have been added by an external source. - - - parameter tmdbId: (query) The tmdbId. (optional) - - parameter imdbId: (query) The imdbId. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func postAddedMovies(tmdbId: String? = nil, imdbId: String? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - postAddedMoviesWithRequestBuilder(tmdbId: tmdbId, imdbId: imdbId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Reports that new movies have been added by an external source. - - POST /Library/Movies/Added - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter tmdbId: (query) The tmdbId. (optional) - - parameter imdbId: (query) The imdbId. (optional) - - - returns: RequestBuilder - */ - open class func postAddedMoviesWithRequestBuilder(tmdbId: String? = nil, imdbId: String? = nil) -> RequestBuilder { - let path = "/Library/Movies/Added" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "tmdbId": tmdbId, - "imdbId": imdbId - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Reports that new episodes of a series have been added by an external source. - - - parameter tvdbId: (query) The tvdbId. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func postAddedSeries(tvdbId: String? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - postAddedSeriesWithRequestBuilder(tvdbId: tvdbId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Reports that new episodes of a series have been added by an external source. - - POST /Library/Series/Added - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter tvdbId: (query) The tvdbId. (optional) - - - returns: RequestBuilder - */ - open class func postAddedSeriesWithRequestBuilder(tvdbId: String? = nil) -> RequestBuilder { - let path = "/Library/Series/Added" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "tvdbId": tvdbId - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Reports that new movies have been added by an external source. - - - parameter body: (body) The update paths. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func postUpdatedMedia(body: MediaUpdatedBody, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - postUpdatedMediaWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Reports that new movies have been added by an external source. - - POST /Library/Media/Updated - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The update paths. - - - returns: RequestBuilder - */ - open class func postUpdatedMediaWithRequestBuilder(body: MediaUpdatedBody) -> RequestBuilder { - let path = "/Library/Media/Updated" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Reports that new movies have been added by an external source. - - - parameter tmdbId: (query) The tmdbId. (optional) - - parameter imdbId: (query) The imdbId. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func postUpdatedMovies(tmdbId: String? = nil, imdbId: String? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - postUpdatedMoviesWithRequestBuilder(tmdbId: tmdbId, imdbId: imdbId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Reports that new movies have been added by an external source. - - POST /Library/Movies/Updated - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter tmdbId: (query) The tmdbId. (optional) - - parameter imdbId: (query) The imdbId. (optional) - - - returns: RequestBuilder - */ - open class func postUpdatedMoviesWithRequestBuilder(tmdbId: String? = nil, imdbId: String? = nil) -> RequestBuilder { - let path = "/Library/Movies/Updated" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "tmdbId": tmdbId, - "imdbId": imdbId - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Reports that new episodes of a series have been added by an external source. - - - parameter tvdbId: (query) The tvdbId. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func postUpdatedSeries(tvdbId: String? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - postUpdatedSeriesWithRequestBuilder(tvdbId: tvdbId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Reports that new episodes of a series have been added by an external source. - - POST /Library/Series/Updated - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter tvdbId: (query) The tvdbId. (optional) - - - returns: RequestBuilder - */ - open class func postUpdatedSeriesWithRequestBuilder(tvdbId: String? = nil) -> RequestBuilder { - let path = "/Library/Series/Updated" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "tvdbId": tvdbId - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Starts a library scan. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func refreshLibrary(completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - refreshLibraryWithRequestBuilder().execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Starts a library scan. - - POST /Library/Refresh - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - - returns: RequestBuilder - */ - open class func refreshLibraryWithRequestBuilder() -> RequestBuilder { - let path = "/Library/Refresh" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/LibraryStructureAPI.swift b/JellyfinPlayer/Swaggers/APIs/LibraryStructureAPI.swift deleted file mode 100644 index 1288dad5..00000000 --- a/JellyfinPlayer/Swaggers/APIs/LibraryStructureAPI.swift +++ /dev/null @@ -1,389 +0,0 @@ -// -// LibraryStructureAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class LibraryStructureAPI { - /** - Add a media path to a library. - - - parameter body: (body) The media path dto. - - parameter refreshLibrary: (query) Whether to refresh the library. (optional, default to false) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func addMediaPath(body: VirtualFoldersPathsBody, refreshLibrary: Bool? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - addMediaPathWithRequestBuilder(body: body, refreshLibrary: refreshLibrary).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Add a media path to a library. - - POST /Library/VirtualFolders/Paths - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The media path dto. - - parameter refreshLibrary: (query) Whether to refresh the library. (optional, default to false) - - - returns: RequestBuilder - */ - open class func addMediaPathWithRequestBuilder(body: VirtualFoldersPathsBody, refreshLibrary: Bool? = nil) -> RequestBuilder { - let path = "/Library/VirtualFolders/Paths" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "refreshLibrary": refreshLibrary - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Adds a virtual folder. - - - parameter body: (body) The library options. (optional) - - parameter name: (query) The name of the virtual folder. (optional) - - parameter collectionType: (query) The type of the collection. (optional) - - parameter paths: (query) The paths of the virtual folder. (optional) - - parameter refreshLibrary: (query) Whether to refresh the library. (optional, default to false) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func addVirtualFolder(body: LibraryVirtualFoldersBody? = nil, name: String? = nil, collectionType: CollectionType? = nil, paths: [String]? = nil, refreshLibrary: Bool? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - addVirtualFolderWithRequestBuilder(body: body, name: name, collectionType: collectionType, paths: paths, refreshLibrary: refreshLibrary).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Adds a virtual folder. - - POST /Library/VirtualFolders - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The library options. (optional) - - parameter name: (query) The name of the virtual folder. (optional) - - parameter collectionType: (query) The type of the collection. (optional) - - parameter paths: (query) The paths of the virtual folder. (optional) - - parameter refreshLibrary: (query) Whether to refresh the library. (optional, default to false) - - - returns: RequestBuilder - */ - open class func addVirtualFolderWithRequestBuilder(body: LibraryVirtualFoldersBody? = nil, name: String? = nil, collectionType: CollectionType? = nil, paths: [String]? = nil, refreshLibrary: Bool? = nil) -> RequestBuilder { - let path = "/Library/VirtualFolders" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "name": name, - "collectionType": collectionType, - "paths": paths, - "refreshLibrary": refreshLibrary - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Gets all virtual folders. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getVirtualFolders(completion: @escaping ((_ data: [VirtualFolderInfo]?,_ error: Error?) -> Void)) { - getVirtualFoldersWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets all virtual folders. - - GET /Library/VirtualFolders - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "RefreshProgress" : 0.8008281904610115, - "PrimaryImageItemId" : "PrimaryImageItemId", - "CollectionType" : "", - "Locations" : [ "Locations", "Locations" ], - "LibraryOptions" : "", - "ItemId" : "ItemId", - "RefreshStatus" : "RefreshStatus", - "Name" : "Name" -}, { - "RefreshProgress" : 0.8008281904610115, - "PrimaryImageItemId" : "PrimaryImageItemId", - "CollectionType" : "", - "Locations" : [ "Locations", "Locations" ], - "LibraryOptions" : "", - "ItemId" : "ItemId", - "RefreshStatus" : "RefreshStatus", - "Name" : "Name" -} ]}] - - - returns: RequestBuilder<[VirtualFolderInfo]> - */ - open class func getVirtualFoldersWithRequestBuilder() -> RequestBuilder<[VirtualFolderInfo]> { - let path = "/Library/VirtualFolders" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[VirtualFolderInfo]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Remove a media path. - - - parameter name: (query) The name of the library. (optional) - - parameter path: (query) The path to remove. (optional) - - parameter refreshLibrary: (query) Whether to refresh the library. (optional, default to false) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func removeMediaPath(name: String? = nil, path: String? = nil, refreshLibrary: Bool? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - removeMediaPathWithRequestBuilder(name: name, path: path, refreshLibrary: refreshLibrary).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Remove a media path. - - DELETE /Library/VirtualFolders/Paths - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter name: (query) The name of the library. (optional) - - parameter path: (query) The path to remove. (optional) - - parameter refreshLibrary: (query) Whether to refresh the library. (optional, default to false) - - - returns: RequestBuilder - */ - open class func removeMediaPathWithRequestBuilder(name: String? = nil, path: String? = nil, refreshLibrary: Bool? = nil) -> RequestBuilder { - let path = "/Library/VirtualFolders/Paths" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "name": name, - "path": path, - "refreshLibrary": refreshLibrary - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Removes a virtual folder. - - - parameter name: (query) The name of the folder. (optional) - - parameter refreshLibrary: (query) Whether to refresh the library. (optional, default to false) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func removeVirtualFolder(name: String? = nil, refreshLibrary: Bool? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - removeVirtualFolderWithRequestBuilder(name: name, refreshLibrary: refreshLibrary).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Removes a virtual folder. - - DELETE /Library/VirtualFolders - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter name: (query) The name of the folder. (optional) - - parameter refreshLibrary: (query) Whether to refresh the library. (optional, default to false) - - - returns: RequestBuilder - */ - open class func removeVirtualFolderWithRequestBuilder(name: String? = nil, refreshLibrary: Bool? = nil) -> RequestBuilder { - let path = "/Library/VirtualFolders" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "name": name, - "refreshLibrary": refreshLibrary - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Renames a virtual folder. - - - parameter name: (query) The name of the virtual folder. (optional) - - parameter newName: (query) The new name. (optional) - - parameter refreshLibrary: (query) Whether to refresh the library. (optional, default to false) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func renameVirtualFolder(name: String? = nil, newName: String? = nil, refreshLibrary: Bool? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - renameVirtualFolderWithRequestBuilder(name: name, newName: newName, refreshLibrary: refreshLibrary).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Renames a virtual folder. - - POST /Library/VirtualFolders/Name - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter name: (query) The name of the virtual folder. (optional) - - parameter newName: (query) The new name. (optional) - - parameter refreshLibrary: (query) Whether to refresh the library. (optional, default to false) - - - returns: RequestBuilder - */ - open class func renameVirtualFolderWithRequestBuilder(name: String? = nil, newName: String? = nil, refreshLibrary: Bool? = nil) -> RequestBuilder { - let path = "/Library/VirtualFolders/Name" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "name": name, - "newName": newName, - "refreshLibrary": refreshLibrary - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Update library options. - - - parameter body: (body) The library name and options. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func updateLibraryOptions(body: VirtualFoldersLibraryOptionsBody? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - updateLibraryOptionsWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Update library options. - - POST /Library/VirtualFolders/LibraryOptions - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The library name and options. (optional) - - - returns: RequestBuilder - */ - open class func updateLibraryOptionsWithRequestBuilder(body: VirtualFoldersLibraryOptionsBody? = nil) -> RequestBuilder { - let path = "/Library/VirtualFolders/LibraryOptions" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Updates a media path. - - - parameter body: (body) The name of the library and path infos. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func updateMediaPath(body: PathsUpdateBody, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - updateMediaPathWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Updates a media path. - - POST /Library/VirtualFolders/Paths/Update - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The name of the library and path infos. - - - returns: RequestBuilder - */ - open class func updateMediaPathWithRequestBuilder(body: PathsUpdateBody) -> RequestBuilder { - let path = "/Library/VirtualFolders/Paths/Update" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/LiveTvAPI.swift b/JellyfinPlayer/Swaggers/APIs/LiveTvAPI.swift deleted file mode 100644 index ba5f23bf..00000000 --- a/JellyfinPlayer/Swaggers/APIs/LiveTvAPI.swift +++ /dev/null @@ -1,14473 +0,0 @@ -// -// LiveTvAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class LiveTvAPI { - /** - Adds a listings provider. - - - parameter body: (body) New listings info. (optional) - - parameter pw: (query) Password. (optional) - - parameter validateListings: (query) Validate listings. (optional, default to false) - - parameter validateLogin: (query) Validate login. (optional, default to false) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func addListingProvider(body: LiveTvListingProvidersBody? = nil, pw: String? = nil, validateListings: Bool? = nil, validateLogin: Bool? = nil, completion: @escaping ((_ data: ListingsProviderInfo?,_ error: Error?) -> Void)) { - addListingProviderWithRequestBuilder(body: body, pw: pw, validateListings: validateListings, validateLogin: validateLogin).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Adds a listings provider. - - POST /LiveTv/ListingProviders - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "Path" : "Path", - "NewsCategories" : [ "NewsCategories", "NewsCategories" ], - "ZipCode" : "ZipCode", - "ChannelMappings" : [ { - "Value" : "Value", - "Name" : "Name" - }, { - "Value" : "Value", - "Name" : "Name" - } ], - "ListingsId" : "ListingsId", - "EnabledTuners" : [ "EnabledTuners", "EnabledTuners" ], - "EnableAllTuners" : true, - "Type" : "Type", - "MovieCategories" : [ "MovieCategories", "MovieCategories" ], - "Username" : "Username", - "MoviePrefix" : "MoviePrefix", - "KidsCategories" : [ "KidsCategories", "KidsCategories" ], - "UserAgent" : "UserAgent", - "Country" : "Country", - "PreferredLanguage" : "PreferredLanguage", - "SportsCategories" : [ "SportsCategories", "SportsCategories" ], - "Id" : "Id", - "Password" : "Password" -}}] - - parameter body: (body) New listings info. (optional) - - parameter pw: (query) Password. (optional) - - parameter validateListings: (query) Validate listings. (optional, default to false) - - parameter validateLogin: (query) Validate login. (optional, default to false) - - - returns: RequestBuilder - */ - open class func addListingProviderWithRequestBuilder(body: LiveTvListingProvidersBody? = nil, pw: String? = nil, validateListings: Bool? = nil, validateLogin: Bool? = nil) -> RequestBuilder { - let path = "/LiveTv/ListingProviders" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "pw": pw, - "validateListings": validateListings, - "validateLogin": validateLogin - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Adds a tuner host. - - - parameter body: (body) New tuner host. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func addTunerHost(body: LiveTvTunerHostsBody? = nil, completion: @escaping ((_ data: TunerHostInfo?,_ error: Error?) -> Void)) { - addTunerHostWithRequestBuilder(body: body).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Adds a tuner host. - - POST /LiveTv/TunerHosts - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "Type" : "Type", - "AllowHWTranscoding" : true, - "FriendlyName" : "FriendlyName", - "EnableStreamLooping" : true, - "DeviceId" : "DeviceId", - "TunerCount" : 0, - "ImportFavoritesOnly" : true, - "UserAgent" : "UserAgent", - "Id" : "Id", - "Url" : "Url", - "Source" : "Source" -}}] - - parameter body: (body) New tuner host. (optional) - - - returns: RequestBuilder - */ - open class func addTunerHostWithRequestBuilder(body: LiveTvTunerHostsBody? = nil) -> RequestBuilder { - let path = "/LiveTv/TunerHosts" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Cancels a live tv series timer. - - - parameter timerId: (path) Timer id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func cancelSeriesTimer(timerId: String, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - cancelSeriesTimerWithRequestBuilder(timerId: timerId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Cancels a live tv series timer. - - DELETE /LiveTv/SeriesTimers/{timerId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter timerId: (path) Timer id. - - - returns: RequestBuilder - */ - open class func cancelSeriesTimerWithRequestBuilder(timerId: String) -> RequestBuilder { - var path = "/LiveTv/SeriesTimers/{timerId}" - let timerIdPreEscape = "\(timerId)" - let timerIdPostEscape = timerIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{timerId}", with: timerIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Cancels a live tv timer. - - - parameter timerId: (path) Timer id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func cancelTimer(timerId: String, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - cancelTimerWithRequestBuilder(timerId: timerId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Cancels a live tv timer. - - DELETE /LiveTv/Timers/{timerId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter timerId: (path) Timer id. - - - returns: RequestBuilder - */ - open class func cancelTimerWithRequestBuilder(timerId: String) -> RequestBuilder { - var path = "/LiveTv/Timers/{timerId}" - let timerIdPreEscape = "\(timerId)" - let timerIdPostEscape = timerIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{timerId}", with: timerIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Creates a live tv series timer. - - - parameter body: (body) New series timer info. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func createSeriesTimer(body: LiveTvSeriesTimersBody? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - createSeriesTimerWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Creates a live tv series timer. - - POST /LiveTv/SeriesTimers - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) New series timer info. (optional) - - - returns: RequestBuilder - */ - open class func createSeriesTimerWithRequestBuilder(body: LiveTvSeriesTimersBody? = nil) -> RequestBuilder { - let path = "/LiveTv/SeriesTimers" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Creates a live tv timer. - - - parameter body: (body) New timer info. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func createTimer(body: LiveTvTimersBody? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - createTimerWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Creates a live tv timer. - - POST /LiveTv/Timers - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) New timer info. (optional) - - - returns: RequestBuilder - */ - open class func createTimerWithRequestBuilder(body: LiveTvTimersBody? = nil) -> RequestBuilder { - let path = "/LiveTv/Timers" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Delete listing provider. - - - parameter _id: (query) Listing provider id. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func deleteListingProvider(_id: String? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - deleteListingProviderWithRequestBuilder(_id: _id).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Delete listing provider. - - DELETE /LiveTv/ListingProviders - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter _id: (query) Listing provider id. (optional) - - - returns: RequestBuilder - */ - open class func deleteListingProviderWithRequestBuilder(_id: String? = nil) -> RequestBuilder { - let path = "/LiveTv/ListingProviders" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "id": _id - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Deletes a live tv recording. - - - parameter recordingId: (path) Recording id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func deleteRecording(recordingId: UUID, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - deleteRecordingWithRequestBuilder(recordingId: recordingId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Deletes a live tv recording. - - DELETE /LiveTv/Recordings/{recordingId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter recordingId: (path) Recording id. - - - returns: RequestBuilder - */ - open class func deleteRecordingWithRequestBuilder(recordingId: UUID) -> RequestBuilder { - var path = "/LiveTv/Recordings/{recordingId}" - let recordingIdPreEscape = "\(recordingId)" - let recordingIdPostEscape = recordingIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{recordingId}", with: recordingIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Deletes a tuner host. - - - parameter _id: (query) Tuner host id. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func deleteTunerHost(_id: String? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - deleteTunerHostWithRequestBuilder(_id: _id).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Deletes a tuner host. - - DELETE /LiveTv/TunerHosts - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter _id: (query) Tuner host id. (optional) - - - returns: RequestBuilder - */ - open class func deleteTunerHostWithRequestBuilder(_id: String? = nil) -> RequestBuilder { - let path = "/LiveTv/TunerHosts" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "id": _id - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Discover tuners. - - - parameter newDevicesOnly: (query) Only discover new tuners. (optional, default to false) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func discoverTuners(newDevicesOnly: Bool? = nil, completion: @escaping ((_ data: [TunerHostInfo]?,_ error: Error?) -> Void)) { - discoverTunersWithRequestBuilder(newDevicesOnly: newDevicesOnly).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Discover tuners. - - GET /LiveTv/Tuners/Discover - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "Type" : "Type", - "AllowHWTranscoding" : true, - "FriendlyName" : "FriendlyName", - "EnableStreamLooping" : true, - "DeviceId" : "DeviceId", - "TunerCount" : 0, - "ImportFavoritesOnly" : true, - "UserAgent" : "UserAgent", - "Id" : "Id", - "Url" : "Url", - "Source" : "Source" -}, { - "Type" : "Type", - "AllowHWTranscoding" : true, - "FriendlyName" : "FriendlyName", - "EnableStreamLooping" : true, - "DeviceId" : "DeviceId", - "TunerCount" : 0, - "ImportFavoritesOnly" : true, - "UserAgent" : "UserAgent", - "Id" : "Id", - "Url" : "Url", - "Source" : "Source" -} ]}] - - parameter newDevicesOnly: (query) Only discover new tuners. (optional, default to false) - - - returns: RequestBuilder<[TunerHostInfo]> - */ - open class func discoverTunersWithRequestBuilder(newDevicesOnly: Bool? = nil) -> RequestBuilder<[TunerHostInfo]> { - let path = "/LiveTv/Tuners/Discover" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "newDevicesOnly": newDevicesOnly - ]) - - - let requestBuilder: RequestBuilder<[TunerHostInfo]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Discover tuners. - - - parameter newDevicesOnly: (query) Only discover new tuners. (optional, default to false) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func discvoverTuners(newDevicesOnly: Bool? = nil, completion: @escaping ((_ data: [TunerHostInfo]?,_ error: Error?) -> Void)) { - discvoverTunersWithRequestBuilder(newDevicesOnly: newDevicesOnly).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Discover tuners. - - GET /LiveTv/Tuners/Discvover - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "Type" : "Type", - "AllowHWTranscoding" : true, - "FriendlyName" : "FriendlyName", - "EnableStreamLooping" : true, - "DeviceId" : "DeviceId", - "TunerCount" : 0, - "ImportFavoritesOnly" : true, - "UserAgent" : "UserAgent", - "Id" : "Id", - "Url" : "Url", - "Source" : "Source" -}, { - "Type" : "Type", - "AllowHWTranscoding" : true, - "FriendlyName" : "FriendlyName", - "EnableStreamLooping" : true, - "DeviceId" : "DeviceId", - "TunerCount" : 0, - "ImportFavoritesOnly" : true, - "UserAgent" : "UserAgent", - "Id" : "Id", - "Url" : "Url", - "Source" : "Source" -} ]}] - - parameter newDevicesOnly: (query) Only discover new tuners. (optional, default to false) - - - returns: RequestBuilder<[TunerHostInfo]> - */ - open class func discvoverTunersWithRequestBuilder(newDevicesOnly: Bool? = nil) -> RequestBuilder<[TunerHostInfo]> { - let path = "/LiveTv/Tuners/Discvover" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "newDevicesOnly": newDevicesOnly - ]) - - - let requestBuilder: RequestBuilder<[TunerHostInfo]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a live tv channel. - - - parameter channelId: (path) Channel id. - - parameter userId: (query) Optional. Attach user data. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getChannel(channelId: UUID, userId: UUID? = nil, completion: @escaping ((_ data: BaseItemDto?,_ error: Error?) -> Void)) { - getChannelWithRequestBuilder(channelId: channelId, userId: userId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a live tv channel. - - GET /LiveTv/Channels/{channelId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 -}}] - - parameter channelId: (path) Channel id. - - parameter userId: (query) Optional. Attach user data. (optional) - - - returns: RequestBuilder - */ - open class func getChannelWithRequestBuilder(channelId: UUID, userId: UUID? = nil) -> RequestBuilder { - var path = "/LiveTv/Channels/{channelId}" - let channelIdPreEscape = "\(channelId)" - let channelIdPostEscape = channelIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{channelId}", with: channelIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get channel mapping options. - - - parameter providerId: (query) Provider id. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getChannelMappingOptions(providerId: String? = nil, completion: @escaping ((_ data: ChannelMappingOptionsDto?,_ error: Error?) -> Void)) { - getChannelMappingOptionsWithRequestBuilder(providerId: providerId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get channel mapping options. - - GET /LiveTv/ChannelMappingOptions - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "ProviderName" : "ProviderName", - "Mappings" : [ { - "Value" : "Value", - "Name" : "Name" - }, { - "Value" : "Value", - "Name" : "Name" - } ], - "TunerChannels" : [ { - "ProviderChannelId" : "ProviderChannelId", - "ProviderChannelName" : "ProviderChannelName", - "Id" : "Id", - "Name" : "Name" - }, { - "ProviderChannelId" : "ProviderChannelId", - "ProviderChannelName" : "ProviderChannelName", - "Id" : "Id", - "Name" : "Name" - } ], - "ProviderChannels" : [ { - "Id" : "Id", - "Name" : "Name" - }, { - "Id" : "Id", - "Name" : "Name" - } ] -}}] - - parameter providerId: (query) Provider id. (optional) - - - returns: RequestBuilder - */ - open class func getChannelMappingOptionsWithRequestBuilder(providerId: String? = nil) -> RequestBuilder { - let path = "/LiveTv/ChannelMappingOptions" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "providerId": providerId - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets default listings provider info. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getDefaultListingProvider(completion: @escaping ((_ data: ListingsProviderInfo?,_ error: Error?) -> Void)) { - getDefaultListingProviderWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets default listings provider info. - - GET /LiveTv/ListingProviders/Default - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "Path" : "Path", - "NewsCategories" : [ "NewsCategories", "NewsCategories" ], - "ZipCode" : "ZipCode", - "ChannelMappings" : [ { - "Value" : "Value", - "Name" : "Name" - }, { - "Value" : "Value", - "Name" : "Name" - } ], - "ListingsId" : "ListingsId", - "EnabledTuners" : [ "EnabledTuners", "EnabledTuners" ], - "EnableAllTuners" : true, - "Type" : "Type", - "MovieCategories" : [ "MovieCategories", "MovieCategories" ], - "Username" : "Username", - "MoviePrefix" : "MoviePrefix", - "KidsCategories" : [ "KidsCategories", "KidsCategories" ], - "UserAgent" : "UserAgent", - "Country" : "Country", - "PreferredLanguage" : "PreferredLanguage", - "SportsCategories" : [ "SportsCategories", "SportsCategories" ], - "Id" : "Id", - "Password" : "Password" -}}] - - - returns: RequestBuilder - */ - open class func getDefaultListingProviderWithRequestBuilder() -> RequestBuilder { - let path = "/LiveTv/ListingProviders/Default" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets the default values for a new timer. - - - parameter programId: (query) Optional. To attach default values based on a program. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getDefaultTimer(programId: String? = nil, completion: @escaping ((_ data: SeriesTimerInfoDto?,_ error: Error?) -> Void)) { - getDefaultTimerWithRequestBuilder(programId: programId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets the default values for a new timer. - - GET /LiveTv/Timers/Defaults - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "PrePaddingSeconds" : 6, - "KeepUntil" : "", - "SkipEpisodesInLibrary" : true, - "KeepUpTo" : 5, - "RecordNewOnly" : true, - "RecordAnyChannel" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ExternalProgramId" : "ExternalProgramId", - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "IsPostPaddingRequired" : true, - "ServerId" : "ServerId", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Days" : [ "Sunday", "Sunday" ], - "DayPattern" : "", - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "IsPrePaddingRequired" : true, - "Priority" : 0, - "ExternalId" : "ExternalId", - "RecordAnyTime" : true, - "ExternalChannelId" : "ExternalChannelId", - "Overview" : "Overview", - "PostPaddingSeconds" : 1, - "ProgramId" : "ProgramId", - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "ImageTags" : { - "key" : "ImageTags" - }, - "ParentThumbItemId" : "ParentThumbItemId", - "Type" : "Type", - "ChannelName" : "ChannelName", - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "ServiceName" : "ServiceName", - "Id" : "Id" -}}] - - parameter programId: (query) Optional. To attach default values based on a program. (optional) - - - returns: RequestBuilder - */ - open class func getDefaultTimerWithRequestBuilder(programId: String? = nil) -> RequestBuilder { - let path = "/LiveTv/Timers/Defaults" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "programId": programId - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get guid info. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getGuideInfo(completion: @escaping ((_ data: GuideInfo?,_ error: Error?) -> Void)) { - getGuideInfoWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get guid info. - - GET /LiveTv/GuideInfo - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "EndDate" : "2000-01-23T04:56:07.000+00:00" -}}] - - - returns: RequestBuilder - */ - open class func getGuideInfoWithRequestBuilder() -> RequestBuilder { - let path = "/LiveTv/GuideInfo" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets available lineups. - - - parameter _id: (query) Provider id. (optional) - - parameter type: (query) Provider type. (optional) - - parameter location: (query) Location. (optional) - - parameter country: (query) Country. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getLineups(_id: String? = nil, type: String? = nil, location: String? = nil, country: String? = nil, completion: @escaping ((_ data: [NameIdPair]?,_ error: Error?) -> Void)) { - getLineupsWithRequestBuilder(_id: _id, type: type, location: location, country: country).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets available lineups. - - GET /LiveTv/ListingProviders/Lineups - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "Id" : "Id", - "Name" : "Name" -}, { - "Id" : "Id", - "Name" : "Name" -} ]}] - - parameter _id: (query) Provider id. (optional) - - parameter type: (query) Provider type. (optional) - - parameter location: (query) Location. (optional) - - parameter country: (query) Country. (optional) - - - returns: RequestBuilder<[NameIdPair]> - */ - open class func getLineupsWithRequestBuilder(_id: String? = nil, type: String? = nil, location: String? = nil, country: String? = nil) -> RequestBuilder<[NameIdPair]> { - let path = "/LiveTv/ListingProviders/Lineups" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "id": _id, - "type": type, - "location": location, - "country": country - ]) - - - let requestBuilder: RequestBuilder<[NameIdPair]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a live tv recording stream. - - - parameter recordingId: (path) Recording id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getLiveRecordingFile(recordingId: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getLiveRecordingFileWithRequestBuilder(recordingId: recordingId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a live tv recording stream. - - GET /LiveTv/LiveRecordings/{recordingId}/stream - - - - - examples: [{contentType=application/json, example=""}] - - parameter recordingId: (path) Recording id. - - - returns: RequestBuilder - */ - open class func getLiveRecordingFileWithRequestBuilder(recordingId: String) -> RequestBuilder { - var path = "/LiveTv/LiveRecordings/{recordingId}/stream" - let recordingIdPreEscape = "\(recordingId)" - let recordingIdPostEscape = recordingIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{recordingId}", with: recordingIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a live tv channel stream. - - - parameter streamId: (path) Stream id. - - parameter container: (path) Container type. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getLiveStreamFile(streamId: String, container: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getLiveStreamFileWithRequestBuilder(streamId: streamId, container: container).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a live tv channel stream. - - GET /LiveTv/LiveStreamFiles/{streamId}/stream.{container} - - - - - examples: [{contentType=application/json, example=""}] - - parameter streamId: (path) Stream id. - - parameter container: (path) Container type. - - - returns: RequestBuilder - */ - open class func getLiveStreamFileWithRequestBuilder(streamId: String, container: String) -> RequestBuilder { - var path = "/LiveTv/LiveStreamFiles/{streamId}/stream.{container}" - let streamIdPreEscape = "\(streamId)" - let streamIdPostEscape = streamIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{streamId}", with: streamIdPostEscape, options: .literal, range: nil) - let containerPreEscape = "\(container)" - let containerPostEscape = containerPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{container}", with: containerPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets available live tv channels. - - - parameter type: (query) Optional. Filter by channel type. (optional) - - parameter userId: (query) Optional. Filter by user and attach user data. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter isMovie: (query) Optional. Filter for movies. (optional) - - parameter isSeries: (query) Optional. Filter for series. (optional) - - parameter isNews: (query) Optional. Filter for news. (optional) - - parameter isKids: (query) Optional. Filter for kids. (optional) - - parameter isSports: (query) Optional. Filter for sports. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter isFavorite: (query) Optional. Filter by channels that are favorites, or not. (optional) - - parameter isLiked: (query) Optional. Filter by channels that are liked, or not. (optional) - - parameter isDisliked: (query) Optional. Filter by channels that are disliked, or not. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) \"Optional. The image types to include in the output. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter sortBy: (query) Optional. Key to sort by. (optional) - - parameter sortOrder: (query) Optional. Sort order. (optional) - - parameter enableFavoriteSorting: (query) Optional. Incorporate favorite and like status into channel sorting. (optional, default to false) - - parameter addCurrentProgram: (query) Optional. Adds current program info to each channel. (optional, default to true) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getLiveTvChannels(type: ModelType? = nil, userId: UUID? = nil, startIndex: Int? = nil, isMovie: Bool? = nil, isSeries: Bool? = nil, isNews: Bool? = nil, isKids: Bool? = nil, isSports: Bool? = nil, limit: Int? = nil, isFavorite: Bool? = nil, isLiked: Bool? = nil, isDisliked: Bool? = nil, enableImages: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, fields: [ItemFields]? = nil, enableUserData: Bool? = nil, sortBy: [String]? = nil, sortOrder: SortOrder? = nil, enableFavoriteSorting: Bool? = nil, addCurrentProgram: Bool? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getLiveTvChannelsWithRequestBuilder(type: type, userId: userId, startIndex: startIndex, isMovie: isMovie, isSeries: isSeries, isNews: isNews, isKids: isKids, isSports: isSports, limit: limit, isFavorite: isFavorite, isLiked: isLiked, isDisliked: isDisliked, enableImages: enableImages, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes, fields: fields, enableUserData: enableUserData, sortBy: sortBy, sortOrder: sortOrder, enableFavoriteSorting: enableFavoriteSorting, addCurrentProgram: addCurrentProgram).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets available live tv channels. - - GET /LiveTv/Channels - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter type: (query) Optional. Filter by channel type. (optional) - - parameter userId: (query) Optional. Filter by user and attach user data. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter isMovie: (query) Optional. Filter for movies. (optional) - - parameter isSeries: (query) Optional. Filter for series. (optional) - - parameter isNews: (query) Optional. Filter for news. (optional) - - parameter isKids: (query) Optional. Filter for kids. (optional) - - parameter isSports: (query) Optional. Filter for sports. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter isFavorite: (query) Optional. Filter by channels that are favorites, or not. (optional) - - parameter isLiked: (query) Optional. Filter by channels that are liked, or not. (optional) - - parameter isDisliked: (query) Optional. Filter by channels that are disliked, or not. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) \"Optional. The image types to include in the output. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter sortBy: (query) Optional. Key to sort by. (optional) - - parameter sortOrder: (query) Optional. Sort order. (optional) - - parameter enableFavoriteSorting: (query) Optional. Incorporate favorite and like status into channel sorting. (optional, default to false) - - parameter addCurrentProgram: (query) Optional. Adds current program info to each channel. (optional, default to true) - - - returns: RequestBuilder - */ - open class func getLiveTvChannelsWithRequestBuilder(type: ModelType? = nil, userId: UUID? = nil, startIndex: Int? = nil, isMovie: Bool? = nil, isSeries: Bool? = nil, isNews: Bool? = nil, isKids: Bool? = nil, isSports: Bool? = nil, limit: Int? = nil, isFavorite: Bool? = nil, isLiked: Bool? = nil, isDisliked: Bool? = nil, enableImages: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, fields: [ItemFields]? = nil, enableUserData: Bool? = nil, sortBy: [String]? = nil, sortOrder: SortOrder? = nil, enableFavoriteSorting: Bool? = nil, addCurrentProgram: Bool? = nil) -> RequestBuilder { - let path = "/LiveTv/Channels" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "type": type, - "userId": userId, - "startIndex": startIndex?.encodeToJSON(), - "isMovie": isMovie, - "isSeries": isSeries, - "isNews": isNews, - "isKids": isKids, - "isSports": isSports, - "limit": limit?.encodeToJSON(), - "isFavorite": isFavorite, - "isLiked": isLiked, - "isDisliked": isDisliked, - "enableImages": enableImages, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes, - "fields": fields, - "enableUserData": enableUserData, - "sortBy": sortBy, - "sortOrder": sortOrder, - "enableFavoriteSorting": enableFavoriteSorting, - "addCurrentProgram": addCurrentProgram - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets available live tv services. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getLiveTvInfo(completion: @escaping ((_ data: LiveTvInfo?,_ error: Error?) -> Void)) { - getLiveTvInfoWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets available live tv services. - - GET /LiveTv/Info - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "Services" : [ { - "Status" : "", - "Tuners" : [ "Tuners", "Tuners" ], - "Version" : "Version", - "HomePageUrl" : "HomePageUrl", - "HasUpdateAvailable" : true, - "IsVisible" : true, - "Name" : "Name", - "StatusMessage" : "StatusMessage" - }, { - "Status" : "", - "Tuners" : [ "Tuners", "Tuners" ], - "Version" : "Version", - "HomePageUrl" : "HomePageUrl", - "HasUpdateAvailable" : true, - "IsVisible" : true, - "Name" : "Name", - "StatusMessage" : "StatusMessage" - } ], - "IsEnabled" : true, - "EnabledUsers" : [ "EnabledUsers", "EnabledUsers" ] -}}] - - - returns: RequestBuilder - */ - open class func getLiveTvInfoWithRequestBuilder() -> RequestBuilder { - let path = "/LiveTv/Info" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets available live tv epgs. - - - parameter channelIds: (query) The channels to return guide information for. (optional) - - parameter userId: (query) Optional. Filter by user id. (optional) - - parameter minStartDate: (query) Optional. The minimum premiere start date. (optional) - - parameter hasAired: (query) Optional. Filter by programs that have completed airing, or not. (optional) - - parameter isAiring: (query) Optional. Filter by programs that are currently airing, or not. (optional) - - parameter maxStartDate: (query) Optional. The maximum premiere start date. (optional) - - parameter minEndDate: (query) Optional. The minimum premiere end date. (optional) - - parameter maxEndDate: (query) Optional. The maximum premiere end date. (optional) - - parameter isMovie: (query) Optional. Filter for movies. (optional) - - parameter isSeries: (query) Optional. Filter for series. (optional) - - parameter isNews: (query) Optional. Filter for news. (optional) - - parameter isKids: (query) Optional. Filter for kids. (optional) - - parameter isSports: (query) Optional. Filter for sports. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter sortBy: (query) Optional. Specify one or more sort orders, comma delimited. Options: Name, StartDate. (optional) - - parameter sortOrder: (query) Sort Order - Ascending,Descending. (optional) - - parameter genres: (query) The genres to return guide information for. (optional) - - parameter genreIds: (query) The genre ids to return guide information for. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter seriesTimerId: (query) Optional. Filter by series timer id. (optional) - - parameter librarySeriesId: (query) Optional. Filter by library series id. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter enableTotalRecordCount: (query) Retrieve total record count. (optional, default to true) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getLiveTvPrograms(channelIds: [UUID]? = nil, userId: UUID? = nil, minStartDate: Date? = nil, hasAired: Bool? = nil, isAiring: Bool? = nil, maxStartDate: Date? = nil, minEndDate: Date? = nil, maxEndDate: Date? = nil, isMovie: Bool? = nil, isSeries: Bool? = nil, isNews: Bool? = nil, isKids: Bool? = nil, isSports: Bool? = nil, startIndex: Int? = nil, limit: Int? = nil, sortBy: [String]? = nil, sortOrder: [SortOrder]? = nil, genres: [String]? = nil, genreIds: [UUID]? = nil, enableImages: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, enableUserData: Bool? = nil, seriesTimerId: String? = nil, librarySeriesId: UUID? = nil, fields: [ItemFields]? = nil, enableTotalRecordCount: Bool? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getLiveTvProgramsWithRequestBuilder(channelIds: channelIds, userId: userId, minStartDate: minStartDate, hasAired: hasAired, isAiring: isAiring, maxStartDate: maxStartDate, minEndDate: minEndDate, maxEndDate: maxEndDate, isMovie: isMovie, isSeries: isSeries, isNews: isNews, isKids: isKids, isSports: isSports, startIndex: startIndex, limit: limit, sortBy: sortBy, sortOrder: sortOrder, genres: genres, genreIds: genreIds, enableImages: enableImages, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes, enableUserData: enableUserData, seriesTimerId: seriesTimerId, librarySeriesId: librarySeriesId, fields: fields, enableTotalRecordCount: enableTotalRecordCount).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets available live tv epgs. - - GET /LiveTv/Programs - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter channelIds: (query) The channels to return guide information for. (optional) - - parameter userId: (query) Optional. Filter by user id. (optional) - - parameter minStartDate: (query) Optional. The minimum premiere start date. (optional) - - parameter hasAired: (query) Optional. Filter by programs that have completed airing, or not. (optional) - - parameter isAiring: (query) Optional. Filter by programs that are currently airing, or not. (optional) - - parameter maxStartDate: (query) Optional. The maximum premiere start date. (optional) - - parameter minEndDate: (query) Optional. The minimum premiere end date. (optional) - - parameter maxEndDate: (query) Optional. The maximum premiere end date. (optional) - - parameter isMovie: (query) Optional. Filter for movies. (optional) - - parameter isSeries: (query) Optional. Filter for series. (optional) - - parameter isNews: (query) Optional. Filter for news. (optional) - - parameter isKids: (query) Optional. Filter for kids. (optional) - - parameter isSports: (query) Optional. Filter for sports. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter sortBy: (query) Optional. Specify one or more sort orders, comma delimited. Options: Name, StartDate. (optional) - - parameter sortOrder: (query) Sort Order - Ascending,Descending. (optional) - - parameter genres: (query) The genres to return guide information for. (optional) - - parameter genreIds: (query) The genre ids to return guide information for. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter seriesTimerId: (query) Optional. Filter by series timer id. (optional) - - parameter librarySeriesId: (query) Optional. Filter by library series id. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter enableTotalRecordCount: (query) Retrieve total record count. (optional, default to true) - - - returns: RequestBuilder - */ - open class func getLiveTvProgramsWithRequestBuilder(channelIds: [UUID]? = nil, userId: UUID? = nil, minStartDate: Date? = nil, hasAired: Bool? = nil, isAiring: Bool? = nil, maxStartDate: Date? = nil, minEndDate: Date? = nil, maxEndDate: Date? = nil, isMovie: Bool? = nil, isSeries: Bool? = nil, isNews: Bool? = nil, isKids: Bool? = nil, isSports: Bool? = nil, startIndex: Int? = nil, limit: Int? = nil, sortBy: [String]? = nil, sortOrder: [SortOrder]? = nil, genres: [String]? = nil, genreIds: [UUID]? = nil, enableImages: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, enableUserData: Bool? = nil, seriesTimerId: String? = nil, librarySeriesId: UUID? = nil, fields: [ItemFields]? = nil, enableTotalRecordCount: Bool? = nil) -> RequestBuilder { - let path = "/LiveTv/Programs" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "channelIds": channelIds, - "userId": userId, - "minStartDate": minStartDate?.encodeToJSON(), - "hasAired": hasAired, - "isAiring": isAiring, - "maxStartDate": maxStartDate?.encodeToJSON(), - "minEndDate": minEndDate?.encodeToJSON(), - "maxEndDate": maxEndDate?.encodeToJSON(), - "isMovie": isMovie, - "isSeries": isSeries, - "isNews": isNews, - "isKids": isKids, - "isSports": isSports, - "startIndex": startIndex?.encodeToJSON(), - "limit": limit?.encodeToJSON(), - "sortBy": sortBy, - "sortOrder": sortOrder, - "genres": genres, - "genreIds": genreIds, - "enableImages": enableImages, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes, - "enableUserData": enableUserData, - "seriesTimerId": seriesTimerId, - "librarySeriesId": librarySeriesId, - "fields": fields, - "enableTotalRecordCount": enableTotalRecordCount - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a live tv program. - - - parameter programId: (path) Program id. - - parameter userId: (query) Optional. Attach user data. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getProgram(programId: String, userId: UUID? = nil, completion: @escaping ((_ data: BaseItemDto?,_ error: Error?) -> Void)) { - getProgramWithRequestBuilder(programId: programId, userId: userId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a live tv program. - - GET /LiveTv/Programs/{programId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 -}}] - - parameter programId: (path) Program id. - - parameter userId: (query) Optional. Attach user data. (optional) - - - returns: RequestBuilder - */ - open class func getProgramWithRequestBuilder(programId: String, userId: UUID? = nil) -> RequestBuilder { - var path = "/LiveTv/Programs/{programId}" - let programIdPreEscape = "\(programId)" - let programIdPostEscape = programIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{programId}", with: programIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets available live tv epgs. - - - parameter body: (body) Request body. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getPrograms(body: LiveTvProgramsBody? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getProgramsWithRequestBuilder(body: body).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets available live tv epgs. - - POST /LiveTv/Programs - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter body: (body) Request body. (optional) - - - returns: RequestBuilder - */ - open class func getProgramsWithRequestBuilder(body: LiveTvProgramsBody? = nil) -> RequestBuilder { - let path = "/LiveTv/Programs" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Gets recommended live tv epgs. - - - parameter userId: (query) Optional. filter by user id. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter isAiring: (query) Optional. Filter by programs that are currently airing, or not. (optional) - - parameter hasAired: (query) Optional. Filter by programs that have completed airing, or not. (optional) - - parameter isSeries: (query) Optional. Filter for series. (optional) - - parameter isMovie: (query) Optional. Filter for movies. (optional) - - parameter isNews: (query) Optional. Filter for news. (optional) - - parameter isKids: (query) Optional. Filter for kids. (optional) - - parameter isSports: (query) Optional. Filter for sports. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter genreIds: (query) The genres to return guide information for. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter enableUserData: (query) Optional. include user data. (optional) - - parameter enableTotalRecordCount: (query) Retrieve total record count. (optional, default to true) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getRecommendedPrograms(userId: UUID? = nil, limit: Int? = nil, isAiring: Bool? = nil, hasAired: Bool? = nil, isSeries: Bool? = nil, isMovie: Bool? = nil, isNews: Bool? = nil, isKids: Bool? = nil, isSports: Bool? = nil, enableImages: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, genreIds: [UUID]? = nil, fields: [ItemFields]? = nil, enableUserData: Bool? = nil, enableTotalRecordCount: Bool? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getRecommendedProgramsWithRequestBuilder(userId: userId, limit: limit, isAiring: isAiring, hasAired: hasAired, isSeries: isSeries, isMovie: isMovie, isNews: isNews, isKids: isKids, isSports: isSports, enableImages: enableImages, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes, genreIds: genreIds, fields: fields, enableUserData: enableUserData, enableTotalRecordCount: enableTotalRecordCount).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets recommended live tv epgs. - - GET /LiveTv/Programs/Recommended - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter userId: (query) Optional. filter by user id. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter isAiring: (query) Optional. Filter by programs that are currently airing, or not. (optional) - - parameter hasAired: (query) Optional. Filter by programs that have completed airing, or not. (optional) - - parameter isSeries: (query) Optional. Filter for series. (optional) - - parameter isMovie: (query) Optional. Filter for movies. (optional) - - parameter isNews: (query) Optional. Filter for news. (optional) - - parameter isKids: (query) Optional. Filter for kids. (optional) - - parameter isSports: (query) Optional. Filter for sports. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter genreIds: (query) The genres to return guide information for. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter enableUserData: (query) Optional. include user data. (optional) - - parameter enableTotalRecordCount: (query) Retrieve total record count. (optional, default to true) - - - returns: RequestBuilder - */ - open class func getRecommendedProgramsWithRequestBuilder(userId: UUID? = nil, limit: Int? = nil, isAiring: Bool? = nil, hasAired: Bool? = nil, isSeries: Bool? = nil, isMovie: Bool? = nil, isNews: Bool? = nil, isKids: Bool? = nil, isSports: Bool? = nil, enableImages: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, genreIds: [UUID]? = nil, fields: [ItemFields]? = nil, enableUserData: Bool? = nil, enableTotalRecordCount: Bool? = nil) -> RequestBuilder { - let path = "/LiveTv/Programs/Recommended" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId, - "limit": limit?.encodeToJSON(), - "isAiring": isAiring, - "hasAired": hasAired, - "isSeries": isSeries, - "isMovie": isMovie, - "isNews": isNews, - "isKids": isKids, - "isSports": isSports, - "enableImages": enableImages, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes, - "genreIds": genreIds, - "fields": fields, - "enableUserData": enableUserData, - "enableTotalRecordCount": enableTotalRecordCount - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a live tv recording. - - - parameter recordingId: (path) Recording id. - - parameter userId: (query) Optional. Attach user data. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getRecording(recordingId: UUID, userId: UUID? = nil, completion: @escaping ((_ data: BaseItemDto?,_ error: Error?) -> Void)) { - getRecordingWithRequestBuilder(recordingId: recordingId, userId: userId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a live tv recording. - - GET /LiveTv/Recordings/{recordingId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 -}}] - - parameter recordingId: (path) Recording id. - - parameter userId: (query) Optional. Attach user data. (optional) - - - returns: RequestBuilder - */ - open class func getRecordingWithRequestBuilder(recordingId: UUID, userId: UUID? = nil) -> RequestBuilder { - var path = "/LiveTv/Recordings/{recordingId}" - let recordingIdPreEscape = "\(recordingId)" - let recordingIdPostEscape = recordingIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{recordingId}", with: recordingIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets recording folders. - - - parameter userId: (query) Optional. Filter by user and attach user data. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getRecordingFolders(userId: UUID? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getRecordingFoldersWithRequestBuilder(userId: userId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets recording folders. - - GET /LiveTv/Recordings/Folders - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter userId: (query) Optional. Filter by user and attach user data. (optional) - - - returns: RequestBuilder - */ - open class func getRecordingFoldersWithRequestBuilder(userId: UUID? = nil) -> RequestBuilder { - let path = "/LiveTv/Recordings/Folders" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get recording group. - - - parameter groupId: (path) Group id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getRecordingGroup(groupId: UUID, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - getRecordingGroupWithRequestBuilder(groupId: groupId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Get recording group. - - GET /LiveTv/Recordings/Groups/{groupId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter groupId: (path) Group id. - - - returns: RequestBuilder - */ - open class func getRecordingGroupWithRequestBuilder(groupId: UUID) -> RequestBuilder { - var path = "/LiveTv/Recordings/Groups/{groupId}" - let groupIdPreEscape = "\(groupId)" - let groupIdPostEscape = groupIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{groupId}", with: groupIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets live tv recording groups. - - - parameter userId: (query) Optional. Filter by user and attach user data. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getRecordingGroups(userId: UUID? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getRecordingGroupsWithRequestBuilder(userId: userId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets live tv recording groups. - - GET /LiveTv/Recordings/Groups - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter userId: (query) Optional. Filter by user and attach user data. (optional) - - - returns: RequestBuilder - */ - open class func getRecordingGroupsWithRequestBuilder(userId: UUID? = nil) -> RequestBuilder { - let path = "/LiveTv/Recordings/Groups" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets live tv recordings. - - - parameter channelId: (query) Optional. Filter by channel id. (optional) - - parameter userId: (query) Optional. Filter by user and attach user data. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter status: (query) Optional. Filter by recording status. (optional) - - parameter isInProgress: (query) Optional. Filter by recordings that are in progress, or not. (optional) - - parameter seriesTimerId: (query) Optional. Filter by recordings belonging to a series timer. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter isMovie: (query) Optional. Filter for movies. (optional) - - parameter isSeries: (query) Optional. Filter for series. (optional) - - parameter isKids: (query) Optional. Filter for kids. (optional) - - parameter isSports: (query) Optional. Filter for sports. (optional) - - parameter isNews: (query) Optional. Filter for news. (optional) - - parameter isLibraryItem: (query) Optional. Filter for is library item. (optional) - - parameter enableTotalRecordCount: (query) Optional. Return total record count. (optional, default to true) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getRecordings(channelId: String? = nil, userId: UUID? = nil, startIndex: Int? = nil, limit: Int? = nil, status: Status? = nil, isInProgress: Bool? = nil, seriesTimerId: String? = nil, enableImages: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, fields: [ItemFields]? = nil, enableUserData: Bool? = nil, isMovie: Bool? = nil, isSeries: Bool? = nil, isKids: Bool? = nil, isSports: Bool? = nil, isNews: Bool? = nil, isLibraryItem: Bool? = nil, enableTotalRecordCount: Bool? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getRecordingsWithRequestBuilder(channelId: channelId, userId: userId, startIndex: startIndex, limit: limit, status: status, isInProgress: isInProgress, seriesTimerId: seriesTimerId, enableImages: enableImages, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes, fields: fields, enableUserData: enableUserData, isMovie: isMovie, isSeries: isSeries, isKids: isKids, isSports: isSports, isNews: isNews, isLibraryItem: isLibraryItem, enableTotalRecordCount: enableTotalRecordCount).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets live tv recordings. - - GET /LiveTv/Recordings - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter channelId: (query) Optional. Filter by channel id. (optional) - - parameter userId: (query) Optional. Filter by user and attach user data. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter status: (query) Optional. Filter by recording status. (optional) - - parameter isInProgress: (query) Optional. Filter by recordings that are in progress, or not. (optional) - - parameter seriesTimerId: (query) Optional. Filter by recordings belonging to a series timer. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter isMovie: (query) Optional. Filter for movies. (optional) - - parameter isSeries: (query) Optional. Filter for series. (optional) - - parameter isKids: (query) Optional. Filter for kids. (optional) - - parameter isSports: (query) Optional. Filter for sports. (optional) - - parameter isNews: (query) Optional. Filter for news. (optional) - - parameter isLibraryItem: (query) Optional. Filter for is library item. (optional) - - parameter enableTotalRecordCount: (query) Optional. Return total record count. (optional, default to true) - - - returns: RequestBuilder - */ - open class func getRecordingsWithRequestBuilder(channelId: String? = nil, userId: UUID? = nil, startIndex: Int? = nil, limit: Int? = nil, status: Status? = nil, isInProgress: Bool? = nil, seriesTimerId: String? = nil, enableImages: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, fields: [ItemFields]? = nil, enableUserData: Bool? = nil, isMovie: Bool? = nil, isSeries: Bool? = nil, isKids: Bool? = nil, isSports: Bool? = nil, isNews: Bool? = nil, isLibraryItem: Bool? = nil, enableTotalRecordCount: Bool? = nil) -> RequestBuilder { - let path = "/LiveTv/Recordings" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "channelId": channelId, - "userId": userId, - "startIndex": startIndex?.encodeToJSON(), - "limit": limit?.encodeToJSON(), - "status": status, - "isInProgress": isInProgress, - "seriesTimerId": seriesTimerId, - "enableImages": enableImages, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes, - "fields": fields, - "enableUserData": enableUserData, - "isMovie": isMovie, - "isSeries": isSeries, - "isKids": isKids, - "isSports": isSports, - "isNews": isNews, - "isLibraryItem": isLibraryItem, - "enableTotalRecordCount": enableTotalRecordCount - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets live tv recording series. - - - parameter channelId: (query) Optional. Filter by channel id. (optional) - - parameter userId: (query) Optional. Filter by user and attach user data. (optional) - - parameter groupId: (query) Optional. Filter by recording group. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter status: (query) Optional. Filter by recording status. (optional) - - parameter isInProgress: (query) Optional. Filter by recordings that are in progress, or not. (optional) - - parameter seriesTimerId: (query) Optional. Filter by recordings belonging to a series timer. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter enableTotalRecordCount: (query) Optional. Return total record count. (optional, default to true) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getRecordingsSeries(channelId: String? = nil, userId: UUID? = nil, groupId: String? = nil, startIndex: Int? = nil, limit: Int? = nil, status: Status1? = nil, isInProgress: Bool? = nil, seriesTimerId: String? = nil, enableImages: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, fields: [ItemFields]? = nil, enableUserData: Bool? = nil, enableTotalRecordCount: Bool? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getRecordingsSeriesWithRequestBuilder(channelId: channelId, userId: userId, groupId: groupId, startIndex: startIndex, limit: limit, status: status, isInProgress: isInProgress, seriesTimerId: seriesTimerId, enableImages: enableImages, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes, fields: fields, enableUserData: enableUserData, enableTotalRecordCount: enableTotalRecordCount).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets live tv recording series. - - GET /LiveTv/Recordings/Series - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter channelId: (query) Optional. Filter by channel id. (optional) - - parameter userId: (query) Optional. Filter by user and attach user data. (optional) - - parameter groupId: (query) Optional. Filter by recording group. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter status: (query) Optional. Filter by recording status. (optional) - - parameter isInProgress: (query) Optional. Filter by recordings that are in progress, or not. (optional) - - parameter seriesTimerId: (query) Optional. Filter by recordings belonging to a series timer. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter enableTotalRecordCount: (query) Optional. Return total record count. (optional, default to true) - - - returns: RequestBuilder - */ - open class func getRecordingsSeriesWithRequestBuilder(channelId: String? = nil, userId: UUID? = nil, groupId: String? = nil, startIndex: Int? = nil, limit: Int? = nil, status: Status1? = nil, isInProgress: Bool? = nil, seriesTimerId: String? = nil, enableImages: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, fields: [ItemFields]? = nil, enableUserData: Bool? = nil, enableTotalRecordCount: Bool? = nil) -> RequestBuilder { - let path = "/LiveTv/Recordings/Series" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "channelId": channelId, - "userId": userId, - "groupId": groupId, - "startIndex": startIndex?.encodeToJSON(), - "limit": limit?.encodeToJSON(), - "status": status, - "isInProgress": isInProgress, - "seriesTimerId": seriesTimerId, - "enableImages": enableImages, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes, - "fields": fields, - "enableUserData": enableUserData, - "enableTotalRecordCount": enableTotalRecordCount - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets available countries. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getSchedulesDirectCountries(completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getSchedulesDirectCountriesWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets available countries. - - GET /LiveTv/ListingProviders/SchedulesDirect/Countries - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=""}] - - - returns: RequestBuilder - */ - open class func getSchedulesDirectCountriesWithRequestBuilder() -> RequestBuilder { - let path = "/LiveTv/ListingProviders/SchedulesDirect/Countries" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a live tv series timer. - - - parameter timerId: (path) Timer id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getSeriesTimer(timerId: String, completion: @escaping ((_ data: SeriesTimerInfoDto?,_ error: Error?) -> Void)) { - getSeriesTimerWithRequestBuilder(timerId: timerId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a live tv series timer. - - GET /LiveTv/SeriesTimers/{timerId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "PrePaddingSeconds" : 6, - "KeepUntil" : "", - "SkipEpisodesInLibrary" : true, - "KeepUpTo" : 5, - "RecordNewOnly" : true, - "RecordAnyChannel" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ExternalProgramId" : "ExternalProgramId", - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "IsPostPaddingRequired" : true, - "ServerId" : "ServerId", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Days" : [ "Sunday", "Sunday" ], - "DayPattern" : "", - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "IsPrePaddingRequired" : true, - "Priority" : 0, - "ExternalId" : "ExternalId", - "RecordAnyTime" : true, - "ExternalChannelId" : "ExternalChannelId", - "Overview" : "Overview", - "PostPaddingSeconds" : 1, - "ProgramId" : "ProgramId", - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "ImageTags" : { - "key" : "ImageTags" - }, - "ParentThumbItemId" : "ParentThumbItemId", - "Type" : "Type", - "ChannelName" : "ChannelName", - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "ServiceName" : "ServiceName", - "Id" : "Id" -}}] - - parameter timerId: (path) Timer id. - - - returns: RequestBuilder - */ - open class func getSeriesTimerWithRequestBuilder(timerId: String) -> RequestBuilder { - var path = "/LiveTv/SeriesTimers/{timerId}" - let timerIdPreEscape = "\(timerId)" - let timerIdPostEscape = timerIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{timerId}", with: timerIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets live tv series timers. - - - parameter sortBy: (query) Optional. Sort by SortName or Priority. (optional) - - parameter sortOrder: (query) Optional. Sort in Ascending or Descending order. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getSeriesTimers(sortBy: String? = nil, sortOrder: SortOrder1? = nil, completion: @escaping ((_ data: SeriesTimerInfoDtoQueryResult?,_ error: Error?) -> Void)) { - getSeriesTimersWithRequestBuilder(sortBy: sortBy, sortOrder: sortOrder).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets live tv series timers. - - GET /LiveTv/SeriesTimers - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 5, - "StartIndex" : 2, - "Items" : [ { - "PrePaddingSeconds" : 6, - "KeepUntil" : "", - "SkipEpisodesInLibrary" : true, - "KeepUpTo" : 5, - "RecordNewOnly" : true, - "RecordAnyChannel" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ExternalProgramId" : "ExternalProgramId", - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "IsPostPaddingRequired" : true, - "ServerId" : "ServerId", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Days" : [ "Sunday", "Sunday" ], - "DayPattern" : "", - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "IsPrePaddingRequired" : true, - "Priority" : 0, - "ExternalId" : "ExternalId", - "RecordAnyTime" : true, - "ExternalChannelId" : "ExternalChannelId", - "Overview" : "Overview", - "PostPaddingSeconds" : 1, - "ProgramId" : "ProgramId", - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "ImageTags" : { - "key" : "ImageTags" - }, - "ParentThumbItemId" : "ParentThumbItemId", - "Type" : "Type", - "ChannelName" : "ChannelName", - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "ServiceName" : "ServiceName", - "Id" : "Id" - }, { - "PrePaddingSeconds" : 6, - "KeepUntil" : "", - "SkipEpisodesInLibrary" : true, - "KeepUpTo" : 5, - "RecordNewOnly" : true, - "RecordAnyChannel" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ExternalProgramId" : "ExternalProgramId", - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "IsPostPaddingRequired" : true, - "ServerId" : "ServerId", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Days" : [ "Sunday", "Sunday" ], - "DayPattern" : "", - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "IsPrePaddingRequired" : true, - "Priority" : 0, - "ExternalId" : "ExternalId", - "RecordAnyTime" : true, - "ExternalChannelId" : "ExternalChannelId", - "Overview" : "Overview", - "PostPaddingSeconds" : 1, - "ProgramId" : "ProgramId", - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "ImageTags" : { - "key" : "ImageTags" - }, - "ParentThumbItemId" : "ParentThumbItemId", - "Type" : "Type", - "ChannelName" : "ChannelName", - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "ServiceName" : "ServiceName", - "Id" : "Id" - } ] -}}] - - parameter sortBy: (query) Optional. Sort by SortName or Priority. (optional) - - parameter sortOrder: (query) Optional. Sort in Ascending or Descending order. (optional) - - - returns: RequestBuilder - */ - open class func getSeriesTimersWithRequestBuilder(sortBy: String? = nil, sortOrder: SortOrder1? = nil) -> RequestBuilder { - let path = "/LiveTv/SeriesTimers" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "sortBy": sortBy, - "sortOrder": sortOrder - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a timer. - - - parameter timerId: (path) Timer id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getTimer(timerId: String, completion: @escaping ((_ data: TimerInfoDto?,_ error: Error?) -> Void)) { - getTimerWithRequestBuilder(timerId: timerId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a timer. - - GET /LiveTv/Timers/{timerId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "PrePaddingSeconds" : 6, - "KeepUntil" : "", - "RunTimeTicks" : 5, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ExternalProgramId" : "ExternalProgramId", - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "IsPostPaddingRequired" : true, - "ProgramInfo" : "", - "ServerId" : "ServerId", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Status" : "", - "IsPrePaddingRequired" : true, - "Priority" : 0, - "ExternalId" : "ExternalId", - "ExternalSeriesTimerId" : "ExternalSeriesTimerId", - "ExternalChannelId" : "ExternalChannelId", - "Overview" : "Overview", - "PostPaddingSeconds" : 1, - "ProgramId" : "ProgramId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "Type" : "Type", - "ChannelName" : "ChannelName", - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "ServiceName" : "ServiceName", - "Id" : "Id", - "SeriesTimerId" : "SeriesTimerId" -}}] - - parameter timerId: (path) Timer id. - - - returns: RequestBuilder - */ - open class func getTimerWithRequestBuilder(timerId: String) -> RequestBuilder { - var path = "/LiveTv/Timers/{timerId}" - let timerIdPreEscape = "\(timerId)" - let timerIdPostEscape = timerIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{timerId}", with: timerIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets the live tv timers. - - - parameter channelId: (query) Optional. Filter by channel id. (optional) - - parameter seriesTimerId: (query) Optional. Filter by timers belonging to a series timer. (optional) - - parameter isActive: (query) Optional. Filter by timers that are active. (optional) - - parameter isScheduled: (query) Optional. Filter by timers that are scheduled. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getTimers(channelId: String? = nil, seriesTimerId: String? = nil, isActive: Bool? = nil, isScheduled: Bool? = nil, completion: @escaping ((_ data: TimerInfoDtoQueryResult?,_ error: Error?) -> Void)) { - getTimersWithRequestBuilder(channelId: channelId, seriesTimerId: seriesTimerId, isActive: isActive, isScheduled: isScheduled).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets the live tv timers. - - GET /LiveTv/Timers - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 5, - "StartIndex" : 2, - "Items" : [ { - "PrePaddingSeconds" : 6, - "KeepUntil" : "", - "RunTimeTicks" : 5, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ExternalProgramId" : "ExternalProgramId", - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "IsPostPaddingRequired" : true, - "ProgramInfo" : "", - "ServerId" : "ServerId", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Status" : "", - "IsPrePaddingRequired" : true, - "Priority" : 0, - "ExternalId" : "ExternalId", - "ExternalSeriesTimerId" : "ExternalSeriesTimerId", - "ExternalChannelId" : "ExternalChannelId", - "Overview" : "Overview", - "PostPaddingSeconds" : 1, - "ProgramId" : "ProgramId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "Type" : "Type", - "ChannelName" : "ChannelName", - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "ServiceName" : "ServiceName", - "Id" : "Id", - "SeriesTimerId" : "SeriesTimerId" - }, { - "PrePaddingSeconds" : 6, - "KeepUntil" : "", - "RunTimeTicks" : 5, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ExternalProgramId" : "ExternalProgramId", - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "IsPostPaddingRequired" : true, - "ProgramInfo" : "", - "ServerId" : "ServerId", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Status" : "", - "IsPrePaddingRequired" : true, - "Priority" : 0, - "ExternalId" : "ExternalId", - "ExternalSeriesTimerId" : "ExternalSeriesTimerId", - "ExternalChannelId" : "ExternalChannelId", - "Overview" : "Overview", - "PostPaddingSeconds" : 1, - "ProgramId" : "ProgramId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "Type" : "Type", - "ChannelName" : "ChannelName", - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "ServiceName" : "ServiceName", - "Id" : "Id", - "SeriesTimerId" : "SeriesTimerId" - } ] -}}] - - parameter channelId: (query) Optional. Filter by channel id. (optional) - - parameter seriesTimerId: (query) Optional. Filter by timers belonging to a series timer. (optional) - - parameter isActive: (query) Optional. Filter by timers that are active. (optional) - - parameter isScheduled: (query) Optional. Filter by timers that are scheduled. (optional) - - - returns: RequestBuilder - */ - open class func getTimersWithRequestBuilder(channelId: String? = nil, seriesTimerId: String? = nil, isActive: Bool? = nil, isScheduled: Bool? = nil) -> RequestBuilder { - let path = "/LiveTv/Timers" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "channelId": channelId, - "seriesTimerId": seriesTimerId, - "isActive": isActive, - "isScheduled": isScheduled - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get tuner host types. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getTunerHostTypes(completion: @escaping ((_ data: [NameIdPair]?,_ error: Error?) -> Void)) { - getTunerHostTypesWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get tuner host types. - - GET /LiveTv/TunerHosts/Types - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "Id" : "Id", - "Name" : "Name" -}, { - "Id" : "Id", - "Name" : "Name" -} ]}] - - - returns: RequestBuilder<[NameIdPair]> - */ - open class func getTunerHostTypesWithRequestBuilder() -> RequestBuilder<[NameIdPair]> { - let path = "/LiveTv/TunerHosts/Types" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[NameIdPair]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Resets a tv tuner. - - - parameter tunerId: (path) Tuner id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func resetTuner(tunerId: String, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - resetTunerWithRequestBuilder(tunerId: tunerId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Resets a tv tuner. - - POST /LiveTv/Tuners/{tunerId}/Reset - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter tunerId: (path) Tuner id. - - - returns: RequestBuilder - */ - open class func resetTunerWithRequestBuilder(tunerId: String) -> RequestBuilder { - var path = "/LiveTv/Tuners/{tunerId}/Reset" - let tunerIdPreEscape = "\(tunerId)" - let tunerIdPostEscape = tunerIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{tunerId}", with: tunerIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Set channel mappings. - - - parameter body: (body) The set channel mapping dto. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func setChannelMapping(body: LiveTvChannelMappingsBody, completion: @escaping ((_ data: TunerChannelMapping?,_ error: Error?) -> Void)) { - setChannelMappingWithRequestBuilder(body: body).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Set channel mappings. - - POST /LiveTv/ChannelMappings - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "ProviderChannelId" : "ProviderChannelId", - "ProviderChannelName" : "ProviderChannelName", - "Id" : "Id", - "Name" : "Name" -}}] - - parameter body: (body) The set channel mapping dto. - - - returns: RequestBuilder - */ - open class func setChannelMappingWithRequestBuilder(body: LiveTvChannelMappingsBody) -> RequestBuilder { - let path = "/LiveTv/ChannelMappings" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Updates a live tv series timer. - - - parameter timerId: (path) Timer id. - - parameter body: (body) New series timer info. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func updateSeriesTimer(timerId: String, body: SeriesTimersTimerIdBody? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - updateSeriesTimerWithRequestBuilder(timerId: timerId, body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Updates a live tv series timer. - - POST /LiveTv/SeriesTimers/{timerId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter timerId: (path) Timer id. - - parameter body: (body) New series timer info. (optional) - - - returns: RequestBuilder - */ - open class func updateSeriesTimerWithRequestBuilder(timerId: String, body: SeriesTimersTimerIdBody? = nil) -> RequestBuilder { - var path = "/LiveTv/SeriesTimers/{timerId}" - let timerIdPreEscape = "\(timerId)" - let timerIdPostEscape = timerIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{timerId}", with: timerIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Updates a live tv timer. - - - parameter timerId: (path) Timer id. - - parameter body: (body) New timer info. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func updateTimer(timerId: String, body: TimersTimerIdBody? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - updateTimerWithRequestBuilder(timerId: timerId, body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Updates a live tv timer. - - POST /LiveTv/Timers/{timerId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter timerId: (path) Timer id. - - parameter body: (body) New timer info. (optional) - - - returns: RequestBuilder - */ - open class func updateTimerWithRequestBuilder(timerId: String, body: TimersTimerIdBody? = nil) -> RequestBuilder { - var path = "/LiveTv/Timers/{timerId}" - let timerIdPreEscape = "\(timerId)" - let timerIdPostEscape = timerIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{timerId}", with: timerIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/LocalizationAPI.swift b/JellyfinPlayer/Swaggers/APIs/LocalizationAPI.swift deleted file mode 100644 index 4d2d53c7..00000000 --- a/JellyfinPlayer/Swaggers/APIs/LocalizationAPI.swift +++ /dev/null @@ -1,187 +0,0 @@ -// -// LocalizationAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class LocalizationAPI { - /** - Gets known countries. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getCountries(completion: @escaping ((_ data: [CountryInfo]?,_ error: Error?) -> Void)) { - getCountriesWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets known countries. - - GET /Localization/Countries - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "TwoLetterISORegionName" : "TwoLetterISORegionName", - "ThreeLetterISORegionName" : "ThreeLetterISORegionName", - "DisplayName" : "DisplayName", - "Name" : "Name" -}, { - "TwoLetterISORegionName" : "TwoLetterISORegionName", - "ThreeLetterISORegionName" : "ThreeLetterISORegionName", - "DisplayName" : "DisplayName", - "Name" : "Name" -} ]}] - - - returns: RequestBuilder<[CountryInfo]> - */ - open class func getCountriesWithRequestBuilder() -> RequestBuilder<[CountryInfo]> { - let path = "/Localization/Countries" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[CountryInfo]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets known cultures. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getCultures(completion: @escaping ((_ data: [CultureDto]?,_ error: Error?) -> Void)) { - getCulturesWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets known cultures. - - GET /Localization/Cultures - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "ThreeLetterISOLanguageNames" : [ "ThreeLetterISOLanguageNames", "ThreeLetterISOLanguageNames" ], - "ThreeLetterISOLanguageName" : "ThreeLetterISOLanguageName", - "DisplayName" : "DisplayName", - "Name" : "Name", - "TwoLetterISOLanguageName" : "TwoLetterISOLanguageName" -}, { - "ThreeLetterISOLanguageNames" : [ "ThreeLetterISOLanguageNames", "ThreeLetterISOLanguageNames" ], - "ThreeLetterISOLanguageName" : "ThreeLetterISOLanguageName", - "DisplayName" : "DisplayName", - "Name" : "Name", - "TwoLetterISOLanguageName" : "TwoLetterISOLanguageName" -} ]}] - - - returns: RequestBuilder<[CultureDto]> - */ - open class func getCulturesWithRequestBuilder() -> RequestBuilder<[CultureDto]> { - let path = "/Localization/Cultures" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[CultureDto]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets localization options. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getLocalizationOptions(completion: @escaping ((_ data: [LocalizationOption]?,_ error: Error?) -> Void)) { - getLocalizationOptionsWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets localization options. - - GET /Localization/Options - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "Value" : "Value", - "Name" : "Name" -}, { - "Value" : "Value", - "Name" : "Name" -} ]}] - - - returns: RequestBuilder<[LocalizationOption]> - */ - open class func getLocalizationOptionsWithRequestBuilder() -> RequestBuilder<[LocalizationOption]> { - let path = "/Localization/Options" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[LocalizationOption]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets known parental ratings. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getParentalRatings(completion: @escaping ((_ data: [ParentalRating]?,_ error: Error?) -> Void)) { - getParentalRatingsWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets known parental ratings. - - GET /Localization/ParentalRatings - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "Value" : 0, - "Name" : "Name" -}, { - "Value" : 0, - "Name" : "Name" -} ]}] - - - returns: RequestBuilder<[ParentalRating]> - */ - open class func getParentalRatingsWithRequestBuilder() -> RequestBuilder<[ParentalRating]> { - let path = "/Localization/ParentalRatings" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[ParentalRating]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/MediaInfoAPI.swift b/JellyfinPlayer/Swaggers/APIs/MediaInfoAPI.swift deleted file mode 100644 index 23b9e99b..00000000 --- a/JellyfinPlayer/Swaggers/APIs/MediaInfoAPI.swift +++ /dev/null @@ -1,936 +0,0 @@ -// -// MediaInfoAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class MediaInfoAPI { - /** - Closes a media source. - - - parameter liveStreamId: (query) The livestream id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func closeLiveStream(liveStreamId: String, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - closeLiveStreamWithRequestBuilder(liveStreamId: liveStreamId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Closes a media source. - - POST /LiveStreams/Close - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter liveStreamId: (query) The livestream id. - - - returns: RequestBuilder - */ - open class func closeLiveStreamWithRequestBuilder(liveStreamId: String) -> RequestBuilder { - let path = "/LiveStreams/Close" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "liveStreamId": liveStreamId - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Tests the network with a request with the size of the bitrate. - - - parameter size: (query) The bitrate. Defaults to 102400. (optional, default to 102400) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getBitrateTestBytes(size: Int? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getBitrateTestBytesWithRequestBuilder(size: size).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Tests the network with a request with the size of the bitrate. - - GET /Playback/BitrateTest - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=""}] - - parameter size: (query) The bitrate. Defaults to 102400. (optional, default to 102400) - - - returns: RequestBuilder - */ - open class func getBitrateTestBytesWithRequestBuilder(size: Int? = nil) -> RequestBuilder { - let path = "/Playback/BitrateTest" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "size": size?.encodeToJSON() - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets live playback media info for an item. - - - parameter itemId: (path) The item id. - - parameter userId: (query) The user id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getPlaybackInfo(itemId: UUID, userId: UUID, completion: @escaping ((_ data: PlaybackInfoResponse?,_ error: Error?) -> Void)) { - getPlaybackInfoWithRequestBuilder(itemId: itemId, userId: userId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets live playback media info for an item. - - GET /Items/{itemId}/PlaybackInfo - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "PlaySessionId" : "PlaySessionId", - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "ErrorCode" : "" -}}] - - parameter itemId: (path) The item id. - - parameter userId: (query) The user id. - - - returns: RequestBuilder - */ - open class func getPlaybackInfoWithRequestBuilder(itemId: UUID, userId: UUID) -> RequestBuilder { - var path = "/Items/{itemId}/PlaybackInfo" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets live playback media info for an item. - - - parameter itemId: (path) The item id. - - parameter body: (body) The playback info. (optional) - - parameter userId: (query) The user id. (optional) - - parameter maxStreamingBitrate: (query) The maximum streaming bitrate. (optional) - - parameter startTimeTicks: (query) The start time in ticks. (optional) - - parameter audioStreamIndex: (query) The audio stream index. (optional) - - parameter subtitleStreamIndex: (query) The subtitle stream index. (optional) - - parameter maxAudioChannels: (query) The maximum number of audio channels. (optional) - - parameter mediaSourceId: (query) The media source id. (optional) - - parameter liveStreamId: (query) The livestream id. (optional) - - parameter autoOpenLiveStream: (query) Whether to auto open the livestream. (optional) - - parameter enableDirectPlay: (query) Whether to enable direct play. Default: true. (optional) - - parameter enableDirectStream: (query) Whether to enable direct stream. Default: true. (optional) - - parameter enableTranscoding: (query) Whether to enable transcoding. Default: true. (optional) - - parameter allowVideoStreamCopy: (query) Whether to allow to copy the video stream. Default: true. (optional) - - parameter allowAudioStreamCopy: (query) Whether to allow to copy the audio stream. Default: true. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getPostedPlaybackInfo(itemId: UUID, body: ItemIdPlaybackInfoBody? = nil, userId: UUID? = nil, maxStreamingBitrate: Int? = nil, startTimeTicks: Int64? = nil, audioStreamIndex: Int? = nil, subtitleStreamIndex: Int? = nil, maxAudioChannels: Int? = nil, mediaSourceId: String? = nil, liveStreamId: String? = nil, autoOpenLiveStream: Bool? = nil, enableDirectPlay: Bool? = nil, enableDirectStream: Bool? = nil, enableTranscoding: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, completion: @escaping ((_ data: PlaybackInfoResponse?,_ error: Error?) -> Void)) { - getPostedPlaybackInfoWithRequestBuilder(itemId: itemId, body: body, userId: userId, maxStreamingBitrate: maxStreamingBitrate, startTimeTicks: startTimeTicks, audioStreamIndex: audioStreamIndex, subtitleStreamIndex: subtitleStreamIndex, maxAudioChannels: maxAudioChannels, mediaSourceId: mediaSourceId, liveStreamId: liveStreamId, autoOpenLiveStream: autoOpenLiveStream, enableDirectPlay: enableDirectPlay, enableDirectStream: enableDirectStream, enableTranscoding: enableTranscoding, allowVideoStreamCopy: allowVideoStreamCopy, allowAudioStreamCopy: allowAudioStreamCopy).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets live playback media info for an item. - - POST /Items/{itemId}/PlaybackInfo - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "PlaySessionId" : "PlaySessionId", - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "ErrorCode" : "" -}}] - - parameter itemId: (path) The item id. - - parameter body: (body) The playback info. (optional) - - parameter userId: (query) The user id. (optional) - - parameter maxStreamingBitrate: (query) The maximum streaming bitrate. (optional) - - parameter startTimeTicks: (query) The start time in ticks. (optional) - - parameter audioStreamIndex: (query) The audio stream index. (optional) - - parameter subtitleStreamIndex: (query) The subtitle stream index. (optional) - - parameter maxAudioChannels: (query) The maximum number of audio channels. (optional) - - parameter mediaSourceId: (query) The media source id. (optional) - - parameter liveStreamId: (query) The livestream id. (optional) - - parameter autoOpenLiveStream: (query) Whether to auto open the livestream. (optional) - - parameter enableDirectPlay: (query) Whether to enable direct play. Default: true. (optional) - - parameter enableDirectStream: (query) Whether to enable direct stream. Default: true. (optional) - - parameter enableTranscoding: (query) Whether to enable transcoding. Default: true. (optional) - - parameter allowVideoStreamCopy: (query) Whether to allow to copy the video stream. Default: true. (optional) - - parameter allowAudioStreamCopy: (query) Whether to allow to copy the audio stream. Default: true. (optional) - - - returns: RequestBuilder - */ - open class func getPostedPlaybackInfoWithRequestBuilder(itemId: UUID, body: ItemIdPlaybackInfoBody? = nil, userId: UUID? = nil, maxStreamingBitrate: Int? = nil, startTimeTicks: Int64? = nil, audioStreamIndex: Int? = nil, subtitleStreamIndex: Int? = nil, maxAudioChannels: Int? = nil, mediaSourceId: String? = nil, liveStreamId: String? = nil, autoOpenLiveStream: Bool? = nil, enableDirectPlay: Bool? = nil, enableDirectStream: Bool? = nil, enableTranscoding: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil) -> RequestBuilder { - var path = "/Items/{itemId}/PlaybackInfo" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId, - "maxStreamingBitrate": maxStreamingBitrate?.encodeToJSON(), - "startTimeTicks": startTimeTicks?.encodeToJSON(), - "audioStreamIndex": audioStreamIndex?.encodeToJSON(), - "subtitleStreamIndex": subtitleStreamIndex?.encodeToJSON(), - "maxAudioChannels": maxAudioChannels?.encodeToJSON(), - "mediaSourceId": mediaSourceId, - "liveStreamId": liveStreamId, - "autoOpenLiveStream": autoOpenLiveStream, - "enableDirectPlay": enableDirectPlay, - "enableDirectStream": enableDirectStream, - "enableTranscoding": enableTranscoding, - "allowVideoStreamCopy": allowVideoStreamCopy, - "allowAudioStreamCopy": allowAudioStreamCopy - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Opens a media source. - - - parameter body: (body) The open live stream dto. (optional) - - parameter openToken: (query) The open token. (optional) - - parameter userId: (query) The user id. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter maxStreamingBitrate: (query) The maximum streaming bitrate. (optional) - - parameter startTimeTicks: (query) The start time in ticks. (optional) - - parameter audioStreamIndex: (query) The audio stream index. (optional) - - parameter subtitleStreamIndex: (query) The subtitle stream index. (optional) - - parameter maxAudioChannels: (query) The maximum number of audio channels. (optional) - - parameter itemId: (query) The item id. (optional) - - parameter enableDirectPlay: (query) Whether to enable direct play. Default: true. (optional) - - parameter enableDirectStream: (query) Whether to enable direct stream. Default: true. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func openLiveStream(body: LiveStreamsOpenBody? = nil, openToken: String? = nil, userId: UUID? = nil, playSessionId: String? = nil, maxStreamingBitrate: Int? = nil, startTimeTicks: Int64? = nil, audioStreamIndex: Int? = nil, subtitleStreamIndex: Int? = nil, maxAudioChannels: Int? = nil, itemId: UUID? = nil, enableDirectPlay: Bool? = nil, enableDirectStream: Bool? = nil, completion: @escaping ((_ data: LiveStreamResponse?,_ error: Error?) -> Void)) { - openLiveStreamWithRequestBuilder(body: body, openToken: openToken, userId: userId, playSessionId: playSessionId, maxStreamingBitrate: maxStreamingBitrate, startTimeTicks: startTimeTicks, audioStreamIndex: audioStreamIndex, subtitleStreamIndex: subtitleStreamIndex, maxAudioChannels: maxAudioChannels, itemId: itemId, enableDirectPlay: enableDirectPlay, enableDirectStream: enableDirectStream).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Opens a media source. - - POST /LiveStreams/Open - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "MediaSource" : "" -}}] - - parameter body: (body) The open live stream dto. (optional) - - parameter openToken: (query) The open token. (optional) - - parameter userId: (query) The user id. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter maxStreamingBitrate: (query) The maximum streaming bitrate. (optional) - - parameter startTimeTicks: (query) The start time in ticks. (optional) - - parameter audioStreamIndex: (query) The audio stream index. (optional) - - parameter subtitleStreamIndex: (query) The subtitle stream index. (optional) - - parameter maxAudioChannels: (query) The maximum number of audio channels. (optional) - - parameter itemId: (query) The item id. (optional) - - parameter enableDirectPlay: (query) Whether to enable direct play. Default: true. (optional) - - parameter enableDirectStream: (query) Whether to enable direct stream. Default: true. (optional) - - - returns: RequestBuilder - */ - open class func openLiveStreamWithRequestBuilder(body: LiveStreamsOpenBody? = nil, openToken: String? = nil, userId: UUID? = nil, playSessionId: String? = nil, maxStreamingBitrate: Int? = nil, startTimeTicks: Int64? = nil, audioStreamIndex: Int? = nil, subtitleStreamIndex: Int? = nil, maxAudioChannels: Int? = nil, itemId: UUID? = nil, enableDirectPlay: Bool? = nil, enableDirectStream: Bool? = nil) -> RequestBuilder { - let path = "/LiveStreams/Open" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "openToken": openToken, - "userId": userId, - "playSessionId": playSessionId, - "maxStreamingBitrate": maxStreamingBitrate?.encodeToJSON(), - "startTimeTicks": startTimeTicks?.encodeToJSON(), - "audioStreamIndex": audioStreamIndex?.encodeToJSON(), - "subtitleStreamIndex": subtitleStreamIndex?.encodeToJSON(), - "maxAudioChannels": maxAudioChannels?.encodeToJSON(), - "itemId": itemId, - "enableDirectPlay": enableDirectPlay, - "enableDirectStream": enableDirectStream - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/MoviesAPI.swift b/JellyfinPlayer/Swaggers/APIs/MoviesAPI.swift deleted file mode 100644 index 59319395..00000000 --- a/JellyfinPlayer/Swaggers/APIs/MoviesAPI.swift +++ /dev/null @@ -1,2611 +0,0 @@ -// -// MoviesAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class MoviesAPI { - /** - Gets movie recommendations. - - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter parentId: (query) Specify this to localize the search to a specific item or folder. Omit to use the root. (optional) - - parameter fields: (query) Optional. The fields to return. (optional) - - parameter categoryLimit: (query) The max number of categories to return. (optional, default to 5) - - parameter itemLimit: (query) The max number of items to return per category. (optional, default to 8) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getMovieRecommendations(userId: UUID? = nil, parentId: UUID? = nil, fields: [ItemFields]? = nil, categoryLimit: Int? = nil, itemLimit: Int? = nil, completion: @escaping ((_ data: [RecommendationDto]?,_ error: Error?) -> Void)) { - getMovieRecommendationsWithRequestBuilder(userId: userId, parentId: parentId, fields: fields, categoryLimit: categoryLimit, itemLimit: itemLimit).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets movie recommendations. - - GET /Movies/Recommendations - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "RecommendationType" : "", - "CategoryId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "BaselineItemName" : "BaselineItemName", - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}, { - "RecommendationType" : "", - "CategoryId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "BaselineItemName" : "BaselineItemName", - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -} ]}] - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter parentId: (query) Specify this to localize the search to a specific item or folder. Omit to use the root. (optional) - - parameter fields: (query) Optional. The fields to return. (optional) - - parameter categoryLimit: (query) The max number of categories to return. (optional, default to 5) - - parameter itemLimit: (query) The max number of items to return per category. (optional, default to 8) - - - returns: RequestBuilder<[RecommendationDto]> - */ - open class func getMovieRecommendationsWithRequestBuilder(userId: UUID? = nil, parentId: UUID? = nil, fields: [ItemFields]? = nil, categoryLimit: Int? = nil, itemLimit: Int? = nil) -> RequestBuilder<[RecommendationDto]> { - let path = "/Movies/Recommendations" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId, - "parentId": parentId, - "fields": fields, - "categoryLimit": categoryLimit?.encodeToJSON(), - "itemLimit": itemLimit?.encodeToJSON() - ]) - - - let requestBuilder: RequestBuilder<[RecommendationDto]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/MusicGenresAPI.swift b/JellyfinPlayer/Swaggers/APIs/MusicGenresAPI.swift deleted file mode 100644 index 291ea5bd..00000000 --- a/JellyfinPlayer/Swaggers/APIs/MusicGenresAPI.swift +++ /dev/null @@ -1,2049 +0,0 @@ -// -// MusicGenresAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class MusicGenresAPI { - /** - Gets a music genre, by name. - - - parameter genreName: (path) The genre name. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getMusicGenre(genreName: String, userId: UUID? = nil, completion: @escaping ((_ data: BaseItemDto?,_ error: Error?) -> Void)) { - getMusicGenreWithRequestBuilder(genreName: genreName, userId: userId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a music genre, by name. - - GET /MusicGenres/{genreName} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 -}}] - - parameter genreName: (path) The genre name. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - - returns: RequestBuilder - */ - open class func getMusicGenreWithRequestBuilder(genreName: String, userId: UUID? = nil) -> RequestBuilder { - var path = "/MusicGenres/{genreName}" - let genreNamePreEscape = "\(genreName)" - let genreNamePostEscape = genreNamePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{genreName}", with: genreNamePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets all music genres from a given item, folder, or the entire library. - - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter searchTerm: (query) The search term. (optional) - - parameter parentId: (query) Specify this to localize the search to a specific item or folder. Omit to use the root. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter excludeItemTypes: (query) Optional. If specified, results will be filtered out based on item type. This allows multiple, comma delimited. (optional) - - parameter includeItemTypes: (query) Optional. If specified, results will be filtered in based on item type. This allows multiple, comma delimited. (optional) - - parameter isFavorite: (query) Optional filter by items that are marked as favorite, or not. (optional) - - parameter imageTypeLimit: (query) Optional, the max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter userId: (query) User id. (optional) - - parameter nameStartsWithOrGreater: (query) Optional filter by items whose name is sorted equally or greater than a given input string. (optional) - - parameter nameStartsWith: (query) Optional filter by items whose name is sorted equally than a given input string. (optional) - - parameter nameLessThan: (query) Optional filter by items whose name is equally or lesser than a given input string. (optional) - - parameter enableImages: (query) Optional, include image information in output. (optional, default to true) - - parameter enableTotalRecordCount: (query) Optional. Include total record count. (optional, default to true) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getMusicGenres(startIndex: Int? = nil, limit: Int? = nil, searchTerm: String? = nil, parentId: UUID? = nil, fields: [ItemFields]? = nil, excludeItemTypes: [String]? = nil, includeItemTypes: [String]? = nil, isFavorite: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, userId: UUID? = nil, nameStartsWithOrGreater: String? = nil, nameStartsWith: String? = nil, nameLessThan: String? = nil, enableImages: Bool? = nil, enableTotalRecordCount: Bool? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getMusicGenresWithRequestBuilder(startIndex: startIndex, limit: limit, searchTerm: searchTerm, parentId: parentId, fields: fields, excludeItemTypes: excludeItemTypes, includeItemTypes: includeItemTypes, isFavorite: isFavorite, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes, userId: userId, nameStartsWithOrGreater: nameStartsWithOrGreater, nameStartsWith: nameStartsWith, nameLessThan: nameLessThan, enableImages: enableImages, enableTotalRecordCount: enableTotalRecordCount).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets all music genres from a given item, folder, or the entire library. - - GET /MusicGenres - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter searchTerm: (query) The search term. (optional) - - parameter parentId: (query) Specify this to localize the search to a specific item or folder. Omit to use the root. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter excludeItemTypes: (query) Optional. If specified, results will be filtered out based on item type. This allows multiple, comma delimited. (optional) - - parameter includeItemTypes: (query) Optional. If specified, results will be filtered in based on item type. This allows multiple, comma delimited. (optional) - - parameter isFavorite: (query) Optional filter by items that are marked as favorite, or not. (optional) - - parameter imageTypeLimit: (query) Optional, the max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter userId: (query) User id. (optional) - - parameter nameStartsWithOrGreater: (query) Optional filter by items whose name is sorted equally or greater than a given input string. (optional) - - parameter nameStartsWith: (query) Optional filter by items whose name is sorted equally than a given input string. (optional) - - parameter nameLessThan: (query) Optional filter by items whose name is equally or lesser than a given input string. (optional) - - parameter enableImages: (query) Optional, include image information in output. (optional, default to true) - - parameter enableTotalRecordCount: (query) Optional. Include total record count. (optional, default to true) - - - returns: RequestBuilder - */ - open class func getMusicGenresWithRequestBuilder(startIndex: Int? = nil, limit: Int? = nil, searchTerm: String? = nil, parentId: UUID? = nil, fields: [ItemFields]? = nil, excludeItemTypes: [String]? = nil, includeItemTypes: [String]? = nil, isFavorite: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, userId: UUID? = nil, nameStartsWithOrGreater: String? = nil, nameStartsWith: String? = nil, nameLessThan: String? = nil, enableImages: Bool? = nil, enableTotalRecordCount: Bool? = nil) -> RequestBuilder { - let path = "/MusicGenres" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "startIndex": startIndex?.encodeToJSON(), - "limit": limit?.encodeToJSON(), - "searchTerm": searchTerm, - "parentId": parentId, - "fields": fields, - "excludeItemTypes": excludeItemTypes, - "includeItemTypes": includeItemTypes, - "isFavorite": isFavorite, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes, - "userId": userId, - "nameStartsWithOrGreater": nameStartsWithOrGreater, - "nameStartsWith": nameStartsWith, - "nameLessThan": nameLessThan, - "enableImages": enableImages, - "enableTotalRecordCount": enableTotalRecordCount - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/NotificationsAPI.swift b/JellyfinPlayer/Swaggers/APIs/NotificationsAPI.swift deleted file mode 100644 index 211207f5..00000000 --- a/JellyfinPlayer/Swaggers/APIs/NotificationsAPI.swift +++ /dev/null @@ -1,331 +0,0 @@ -// -// NotificationsAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class NotificationsAPI { - /** - Sends a notification to all admins. - - - parameter body: (body) The notification request. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func createAdminNotification(body: NotificationsAdminBody, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - createAdminNotificationWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Sends a notification to all admins. - - POST /Notifications/Admin - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The notification request. - - - returns: RequestBuilder - */ - open class func createAdminNotificationWithRequestBuilder(body: NotificationsAdminBody) -> RequestBuilder { - let path = "/Notifications/Admin" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Gets notification services. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getNotificationServices(completion: @escaping ((_ data: [NameIdPair]?,_ error: Error?) -> Void)) { - getNotificationServicesWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets notification services. - - GET /Notifications/Services - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "Id" : "Id", - "Name" : "Name" -}, { - "Id" : "Id", - "Name" : "Name" -} ]}] - - - returns: RequestBuilder<[NameIdPair]> - */ - open class func getNotificationServicesWithRequestBuilder() -> RequestBuilder<[NameIdPair]> { - let path = "/Notifications/Services" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[NameIdPair]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets notification types. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getNotificationTypes(completion: @escaping ((_ data: [NotificationTypeInfo]?,_ error: Error?) -> Void)) { - getNotificationTypesWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets notification types. - - GET /Notifications/Types - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "Type" : "Type", - "Category" : "Category", - "IsBasedOnUserEvent" : true, - "Enabled" : true, - "Name" : "Name" -}, { - "Type" : "Type", - "Category" : "Category", - "IsBasedOnUserEvent" : true, - "Enabled" : true, - "Name" : "Name" -} ]}] - - - returns: RequestBuilder<[NotificationTypeInfo]> - */ - open class func getNotificationTypesWithRequestBuilder() -> RequestBuilder<[NotificationTypeInfo]> { - let path = "/Notifications/Types" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[NotificationTypeInfo]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a user's notifications. - - - parameter userId: (path) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getNotifications(userId: String, completion: @escaping ((_ data: NotificationResultDto?,_ error: Error?) -> Void)) { - getNotificationsWithRequestBuilder(userId: userId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a user's notifications. - - GET /Notifications/{userId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 0, - "Notifications" : [ { - "Description" : "Description", - "UserId" : "UserId", - "Level" : "", - "Id" : "Id", - "IsRead" : true, - "Date" : "2000-01-23T04:56:07.000+00:00", - "Url" : "Url", - "Name" : "Name" - }, { - "Description" : "Description", - "UserId" : "UserId", - "Level" : "", - "Id" : "Id", - "IsRead" : true, - "Date" : "2000-01-23T04:56:07.000+00:00", - "Url" : "Url", - "Name" : "Name" - } ] -}}] - - parameter userId: (path) - - - returns: RequestBuilder - */ - open class func getNotificationsWithRequestBuilder(userId: String) -> RequestBuilder { - var path = "/Notifications/{userId}" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a user's notification summary. - - - parameter userId: (path) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getNotificationsSummary(userId: String, completion: @escaping ((_ data: NotificationsSummaryDto?,_ error: Error?) -> Void)) { - getNotificationsSummaryWithRequestBuilder(userId: userId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a user's notification summary. - - GET /Notifications/{userId}/Summary - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "MaxUnreadNotificationLevel" : "", - "UnreadCount" : 0 -}}] - - parameter userId: (path) - - - returns: RequestBuilder - */ - open class func getNotificationsSummaryWithRequestBuilder(userId: String) -> RequestBuilder { - var path = "/Notifications/{userId}/Summary" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Sets notifications as read. - - - parameter userId: (path) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func setRead(userId: String, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - setReadWithRequestBuilder(userId: userId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Sets notifications as read. - - POST /Notifications/{userId}/Read - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter userId: (path) - - - returns: RequestBuilder - */ - open class func setReadWithRequestBuilder(userId: String) -> RequestBuilder { - var path = "/Notifications/{userId}/Read" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Sets notifications as unread. - - - parameter userId: (path) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func setUnread(userId: String, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - setUnreadWithRequestBuilder(userId: userId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Sets notifications as unread. - - POST /Notifications/{userId}/Unread - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter userId: (path) - - - returns: RequestBuilder - */ - open class func setUnreadWithRequestBuilder(userId: String) -> RequestBuilder { - var path = "/Notifications/{userId}/Unread" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/PackageAPI.swift b/JellyfinPlayer/Swaggers/APIs/PackageAPI.swift deleted file mode 100644 index f3882e4b..00000000 --- a/JellyfinPlayer/Swaggers/APIs/PackageAPI.swift +++ /dev/null @@ -1,360 +0,0 @@ -// -// PackageAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class PackageAPI { - /** - Cancels a package installation. - - - parameter packageId: (path) Installation Id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func cancelPackageInstallation(packageId: UUID, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - cancelPackageInstallationWithRequestBuilder(packageId: packageId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Cancels a package installation. - - DELETE /Packages/Installing/{packageId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter packageId: (path) Installation Id. - - - returns: RequestBuilder - */ - open class func cancelPackageInstallationWithRequestBuilder(packageId: UUID) -> RequestBuilder { - var path = "/Packages/Installing/{packageId}" - let packageIdPreEscape = "\(packageId)" - let packageIdPostEscape = packageIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{packageId}", with: packageIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a package by name or assembly GUID. - - - parameter name: (path) The name of the package. - - parameter assemblyGuid: (query) The GUID of the associated assembly. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getPackageInfo(name: String, assemblyGuid: UUID? = nil, completion: @escaping ((_ data: PackageInfo?,_ error: Error?) -> Void)) { - getPackageInfoWithRequestBuilder(name: name, assemblyGuid: assemblyGuid).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a package by name or assembly GUID. - - GET /Packages/{name} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "owner" : "owner", - "overview" : "overview", - "versions" : [ { - "sourceUrl" : "sourceUrl", - "targetAbi" : "targetAbi", - "checksum" : "checksum", - "changelog" : "changelog", - "repositoryName" : "repositoryName", - "version" : "version", - "VersionNumber" : "", - "timestamp" : "timestamp", - "repositoryUrl" : "repositoryUrl" - }, { - "sourceUrl" : "sourceUrl", - "targetAbi" : "targetAbi", - "checksum" : "checksum", - "changelog" : "changelog", - "repositoryName" : "repositoryName", - "version" : "version", - "VersionNumber" : "", - "timestamp" : "timestamp", - "repositoryUrl" : "repositoryUrl" - } ], - "imageUrl" : "imageUrl", - "name" : "name", - "description" : "description", - "guid" : "guid", - "category" : "category" -}}] - - parameter name: (path) The name of the package. - - parameter assemblyGuid: (query) The GUID of the associated assembly. (optional) - - - returns: RequestBuilder - */ - open class func getPackageInfoWithRequestBuilder(name: String, assemblyGuid: UUID? = nil) -> RequestBuilder { - var path = "/Packages/{name}" - let namePreEscape = "\(name)" - let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "assemblyGuid": assemblyGuid - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets available packages. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getPackages(completion: @escaping ((_ data: [PackageInfo]?,_ error: Error?) -> Void)) { - getPackagesWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets available packages. - - GET /Packages - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "owner" : "owner", - "overview" : "overview", - "versions" : [ { - "sourceUrl" : "sourceUrl", - "targetAbi" : "targetAbi", - "checksum" : "checksum", - "changelog" : "changelog", - "repositoryName" : "repositoryName", - "version" : "version", - "VersionNumber" : "", - "timestamp" : "timestamp", - "repositoryUrl" : "repositoryUrl" - }, { - "sourceUrl" : "sourceUrl", - "targetAbi" : "targetAbi", - "checksum" : "checksum", - "changelog" : "changelog", - "repositoryName" : "repositoryName", - "version" : "version", - "VersionNumber" : "", - "timestamp" : "timestamp", - "repositoryUrl" : "repositoryUrl" - } ], - "imageUrl" : "imageUrl", - "name" : "name", - "description" : "description", - "guid" : "guid", - "category" : "category" -}, { - "owner" : "owner", - "overview" : "overview", - "versions" : [ { - "sourceUrl" : "sourceUrl", - "targetAbi" : "targetAbi", - "checksum" : "checksum", - "changelog" : "changelog", - "repositoryName" : "repositoryName", - "version" : "version", - "VersionNumber" : "", - "timestamp" : "timestamp", - "repositoryUrl" : "repositoryUrl" - }, { - "sourceUrl" : "sourceUrl", - "targetAbi" : "targetAbi", - "checksum" : "checksum", - "changelog" : "changelog", - "repositoryName" : "repositoryName", - "version" : "version", - "VersionNumber" : "", - "timestamp" : "timestamp", - "repositoryUrl" : "repositoryUrl" - } ], - "imageUrl" : "imageUrl", - "name" : "name", - "description" : "description", - "guid" : "guid", - "category" : "category" -} ]}] - - - returns: RequestBuilder<[PackageInfo]> - */ - open class func getPackagesWithRequestBuilder() -> RequestBuilder<[PackageInfo]> { - let path = "/Packages" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[PackageInfo]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets all package repositories. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getRepositories(completion: @escaping ((_ data: [RepositoryInfo]?,_ error: Error?) -> Void)) { - getRepositoriesWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets all package repositories. - - GET /Repositories - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "Enabled" : true, - "Url" : "Url", - "Name" : "Name" -}, { - "Enabled" : true, - "Url" : "Url", - "Name" : "Name" -} ]}] - - - returns: RequestBuilder<[RepositoryInfo]> - */ - open class func getRepositoriesWithRequestBuilder() -> RequestBuilder<[RepositoryInfo]> { - let path = "/Repositories" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[RepositoryInfo]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Installs a package. - - - parameter name: (path) Package name. - - parameter assemblyGuid: (query) GUID of the associated assembly. (optional) - - parameter version: (query) Optional version. Defaults to latest version. (optional) - - parameter repositoryUrl: (query) Optional. Specify the repository to install from. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func installPackage(name: String, assemblyGuid: UUID? = nil, version: String? = nil, repositoryUrl: String? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - installPackageWithRequestBuilder(name: name, assemblyGuid: assemblyGuid, version: version, repositoryUrl: repositoryUrl).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Installs a package. - - POST /Packages/Installed/{name} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter name: (path) Package name. - - parameter assemblyGuid: (query) GUID of the associated assembly. (optional) - - parameter version: (query) Optional version. Defaults to latest version. (optional) - - parameter repositoryUrl: (query) Optional. Specify the repository to install from. (optional) - - - returns: RequestBuilder - */ - open class func installPackageWithRequestBuilder(name: String, assemblyGuid: UUID? = nil, version: String? = nil, repositoryUrl: String? = nil) -> RequestBuilder { - var path = "/Packages/Installed/{name}" - let namePreEscape = "\(name)" - let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "assemblyGuid": assemblyGuid, - "version": version, - "repositoryUrl": repositoryUrl - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Sets the enabled and existing package repositories. - - - parameter body: (body) The list of package repositories. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func setRepositories(body: [RepositoryInfo], completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - setRepositoriesWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Sets the enabled and existing package repositories. - - POST /Repositories - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The list of package repositories. - - - returns: RequestBuilder - */ - open class func setRepositoriesWithRequestBuilder(body: [RepositoryInfo]) -> RequestBuilder { - let path = "/Repositories" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/PersonsAPI.swift b/JellyfinPlayer/Swaggers/APIs/PersonsAPI.swift deleted file mode 100644 index d6e0a345..00000000 --- a/JellyfinPlayer/Swaggers/APIs/PersonsAPI.swift +++ /dev/null @@ -1,2040 +0,0 @@ -// -// PersonsAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class PersonsAPI { - /** - Get person by name. - - - parameter name: (path) Person name. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getPerson(name: String, userId: UUID? = nil, completion: @escaping ((_ data: BaseItemDto?,_ error: Error?) -> Void)) { - getPersonWithRequestBuilder(name: name, userId: userId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get person by name. - - GET /Persons/{name} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 -}}] - - parameter name: (path) Person name. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - - returns: RequestBuilder - */ - open class func getPersonWithRequestBuilder(name: String, userId: UUID? = nil) -> RequestBuilder { - var path = "/Persons/{name}" - let namePreEscape = "\(name)" - let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets all persons. - - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter searchTerm: (query) The search term. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter filters: (query) Optional. Specify additional filters to apply. (optional) - - parameter isFavorite: (query) Optional filter by items that are marked as favorite, or not. userId is required. (optional) - - parameter enableUserData: (query) Optional, include user data. (optional) - - parameter imageTypeLimit: (query) Optional, the max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter excludePersonTypes: (query) Optional. If specified results will be filtered to exclude those containing the specified PersonType. Allows multiple, comma-delimited. (optional) - - parameter personTypes: (query) Optional. If specified results will be filtered to include only those containing the specified PersonType. Allows multiple, comma-delimited. (optional) - - parameter appearsInItemId: (query) Optional. If specified, person results will be filtered on items related to said persons. (optional) - - parameter userId: (query) User id. (optional) - - parameter enableImages: (query) Optional, include image information in output. (optional, default to true) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getPersons(limit: Int? = nil, searchTerm: String? = nil, fields: [ItemFields]? = nil, filters: [ItemFilter]? = nil, isFavorite: Bool? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, excludePersonTypes: [String]? = nil, personTypes: [String]? = nil, appearsInItemId: UUID? = nil, userId: UUID? = nil, enableImages: Bool? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getPersonsWithRequestBuilder(limit: limit, searchTerm: searchTerm, fields: fields, filters: filters, isFavorite: isFavorite, enableUserData: enableUserData, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes, excludePersonTypes: excludePersonTypes, personTypes: personTypes, appearsInItemId: appearsInItemId, userId: userId, enableImages: enableImages).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets all persons. - - GET /Persons - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter searchTerm: (query) The search term. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter filters: (query) Optional. Specify additional filters to apply. (optional) - - parameter isFavorite: (query) Optional filter by items that are marked as favorite, or not. userId is required. (optional) - - parameter enableUserData: (query) Optional, include user data. (optional) - - parameter imageTypeLimit: (query) Optional, the max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter excludePersonTypes: (query) Optional. If specified results will be filtered to exclude those containing the specified PersonType. Allows multiple, comma-delimited. (optional) - - parameter personTypes: (query) Optional. If specified results will be filtered to include only those containing the specified PersonType. Allows multiple, comma-delimited. (optional) - - parameter appearsInItemId: (query) Optional. If specified, person results will be filtered on items related to said persons. (optional) - - parameter userId: (query) User id. (optional) - - parameter enableImages: (query) Optional, include image information in output. (optional, default to true) - - - returns: RequestBuilder - */ - open class func getPersonsWithRequestBuilder(limit: Int? = nil, searchTerm: String? = nil, fields: [ItemFields]? = nil, filters: [ItemFilter]? = nil, isFavorite: Bool? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, excludePersonTypes: [String]? = nil, personTypes: [String]? = nil, appearsInItemId: UUID? = nil, userId: UUID? = nil, enableImages: Bool? = nil) -> RequestBuilder { - let path = "/Persons" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "limit": limit?.encodeToJSON(), - "searchTerm": searchTerm, - "fields": fields, - "filters": filters, - "isFavorite": isFavorite, - "enableUserData": enableUserData, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes, - "excludePersonTypes": excludePersonTypes, - "personTypes": personTypes, - "appearsInItemId": appearsInItemId, - "userId": userId, - "enableImages": enableImages - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/PlaylistsAPI.swift b/JellyfinPlayer/Swaggers/APIs/PlaylistsAPI.swift deleted file mode 100644 index 4d2cd008..00000000 --- a/JellyfinPlayer/Swaggers/APIs/PlaylistsAPI.swift +++ /dev/null @@ -1,1555 +0,0 @@ -// -// PlaylistsAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class PlaylistsAPI { - /** - Adds items to a playlist. - - - parameter playlistId: (path) The playlist id. - - parameter ids: (query) Item id, comma delimited. (optional) - - parameter userId: (query) The userId. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func addToPlaylist(playlistId: UUID, ids: [UUID]? = nil, userId: UUID? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - addToPlaylistWithRequestBuilder(playlistId: playlistId, ids: ids, userId: userId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Adds items to a playlist. - - POST /Playlists/{playlistId}/Items - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter playlistId: (path) The playlist id. - - parameter ids: (query) Item id, comma delimited. (optional) - - parameter userId: (query) The userId. (optional) - - - returns: RequestBuilder - */ - open class func addToPlaylistWithRequestBuilder(playlistId: UUID, ids: [UUID]? = nil, userId: UUID? = nil) -> RequestBuilder { - var path = "/Playlists/{playlistId}/Items" - let playlistIdPreEscape = "\(playlistId)" - let playlistIdPostEscape = playlistIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{playlistId}", with: playlistIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "ids": ids, - "userId": userId - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Creates a new playlist. - - - parameter body: (body) The create playlist payload. (optional) - - parameter name: (query) The playlist name. (optional) - - parameter ids: (query) The item ids. (optional) - - parameter userId: (query) The user id. (optional) - - parameter mediaType: (query) The media type. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func createPlaylist(body: PlaylistsBody? = nil, name: String? = nil, ids: [UUID]? = nil, userId: UUID? = nil, mediaType: String? = nil, completion: @escaping ((_ data: PlaylistCreationResult?,_ error: Error?) -> Void)) { - createPlaylistWithRequestBuilder(body: body, name: name, ids: ids, userId: userId, mediaType: mediaType).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Creates a new playlist. - - POST /Playlists - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "Id" : "Id" -}}] - - parameter body: (body) The create playlist payload. (optional) - - parameter name: (query) The playlist name. (optional) - - parameter ids: (query) The item ids. (optional) - - parameter userId: (query) The user id. (optional) - - parameter mediaType: (query) The media type. (optional) - - - returns: RequestBuilder - */ - open class func createPlaylistWithRequestBuilder(body: PlaylistsBody? = nil, name: String? = nil, ids: [UUID]? = nil, userId: UUID? = nil, mediaType: String? = nil) -> RequestBuilder { - let path = "/Playlists" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "name": name, - "ids": ids, - "userId": userId, - "mediaType": mediaType - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Gets the original items of a playlist. - - - parameter playlistId: (path) The playlist id. - - parameter userId: (query) User id. - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getPlaylistItems(playlistId: UUID, userId: UUID, startIndex: Int? = nil, limit: Int? = nil, fields: [ItemFields]? = nil, enableImages: Bool? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getPlaylistItemsWithRequestBuilder(playlistId: playlistId, userId: userId, startIndex: startIndex, limit: limit, fields: fields, enableImages: enableImages, enableUserData: enableUserData, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets the original items of a playlist. - - GET /Playlists/{playlistId}/Items - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter playlistId: (path) The playlist id. - - parameter userId: (query) User id. - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - - returns: RequestBuilder - */ - open class func getPlaylistItemsWithRequestBuilder(playlistId: UUID, userId: UUID, startIndex: Int? = nil, limit: Int? = nil, fields: [ItemFields]? = nil, enableImages: Bool? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil) -> RequestBuilder { - var path = "/Playlists/{playlistId}/Items" - let playlistIdPreEscape = "\(playlistId)" - let playlistIdPostEscape = playlistIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{playlistId}", with: playlistIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId, - "startIndex": startIndex?.encodeToJSON(), - "limit": limit?.encodeToJSON(), - "fields": fields, - "enableImages": enableImages, - "enableUserData": enableUserData, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Moves a playlist item. - - - parameter playlistId: (path) The playlist id. - - parameter itemId: (path) The item id. - - parameter newIndex: (path) The new index. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func moveItem(playlistId: String, itemId: String, newIndex: Int, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - moveItemWithRequestBuilder(playlistId: playlistId, itemId: itemId, newIndex: newIndex).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Moves a playlist item. - - POST /Playlists/{playlistId}/Items/{itemId}/Move/{newIndex} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter playlistId: (path) The playlist id. - - parameter itemId: (path) The item id. - - parameter newIndex: (path) The new index. - - - returns: RequestBuilder - */ - open class func moveItemWithRequestBuilder(playlistId: String, itemId: String, newIndex: Int) -> RequestBuilder { - var path = "/Playlists/{playlistId}/Items/{itemId}/Move/{newIndex}" - let playlistIdPreEscape = "\(playlistId)" - let playlistIdPostEscape = playlistIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{playlistId}", with: playlistIdPostEscape, options: .literal, range: nil) - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let newIndexPreEscape = "\(newIndex)" - let newIndexPostEscape = newIndexPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{newIndex}", with: newIndexPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Removes items from a playlist. - - - parameter playlistId: (path) The playlist id. - - parameter entryIds: (query) The item ids, comma delimited. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func removeFromPlaylist(playlistId: String, entryIds: [String]? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - removeFromPlaylistWithRequestBuilder(playlistId: playlistId, entryIds: entryIds).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Removes items from a playlist. - - DELETE /Playlists/{playlistId}/Items - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter playlistId: (path) The playlist id. - - parameter entryIds: (query) The item ids, comma delimited. (optional) - - - returns: RequestBuilder - */ - open class func removeFromPlaylistWithRequestBuilder(playlistId: String, entryIds: [String]? = nil) -> RequestBuilder { - var path = "/Playlists/{playlistId}/Items" - let playlistIdPreEscape = "\(playlistId)" - let playlistIdPostEscape = playlistIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{playlistId}", with: playlistIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "entryIds": entryIds - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/PlaystateAPI.swift b/JellyfinPlayer/Swaggers/APIs/PlaystateAPI.swift deleted file mode 100644 index a62e28bc..00000000 --- a/JellyfinPlayer/Swaggers/APIs/PlaystateAPI.swift +++ /dev/null @@ -1,514 +0,0 @@ -// -// PlaystateAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class PlaystateAPI { - /** - Marks an item as played for user. - - - parameter userId: (path) User id. - - parameter itemId: (path) Item id. - - parameter datePlayed: (query) Optional. The date the item was played. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func markPlayedItem(userId: UUID, itemId: UUID, datePlayed: Date? = nil, completion: @escaping ((_ data: UserItemDataDto?,_ error: Error?) -> Void)) { - markPlayedItemWithRequestBuilder(userId: userId, itemId: itemId, datePlayed: datePlayed).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Marks an item as played for user. - - POST /Users/{userId}/PlayedItems/{itemId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "UnplayedItemCount" : 1, - "Played" : true, - "PlayedPercentage" : 6.027456183070403, - "Rating" : 0.8008281904610115, - "PlayCount" : 5, - "PlaybackPositionTicks" : 5, - "LastPlayedDate" : "2000-01-23T04:56:07.000+00:00", - "Likes" : true, - "IsFavorite" : true, - "ItemId" : "ItemId", - "Key" : "Key" -}}] - - parameter userId: (path) User id. - - parameter itemId: (path) Item id. - - parameter datePlayed: (query) Optional. The date the item was played. (optional) - - - returns: RequestBuilder - */ - open class func markPlayedItemWithRequestBuilder(userId: UUID, itemId: UUID, datePlayed: Date? = nil) -> RequestBuilder { - var path = "/Users/{userId}/PlayedItems/{itemId}" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "datePlayed": datePlayed?.encodeToJSON() - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Marks an item as unplayed for user. - - - parameter userId: (path) User id. - - parameter itemId: (path) Item id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func markUnplayedItem(userId: UUID, itemId: UUID, completion: @escaping ((_ data: UserItemDataDto?,_ error: Error?) -> Void)) { - markUnplayedItemWithRequestBuilder(userId: userId, itemId: itemId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Marks an item as unplayed for user. - - DELETE /Users/{userId}/PlayedItems/{itemId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "UnplayedItemCount" : 1, - "Played" : true, - "PlayedPercentage" : 6.027456183070403, - "Rating" : 0.8008281904610115, - "PlayCount" : 5, - "PlaybackPositionTicks" : 5, - "LastPlayedDate" : "2000-01-23T04:56:07.000+00:00", - "Likes" : true, - "IsFavorite" : true, - "ItemId" : "ItemId", - "Key" : "Key" -}}] - - parameter userId: (path) User id. - - parameter itemId: (path) Item id. - - - returns: RequestBuilder - */ - open class func markUnplayedItemWithRequestBuilder(userId: UUID, itemId: UUID) -> RequestBuilder { - var path = "/Users/{userId}/PlayedItems/{itemId}" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Reports a user's playback progress. - - - parameter userId: (path) User id. - - parameter itemId: (path) Item id. - - parameter mediaSourceId: (query) The id of the MediaSource. (optional) - - parameter positionTicks: (query) Optional. The current position, in ticks. 1 tick = 10000 ms. (optional) - - parameter audioStreamIndex: (query) The audio stream index. (optional) - - parameter subtitleStreamIndex: (query) The subtitle stream index. (optional) - - parameter volumeLevel: (query) Scale of 0-100. (optional) - - parameter playMethod: (query) The play method. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter repeatMode: (query) The repeat mode. (optional) - - parameter isPaused: (query) Indicates if the player is paused. (optional, default to false) - - parameter isMuted: (query) Indicates if the player is muted. (optional, default to false) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func onPlaybackProgress(userId: UUID, itemId: UUID, mediaSourceId: String? = nil, positionTicks: Int64? = nil, audioStreamIndex: Int? = nil, subtitleStreamIndex: Int? = nil, volumeLevel: Int? = nil, playMethod: PlayMethod1? = nil, liveStreamId: String? = nil, playSessionId: String? = nil, repeatMode: RepeatMode? = nil, isPaused: Bool? = nil, isMuted: Bool? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - onPlaybackProgressWithRequestBuilder(userId: userId, itemId: itemId, mediaSourceId: mediaSourceId, positionTicks: positionTicks, audioStreamIndex: audioStreamIndex, subtitleStreamIndex: subtitleStreamIndex, volumeLevel: volumeLevel, playMethod: playMethod, liveStreamId: liveStreamId, playSessionId: playSessionId, repeatMode: repeatMode, isPaused: isPaused, isMuted: isMuted).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Reports a user's playback progress. - - POST /Users/{userId}/PlayingItems/{itemId}/Progress - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter userId: (path) User id. - - parameter itemId: (path) Item id. - - parameter mediaSourceId: (query) The id of the MediaSource. (optional) - - parameter positionTicks: (query) Optional. The current position, in ticks. 1 tick = 10000 ms. (optional) - - parameter audioStreamIndex: (query) The audio stream index. (optional) - - parameter subtitleStreamIndex: (query) The subtitle stream index. (optional) - - parameter volumeLevel: (query) Scale of 0-100. (optional) - - parameter playMethod: (query) The play method. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter repeatMode: (query) The repeat mode. (optional) - - parameter isPaused: (query) Indicates if the player is paused. (optional, default to false) - - parameter isMuted: (query) Indicates if the player is muted. (optional, default to false) - - - returns: RequestBuilder - */ - open class func onPlaybackProgressWithRequestBuilder(userId: UUID, itemId: UUID, mediaSourceId: String? = nil, positionTicks: Int64? = nil, audioStreamIndex: Int? = nil, subtitleStreamIndex: Int? = nil, volumeLevel: Int? = nil, playMethod: PlayMethod1? = nil, liveStreamId: String? = nil, playSessionId: String? = nil, repeatMode: RepeatMode? = nil, isPaused: Bool? = nil, isMuted: Bool? = nil) -> RequestBuilder { - var path = "/Users/{userId}/PlayingItems/{itemId}/Progress" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "mediaSourceId": mediaSourceId, - "positionTicks": positionTicks?.encodeToJSON(), - "audioStreamIndex": audioStreamIndex?.encodeToJSON(), - "subtitleStreamIndex": subtitleStreamIndex?.encodeToJSON(), - "volumeLevel": volumeLevel?.encodeToJSON(), - "playMethod": playMethod, - "liveStreamId": liveStreamId, - "playSessionId": playSessionId, - "repeatMode": repeatMode, - "isPaused": isPaused, - "isMuted": isMuted - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Reports that a user has begun playing an item. - - - parameter userId: (path) User id. - - parameter itemId: (path) Item id. - - parameter mediaSourceId: (query) The id of the MediaSource. (optional) - - parameter audioStreamIndex: (query) The audio stream index. (optional) - - parameter subtitleStreamIndex: (query) The subtitle stream index. (optional) - - parameter playMethod: (query) The play method. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter canSeek: (query) Indicates if the client can seek. (optional, default to false) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func onPlaybackStart(userId: UUID, itemId: UUID, mediaSourceId: String? = nil, audioStreamIndex: Int? = nil, subtitleStreamIndex: Int? = nil, playMethod: PlayMethod? = nil, liveStreamId: String? = nil, playSessionId: String? = nil, canSeek: Bool? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - onPlaybackStartWithRequestBuilder(userId: userId, itemId: itemId, mediaSourceId: mediaSourceId, audioStreamIndex: audioStreamIndex, subtitleStreamIndex: subtitleStreamIndex, playMethod: playMethod, liveStreamId: liveStreamId, playSessionId: playSessionId, canSeek: canSeek).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Reports that a user has begun playing an item. - - POST /Users/{userId}/PlayingItems/{itemId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter userId: (path) User id. - - parameter itemId: (path) Item id. - - parameter mediaSourceId: (query) The id of the MediaSource. (optional) - - parameter audioStreamIndex: (query) The audio stream index. (optional) - - parameter subtitleStreamIndex: (query) The subtitle stream index. (optional) - - parameter playMethod: (query) The play method. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter canSeek: (query) Indicates if the client can seek. (optional, default to false) - - - returns: RequestBuilder - */ - open class func onPlaybackStartWithRequestBuilder(userId: UUID, itemId: UUID, mediaSourceId: String? = nil, audioStreamIndex: Int? = nil, subtitleStreamIndex: Int? = nil, playMethod: PlayMethod? = nil, liveStreamId: String? = nil, playSessionId: String? = nil, canSeek: Bool? = nil) -> RequestBuilder { - var path = "/Users/{userId}/PlayingItems/{itemId}" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "mediaSourceId": mediaSourceId, - "audioStreamIndex": audioStreamIndex?.encodeToJSON(), - "subtitleStreamIndex": subtitleStreamIndex?.encodeToJSON(), - "playMethod": playMethod, - "liveStreamId": liveStreamId, - "playSessionId": playSessionId, - "canSeek": canSeek - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Reports that a user has stopped playing an item. - - - parameter userId: (path) User id. - - parameter itemId: (path) Item id. - - parameter mediaSourceId: (query) The id of the MediaSource. (optional) - - parameter nextMediaType: (query) The next media type that will play. (optional) - - parameter positionTicks: (query) Optional. The position, in ticks, where playback stopped. 1 tick = 10000 ms. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func onPlaybackStopped(userId: UUID, itemId: UUID, mediaSourceId: String? = nil, nextMediaType: String? = nil, positionTicks: Int64? = nil, liveStreamId: String? = nil, playSessionId: String? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - onPlaybackStoppedWithRequestBuilder(userId: userId, itemId: itemId, mediaSourceId: mediaSourceId, nextMediaType: nextMediaType, positionTicks: positionTicks, liveStreamId: liveStreamId, playSessionId: playSessionId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Reports that a user has stopped playing an item. - - DELETE /Users/{userId}/PlayingItems/{itemId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter userId: (path) User id. - - parameter itemId: (path) Item id. - - parameter mediaSourceId: (query) The id of the MediaSource. (optional) - - parameter nextMediaType: (query) The next media type that will play. (optional) - - parameter positionTicks: (query) Optional. The position, in ticks, where playback stopped. 1 tick = 10000 ms. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - - returns: RequestBuilder - */ - open class func onPlaybackStoppedWithRequestBuilder(userId: UUID, itemId: UUID, mediaSourceId: String? = nil, nextMediaType: String? = nil, positionTicks: Int64? = nil, liveStreamId: String? = nil, playSessionId: String? = nil) -> RequestBuilder { - var path = "/Users/{userId}/PlayingItems/{itemId}" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "mediaSourceId": mediaSourceId, - "nextMediaType": nextMediaType, - "positionTicks": positionTicks?.encodeToJSON(), - "liveStreamId": liveStreamId, - "playSessionId": playSessionId - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Pings a playback session. - - - parameter playSessionId: (query) Playback session id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func pingPlaybackSession(playSessionId: String, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - pingPlaybackSessionWithRequestBuilder(playSessionId: playSessionId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Pings a playback session. - - POST /Sessions/Playing/Ping - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter playSessionId: (query) Playback session id. - - - returns: RequestBuilder - */ - open class func pingPlaybackSessionWithRequestBuilder(playSessionId: String) -> RequestBuilder { - let path = "/Sessions/Playing/Ping" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "playSessionId": playSessionId - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Reports playback progress within a session. - - - parameter body: (body) The playback progress info. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func reportPlaybackProgress(body: PlayingProgressBody? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - reportPlaybackProgressWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Reports playback progress within a session. - - POST /Sessions/Playing/Progress - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The playback progress info. (optional) - - - returns: RequestBuilder - */ - open class func reportPlaybackProgressWithRequestBuilder(body: PlayingProgressBody? = nil) -> RequestBuilder { - let path = "/Sessions/Playing/Progress" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Reports playback has started within a session. - - - parameter body: (body) The playback start info. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func reportPlaybackStart(body: SessionsPlayingBody? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - reportPlaybackStartWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Reports playback has started within a session. - - POST /Sessions/Playing - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The playback start info. (optional) - - - returns: RequestBuilder - */ - open class func reportPlaybackStartWithRequestBuilder(body: SessionsPlayingBody? = nil) -> RequestBuilder { - let path = "/Sessions/Playing" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Reports playback has stopped within a session. - - - parameter body: (body) The playback stop info. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func reportPlaybackStopped(body: PlayingStoppedBody? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - reportPlaybackStoppedWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Reports playback has stopped within a session. - - POST /Sessions/Playing/Stopped - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The playback stop info. (optional) - - - returns: RequestBuilder - */ - open class func reportPlaybackStoppedWithRequestBuilder(body: PlayingStoppedBody? = nil) -> RequestBuilder { - let path = "/Sessions/Playing/Stopped" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/PluginsAPI.swift b/JellyfinPlayer/Swaggers/APIs/PluginsAPI.swift deleted file mode 100644 index 5ad79fb0..00000000 --- a/JellyfinPlayer/Swaggers/APIs/PluginsAPI.swift +++ /dev/null @@ -1,463 +0,0 @@ -// -// PluginsAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class PluginsAPI { - /** - Disable a plugin. - - - parameter pluginId: (path) Plugin id. - - parameter version: (path) Plugin version. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func disablePlugin(pluginId: UUID, version: Version1, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - disablePluginWithRequestBuilder(pluginId: pluginId, version: version).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Disable a plugin. - - POST /Plugins/{pluginId}/{version}/Disable - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter pluginId: (path) Plugin id. - - parameter version: (path) Plugin version. - - - returns: RequestBuilder - */ - open class func disablePluginWithRequestBuilder(pluginId: UUID, version: Version1) -> RequestBuilder { - var path = "/Plugins/{pluginId}/{version}/Disable" - let pluginIdPreEscape = "\(pluginId)" - let pluginIdPostEscape = pluginIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{pluginId}", with: pluginIdPostEscape, options: .literal, range: nil) - let versionPreEscape = "\(version)" - let versionPostEscape = versionPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{version}", with: versionPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Enables a disabled plugin. - - - parameter pluginId: (path) Plugin id. - - parameter version: (path) Plugin version. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func enablePlugin(pluginId: UUID, version: Version2, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - enablePluginWithRequestBuilder(pluginId: pluginId, version: version).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Enables a disabled plugin. - - POST /Plugins/{pluginId}/{version}/Enable - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter pluginId: (path) Plugin id. - - parameter version: (path) Plugin version. - - - returns: RequestBuilder - */ - open class func enablePluginWithRequestBuilder(pluginId: UUID, version: Version2) -> RequestBuilder { - var path = "/Plugins/{pluginId}/{version}/Enable" - let pluginIdPreEscape = "\(pluginId)" - let pluginIdPostEscape = pluginIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{pluginId}", with: pluginIdPostEscape, options: .literal, range: nil) - let versionPreEscape = "\(version)" - let versionPostEscape = versionPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{version}", with: versionPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets plugin configuration. - - - parameter pluginId: (path) Plugin id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getPluginConfiguration(pluginId: UUID, completion: @escaping ((_ data: BasePluginConfiguration?,_ error: Error?) -> Void)) { - getPluginConfigurationWithRequestBuilder(pluginId: pluginId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets plugin configuration. - - GET /Plugins/{pluginId}/Configuration - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ }}] - - parameter pluginId: (path) Plugin id. - - - returns: RequestBuilder - */ - open class func getPluginConfigurationWithRequestBuilder(pluginId: UUID) -> RequestBuilder { - var path = "/Plugins/{pluginId}/Configuration" - let pluginIdPreEscape = "\(pluginId)" - let pluginIdPostEscape = pluginIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{pluginId}", with: pluginIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a plugin's image. - - - parameter pluginId: (path) Plugin id. - - parameter version: (path) Plugin version. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getPluginImage(pluginId: UUID, version: Version3, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getPluginImageWithRequestBuilder(pluginId: pluginId, version: version).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a plugin's image. - - GET /Plugins/{pluginId}/{version}/Image - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=""}] - - parameter pluginId: (path) Plugin id. - - parameter version: (path) Plugin version. - - - returns: RequestBuilder - */ - open class func getPluginImageWithRequestBuilder(pluginId: UUID, version: Version3) -> RequestBuilder { - var path = "/Plugins/{pluginId}/{version}/Image" - let pluginIdPreEscape = "\(pluginId)" - let pluginIdPostEscape = pluginIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{pluginId}", with: pluginIdPostEscape, options: .literal, range: nil) - let versionPreEscape = "\(version)" - let versionPostEscape = versionPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{version}", with: versionPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a plugin's manifest. - - - parameter pluginId: (path) Plugin id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getPluginManifest(pluginId: UUID, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - getPluginManifestWithRequestBuilder(pluginId: pluginId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Gets a plugin's manifest. - - POST /Plugins/{pluginId}/Manifest - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter pluginId: (path) Plugin id. - - - returns: RequestBuilder - */ - open class func getPluginManifestWithRequestBuilder(pluginId: UUID) -> RequestBuilder { - var path = "/Plugins/{pluginId}/Manifest" - let pluginIdPreEscape = "\(pluginId)" - let pluginIdPostEscape = pluginIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{pluginId}", with: pluginIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a list of currently installed plugins. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getPlugins(completion: @escaping ((_ data: [PluginInfo]?,_ error: Error?) -> Void)) { - getPluginsWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a list of currently installed plugins. - - GET /Plugins - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "Status" : "", - "Description" : "Description", - "Version" : "", - "HasImage" : true, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ConfigurationFileName" : "ConfigurationFileName", - "CanUninstall" : true, - "Name" : "Name" -}, { - "Status" : "", - "Description" : "Description", - "Version" : "", - "HasImage" : true, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ConfigurationFileName" : "ConfigurationFileName", - "CanUninstall" : true, - "Name" : "Name" -} ]}] - - - returns: RequestBuilder<[PluginInfo]> - */ - open class func getPluginsWithRequestBuilder() -> RequestBuilder<[PluginInfo]> { - let path = "/Plugins" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[PluginInfo]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Uninstalls a plugin. - - - parameter pluginId: (path) Plugin id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func uninstallPlugin(pluginId: UUID, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - uninstallPluginWithRequestBuilder(pluginId: pluginId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Uninstalls a plugin. - - DELETE /Plugins/{pluginId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter pluginId: (path) Plugin id. - - - returns: RequestBuilder - */ - open class func uninstallPluginWithRequestBuilder(pluginId: UUID) -> RequestBuilder { - var path = "/Plugins/{pluginId}" - let pluginIdPreEscape = "\(pluginId)" - let pluginIdPostEscape = pluginIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{pluginId}", with: pluginIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Uninstalls a plugin by version. - - - parameter pluginId: (path) Plugin id. - - parameter version: (path) Plugin version. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func uninstallPluginByVersion(pluginId: UUID, version: Version, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - uninstallPluginByVersionWithRequestBuilder(pluginId: pluginId, version: version).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Uninstalls a plugin by version. - - DELETE /Plugins/{pluginId}/{version} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter pluginId: (path) Plugin id. - - parameter version: (path) Plugin version. - - - returns: RequestBuilder - */ - open class func uninstallPluginByVersionWithRequestBuilder(pluginId: UUID, version: Version) -> RequestBuilder { - var path = "/Plugins/{pluginId}/{version}" - let pluginIdPreEscape = "\(pluginId)" - let pluginIdPostEscape = pluginIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{pluginId}", with: pluginIdPostEscape, options: .literal, range: nil) - let versionPreEscape = "\(version)" - let versionPostEscape = versionPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{version}", with: versionPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Updates plugin configuration. - - - parameter pluginId: (path) Plugin id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func updatePluginConfiguration(pluginId: UUID, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - updatePluginConfigurationWithRequestBuilder(pluginId: pluginId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Updates plugin configuration. - - POST /Plugins/{pluginId}/Configuration - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter pluginId: (path) Plugin id. - - - returns: RequestBuilder - */ - open class func updatePluginConfigurationWithRequestBuilder(pluginId: UUID) -> RequestBuilder { - var path = "/Plugins/{pluginId}/Configuration" - let pluginIdPreEscape = "\(pluginId)" - let pluginIdPostEscape = pluginIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{pluginId}", with: pluginIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Updates plugin security info. - - - parameter body: (body) Plugin security info. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func updatePluginSecurityInfo(body: PluginsSecurityInfoBody, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - updatePluginSecurityInfoWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Updates plugin security info. - - POST /Plugins/SecurityInfo - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) Plugin security info. - - - returns: RequestBuilder - */ - open class func updatePluginSecurityInfoWithRequestBuilder(body: PluginsSecurityInfoBody) -> RequestBuilder { - let path = "/Plugins/SecurityInfo" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/QuickConnectAPI.swift b/JellyfinPlayer/Swaggers/APIs/QuickConnectAPI.swift deleted file mode 100644 index 206e8174..00000000 --- a/JellyfinPlayer/Swaggers/APIs/QuickConnectAPI.swift +++ /dev/null @@ -1,284 +0,0 @@ -// -// QuickConnectAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class QuickConnectAPI { - /** - Temporarily activates quick connect for five minutes. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func activate(completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - activateWithRequestBuilder().execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Temporarily activates quick connect for five minutes. - - POST /QuickConnect/Activate - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - - returns: RequestBuilder - */ - open class func activateWithRequestBuilder() -> RequestBuilder { - let path = "/QuickConnect/Activate" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Authorizes a pending quick connect request. - - - parameter code: (query) Quick connect code to authorize. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func authorize(code: String, completion: @escaping ((_ data: Bool?,_ error: Error?) -> Void)) { - authorizeWithRequestBuilder(code: code).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Authorizes a pending quick connect request. - - POST /QuickConnect/Authorize - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=true}] - - parameter code: (query) Quick connect code to authorize. - - - returns: RequestBuilder - */ - open class func authorizeWithRequestBuilder(code: String) -> RequestBuilder { - let path = "/QuickConnect/Authorize" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "code": code - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Enables or disables quick connect. - - - parameter status: (query) New MediaBrowser.Model.QuickConnect.QuickConnectState. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func available(status: Status2? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - availableWithRequestBuilder(status: status).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Enables or disables quick connect. - - POST /QuickConnect/Available - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter status: (query) New MediaBrowser.Model.QuickConnect.QuickConnectState. (optional) - - - returns: RequestBuilder - */ - open class func availableWithRequestBuilder(status: Status2? = nil) -> RequestBuilder { - let path = "/QuickConnect/Available" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "status": status - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Attempts to retrieve authentication information. - - - parameter secret: (query) Secret previously returned from the Initiate endpoint. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func connect(secret: String, completion: @escaping ((_ data: QuickConnectResult?,_ error: Error?) -> Void)) { - connectWithRequestBuilder(secret: secret).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Attempts to retrieve authentication information. - - GET /QuickConnect/Connect - - - - - examples: [{contentType=application/json, example={ - "Secret" : "Secret", - "Authenticated" : true, - "Authentication" : "Authentication", - "Error" : "Error", - "DateAdded" : "2000-01-23T04:56:07.000+00:00", - "Code" : "Code" -}}] - - parameter secret: (query) Secret previously returned from the Initiate endpoint. - - - returns: RequestBuilder - */ - open class func connectWithRequestBuilder(secret: String) -> RequestBuilder { - let path = "/QuickConnect/Connect" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "secret": secret - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Deauthorize all quick connect devices for the current user. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func deauthorize(completion: @escaping ((_ data: Int?,_ error: Error?) -> Void)) { - deauthorizeWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Deauthorize all quick connect devices for the current user. - - POST /QuickConnect/Deauthorize - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=0}] - - - returns: RequestBuilder - */ - open class func deauthorizeWithRequestBuilder() -> RequestBuilder { - let path = "/QuickConnect/Deauthorize" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets the current quick connect state. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getStatus(completion: @escaping ((_ data: QuickConnectState?,_ error: Error?) -> Void)) { - getStatusWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets the current quick connect state. - - GET /QuickConnect/Status - - - - - examples: [{contentType=application/json, example="Unavailable"}] - - - returns: RequestBuilder - */ - open class func getStatusWithRequestBuilder() -> RequestBuilder { - let path = "/QuickConnect/Status" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Initiate a new quick connect request. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func initiate(completion: @escaping ((_ data: QuickConnectResult?,_ error: Error?) -> Void)) { - initiateWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Initiate a new quick connect request. - - GET /QuickConnect/Initiate - - - - - examples: [{contentType=application/json, example={ - "Secret" : "Secret", - "Authenticated" : true, - "Authentication" : "Authentication", - "Error" : "Error", - "DateAdded" : "2000-01-23T04:56:07.000+00:00", - "Code" : "Code" -}}] - - - returns: RequestBuilder - */ - open class func initiateWithRequestBuilder() -> RequestBuilder { - let path = "/QuickConnect/Initiate" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/RemoteImageAPI.swift b/JellyfinPlayer/Swaggers/APIs/RemoteImageAPI.swift deleted file mode 100644 index e423ea16..00000000 --- a/JellyfinPlayer/Swaggers/APIs/RemoteImageAPI.swift +++ /dev/null @@ -1,193 +0,0 @@ -// -// RemoteImageAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class RemoteImageAPI { - /** - Downloads a remote image for an item. - - - parameter itemId: (path) Item Id. - - parameter type: (query) The image type. - - parameter imageUrl: (query) The image url. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func downloadRemoteImage(itemId: UUID, type: Type2, imageUrl: String? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - downloadRemoteImageWithRequestBuilder(itemId: itemId, type: type, imageUrl: imageUrl).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Downloads a remote image for an item. - - POST /Items/{itemId}/RemoteImages/Download - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter itemId: (path) Item Id. - - parameter type: (query) The image type. - - parameter imageUrl: (query) The image url. (optional) - - - returns: RequestBuilder - */ - open class func downloadRemoteImageWithRequestBuilder(itemId: UUID, type: Type2, imageUrl: String? = nil) -> RequestBuilder { - var path = "/Items/{itemId}/RemoteImages/Download" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "type": type, - "imageUrl": imageUrl - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets available remote image providers for an item. - - - parameter itemId: (path) Item Id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getRemoteImageProviders(itemId: UUID, completion: @escaping ((_ data: [ImageProviderInfo]?,_ error: Error?) -> Void)) { - getRemoteImageProvidersWithRequestBuilder(itemId: itemId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets available remote image providers for an item. - - GET /Items/{itemId}/RemoteImages/Providers - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "SupportedImages" : [ "Primary", "Primary" ], - "Name" : "Name" -}, { - "SupportedImages" : [ "Primary", "Primary" ], - "Name" : "Name" -} ]}] - - parameter itemId: (path) Item Id. - - - returns: RequestBuilder<[ImageProviderInfo]> - */ - open class func getRemoteImageProvidersWithRequestBuilder(itemId: UUID) -> RequestBuilder<[ImageProviderInfo]> { - var path = "/Items/{itemId}/RemoteImages/Providers" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[ImageProviderInfo]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets available remote images for an item. - - - parameter itemId: (path) Item Id. - - parameter type: (query) The image type. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter providerName: (query) Optional. The image provider to use. (optional) - - parameter includeAllLanguages: (query) Optional. Include all languages. (optional, default to false) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getRemoteImages(itemId: UUID, type: Type1? = nil, startIndex: Int? = nil, limit: Int? = nil, providerName: String? = nil, includeAllLanguages: Bool? = nil, completion: @escaping ((_ data: RemoteImageResult?,_ error: Error?) -> Void)) { - getRemoteImagesWithRequestBuilder(itemId: itemId, type: type, startIndex: startIndex, limit: limit, providerName: providerName, includeAllLanguages: includeAllLanguages).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets available remote images for an item. - - GET /Items/{itemId}/RemoteImages - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 5, - "Images" : [ { - "ProviderName" : "ProviderName", - "Type" : "", - "ThumbnailUrl" : "ThumbnailUrl", - "Language" : "Language", - "RatingType" : "", - "VoteCount" : 5, - "CommunityRating" : 1.4658129805029452, - "Height" : 0, - "Width" : 6, - "Url" : "Url" - }, { - "ProviderName" : "ProviderName", - "Type" : "", - "ThumbnailUrl" : "ThumbnailUrl", - "Language" : "Language", - "RatingType" : "", - "VoteCount" : 5, - "CommunityRating" : 1.4658129805029452, - "Height" : 0, - "Width" : 6, - "Url" : "Url" - } ], - "Providers" : [ "Providers", "Providers" ] -}}] - - parameter itemId: (path) Item Id. - - parameter type: (query) The image type. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter providerName: (query) Optional. The image provider to use. (optional) - - parameter includeAllLanguages: (query) Optional. Include all languages. (optional, default to false) - - - returns: RequestBuilder - */ - open class func getRemoteImagesWithRequestBuilder(itemId: UUID, type: Type1? = nil, startIndex: Int? = nil, limit: Int? = nil, providerName: String? = nil, includeAllLanguages: Bool? = nil) -> RequestBuilder { - var path = "/Items/{itemId}/RemoteImages" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "type": type, - "startIndex": startIndex?.encodeToJSON(), - "limit": limit?.encodeToJSON(), - "providerName": providerName, - "includeAllLanguages": includeAllLanguages - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/ScheduledTasksAPI.swift b/JellyfinPlayer/Swaggers/APIs/ScheduledTasksAPI.swift deleted file mode 100644 index a50330ff..00000000 --- a/JellyfinPlayer/Swaggers/APIs/ScheduledTasksAPI.swift +++ /dev/null @@ -1,296 +0,0 @@ -// -// ScheduledTasksAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class ScheduledTasksAPI { - /** - Get task by id. - - - parameter taskId: (path) Task Id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getTask(taskId: String, completion: @escaping ((_ data: TaskInfo?,_ error: Error?) -> Void)) { - getTaskWithRequestBuilder(taskId: taskId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get task by id. - - GET /ScheduledTasks/{taskId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "IsHidden" : true, - "Description" : "Description", - "Category" : "Category", - "State" : "", - "CurrentProgressPercentage" : 0.8008281904610115, - "Triggers" : [ { - "DayOfWeek" : "", - "Type" : "Type", - "IntervalTicks" : 1, - "TimeOfDayTicks" : 6, - "MaxRuntimeTicks" : 5 - }, { - "DayOfWeek" : "", - "Type" : "Type", - "IntervalTicks" : 1, - "TimeOfDayTicks" : 6, - "MaxRuntimeTicks" : 5 - } ], - "Id" : "Id", - "LastExecutionResult" : "", - "Key" : "Key", - "Name" : "Name" -}}] - - parameter taskId: (path) Task Id. - - - returns: RequestBuilder - */ - open class func getTaskWithRequestBuilder(taskId: String) -> RequestBuilder { - var path = "/ScheduledTasks/{taskId}" - let taskIdPreEscape = "\(taskId)" - let taskIdPostEscape = taskIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{taskId}", with: taskIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get tasks. - - - parameter isHidden: (query) Optional filter tasks that are hidden, or not. (optional) - - parameter isEnabled: (query) Optional filter tasks that are enabled, or not. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getTasks(isHidden: Bool? = nil, isEnabled: Bool? = nil, completion: @escaping ((_ data: [TaskInfo]?,_ error: Error?) -> Void)) { - getTasksWithRequestBuilder(isHidden: isHidden, isEnabled: isEnabled).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get tasks. - - GET /ScheduledTasks - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "IsHidden" : true, - "Description" : "Description", - "Category" : "Category", - "State" : "", - "CurrentProgressPercentage" : 0.8008281904610115, - "Triggers" : [ { - "DayOfWeek" : "", - "Type" : "Type", - "IntervalTicks" : 1, - "TimeOfDayTicks" : 6, - "MaxRuntimeTicks" : 5 - }, { - "DayOfWeek" : "", - "Type" : "Type", - "IntervalTicks" : 1, - "TimeOfDayTicks" : 6, - "MaxRuntimeTicks" : 5 - } ], - "Id" : "Id", - "LastExecutionResult" : "", - "Key" : "Key", - "Name" : "Name" -}, { - "IsHidden" : true, - "Description" : "Description", - "Category" : "Category", - "State" : "", - "CurrentProgressPercentage" : 0.8008281904610115, - "Triggers" : [ { - "DayOfWeek" : "", - "Type" : "Type", - "IntervalTicks" : 1, - "TimeOfDayTicks" : 6, - "MaxRuntimeTicks" : 5 - }, { - "DayOfWeek" : "", - "Type" : "Type", - "IntervalTicks" : 1, - "TimeOfDayTicks" : 6, - "MaxRuntimeTicks" : 5 - } ], - "Id" : "Id", - "LastExecutionResult" : "", - "Key" : "Key", - "Name" : "Name" -} ]}] - - parameter isHidden: (query) Optional filter tasks that are hidden, or not. (optional) - - parameter isEnabled: (query) Optional filter tasks that are enabled, or not. (optional) - - - returns: RequestBuilder<[TaskInfo]> - */ - open class func getTasksWithRequestBuilder(isHidden: Bool? = nil, isEnabled: Bool? = nil) -> RequestBuilder<[TaskInfo]> { - let path = "/ScheduledTasks" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "isHidden": isHidden, - "isEnabled": isEnabled - ]) - - - let requestBuilder: RequestBuilder<[TaskInfo]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Start specified task. - - - parameter taskId: (path) Task Id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func startTask(taskId: String, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - startTaskWithRequestBuilder(taskId: taskId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Start specified task. - - POST /ScheduledTasks/Running/{taskId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter taskId: (path) Task Id. - - - returns: RequestBuilder - */ - open class func startTaskWithRequestBuilder(taskId: String) -> RequestBuilder { - var path = "/ScheduledTasks/Running/{taskId}" - let taskIdPreEscape = "\(taskId)" - let taskIdPostEscape = taskIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{taskId}", with: taskIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Stop specified task. - - - parameter taskId: (path) Task Id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func stopTask(taskId: String, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - stopTaskWithRequestBuilder(taskId: taskId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Stop specified task. - - DELETE /ScheduledTasks/Running/{taskId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter taskId: (path) Task Id. - - - returns: RequestBuilder - */ - open class func stopTaskWithRequestBuilder(taskId: String) -> RequestBuilder { - var path = "/ScheduledTasks/Running/{taskId}" - let taskIdPreEscape = "\(taskId)" - let taskIdPostEscape = taskIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{taskId}", with: taskIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Update specified task triggers. - - - parameter body: (body) Triggers. - - parameter taskId: (path) Task Id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func updateTask(body: [TaskTriggerInfo], taskId: String, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - updateTaskWithRequestBuilder(body: body, taskId: taskId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Update specified task triggers. - - POST /ScheduledTasks/{taskId}/Triggers - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) Triggers. - - parameter taskId: (path) Task Id. - - - returns: RequestBuilder - */ - open class func updateTaskWithRequestBuilder(body: [TaskTriggerInfo], taskId: String) -> RequestBuilder { - var path = "/ScheduledTasks/{taskId}/Triggers" - let taskIdPreEscape = "\(taskId)" - let taskIdPostEscape = taskIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{taskId}", with: taskIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/SearchAPI.swift b/JellyfinPlayer/Swaggers/APIs/SearchAPI.swift deleted file mode 100644 index 053ddb1e..00000000 --- a/JellyfinPlayer/Swaggers/APIs/SearchAPI.swift +++ /dev/null @@ -1,167 +0,0 @@ -// -// SearchAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class SearchAPI { - /** - Gets the search hint result. - - - parameter searchTerm: (query) The search term to filter on. - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter userId: (query) Optional. Supply a user id to search within a user's library or omit to search all. (optional) - - parameter includeItemTypes: (query) If specified, only results with the specified item types are returned. This allows multiple, comma delimeted. (optional) - - parameter excludeItemTypes: (query) If specified, results with these item types are filtered out. This allows multiple, comma delimeted. (optional) - - parameter mediaTypes: (query) If specified, only results with the specified media types are returned. This allows multiple, comma delimeted. (optional) - - parameter parentId: (query) If specified, only children of the parent are returned. (optional) - - parameter isMovie: (query) Optional filter for movies. (optional) - - parameter isSeries: (query) Optional filter for series. (optional) - - parameter isNews: (query) Optional filter for news. (optional) - - parameter isKids: (query) Optional filter for kids. (optional) - - parameter isSports: (query) Optional filter for sports. (optional) - - parameter includePeople: (query) Optional filter whether to include people. (optional, default to true) - - parameter includeMedia: (query) Optional filter whether to include media. (optional, default to true) - - parameter includeGenres: (query) Optional filter whether to include genres. (optional, default to true) - - parameter includeStudios: (query) Optional filter whether to include studios. (optional, default to true) - - parameter includeArtists: (query) Optional filter whether to include artists. (optional, default to true) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func callGet(searchTerm: String, startIndex: Int? = nil, limit: Int? = nil, userId: UUID? = nil, includeItemTypes: [String]? = nil, excludeItemTypes: [String]? = nil, mediaTypes: [String]? = nil, parentId: UUID? = nil, isMovie: Bool? = nil, isSeries: Bool? = nil, isNews: Bool? = nil, isKids: Bool? = nil, isSports: Bool? = nil, includePeople: Bool? = nil, includeMedia: Bool? = nil, includeGenres: Bool? = nil, includeStudios: Bool? = nil, includeArtists: Bool? = nil, completion: @escaping ((_ data: SearchHintResult?,_ error: Error?) -> Void)) { - callGetWithRequestBuilder(searchTerm: searchTerm, startIndex: startIndex, limit: limit, userId: userId, includeItemTypes: includeItemTypes, excludeItemTypes: excludeItemTypes, mediaTypes: mediaTypes, parentId: parentId, isMovie: isMovie, isSeries: isSeries, isNews: isNews, isKids: isKids, isSports: isSports, includePeople: includePeople, includeMedia: includeMedia, includeGenres: includeGenres, includeStudios: includeStudios, includeArtists: includeArtists).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets the search hint result. - - GET /Search/Hints - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 9, - "SearchHints" : [ { - "RunTimeTicks" : 5, - "PrimaryImageTag" : "PrimaryImageTag", - "Album" : "Album", - "ParentIndexNumber" : 1, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ItemId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "ThumbImageTag" : "ThumbImageTag", - "ProductionYear" : 6, - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ThumbImageItemId" : "ThumbImageItemId", - "MediaType" : "MediaType", - "IndexNumber" : 0, - "PrimaryImageAspectRatio" : 7.061401241503109, - "Status" : "Status", - "EpisodeCount" : 2, - "BackdropImageItemId" : "BackdropImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "MatchedTerm" : "MatchedTerm", - "AlbumArtist" : "AlbumArtist", - "Series" : "Series", - "Type" : "Type", - "ChannelName" : "ChannelName", - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "BackdropImageTag" : "BackdropImageTag", - "IsFolder" : true, - "Artists" : [ "Artists", "Artists" ], - "SongCount" : 5 - }, { - "RunTimeTicks" : 5, - "PrimaryImageTag" : "PrimaryImageTag", - "Album" : "Album", - "ParentIndexNumber" : 1, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ItemId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "ThumbImageTag" : "ThumbImageTag", - "ProductionYear" : 6, - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ThumbImageItemId" : "ThumbImageItemId", - "MediaType" : "MediaType", - "IndexNumber" : 0, - "PrimaryImageAspectRatio" : 7.061401241503109, - "Status" : "Status", - "EpisodeCount" : 2, - "BackdropImageItemId" : "BackdropImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "MatchedTerm" : "MatchedTerm", - "AlbumArtist" : "AlbumArtist", - "Series" : "Series", - "Type" : "Type", - "ChannelName" : "ChannelName", - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "BackdropImageTag" : "BackdropImageTag", - "IsFolder" : true, - "Artists" : [ "Artists", "Artists" ], - "SongCount" : 5 - } ] -}}] - - parameter searchTerm: (query) The search term to filter on. - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter userId: (query) Optional. Supply a user id to search within a user's library or omit to search all. (optional) - - parameter includeItemTypes: (query) If specified, only results with the specified item types are returned. This allows multiple, comma delimeted. (optional) - - parameter excludeItemTypes: (query) If specified, results with these item types are filtered out. This allows multiple, comma delimeted. (optional) - - parameter mediaTypes: (query) If specified, only results with the specified media types are returned. This allows multiple, comma delimeted. (optional) - - parameter parentId: (query) If specified, only children of the parent are returned. (optional) - - parameter isMovie: (query) Optional filter for movies. (optional) - - parameter isSeries: (query) Optional filter for series. (optional) - - parameter isNews: (query) Optional filter for news. (optional) - - parameter isKids: (query) Optional filter for kids. (optional) - - parameter isSports: (query) Optional filter for sports. (optional) - - parameter includePeople: (query) Optional filter whether to include people. (optional, default to true) - - parameter includeMedia: (query) Optional filter whether to include media. (optional, default to true) - - parameter includeGenres: (query) Optional filter whether to include genres. (optional, default to true) - - parameter includeStudios: (query) Optional filter whether to include studios. (optional, default to true) - - parameter includeArtists: (query) Optional filter whether to include artists. (optional, default to true) - - - returns: RequestBuilder - */ - open class func callGetWithRequestBuilder(searchTerm: String, startIndex: Int? = nil, limit: Int? = nil, userId: UUID? = nil, includeItemTypes: [String]? = nil, excludeItemTypes: [String]? = nil, mediaTypes: [String]? = nil, parentId: UUID? = nil, isMovie: Bool? = nil, isSeries: Bool? = nil, isNews: Bool? = nil, isKids: Bool? = nil, isSports: Bool? = nil, includePeople: Bool? = nil, includeMedia: Bool? = nil, includeGenres: Bool? = nil, includeStudios: Bool? = nil, includeArtists: Bool? = nil) -> RequestBuilder { - let path = "/Search/Hints" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "startIndex": startIndex?.encodeToJSON(), - "limit": limit?.encodeToJSON(), - "userId": userId, - "searchTerm": searchTerm, - "includeItemTypes": includeItemTypes, - "excludeItemTypes": excludeItemTypes, - "mediaTypes": mediaTypes, - "parentId": parentId, - "isMovie": isMovie, - "isSeries": isSeries, - "isNews": isNews, - "isKids": isKids, - "isSports": isSports, - "includePeople": includePeople, - "includeMedia": includeMedia, - "includeGenres": includeGenres, - "includeStudios": includeStudios, - "includeArtists": includeArtists - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/SessionAPI.swift b/JellyfinPlayer/Swaggers/APIs/SessionAPI.swift deleted file mode 100644 index 5c6da13b..00000000 --- a/JellyfinPlayer/Swaggers/APIs/SessionAPI.swift +++ /dev/null @@ -1,868 +0,0 @@ -// -// SessionAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class SessionAPI { - /** - Adds an additional user to a session. - - - parameter sessionId: (path) The session id. - - parameter userId: (path) The user id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func addUserToSession(sessionId: String, userId: UUID, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - addUserToSessionWithRequestBuilder(sessionId: sessionId, userId: userId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Adds an additional user to a session. - - POST /Sessions/{sessionId}/User/{userId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter sessionId: (path) The session id. - - parameter userId: (path) The user id. - - - returns: RequestBuilder - */ - open class func addUserToSessionWithRequestBuilder(sessionId: String, userId: UUID) -> RequestBuilder { - var path = "/Sessions/{sessionId}/User/{userId}" - let sessionIdPreEscape = "\(sessionId)" - let sessionIdPostEscape = sessionIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{sessionId}", with: sessionIdPostEscape, options: .literal, range: nil) - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Instructs a session to browse to an item or view. - - - parameter sessionId: (path) The session Id. - - parameter itemType: (query) The type of item to browse to. - - parameter itemId: (query) The Id of the item. - - parameter itemName: (query) The name of the item. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func displayContent(sessionId: String, itemType: String, itemId: String, itemName: String, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - displayContentWithRequestBuilder(sessionId: sessionId, itemType: itemType, itemId: itemId, itemName: itemName).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Instructs a session to browse to an item or view. - - POST /Sessions/{sessionId}/Viewing - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter sessionId: (path) The session Id. - - parameter itemType: (query) The type of item to browse to. - - parameter itemId: (query) The Id of the item. - - parameter itemName: (query) The name of the item. - - - returns: RequestBuilder - */ - open class func displayContentWithRequestBuilder(sessionId: String, itemType: String, itemId: String, itemName: String) -> RequestBuilder { - var path = "/Sessions/{sessionId}/Viewing" - let sessionIdPreEscape = "\(sessionId)" - let sessionIdPostEscape = sessionIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{sessionId}", with: sessionIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "itemType": itemType, - "itemId": itemId, - "itemName": itemName - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get all auth providers. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getAuthProviders(completion: @escaping ((_ data: [NameIdPair]?,_ error: Error?) -> Void)) { - getAuthProvidersWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get all auth providers. - - GET /Auth/Providers - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "Id" : "Id", - "Name" : "Name" -}, { - "Id" : "Id", - "Name" : "Name" -} ]}] - - - returns: RequestBuilder<[NameIdPair]> - */ - open class func getAuthProvidersWithRequestBuilder() -> RequestBuilder<[NameIdPair]> { - let path = "/Auth/Providers" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[NameIdPair]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get all password reset providers. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getPasswordResetProviders(completion: @escaping ((_ data: [NameIdPair]?,_ error: Error?) -> Void)) { - getPasswordResetProvidersWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get all password reset providers. - - GET /Auth/PasswordResetProviders - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "Id" : "Id", - "Name" : "Name" -}, { - "Id" : "Id", - "Name" : "Name" -} ]}] - - - returns: RequestBuilder<[NameIdPair]> - */ - open class func getPasswordResetProvidersWithRequestBuilder() -> RequestBuilder<[NameIdPair]> { - let path = "/Auth/PasswordResetProviders" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[NameIdPair]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a list of sessions. - - - parameter controllableByUserId: (query) Filter by sessions that a given user is allowed to remote control. (optional) - - parameter deviceId: (query) Filter by device Id. (optional) - - parameter activeWithinSeconds: (query) Optional. Filter by sessions that were active in the last n seconds. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getSessions(controllableByUserId: UUID? = nil, deviceId: String? = nil, activeWithinSeconds: Int? = nil, completion: @escaping ((_ data: [SessionInfo]?,_ error: Error?) -> Void)) { - getSessionsWithRequestBuilder(controllableByUserId: controllableByUserId, deviceId: deviceId, activeWithinSeconds: activeWithinSeconds).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a list of sessions. - - GET /Sessions - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "ApplicationVersion" : "ApplicationVersion", - "SupportedCommands" : [ "MoveUp", "MoveUp" ], - "DeviceId" : "DeviceId", - "IsActive" : true, - "NowPlayingQueue" : [ { - "PlaylistItemId" : "PlaylistItemId", - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" - }, { - "PlaylistItemId" : "PlaylistItemId", - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" - } ], - "PlaylistItemId" : "PlaylistItemId", - "ServerId" : "ServerId", - "RemoteEndPoint" : "RemoteEndPoint", - "SupportsRemoteControl" : true, - "HasCustomDeviceName" : true, - "Client" : "Client", - "UserName" : "UserName", - "FullNowPlayingItem" : "", - "SupportsMediaControl" : true, - "UserPrimaryImageTag" : "UserPrimaryImageTag", - "DeviceType" : "DeviceType", - "PlayableMediaTypes" : [ "PlayableMediaTypes", "PlayableMediaTypes" ], - "LastPlaybackCheckIn" : "2000-01-23T04:56:07.000+00:00", - "NowPlayingItem" : "", - "TranscodingInfo" : "", - "Capabilities" : "", - "UserId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LastActivityDate" : "2000-01-23T04:56:07.000+00:00", - "Id" : "Id", - "AdditionalUsers" : [ { - "UserName" : "UserName", - "UserId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" - }, { - "UserName" : "UserName", - "UserId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" - } ], - "PlayState" : "", - "NowViewingItem" : "", - "DeviceName" : "DeviceName" -}, { - "ApplicationVersion" : "ApplicationVersion", - "SupportedCommands" : [ "MoveUp", "MoveUp" ], - "DeviceId" : "DeviceId", - "IsActive" : true, - "NowPlayingQueue" : [ { - "PlaylistItemId" : "PlaylistItemId", - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" - }, { - "PlaylistItemId" : "PlaylistItemId", - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" - } ], - "PlaylistItemId" : "PlaylistItemId", - "ServerId" : "ServerId", - "RemoteEndPoint" : "RemoteEndPoint", - "SupportsRemoteControl" : true, - "HasCustomDeviceName" : true, - "Client" : "Client", - "UserName" : "UserName", - "FullNowPlayingItem" : "", - "SupportsMediaControl" : true, - "UserPrimaryImageTag" : "UserPrimaryImageTag", - "DeviceType" : "DeviceType", - "PlayableMediaTypes" : [ "PlayableMediaTypes", "PlayableMediaTypes" ], - "LastPlaybackCheckIn" : "2000-01-23T04:56:07.000+00:00", - "NowPlayingItem" : "", - "TranscodingInfo" : "", - "Capabilities" : "", - "UserId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LastActivityDate" : "2000-01-23T04:56:07.000+00:00", - "Id" : "Id", - "AdditionalUsers" : [ { - "UserName" : "UserName", - "UserId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" - }, { - "UserName" : "UserName", - "UserId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" - } ], - "PlayState" : "", - "NowViewingItem" : "", - "DeviceName" : "DeviceName" -} ]}] - - parameter controllableByUserId: (query) Filter by sessions that a given user is allowed to remote control. (optional) - - parameter deviceId: (query) Filter by device Id. (optional) - - parameter activeWithinSeconds: (query) Optional. Filter by sessions that were active in the last n seconds. (optional) - - - returns: RequestBuilder<[SessionInfo]> - */ - open class func getSessionsWithRequestBuilder(controllableByUserId: UUID? = nil, deviceId: String? = nil, activeWithinSeconds: Int? = nil) -> RequestBuilder<[SessionInfo]> { - let path = "/Sessions" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "controllableByUserId": controllableByUserId, - "deviceId": deviceId, - "activeWithinSeconds": activeWithinSeconds?.encodeToJSON() - ]) - - - let requestBuilder: RequestBuilder<[SessionInfo]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Instructs a session to play an item. - - - parameter sessionId: (path) The session id. - - parameter playCommand: (query) The type of play command to issue (PlayNow, PlayNext, PlayLast). Clients who have not yet implemented play next and play last may play now. - - parameter itemIds: (query) The ids of the items to play, comma delimited. - - parameter startPositionTicks: (query) The starting position of the first item. (optional) - - parameter mediaSourceId: (query) Optional. The media source id. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to play. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to play. (optional) - - parameter startIndex: (query) Optional. The start index. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func play(sessionId: String, playCommand: PlayCommand, itemIds: [UUID], startPositionTicks: Int64? = nil, mediaSourceId: String? = nil, audioStreamIndex: Int? = nil, subtitleStreamIndex: Int? = nil, startIndex: Int? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - playWithRequestBuilder(sessionId: sessionId, playCommand: playCommand, itemIds: itemIds, startPositionTicks: startPositionTicks, mediaSourceId: mediaSourceId, audioStreamIndex: audioStreamIndex, subtitleStreamIndex: subtitleStreamIndex, startIndex: startIndex).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Instructs a session to play an item. - - POST /Sessions/{sessionId}/Playing - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter sessionId: (path) The session id. - - parameter playCommand: (query) The type of play command to issue (PlayNow, PlayNext, PlayLast). Clients who have not yet implemented play next and play last may play now. - - parameter itemIds: (query) The ids of the items to play, comma delimited. - - parameter startPositionTicks: (query) The starting position of the first item. (optional) - - parameter mediaSourceId: (query) Optional. The media source id. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to play. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to play. (optional) - - parameter startIndex: (query) Optional. The start index. (optional) - - - returns: RequestBuilder - */ - open class func playWithRequestBuilder(sessionId: String, playCommand: PlayCommand, itemIds: [UUID], startPositionTicks: Int64? = nil, mediaSourceId: String? = nil, audioStreamIndex: Int? = nil, subtitleStreamIndex: Int? = nil, startIndex: Int? = nil) -> RequestBuilder { - var path = "/Sessions/{sessionId}/Playing" - let sessionIdPreEscape = "\(sessionId)" - let sessionIdPostEscape = sessionIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{sessionId}", with: sessionIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "playCommand": playCommand, - "itemIds": itemIds, - "startPositionTicks": startPositionTicks?.encodeToJSON(), - "mediaSourceId": mediaSourceId, - "audioStreamIndex": audioStreamIndex?.encodeToJSON(), - "subtitleStreamIndex": subtitleStreamIndex?.encodeToJSON(), - "startIndex": startIndex?.encodeToJSON() - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Updates capabilities for a device. - - - parameter _id: (query) The session id. (optional) - - parameter playableMediaTypes: (query) A list of playable media types, comma delimited. Audio, Video, Book, Photo. (optional) - - parameter supportedCommands: (query) A list of supported remote control commands, comma delimited. (optional) - - parameter supportsMediaControl: (query) Determines whether media can be played remotely.. (optional, default to false) - - parameter supportsSync: (query) Determines whether sync is supported. (optional, default to false) - - parameter supportsPersistentIdentifier: (query) Determines whether the device supports a unique identifier. (optional, default to true) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func postCapabilities(_id: String? = nil, playableMediaTypes: [String]? = nil, supportedCommands: [GeneralCommandType]? = nil, supportsMediaControl: Bool? = nil, supportsSync: Bool? = nil, supportsPersistentIdentifier: Bool? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - postCapabilitiesWithRequestBuilder(_id: _id, playableMediaTypes: playableMediaTypes, supportedCommands: supportedCommands, supportsMediaControl: supportsMediaControl, supportsSync: supportsSync, supportsPersistentIdentifier: supportsPersistentIdentifier).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Updates capabilities for a device. - - POST /Sessions/Capabilities - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter _id: (query) The session id. (optional) - - parameter playableMediaTypes: (query) A list of playable media types, comma delimited. Audio, Video, Book, Photo. (optional) - - parameter supportedCommands: (query) A list of supported remote control commands, comma delimited. (optional) - - parameter supportsMediaControl: (query) Determines whether media can be played remotely.. (optional, default to false) - - parameter supportsSync: (query) Determines whether sync is supported. (optional, default to false) - - parameter supportsPersistentIdentifier: (query) Determines whether the device supports a unique identifier. (optional, default to true) - - - returns: RequestBuilder - */ - open class func postCapabilitiesWithRequestBuilder(_id: String? = nil, playableMediaTypes: [String]? = nil, supportedCommands: [GeneralCommandType]? = nil, supportsMediaControl: Bool? = nil, supportsSync: Bool? = nil, supportsPersistentIdentifier: Bool? = nil) -> RequestBuilder { - let path = "/Sessions/Capabilities" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "id": _id, - "playableMediaTypes": playableMediaTypes, - "supportedCommands": supportedCommands, - "supportsMediaControl": supportsMediaControl, - "supportsSync": supportsSync, - "supportsPersistentIdentifier": supportsPersistentIdentifier - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Updates capabilities for a device. - - - parameter body: (body) The MediaBrowser.Model.Session.ClientCapabilities. - - parameter _id: (query) The session id. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func postFullCapabilities(body: CapabilitiesFullBody, _id: String? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - postFullCapabilitiesWithRequestBuilder(body: body, _id: _id).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Updates capabilities for a device. - - POST /Sessions/Capabilities/Full - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The MediaBrowser.Model.Session.ClientCapabilities. - - parameter _id: (query) The session id. (optional) - - - returns: RequestBuilder - */ - open class func postFullCapabilitiesWithRequestBuilder(body: CapabilitiesFullBody, _id: String? = nil) -> RequestBuilder { - let path = "/Sessions/Capabilities/Full" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "id": _id - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Removes an additional user from a session. - - - parameter sessionId: (path) The session id. - - parameter userId: (path) The user id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func removeUserFromSession(sessionId: String, userId: UUID, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - removeUserFromSessionWithRequestBuilder(sessionId: sessionId, userId: userId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Removes an additional user from a session. - - DELETE /Sessions/{sessionId}/User/{userId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter sessionId: (path) The session id. - - parameter userId: (path) The user id. - - - returns: RequestBuilder - */ - open class func removeUserFromSessionWithRequestBuilder(sessionId: String, userId: UUID) -> RequestBuilder { - var path = "/Sessions/{sessionId}/User/{userId}" - let sessionIdPreEscape = "\(sessionId)" - let sessionIdPostEscape = sessionIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{sessionId}", with: sessionIdPostEscape, options: .literal, range: nil) - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Reports that a session has ended. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func reportSessionEnded(completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - reportSessionEndedWithRequestBuilder().execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Reports that a session has ended. - - POST /Sessions/Logout - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - - returns: RequestBuilder - */ - open class func reportSessionEndedWithRequestBuilder() -> RequestBuilder { - let path = "/Sessions/Logout" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Reports that a session is viewing an item. - - - parameter itemId: (query) The item id. - - parameter sessionId: (query) The session id. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func reportViewing(itemId: String, sessionId: String? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - reportViewingWithRequestBuilder(itemId: itemId, sessionId: sessionId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Reports that a session is viewing an item. - - POST /Sessions/Viewing - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter itemId: (query) The item id. - - parameter sessionId: (query) The session id. (optional) - - - returns: RequestBuilder - */ - open class func reportViewingWithRequestBuilder(itemId: String, sessionId: String? = nil) -> RequestBuilder { - let path = "/Sessions/Viewing" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "sessionId": sessionId, - "itemId": itemId - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Issues a full general command to a client. - - - parameter body: (body) The MediaBrowser.Model.Session.GeneralCommand. - - parameter sessionId: (path) The session id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func sendFullGeneralCommand(body: SessionIdCommandBody, sessionId: String, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - sendFullGeneralCommandWithRequestBuilder(body: body, sessionId: sessionId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Issues a full general command to a client. - - POST /Sessions/{sessionId}/Command - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The MediaBrowser.Model.Session.GeneralCommand. - - parameter sessionId: (path) The session id. - - - returns: RequestBuilder - */ - open class func sendFullGeneralCommandWithRequestBuilder(body: SessionIdCommandBody, sessionId: String) -> RequestBuilder { - var path = "/Sessions/{sessionId}/Command" - let sessionIdPreEscape = "\(sessionId)" - let sessionIdPostEscape = sessionIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{sessionId}", with: sessionIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Issues a general command to a client. - - - parameter sessionId: (path) The session id. - - parameter command: (path) The command to send. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func sendGeneralCommand(sessionId: String, command: Command, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - sendGeneralCommandWithRequestBuilder(sessionId: sessionId, command: command).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Issues a general command to a client. - - POST /Sessions/{sessionId}/Command/{command} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter sessionId: (path) The session id. - - parameter command: (path) The command to send. - - - returns: RequestBuilder - */ - open class func sendGeneralCommandWithRequestBuilder(sessionId: String, command: Command) -> RequestBuilder { - var path = "/Sessions/{sessionId}/Command/{command}" - let sessionIdPreEscape = "\(sessionId)" - let sessionIdPostEscape = sessionIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{sessionId}", with: sessionIdPostEscape, options: .literal, range: nil) - let commandPreEscape = "\(command)" - let commandPostEscape = commandPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{command}", with: commandPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Issues a command to a client to display a message to the user. - - - parameter body: (body) The MediaBrowser.Model.Session.MessageCommand object containing Header, Message Text, and TimeoutMs. - - parameter sessionId: (path) The session id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func sendMessageCommand(body: SessionIdMessageBody, sessionId: String, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - sendMessageCommandWithRequestBuilder(body: body, sessionId: sessionId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Issues a command to a client to display a message to the user. - - POST /Sessions/{sessionId}/Message - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The MediaBrowser.Model.Session.MessageCommand object containing Header, Message Text, and TimeoutMs. - - parameter sessionId: (path) The session id. - - - returns: RequestBuilder - */ - open class func sendMessageCommandWithRequestBuilder(body: SessionIdMessageBody, sessionId: String) -> RequestBuilder { - var path = "/Sessions/{sessionId}/Message" - let sessionIdPreEscape = "\(sessionId)" - let sessionIdPostEscape = sessionIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{sessionId}", with: sessionIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Issues a playstate command to a client. - - - parameter sessionId: (path) The session id. - - parameter command: (path) The MediaBrowser.Model.Session.PlaystateCommand. - - parameter seekPositionTicks: (query) The optional position ticks. (optional) - - parameter controllingUserId: (query) The optional controlling user id. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func sendPlaystateCommand(sessionId: String, command: Command1, seekPositionTicks: Int64? = nil, controllingUserId: String? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - sendPlaystateCommandWithRequestBuilder(sessionId: sessionId, command: command, seekPositionTicks: seekPositionTicks, controllingUserId: controllingUserId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Issues a playstate command to a client. - - POST /Sessions/{sessionId}/Playing/{command} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter sessionId: (path) The session id. - - parameter command: (path) The MediaBrowser.Model.Session.PlaystateCommand. - - parameter seekPositionTicks: (query) The optional position ticks. (optional) - - parameter controllingUserId: (query) The optional controlling user id. (optional) - - - returns: RequestBuilder - */ - open class func sendPlaystateCommandWithRequestBuilder(sessionId: String, command: Command1, seekPositionTicks: Int64? = nil, controllingUserId: String? = nil) -> RequestBuilder { - var path = "/Sessions/{sessionId}/Playing/{command}" - let sessionIdPreEscape = "\(sessionId)" - let sessionIdPostEscape = sessionIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{sessionId}", with: sessionIdPostEscape, options: .literal, range: nil) - let commandPreEscape = "\(command)" - let commandPostEscape = commandPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{command}", with: commandPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "seekPositionTicks": seekPositionTicks?.encodeToJSON(), - "controllingUserId": controllingUserId - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Issues a system command to a client. - - - parameter sessionId: (path) The session id. - - parameter command: (path) The command to send. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func sendSystemCommand(sessionId: String, command: Command2, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - sendSystemCommandWithRequestBuilder(sessionId: sessionId, command: command).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Issues a system command to a client. - - POST /Sessions/{sessionId}/System/{command} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter sessionId: (path) The session id. - - parameter command: (path) The command to send. - - - returns: RequestBuilder - */ - open class func sendSystemCommandWithRequestBuilder(sessionId: String, command: Command2) -> RequestBuilder { - var path = "/Sessions/{sessionId}/System/{command}" - let sessionIdPreEscape = "\(sessionId)" - let sessionIdPostEscape = sessionIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{sessionId}", with: sessionIdPostEscape, options: .literal, range: nil) - let commandPreEscape = "\(command)" - let commandPostEscape = commandPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{command}", with: commandPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/StartupAPI.swift b/JellyfinPlayer/Swaggers/APIs/StartupAPI.swift deleted file mode 100644 index e5944e95..00000000 --- a/JellyfinPlayer/Swaggers/APIs/StartupAPI.swift +++ /dev/null @@ -1,286 +0,0 @@ -// -// StartupAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class StartupAPI { - /** - Completes the startup wizard. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func completeWizard(completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - completeWizardWithRequestBuilder().execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Completes the startup wizard. - - POST /Startup/Complete - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - - returns: RequestBuilder - */ - open class func completeWizardWithRequestBuilder() -> RequestBuilder { - let path = "/Startup/Complete" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets the first user. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getFirstUser(completion: @escaping ((_ data: StartupUserDto?,_ error: Error?) -> Void)) { - getFirstUserWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets the first user. - - GET /Startup/User - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "Name" : "Name", - "Password" : "Password" -}}] - - - returns: RequestBuilder - */ - open class func getFirstUserWithRequestBuilder() -> RequestBuilder { - let path = "/Startup/User" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets the first user. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getFirstUser2(completion: @escaping ((_ data: StartupUserDto?,_ error: Error?) -> Void)) { - getFirstUser2WithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets the first user. - - GET /Startup/FirstUser - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "Name" : "Name", - "Password" : "Password" -}}] - - - returns: RequestBuilder - */ - open class func getFirstUser2WithRequestBuilder() -> RequestBuilder { - let path = "/Startup/FirstUser" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets the initial startup wizard configuration. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getStartupConfiguration(completion: @escaping ((_ data: StartupConfigurationDto?,_ error: Error?) -> Void)) { - getStartupConfigurationWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets the initial startup wizard configuration. - - GET /Startup/Configuration - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "UICulture" : "UICulture", - "MetadataCountryCode" : "MetadataCountryCode" -}}] - - - returns: RequestBuilder - */ - open class func getStartupConfigurationWithRequestBuilder() -> RequestBuilder { - let path = "/Startup/Configuration" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Sets remote access and UPnP. - - - parameter body: (body) The startup remote access dto. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func setRemoteAccess(body: StartupRemoteAccessBody, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - setRemoteAccessWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Sets remote access and UPnP. - - POST /Startup/RemoteAccess - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The startup remote access dto. - - - returns: RequestBuilder - */ - open class func setRemoteAccessWithRequestBuilder(body: StartupRemoteAccessBody) -> RequestBuilder { - let path = "/Startup/RemoteAccess" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Sets the initial startup wizard configuration. - - - parameter body: (body) The updated startup configuration. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func updateInitialConfiguration(body: StartupConfigurationBody, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - updateInitialConfigurationWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Sets the initial startup wizard configuration. - - POST /Startup/Configuration - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The updated startup configuration. - - - returns: RequestBuilder - */ - open class func updateInitialConfigurationWithRequestBuilder(body: StartupConfigurationBody) -> RequestBuilder { - let path = "/Startup/Configuration" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Sets the user name and password. - - - parameter body: (body) The DTO containing username and password. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func updateStartupUser(body: StartupUserBody? = nil, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - updateStartupUserWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Sets the user name and password. - - POST /Startup/User - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The DTO containing username and password. (optional) - - - returns: RequestBuilder - */ - open class func updateStartupUserWithRequestBuilder(body: StartupUserBody? = nil) -> RequestBuilder { - let path = "/Startup/User" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/StudiosAPI.swift b/JellyfinPlayer/Swaggers/APIs/StudiosAPI.swift deleted file mode 100644 index c0f11832..00000000 --- a/JellyfinPlayer/Swaggers/APIs/StudiosAPI.swift +++ /dev/null @@ -1,2052 +0,0 @@ -// -// StudiosAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class StudiosAPI { - /** - Gets a studio by name. - - - parameter name: (path) Studio name. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getStudio(name: String, userId: UUID? = nil, completion: @escaping ((_ data: BaseItemDto?,_ error: Error?) -> Void)) { - getStudioWithRequestBuilder(name: name, userId: userId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a studio by name. - - GET /Studios/{name} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 -}}] - - parameter name: (path) Studio name. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - - returns: RequestBuilder - */ - open class func getStudioWithRequestBuilder(name: String, userId: UUID? = nil) -> RequestBuilder { - var path = "/Studios/{name}" - let namePreEscape = "\(name)" - let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets all studios from a given item, folder, or the entire library. - - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter searchTerm: (query) Optional. Search term. (optional) - - parameter parentId: (query) Specify this to localize the search to a specific item or folder. Omit to use the root. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter excludeItemTypes: (query) Optional. If specified, results will be filtered out based on item type. This allows multiple, comma delimited. (optional) - - parameter includeItemTypes: (query) Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. (optional) - - parameter isFavorite: (query) Optional filter by items that are marked as favorite, or not. (optional) - - parameter enableUserData: (query) Optional, include user data. (optional) - - parameter imageTypeLimit: (query) Optional, the max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter userId: (query) User id. (optional) - - parameter nameStartsWithOrGreater: (query) Optional filter by items whose name is sorted equally or greater than a given input string. (optional) - - parameter nameStartsWith: (query) Optional filter by items whose name is sorted equally than a given input string. (optional) - - parameter nameLessThan: (query) Optional filter by items whose name is equally or lesser than a given input string. (optional) - - parameter enableImages: (query) Optional, include image information in output. (optional, default to true) - - parameter enableTotalRecordCount: (query) Total record count. (optional, default to true) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getStudios(startIndex: Int? = nil, limit: Int? = nil, searchTerm: String? = nil, parentId: UUID? = nil, fields: [ItemFields]? = nil, excludeItemTypes: [String]? = nil, includeItemTypes: [String]? = nil, isFavorite: Bool? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, userId: UUID? = nil, nameStartsWithOrGreater: String? = nil, nameStartsWith: String? = nil, nameLessThan: String? = nil, enableImages: Bool? = nil, enableTotalRecordCount: Bool? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getStudiosWithRequestBuilder(startIndex: startIndex, limit: limit, searchTerm: searchTerm, parentId: parentId, fields: fields, excludeItemTypes: excludeItemTypes, includeItemTypes: includeItemTypes, isFavorite: isFavorite, enableUserData: enableUserData, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes, userId: userId, nameStartsWithOrGreater: nameStartsWithOrGreater, nameStartsWith: nameStartsWith, nameLessThan: nameLessThan, enableImages: enableImages, enableTotalRecordCount: enableTotalRecordCount).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets all studios from a given item, folder, or the entire library. - - GET /Studios - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter searchTerm: (query) Optional. Search term. (optional) - - parameter parentId: (query) Specify this to localize the search to a specific item or folder. Omit to use the root. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter excludeItemTypes: (query) Optional. If specified, results will be filtered out based on item type. This allows multiple, comma delimited. (optional) - - parameter includeItemTypes: (query) Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. (optional) - - parameter isFavorite: (query) Optional filter by items that are marked as favorite, or not. (optional) - - parameter enableUserData: (query) Optional, include user data. (optional) - - parameter imageTypeLimit: (query) Optional, the max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter userId: (query) User id. (optional) - - parameter nameStartsWithOrGreater: (query) Optional filter by items whose name is sorted equally or greater than a given input string. (optional) - - parameter nameStartsWith: (query) Optional filter by items whose name is sorted equally than a given input string. (optional) - - parameter nameLessThan: (query) Optional filter by items whose name is equally or lesser than a given input string. (optional) - - parameter enableImages: (query) Optional, include image information in output. (optional, default to true) - - parameter enableTotalRecordCount: (query) Total record count. (optional, default to true) - - - returns: RequestBuilder - */ - open class func getStudiosWithRequestBuilder(startIndex: Int? = nil, limit: Int? = nil, searchTerm: String? = nil, parentId: UUID? = nil, fields: [ItemFields]? = nil, excludeItemTypes: [String]? = nil, includeItemTypes: [String]? = nil, isFavorite: Bool? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, userId: UUID? = nil, nameStartsWithOrGreater: String? = nil, nameStartsWith: String? = nil, nameLessThan: String? = nil, enableImages: Bool? = nil, enableTotalRecordCount: Bool? = nil) -> RequestBuilder { - let path = "/Studios" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "startIndex": startIndex?.encodeToJSON(), - "limit": limit?.encodeToJSON(), - "searchTerm": searchTerm, - "parentId": parentId, - "fields": fields, - "excludeItemTypes": excludeItemTypes, - "includeItemTypes": includeItemTypes, - "isFavorite": isFavorite, - "enableUserData": enableUserData, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes, - "userId": userId, - "nameStartsWithOrGreater": nameStartsWithOrGreater, - "nameStartsWith": nameStartsWith, - "nameLessThan": nameLessThan, - "enableImages": enableImages, - "enableTotalRecordCount": enableTotalRecordCount - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/SubtitleAPI.swift b/JellyfinPlayer/Swaggers/APIs/SubtitleAPI.swift deleted file mode 100644 index e72b985f..00000000 --- a/JellyfinPlayer/Swaggers/APIs/SubtitleAPI.swift +++ /dev/null @@ -1,569 +0,0 @@ -// -// SubtitleAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class SubtitleAPI { - /** - Deletes an external subtitle file. - - - parameter itemId: (path) The item id. - - parameter index: (path) The index of the subtitle file. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func deleteSubtitle(itemId: UUID, index: Int, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - deleteSubtitleWithRequestBuilder(itemId: itemId, index: index).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Deletes an external subtitle file. - - DELETE /Videos/{itemId}/Subtitles/{index} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter itemId: (path) The item id. - - parameter index: (path) The index of the subtitle file. - - - returns: RequestBuilder - */ - open class func deleteSubtitleWithRequestBuilder(itemId: UUID, index: Int) -> RequestBuilder { - var path = "/Videos/{itemId}/Subtitles/{index}" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let indexPreEscape = "\(index)" - let indexPostEscape = indexPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{index}", with: indexPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Downloads a remote subtitle. - - - parameter itemId: (path) The item id. - - parameter subtitleId: (path) The subtitle id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func downloadRemoteSubtitles(itemId: UUID, subtitleId: String, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - downloadRemoteSubtitlesWithRequestBuilder(itemId: itemId, subtitleId: subtitleId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Downloads a remote subtitle. - - POST /Items/{itemId}/RemoteSearch/Subtitles/{subtitleId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter itemId: (path) The item id. - - parameter subtitleId: (path) The subtitle id. - - - returns: RequestBuilder - */ - open class func downloadRemoteSubtitlesWithRequestBuilder(itemId: UUID, subtitleId: String) -> RequestBuilder { - var path = "/Items/{itemId}/RemoteSearch/Subtitles/{subtitleId}" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let subtitleIdPreEscape = "\(subtitleId)" - let subtitleIdPostEscape = subtitleIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{subtitleId}", with: subtitleIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a fallback font file. - - - parameter name: (path) The name of the fallback font file to get. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getFallbackFont(name: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getFallbackFontWithRequestBuilder(name: name).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a fallback font file. - - GET /FallbackFont/Fonts/{name} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=""}] - - parameter name: (path) The name of the fallback font file to get. - - - returns: RequestBuilder - */ - open class func getFallbackFontWithRequestBuilder(name: String) -> RequestBuilder { - var path = "/FallbackFont/Fonts/{name}" - let namePreEscape = "\(name)" - let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{name}", with: namePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a list of available fallback font files. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getFallbackFontList(completion: @escaping ((_ data: [FontFile]?,_ error: Error?) -> Void)) { - getFallbackFontListWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a list of available fallback font files. - - GET /FallbackFont/Fonts - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "Size" : 0, - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "DateModified" : "2000-01-23T04:56:07.000+00:00", - "Name" : "Name" -}, { - "Size" : 0, - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "DateModified" : "2000-01-23T04:56:07.000+00:00", - "Name" : "Name" -} ]}] - - - returns: RequestBuilder<[FontFile]> - */ - open class func getFallbackFontListWithRequestBuilder() -> RequestBuilder<[FontFile]> { - let path = "/FallbackFont/Fonts" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[FontFile]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets the remote subtitles. - - - parameter _id: (path) The item id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getRemoteSubtitles(_id: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getRemoteSubtitlesWithRequestBuilder(_id: _id).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets the remote subtitles. - - GET /Providers/Subtitles/Subtitles/{id} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=""}] - - parameter _id: (path) The item id. - - - returns: RequestBuilder - */ - open class func getRemoteSubtitlesWithRequestBuilder(_id: String) -> RequestBuilder { - var path = "/Providers/Subtitles/Subtitles/{id}" - let _idPreEscape = "\(_id)" - let _idPostEscape = _idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{id}", with: _idPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets subtitles in a specified format. - - - parameter routeItemId: (path) The (route) item id. - - parameter routeMediaSourceId: (path) The (route) media source id. - - parameter routeIndex: (path) The (route) subtitle stream index. - - parameter routeFormat: (path) The (route) format of the returned subtitle. - - parameter itemId: (query) The item id. (optional) - - parameter mediaSourceId: (query) The media source id. (optional) - - parameter index: (query) The subtitle stream index. (optional) - - parameter format: (query) The format of the returned subtitle. (optional) - - parameter endPositionTicks: (query) Optional. The end position of the subtitle in ticks. (optional) - - parameter copyTimestamps: (query) Optional. Whether to copy the timestamps. (optional, default to false) - - parameter addVttTimeMap: (query) Optional. Whether to add a VTT time map. (optional, default to false) - - parameter startPositionTicks: (query) The start position of the subtitle in ticks. (optional, default to 0) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getSubtitle(routeItemId: UUID, routeMediaSourceId: String, routeIndex: Int, routeFormat: String, itemId: UUID? = nil, mediaSourceId: String? = nil, index: Int? = nil, format: String? = nil, endPositionTicks: Int64? = nil, copyTimestamps: Bool? = nil, addVttTimeMap: Bool? = nil, startPositionTicks: Int64? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getSubtitleWithRequestBuilder(routeItemId: routeItemId, routeMediaSourceId: routeMediaSourceId, routeIndex: routeIndex, routeFormat: routeFormat, itemId: itemId, mediaSourceId: mediaSourceId, index: index, format: format, endPositionTicks: endPositionTicks, copyTimestamps: copyTimestamps, addVttTimeMap: addVttTimeMap, startPositionTicks: startPositionTicks).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets subtitles in a specified format. - - GET /Videos/{routeItemId}/{routeMediaSourceId}/Subtitles/{routeIndex}/Stream.{routeFormat} - - - - - examples: [{contentType=application/json, example=""}] - - parameter routeItemId: (path) The (route) item id. - - parameter routeMediaSourceId: (path) The (route) media source id. - - parameter routeIndex: (path) The (route) subtitle stream index. - - parameter routeFormat: (path) The (route) format of the returned subtitle. - - parameter itemId: (query) The item id. (optional) - - parameter mediaSourceId: (query) The media source id. (optional) - - parameter index: (query) The subtitle stream index. (optional) - - parameter format: (query) The format of the returned subtitle. (optional) - - parameter endPositionTicks: (query) Optional. The end position of the subtitle in ticks. (optional) - - parameter copyTimestamps: (query) Optional. Whether to copy the timestamps. (optional, default to false) - - parameter addVttTimeMap: (query) Optional. Whether to add a VTT time map. (optional, default to false) - - parameter startPositionTicks: (query) The start position of the subtitle in ticks. (optional, default to 0) - - - returns: RequestBuilder - */ - open class func getSubtitleWithRequestBuilder(routeItemId: UUID, routeMediaSourceId: String, routeIndex: Int, routeFormat: String, itemId: UUID? = nil, mediaSourceId: String? = nil, index: Int? = nil, format: String? = nil, endPositionTicks: Int64? = nil, copyTimestamps: Bool? = nil, addVttTimeMap: Bool? = nil, startPositionTicks: Int64? = nil) -> RequestBuilder { - var path = "/Videos/{routeItemId}/{routeMediaSourceId}/Subtitles/{routeIndex}/Stream.{routeFormat}" - let routeItemIdPreEscape = "\(routeItemId)" - let routeItemIdPostEscape = routeItemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{routeItemId}", with: routeItemIdPostEscape, options: .literal, range: nil) - let routeMediaSourceIdPreEscape = "\(routeMediaSourceId)" - let routeMediaSourceIdPostEscape = routeMediaSourceIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{routeMediaSourceId}", with: routeMediaSourceIdPostEscape, options: .literal, range: nil) - let routeIndexPreEscape = "\(routeIndex)" - let routeIndexPostEscape = routeIndexPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{routeIndex}", with: routeIndexPostEscape, options: .literal, range: nil) - let routeFormatPreEscape = "\(routeFormat)" - let routeFormatPostEscape = routeFormatPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{routeFormat}", with: routeFormatPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "itemId": itemId, - "mediaSourceId": mediaSourceId, - "index": index?.encodeToJSON(), - "format": format, - "endPositionTicks": endPositionTicks?.encodeToJSON(), - "copyTimestamps": copyTimestamps, - "addVttTimeMap": addVttTimeMap, - "startPositionTicks": startPositionTicks?.encodeToJSON() - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets an HLS subtitle playlist. - - - parameter itemId: (path) The item id. - - parameter index: (path) The subtitle stream index. - - parameter mediaSourceId: (path) The media source id. - - parameter segmentLength: (query) The subtitle segment length. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getSubtitlePlaylist(itemId: UUID, index: Int, mediaSourceId: String, segmentLength: Int, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getSubtitlePlaylistWithRequestBuilder(itemId: itemId, index: index, mediaSourceId: mediaSourceId, segmentLength: segmentLength).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets an HLS subtitle playlist. - - GET /Videos/{itemId}/{mediaSourceId}/Subtitles/{index}/subtitles.m3u8 - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) The item id. - - parameter index: (path) The subtitle stream index. - - parameter mediaSourceId: (path) The media source id. - - parameter segmentLength: (query) The subtitle segment length. - - - returns: RequestBuilder - */ - open class func getSubtitlePlaylistWithRequestBuilder(itemId: UUID, index: Int, mediaSourceId: String, segmentLength: Int) -> RequestBuilder { - var path = "/Videos/{itemId}/{mediaSourceId}/Subtitles/{index}/subtitles.m3u8" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let indexPreEscape = "\(index)" - let indexPostEscape = indexPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{index}", with: indexPostEscape, options: .literal, range: nil) - let mediaSourceIdPreEscape = "\(mediaSourceId)" - let mediaSourceIdPostEscape = mediaSourceIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{mediaSourceId}", with: mediaSourceIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "segmentLength": segmentLength.encodeToJSON() - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets subtitles in a specified format. - - - parameter routeItemId: (path) The (route) item id. - - parameter routeMediaSourceId: (path) The (route) media source id. - - parameter routeIndex: (path) The (route) subtitle stream index. - - parameter routeStartPositionTicks: (path) The (route) start position of the subtitle in ticks. - - parameter routeFormat: (path) The (route) format of the returned subtitle. - - parameter itemId: (query) The item id. (optional) - - parameter mediaSourceId: (query) The media source id. (optional) - - parameter index: (query) The subtitle stream index. (optional) - - parameter startPositionTicks: (query) The start position of the subtitle in ticks. (optional) - - parameter format: (query) The format of the returned subtitle. (optional) - - parameter endPositionTicks: (query) Optional. The end position of the subtitle in ticks. (optional) - - parameter copyTimestamps: (query) Optional. Whether to copy the timestamps. (optional, default to false) - - parameter addVttTimeMap: (query) Optional. Whether to add a VTT time map. (optional, default to false) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getSubtitleWithTicks(routeItemId: UUID, routeMediaSourceId: String, routeIndex: Int, routeStartPositionTicks: Int64, routeFormat: String, itemId: UUID? = nil, mediaSourceId: String? = nil, index: Int? = nil, startPositionTicks: Int64? = nil, format: String? = nil, endPositionTicks: Int64? = nil, copyTimestamps: Bool? = nil, addVttTimeMap: Bool? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getSubtitleWithTicksWithRequestBuilder(routeItemId: routeItemId, routeMediaSourceId: routeMediaSourceId, routeIndex: routeIndex, routeStartPositionTicks: routeStartPositionTicks, routeFormat: routeFormat, itemId: itemId, mediaSourceId: mediaSourceId, index: index, startPositionTicks: startPositionTicks, format: format, endPositionTicks: endPositionTicks, copyTimestamps: copyTimestamps, addVttTimeMap: addVttTimeMap).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets subtitles in a specified format. - - GET /Videos/{routeItemId}/{routeMediaSourceId}/Subtitles/{routeIndex}/{routeStartPositionTicks}/Stream.{routeFormat} - - - - - examples: [{contentType=application/json, example=""}] - - parameter routeItemId: (path) The (route) item id. - - parameter routeMediaSourceId: (path) The (route) media source id. - - parameter routeIndex: (path) The (route) subtitle stream index. - - parameter routeStartPositionTicks: (path) The (route) start position of the subtitle in ticks. - - parameter routeFormat: (path) The (route) format of the returned subtitle. - - parameter itemId: (query) The item id. (optional) - - parameter mediaSourceId: (query) The media source id. (optional) - - parameter index: (query) The subtitle stream index. (optional) - - parameter startPositionTicks: (query) The start position of the subtitle in ticks. (optional) - - parameter format: (query) The format of the returned subtitle. (optional) - - parameter endPositionTicks: (query) Optional. The end position of the subtitle in ticks. (optional) - - parameter copyTimestamps: (query) Optional. Whether to copy the timestamps. (optional, default to false) - - parameter addVttTimeMap: (query) Optional. Whether to add a VTT time map. (optional, default to false) - - - returns: RequestBuilder - */ - open class func getSubtitleWithTicksWithRequestBuilder(routeItemId: UUID, routeMediaSourceId: String, routeIndex: Int, routeStartPositionTicks: Int64, routeFormat: String, itemId: UUID? = nil, mediaSourceId: String? = nil, index: Int? = nil, startPositionTicks: Int64? = nil, format: String? = nil, endPositionTicks: Int64? = nil, copyTimestamps: Bool? = nil, addVttTimeMap: Bool? = nil) -> RequestBuilder { - var path = "/Videos/{routeItemId}/{routeMediaSourceId}/Subtitles/{routeIndex}/{routeStartPositionTicks}/Stream.{routeFormat}" - let routeItemIdPreEscape = "\(routeItemId)" - let routeItemIdPostEscape = routeItemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{routeItemId}", with: routeItemIdPostEscape, options: .literal, range: nil) - let routeMediaSourceIdPreEscape = "\(routeMediaSourceId)" - let routeMediaSourceIdPostEscape = routeMediaSourceIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{routeMediaSourceId}", with: routeMediaSourceIdPostEscape, options: .literal, range: nil) - let routeIndexPreEscape = "\(routeIndex)" - let routeIndexPostEscape = routeIndexPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{routeIndex}", with: routeIndexPostEscape, options: .literal, range: nil) - let routeStartPositionTicksPreEscape = "\(routeStartPositionTicks)" - let routeStartPositionTicksPostEscape = routeStartPositionTicksPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{routeStartPositionTicks}", with: routeStartPositionTicksPostEscape, options: .literal, range: nil) - let routeFormatPreEscape = "\(routeFormat)" - let routeFormatPostEscape = routeFormatPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{routeFormat}", with: routeFormatPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "itemId": itemId, - "mediaSourceId": mediaSourceId, - "index": index?.encodeToJSON(), - "startPositionTicks": startPositionTicks?.encodeToJSON(), - "format": format, - "endPositionTicks": endPositionTicks?.encodeToJSON(), - "copyTimestamps": copyTimestamps, - "addVttTimeMap": addVttTimeMap - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Search remote subtitles. - - - parameter itemId: (path) The item id. - - parameter language: (path) The language of the subtitles. - - parameter isPerfectMatch: (query) Optional. Only show subtitles which are a perfect match. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func searchRemoteSubtitles(itemId: UUID, language: String, isPerfectMatch: Bool? = nil, completion: @escaping ((_ data: [RemoteSubtitleInfo]?,_ error: Error?) -> Void)) { - searchRemoteSubtitlesWithRequestBuilder(itemId: itemId, language: language, isPerfectMatch: isPerfectMatch).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Search remote subtitles. - - GET /Items/{itemId}/RemoteSearch/Subtitles/{language} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "ProviderName" : "ProviderName", - "Comment" : "Comment", - "Format" : "Format", - "ThreeLetterISOLanguageName" : "ThreeLetterISOLanguageName", - "IsHashMatch" : true, - "Author" : "Author", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "CommunityRating" : 0.8008282, - "Id" : "Id", - "Name" : "Name", - "DownloadCount" : 6 -}, { - "ProviderName" : "ProviderName", - "Comment" : "Comment", - "Format" : "Format", - "ThreeLetterISOLanguageName" : "ThreeLetterISOLanguageName", - "IsHashMatch" : true, - "Author" : "Author", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "CommunityRating" : 0.8008282, - "Id" : "Id", - "Name" : "Name", - "DownloadCount" : 6 -} ]}] - - parameter itemId: (path) The item id. - - parameter language: (path) The language of the subtitles. - - parameter isPerfectMatch: (query) Optional. Only show subtitles which are a perfect match. (optional) - - - returns: RequestBuilder<[RemoteSubtitleInfo]> - */ - open class func searchRemoteSubtitlesWithRequestBuilder(itemId: UUID, language: String, isPerfectMatch: Bool? = nil) -> RequestBuilder<[RemoteSubtitleInfo]> { - var path = "/Items/{itemId}/RemoteSearch/Subtitles/{language}" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let languagePreEscape = "\(language)" - let languagePostEscape = languagePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{language}", with: languagePostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "isPerfectMatch": isPerfectMatch - ]) - - - let requestBuilder: RequestBuilder<[RemoteSubtitleInfo]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Upload an external subtitle file. - - - parameter body: (body) The request body. - - parameter itemId: (path) The item the subtitle belongs to. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func uploadSubtitle(body: ItemIdSubtitlesBody, itemId: UUID, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - uploadSubtitleWithRequestBuilder(body: body, itemId: itemId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Upload an external subtitle file. - - POST /Videos/{itemId}/Subtitles - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The request body. - - parameter itemId: (path) The item the subtitle belongs to. - - - returns: RequestBuilder - */ - open class func uploadSubtitleWithRequestBuilder(body: ItemIdSubtitlesBody, itemId: UUID) -> RequestBuilder { - var path = "/Videos/{itemId}/Subtitles" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/SuggestionsAPI.swift b/JellyfinPlayer/Swaggers/APIs/SuggestionsAPI.swift deleted file mode 100644 index 79c553ed..00000000 --- a/JellyfinPlayer/Swaggers/APIs/SuggestionsAPI.swift +++ /dev/null @@ -1,1342 +0,0 @@ -// -// SuggestionsAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class SuggestionsAPI { - /** - Gets suggestions. - - - parameter userId: (path) The user id. - - parameter mediaType: (query) The media types. (optional) - - parameter type: (query) The type. (optional) - - parameter startIndex: (query) Optional. The start index. (optional) - - parameter limit: (query) Optional. The limit. (optional) - - parameter enableTotalRecordCount: (query) Whether to enable the total record count. (optional, default to false) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getSuggestions(userId: UUID, mediaType: [String]? = nil, type: [String]? = nil, startIndex: Int? = nil, limit: Int? = nil, enableTotalRecordCount: Bool? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getSuggestionsWithRequestBuilder(userId: userId, mediaType: mediaType, type: type, startIndex: startIndex, limit: limit, enableTotalRecordCount: enableTotalRecordCount).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets suggestions. - - GET /Users/{userId}/Suggestions - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter userId: (path) The user id. - - parameter mediaType: (query) The media types. (optional) - - parameter type: (query) The type. (optional) - - parameter startIndex: (query) Optional. The start index. (optional) - - parameter limit: (query) Optional. The limit. (optional) - - parameter enableTotalRecordCount: (query) Whether to enable the total record count. (optional, default to false) - - - returns: RequestBuilder - */ - open class func getSuggestionsWithRequestBuilder(userId: UUID, mediaType: [String]? = nil, type: [String]? = nil, startIndex: Int? = nil, limit: Int? = nil, enableTotalRecordCount: Bool? = nil) -> RequestBuilder { - var path = "/Users/{userId}/Suggestions" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "mediaType": mediaType, - "type": type, - "startIndex": startIndex?.encodeToJSON(), - "limit": limit?.encodeToJSON(), - "enableTotalRecordCount": enableTotalRecordCount - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/SyncPlayAPI.swift b/JellyfinPlayer/Swaggers/APIs/SyncPlayAPI.swift deleted file mode 100644 index 64708b3e..00000000 --- a/JellyfinPlayer/Swaggers/APIs/SyncPlayAPI.swift +++ /dev/null @@ -1,852 +0,0 @@ -// -// SyncPlayAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class SyncPlayAPI { - /** - Notify SyncPlay group that member is buffering. - - - parameter body: (body) The player status. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func syncPlayBuffering(body: SyncPlayBufferingBody, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - syncPlayBufferingWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Notify SyncPlay group that member is buffering. - - POST /SyncPlay/Buffering - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The player status. - - - returns: RequestBuilder - */ - open class func syncPlayBufferingWithRequestBuilder(body: SyncPlayBufferingBody) -> RequestBuilder { - let path = "/SyncPlay/Buffering" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Create a new SyncPlay group. - - - parameter body: (body) The settings of the new group. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func syncPlayCreateGroup(body: SyncPlayNewBody, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - syncPlayCreateGroupWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Create a new SyncPlay group. - - POST /SyncPlay/New - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The settings of the new group. - - - returns: RequestBuilder - */ - open class func syncPlayCreateGroupWithRequestBuilder(body: SyncPlayNewBody) -> RequestBuilder { - let path = "/SyncPlay/New" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Gets all SyncPlay groups. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func syncPlayGetGroups(completion: @escaping ((_ data: [GroupInfoDto]?,_ error: Error?) -> Void)) { - syncPlayGetGroupsWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets all SyncPlay groups. - - GET /SyncPlay/List - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "GroupName" : "GroupName", - "LastUpdatedAt" : "2000-01-23T04:56:07.000+00:00", - "State" : "", - "Participants" : [ "Participants", "Participants" ], - "GroupId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" -}, { - "GroupName" : "GroupName", - "LastUpdatedAt" : "2000-01-23T04:56:07.000+00:00", - "State" : "", - "Participants" : [ "Participants", "Participants" ], - "GroupId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91" -} ]}] - - - returns: RequestBuilder<[GroupInfoDto]> - */ - open class func syncPlayGetGroupsWithRequestBuilder() -> RequestBuilder<[GroupInfoDto]> { - let path = "/SyncPlay/List" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[GroupInfoDto]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Join an existing SyncPlay group. - - - parameter body: (body) The group to join. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func syncPlayJoinGroup(body: SyncPlayJoinBody, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - syncPlayJoinGroupWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Join an existing SyncPlay group. - - POST /SyncPlay/Join - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The group to join. - - - returns: RequestBuilder - */ - open class func syncPlayJoinGroupWithRequestBuilder(body: SyncPlayJoinBody) -> RequestBuilder { - let path = "/SyncPlay/Join" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Leave the joined SyncPlay group. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func syncPlayLeaveGroup(completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - syncPlayLeaveGroupWithRequestBuilder().execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Leave the joined SyncPlay group. - - POST /SyncPlay/Leave - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - - returns: RequestBuilder - */ - open class func syncPlayLeaveGroupWithRequestBuilder() -> RequestBuilder { - let path = "/SyncPlay/Leave" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Request to move an item in the playlist in SyncPlay group. - - - parameter body: (body) The new position for the item. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func syncPlayMovePlaylistItem(body: SyncPlayMovePlaylistItemBody, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - syncPlayMovePlaylistItemWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Request to move an item in the playlist in SyncPlay group. - - POST /SyncPlay/MovePlaylistItem - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The new position for the item. - - - returns: RequestBuilder - */ - open class func syncPlayMovePlaylistItemWithRequestBuilder(body: SyncPlayMovePlaylistItemBody) -> RequestBuilder { - let path = "/SyncPlay/MovePlaylistItem" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Request next item in SyncPlay group. - - - parameter body: (body) The current item information. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func syncPlayNextItem(body: SyncPlayNextItemBody, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - syncPlayNextItemWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Request next item in SyncPlay group. - - POST /SyncPlay/NextItem - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The current item information. - - - returns: RequestBuilder - */ - open class func syncPlayNextItemWithRequestBuilder(body: SyncPlayNextItemBody) -> RequestBuilder { - let path = "/SyncPlay/NextItem" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Request pause in SyncPlay group. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func syncPlayPause(completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - syncPlayPauseWithRequestBuilder().execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Request pause in SyncPlay group. - - POST /SyncPlay/Pause - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - - returns: RequestBuilder - */ - open class func syncPlayPauseWithRequestBuilder() -> RequestBuilder { - let path = "/SyncPlay/Pause" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Update session ping. - - - parameter body: (body) The new ping. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func syncPlayPing(body: SyncPlayPingBody, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - syncPlayPingWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Update session ping. - - POST /SyncPlay/Ping - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The new ping. - - - returns: RequestBuilder - */ - open class func syncPlayPingWithRequestBuilder(body: SyncPlayPingBody) -> RequestBuilder { - let path = "/SyncPlay/Ping" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Request previous item in SyncPlay group. - - - parameter body: (body) The current item information. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func syncPlayPreviousItem(body: SyncPlayPreviousItemBody, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - syncPlayPreviousItemWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Request previous item in SyncPlay group. - - POST /SyncPlay/PreviousItem - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The current item information. - - - returns: RequestBuilder - */ - open class func syncPlayPreviousItemWithRequestBuilder(body: SyncPlayPreviousItemBody) -> RequestBuilder { - let path = "/SyncPlay/PreviousItem" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Request to queue items to the playlist of a SyncPlay group. - - - parameter body: (body) The items to add. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func syncPlayQueue(body: SyncPlayQueueBody, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - syncPlayQueueWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Request to queue items to the playlist of a SyncPlay group. - - POST /SyncPlay/Queue - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The items to add. - - - returns: RequestBuilder - */ - open class func syncPlayQueueWithRequestBuilder(body: SyncPlayQueueBody) -> RequestBuilder { - let path = "/SyncPlay/Queue" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Notify SyncPlay group that member is ready for playback. - - - parameter body: (body) The player status. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func syncPlayReady(body: SyncPlayReadyBody, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - syncPlayReadyWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Notify SyncPlay group that member is ready for playback. - - POST /SyncPlay/Ready - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The player status. - - - returns: RequestBuilder - */ - open class func syncPlayReadyWithRequestBuilder(body: SyncPlayReadyBody) -> RequestBuilder { - let path = "/SyncPlay/Ready" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Request to remove items from the playlist in SyncPlay group. - - - parameter body: (body) The items to remove. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func syncPlayRemoveFromPlaylist(body: SyncPlayRemoveFromPlaylistBody, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - syncPlayRemoveFromPlaylistWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Request to remove items from the playlist in SyncPlay group. - - POST /SyncPlay/RemoveFromPlaylist - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The items to remove. - - - returns: RequestBuilder - */ - open class func syncPlayRemoveFromPlaylistWithRequestBuilder(body: SyncPlayRemoveFromPlaylistBody) -> RequestBuilder { - let path = "/SyncPlay/RemoveFromPlaylist" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Request seek in SyncPlay group. - - - parameter body: (body) The new playback position. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func syncPlaySeek(body: SyncPlaySeekBody, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - syncPlaySeekWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Request seek in SyncPlay group. - - POST /SyncPlay/Seek - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The new playback position. - - - returns: RequestBuilder - */ - open class func syncPlaySeekWithRequestBuilder(body: SyncPlaySeekBody) -> RequestBuilder { - let path = "/SyncPlay/Seek" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Request SyncPlay group to ignore member during group-wait. - - - parameter body: (body) The settings to set. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func syncPlaySetIgnoreWait(body: SyncPlaySetIgnoreWaitBody, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - syncPlaySetIgnoreWaitWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Request SyncPlay group to ignore member during group-wait. - - POST /SyncPlay/SetIgnoreWait - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The settings to set. - - - returns: RequestBuilder - */ - open class func syncPlaySetIgnoreWaitWithRequestBuilder(body: SyncPlaySetIgnoreWaitBody) -> RequestBuilder { - let path = "/SyncPlay/SetIgnoreWait" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Request to set new playlist in SyncPlay group. - - - parameter body: (body) The new playlist to play in the group. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func syncPlaySetNewQueue(body: SyncPlaySetNewQueueBody, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - syncPlaySetNewQueueWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Request to set new playlist in SyncPlay group. - - POST /SyncPlay/SetNewQueue - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The new playlist to play in the group. - - - returns: RequestBuilder - */ - open class func syncPlaySetNewQueueWithRequestBuilder(body: SyncPlaySetNewQueueBody) -> RequestBuilder { - let path = "/SyncPlay/SetNewQueue" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Request to change playlist item in SyncPlay group. - - - parameter body: (body) The new item to play. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func syncPlaySetPlaylistItem(body: SyncPlaySetPlaylistItemBody, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - syncPlaySetPlaylistItemWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Request to change playlist item in SyncPlay group. - - POST /SyncPlay/SetPlaylistItem - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The new item to play. - - - returns: RequestBuilder - */ - open class func syncPlaySetPlaylistItemWithRequestBuilder(body: SyncPlaySetPlaylistItemBody) -> RequestBuilder { - let path = "/SyncPlay/SetPlaylistItem" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Request to set repeat mode in SyncPlay group. - - - parameter body: (body) The new repeat mode. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func syncPlaySetRepeatMode(body: SyncPlaySetRepeatModeBody, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - syncPlaySetRepeatModeWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Request to set repeat mode in SyncPlay group. - - POST /SyncPlay/SetRepeatMode - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The new repeat mode. - - - returns: RequestBuilder - */ - open class func syncPlaySetRepeatModeWithRequestBuilder(body: SyncPlaySetRepeatModeBody) -> RequestBuilder { - let path = "/SyncPlay/SetRepeatMode" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Request to set shuffle mode in SyncPlay group. - - - parameter body: (body) The new shuffle mode. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func syncPlaySetShuffleMode(body: SyncPlaySetShuffleModeBody, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - syncPlaySetShuffleModeWithRequestBuilder(body: body).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Request to set shuffle mode in SyncPlay group. - - POST /SyncPlay/SetShuffleMode - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The new shuffle mode. - - - returns: RequestBuilder - */ - open class func syncPlaySetShuffleModeWithRequestBuilder(body: SyncPlaySetShuffleModeBody) -> RequestBuilder { - let path = "/SyncPlay/SetShuffleMode" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Request stop in SyncPlay group. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func syncPlayStop(completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - syncPlayStopWithRequestBuilder().execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Request stop in SyncPlay group. - - POST /SyncPlay/Stop - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - - returns: RequestBuilder - */ - open class func syncPlayStopWithRequestBuilder() -> RequestBuilder { - let path = "/SyncPlay/Stop" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Request unpause in SyncPlay group. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func syncPlayUnpause(completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - syncPlayUnpauseWithRequestBuilder().execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Request unpause in SyncPlay group. - - POST /SyncPlay/Unpause - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - - returns: RequestBuilder - */ - open class func syncPlayUnpauseWithRequestBuilder() -> RequestBuilder { - let path = "/SyncPlay/Unpause" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/SystemAPI.swift b/JellyfinPlayer/Swaggers/APIs/SystemAPI.swift deleted file mode 100644 index a55bc3c0..00000000 --- a/JellyfinPlayer/Swaggers/APIs/SystemAPI.swift +++ /dev/null @@ -1,435 +0,0 @@ -// -// SystemAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class SystemAPI { - /** - Gets information about the request endpoint. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getEndpointInfo(completion: @escaping ((_ data: EndPointInfo?,_ error: Error?) -> Void)) { - getEndpointInfoWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets information about the request endpoint. - - GET /System/Endpoint - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "IsLocal" : true, - "IsInNetwork" : true -}}] - - - returns: RequestBuilder - */ - open class func getEndpointInfoWithRequestBuilder() -> RequestBuilder { - let path = "/System/Endpoint" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a log file. - - - parameter name: (query) The name of the log file to get. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getLogFile(name: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getLogFileWithRequestBuilder(name: name).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a log file. - - GET /System/Logs/Log - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=""}] - - parameter name: (query) The name of the log file to get. - - - returns: RequestBuilder - */ - open class func getLogFileWithRequestBuilder(name: String) -> RequestBuilder { - let path = "/System/Logs/Log" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "name": name - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Pings the system. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getPingSystem(completion: @escaping ((_ data: String?,_ error: Error?) -> Void)) { - getPingSystemWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Pings the system. - - GET /System/Ping - - - - - examples: [{contentType=application/json, example=""}] - - - returns: RequestBuilder - */ - open class func getPingSystemWithRequestBuilder() -> RequestBuilder { - let path = "/System/Ping" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets public information about the server. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getPublicSystemInfo(completion: @escaping ((_ data: PublicSystemInfo?,_ error: Error?) -> Void)) { - getPublicSystemInfoWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets public information about the server. - - GET /System/Info/Public - - - - - examples: [{contentType=application/json, example={ - "OperatingSystem" : "OperatingSystem", - "LocalAddress" : "LocalAddress", - "ProductName" : "ProductName", - "Version" : "Version", - "ServerName" : "ServerName", - "Id" : "Id", - "StartupWizardCompleted" : true -}}] - - - returns: RequestBuilder - */ - open class func getPublicSystemInfoWithRequestBuilder() -> RequestBuilder { - let path = "/System/Info/Public" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a list of available server log files. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getServerLogs(completion: @escaping ((_ data: [LogFile]?,_ error: Error?) -> Void)) { - getServerLogsWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a list of available server log files. - - GET /System/Logs - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "Size" : 0, - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "DateModified" : "2000-01-23T04:56:07.000+00:00", - "Name" : "Name" -}, { - "Size" : 0, - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "DateModified" : "2000-01-23T04:56:07.000+00:00", - "Name" : "Name" -} ]}] - - - returns: RequestBuilder<[LogFile]> - */ - open class func getServerLogsWithRequestBuilder() -> RequestBuilder<[LogFile]> { - let path = "/System/Logs" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[LogFile]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets information about the server. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getSystemInfo(completion: @escaping ((_ data: SystemInfo?,_ error: Error?) -> Void)) { - getSystemInfoWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets information about the server. - - GET /System/Info - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "OperatingSystem" : "OperatingSystem", - "ProductName" : "ProductName", - "EncoderLocation" : "", - "PackageName" : "PackageName", - "TranscodingTempPath" : "TranscodingTempPath", - "CanSelfRestart" : true, - "StartupWizardCompleted" : true, - "Version" : "Version", - "CachePath" : "CachePath", - "HasPendingRestart" : true, - "ProgramDataPath" : "ProgramDataPath", - "WebPath" : "WebPath", - "SupportsLibraryMonitor" : true, - "LocalAddress" : "LocalAddress", - "CanLaunchWebBrowser" : true, - "IsShuttingDown" : true, - "SystemArchitecture" : "", - "ItemsByNamePath" : "ItemsByNamePath", - "WebSocketPortNumber" : 0, - "CompletedInstallations" : [ { - "SourceUrl" : "SourceUrl", - "Version" : "", - "Checksum" : "Checksum", - "PackageInfo" : "", - "Guid" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Changelog" : "Changelog", - "Name" : "Name" - }, { - "SourceUrl" : "SourceUrl", - "Version" : "", - "Checksum" : "Checksum", - "PackageInfo" : "", - "Guid" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Changelog" : "Changelog", - "Name" : "Name" - } ], - "OperatingSystemDisplayName" : "OperatingSystemDisplayName", - "InternalMetadataPath" : "InternalMetadataPath", - "ServerName" : "ServerName", - "Id" : "Id", - "HasUpdateAvailable" : true, - "LogPath" : "LogPath" -}}] - - - returns: RequestBuilder - */ - open class func getSystemInfoWithRequestBuilder() -> RequestBuilder { - let path = "/System/Info" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets wake on lan information. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getWakeOnLanInfo(completion: @escaping ((_ data: [WakeOnLanInfo]?,_ error: Error?) -> Void)) { - getWakeOnLanInfoWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets wake on lan information. - - GET /System/WakeOnLanInfo - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "Port" : 0, - "MacAddress" : "MacAddress" -}, { - "Port" : 0, - "MacAddress" : "MacAddress" -} ]}] - - - returns: RequestBuilder<[WakeOnLanInfo]> - */ - open class func getWakeOnLanInfoWithRequestBuilder() -> RequestBuilder<[WakeOnLanInfo]> { - let path = "/System/WakeOnLanInfo" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[WakeOnLanInfo]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Pings the system. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func postPingSystem(completion: @escaping ((_ data: String?,_ error: Error?) -> Void)) { - postPingSystemWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Pings the system. - - POST /System/Ping - - - - - examples: [{contentType=application/json, example=""}] - - - returns: RequestBuilder - */ - open class func postPingSystemWithRequestBuilder() -> RequestBuilder { - let path = "/System/Ping" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Restarts the application. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func restartApplication(completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - restartApplicationWithRequestBuilder().execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Restarts the application. - - POST /System/Restart - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - - returns: RequestBuilder - */ - open class func restartApplicationWithRequestBuilder() -> RequestBuilder { - let path = "/System/Restart" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Shuts down the application. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func shutdownApplication(completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - shutdownApplicationWithRequestBuilder().execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Shuts down the application. - - POST /System/Shutdown - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - - returns: RequestBuilder - */ - open class func shutdownApplicationWithRequestBuilder() -> RequestBuilder { - let path = "/System/Shutdown" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/TimeSyncAPI.swift b/JellyfinPlayer/Swaggers/APIs/TimeSyncAPI.swift deleted file mode 100644 index ee36eadb..00000000 --- a/JellyfinPlayer/Swaggers/APIs/TimeSyncAPI.swift +++ /dev/null @@ -1,48 +0,0 @@ -// -// TimeSyncAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class TimeSyncAPI { - /** - Gets the current UTC time. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getUtcTime(completion: @escaping ((_ data: UtcTimeResponse?,_ error: Error?) -> Void)) { - getUtcTimeWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets the current UTC time. - - GET /GetUtcTime - - - - - examples: [{contentType=application/json, example={ - "ResponseTransmissionTime" : "2000-01-23T04:56:07.000+00:00", - "RequestReceptionTime" : "2000-01-23T04:56:07.000+00:00" -}}] - - - returns: RequestBuilder - */ - open class func getUtcTimeWithRequestBuilder() -> RequestBuilder { - let path = "/GetUtcTime" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/TrailersAPI.swift b/JellyfinPlayer/Swaggers/APIs/TrailersAPI.swift deleted file mode 100644 index 6aff0d7f..00000000 --- a/JellyfinPlayer/Swaggers/APIs/TrailersAPI.swift +++ /dev/null @@ -1,1559 +0,0 @@ -// -// TrailersAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class TrailersAPI { - /** - Finds movies and trailers similar to a given trailer. - - - parameter userId: (query) The user id. (optional) - - parameter maxOfficialRating: (query) Optional filter by maximum official rating (PG, PG-13, TV-MA, etc). (optional) - - parameter hasThemeSong: (query) Optional filter by items with theme songs. (optional) - - parameter hasThemeVideo: (query) Optional filter by items with theme videos. (optional) - - parameter hasSubtitles: (query) Optional filter by items with subtitles. (optional) - - parameter hasSpecialFeature: (query) Optional filter by items with special features. (optional) - - parameter hasTrailer: (query) Optional filter by items with trailers. (optional) - - parameter adjacentTo: (query) Optional. Return items that are siblings of a supplied item. (optional) - - parameter parentIndexNumber: (query) Optional filter by parent index number. (optional) - - parameter hasParentalRating: (query) Optional filter by items that have or do not have a parental rating. (optional) - - parameter isHd: (query) Optional filter by items that are HD or not. (optional) - - parameter is4K: (query) Optional filter by items that are 4K or not. (optional) - - parameter locationTypes: (query) Optional. If specified, results will be filtered based on LocationType. This allows multiple, comma delimited. (optional) - - parameter excludeLocationTypes: (query) Optional. If specified, results will be filtered based on the LocationType. This allows multiple, comma delimited. (optional) - - parameter isMissing: (query) Optional filter by items that are missing episodes or not. (optional) - - parameter isUnaired: (query) Optional filter by items that are unaired episodes or not. (optional) - - parameter minCommunityRating: (query) Optional filter by minimum community rating. (optional) - - parameter minCriticRating: (query) Optional filter by minimum critic rating. (optional) - - parameter minPremiereDate: (query) Optional. The minimum premiere date. Format = ISO. (optional) - - parameter minDateLastSaved: (query) Optional. The minimum last saved date. Format = ISO. (optional) - - parameter minDateLastSavedForUser: (query) Optional. The minimum last saved date for the current user. Format = ISO. (optional) - - parameter maxPremiereDate: (query) Optional. The maximum premiere date. Format = ISO. (optional) - - parameter hasOverview: (query) Optional filter by items that have an overview or not. (optional) - - parameter hasImdbId: (query) Optional filter by items that have an imdb id or not. (optional) - - parameter hasTmdbId: (query) Optional filter by items that have a tmdb id or not. (optional) - - parameter hasTvdbId: (query) Optional filter by items that have a tvdb id or not. (optional) - - parameter excludeItemIds: (query) Optional. If specified, results will be filtered by excluding item ids. This allows multiple, comma delimited. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter recursive: (query) When searching within folders, this determines whether or not the search will be recursive. true/false. (optional) - - parameter searchTerm: (query) Optional. Filter based on a search term. (optional) - - parameter sortOrder: (query) Sort Order - Ascending,Descending. (optional) - - parameter parentId: (query) Specify this to localize the search to a specific item or folder. Omit to use the root. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines. (optional) - - parameter excludeItemTypes: (query) Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. (optional) - - parameter filters: (query) Optional. Specify additional filters to apply. This allows multiple, comma delimited. Options: IsFolder, IsNotFolder, IsUnplayed, IsPlayed, IsFavorite, IsResumable, Likes, Dislikes. (optional) - - parameter isFavorite: (query) Optional filter by items that are marked as favorite, or not. (optional) - - parameter mediaTypes: (query) Optional filter by MediaType. Allows multiple, comma delimited. (optional) - - parameter imageTypes: (query) Optional. If specified, results will be filtered based on those containing image types. This allows multiple, comma delimited. (optional) - - parameter sortBy: (query) Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. (optional) - - parameter isPlayed: (query) Optional filter by items that are played, or not. (optional) - - parameter genres: (query) Optional. If specified, results will be filtered based on genre. This allows multiple, pipe delimited. (optional) - - parameter officialRatings: (query) Optional. If specified, results will be filtered based on OfficialRating. This allows multiple, pipe delimited. (optional) - - parameter tags: (query) Optional. If specified, results will be filtered based on tag. This allows multiple, pipe delimited. (optional) - - parameter years: (query) Optional. If specified, results will be filtered based on production year. This allows multiple, comma delimited. (optional) - - parameter enableUserData: (query) Optional, include user data. (optional) - - parameter imageTypeLimit: (query) Optional, the max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter person: (query) Optional. If specified, results will be filtered to include only those containing the specified person. (optional) - - parameter personIds: (query) Optional. If specified, results will be filtered to include only those containing the specified person id. (optional) - - parameter personTypes: (query) Optional. If specified, along with Person, results will be filtered to include only those containing the specified person and PersonType. Allows multiple, comma-delimited. (optional) - - parameter studios: (query) Optional. If specified, results will be filtered based on studio. This allows multiple, pipe delimited. (optional) - - parameter artists: (query) Optional. If specified, results will be filtered based on artists. This allows multiple, pipe delimited. (optional) - - parameter excludeArtistIds: (query) Optional. If specified, results will be filtered based on artist id. This allows multiple, pipe delimited. (optional) - - parameter artistIds: (query) Optional. If specified, results will be filtered to include only those containing the specified artist id. (optional) - - parameter albumArtistIds: (query) Optional. If specified, results will be filtered to include only those containing the specified album artist id. (optional) - - parameter contributingArtistIds: (query) Optional. If specified, results will be filtered to include only those containing the specified contributing artist id. (optional) - - parameter albums: (query) Optional. If specified, results will be filtered based on album. This allows multiple, pipe delimited. (optional) - - parameter albumIds: (query) Optional. If specified, results will be filtered based on album id. This allows multiple, pipe delimited. (optional) - - parameter ids: (query) Optional. If specific items are needed, specify a list of item id's to retrieve. This allows multiple, comma delimited. (optional) - - parameter videoTypes: (query) Optional filter by VideoType (videofile, dvd, bluray, iso). Allows multiple, comma delimited. (optional) - - parameter minOfficialRating: (query) Optional filter by minimum official rating (PG, PG-13, TV-MA, etc). (optional) - - parameter isLocked: (query) Optional filter by items that are locked. (optional) - - parameter isPlaceHolder: (query) Optional filter by items that are placeholders. (optional) - - parameter hasOfficialRating: (query) Optional filter by items that have official ratings. (optional) - - parameter collapseBoxSetItems: (query) Whether or not to hide items behind their boxsets. (optional) - - parameter minWidth: (query) Optional. Filter by the minimum width of the item. (optional) - - parameter minHeight: (query) Optional. Filter by the minimum height of the item. (optional) - - parameter maxWidth: (query) Optional. Filter by the maximum width of the item. (optional) - - parameter maxHeight: (query) Optional. Filter by the maximum height of the item. (optional) - - parameter is3D: (query) Optional filter by items that are 3D, or not. (optional) - - parameter seriesStatus: (query) Optional filter by Series Status. Allows multiple, comma delimited. (optional) - - parameter nameStartsWithOrGreater: (query) Optional filter by items whose name is sorted equally or greater than a given input string. (optional) - - parameter nameStartsWith: (query) Optional filter by items whose name is sorted equally than a given input string. (optional) - - parameter nameLessThan: (query) Optional filter by items whose name is equally or lesser than a given input string. (optional) - - parameter studioIds: (query) Optional. If specified, results will be filtered based on studio id. This allows multiple, pipe delimited. (optional) - - parameter genreIds: (query) Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimited. (optional) - - parameter enableTotalRecordCount: (query) Optional. Enable the total record count. (optional, default to true) - - parameter enableImages: (query) Optional, include image information in output. (optional, default to true) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getTrailers(userId: UUID? = nil, maxOfficialRating: String? = nil, hasThemeSong: Bool? = nil, hasThemeVideo: Bool? = nil, hasSubtitles: Bool? = nil, hasSpecialFeature: Bool? = nil, hasTrailer: Bool? = nil, adjacentTo: String? = nil, parentIndexNumber: Int? = nil, hasParentalRating: Bool? = nil, isHd: Bool? = nil, is4K: Bool? = nil, locationTypes: [LocationType]? = nil, excludeLocationTypes: [LocationType]? = nil, isMissing: Bool? = nil, isUnaired: Bool? = nil, minCommunityRating: Double? = nil, minCriticRating: Double? = nil, minPremiereDate: Date? = nil, minDateLastSaved: Date? = nil, minDateLastSavedForUser: Date? = nil, maxPremiereDate: Date? = nil, hasOverview: Bool? = nil, hasImdbId: Bool? = nil, hasTmdbId: Bool? = nil, hasTvdbId: Bool? = nil, excludeItemIds: [UUID]? = nil, startIndex: Int? = nil, limit: Int? = nil, recursive: Bool? = nil, searchTerm: String? = nil, sortOrder: [SortOrder]? = nil, parentId: UUID? = nil, fields: [ItemFields]? = nil, excludeItemTypes: [String]? = nil, filters: [ItemFilter]? = nil, isFavorite: Bool? = nil, mediaTypes: [String]? = nil, imageTypes: [ImageType]? = nil, sortBy: [String]? = nil, isPlayed: Bool? = nil, genres: [String]? = nil, officialRatings: [String]? = nil, tags: [String]? = nil, years: [Int]? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, person: String? = nil, personIds: [UUID]? = nil, personTypes: [String]? = nil, studios: [String]? = nil, artists: [String]? = nil, excludeArtistIds: [UUID]? = nil, artistIds: [UUID]? = nil, albumArtistIds: [UUID]? = nil, contributingArtistIds: [UUID]? = nil, albums: [String]? = nil, albumIds: [UUID]? = nil, ids: [UUID]? = nil, videoTypes: [VideoType]? = nil, minOfficialRating: String? = nil, isLocked: Bool? = nil, isPlaceHolder: Bool? = nil, hasOfficialRating: Bool? = nil, collapseBoxSetItems: Bool? = nil, minWidth: Int? = nil, minHeight: Int? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, is3D: Bool? = nil, seriesStatus: [SeriesStatus]? = nil, nameStartsWithOrGreater: String? = nil, nameStartsWith: String? = nil, nameLessThan: String? = nil, studioIds: [UUID]? = nil, genreIds: [UUID]? = nil, enableTotalRecordCount: Bool? = nil, enableImages: Bool? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getTrailersWithRequestBuilder(userId: userId, maxOfficialRating: maxOfficialRating, hasThemeSong: hasThemeSong, hasThemeVideo: hasThemeVideo, hasSubtitles: hasSubtitles, hasSpecialFeature: hasSpecialFeature, hasTrailer: hasTrailer, adjacentTo: adjacentTo, parentIndexNumber: parentIndexNumber, hasParentalRating: hasParentalRating, isHd: isHd, is4K: is4K, locationTypes: locationTypes, excludeLocationTypes: excludeLocationTypes, isMissing: isMissing, isUnaired: isUnaired, minCommunityRating: minCommunityRating, minCriticRating: minCriticRating, minPremiereDate: minPremiereDate, minDateLastSaved: minDateLastSaved, minDateLastSavedForUser: minDateLastSavedForUser, maxPremiereDate: maxPremiereDate, hasOverview: hasOverview, hasImdbId: hasImdbId, hasTmdbId: hasTmdbId, hasTvdbId: hasTvdbId, excludeItemIds: excludeItemIds, startIndex: startIndex, limit: limit, recursive: recursive, searchTerm: searchTerm, sortOrder: sortOrder, parentId: parentId, fields: fields, excludeItemTypes: excludeItemTypes, filters: filters, isFavorite: isFavorite, mediaTypes: mediaTypes, imageTypes: imageTypes, sortBy: sortBy, isPlayed: isPlayed, genres: genres, officialRatings: officialRatings, tags: tags, years: years, enableUserData: enableUserData, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes, person: person, personIds: personIds, personTypes: personTypes, studios: studios, artists: artists, excludeArtistIds: excludeArtistIds, artistIds: artistIds, albumArtistIds: albumArtistIds, contributingArtistIds: contributingArtistIds, albums: albums, albumIds: albumIds, ids: ids, videoTypes: videoTypes, minOfficialRating: minOfficialRating, isLocked: isLocked, isPlaceHolder: isPlaceHolder, hasOfficialRating: hasOfficialRating, collapseBoxSetItems: collapseBoxSetItems, minWidth: minWidth, minHeight: minHeight, maxWidth: maxWidth, maxHeight: maxHeight, is3D: is3D, seriesStatus: seriesStatus, nameStartsWithOrGreater: nameStartsWithOrGreater, nameStartsWith: nameStartsWith, nameLessThan: nameLessThan, studioIds: studioIds, genreIds: genreIds, enableTotalRecordCount: enableTotalRecordCount, enableImages: enableImages).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Finds movies and trailers similar to a given trailer. - - GET /Trailers - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter userId: (query) The user id. (optional) - - parameter maxOfficialRating: (query) Optional filter by maximum official rating (PG, PG-13, TV-MA, etc). (optional) - - parameter hasThemeSong: (query) Optional filter by items with theme songs. (optional) - - parameter hasThemeVideo: (query) Optional filter by items with theme videos. (optional) - - parameter hasSubtitles: (query) Optional filter by items with subtitles. (optional) - - parameter hasSpecialFeature: (query) Optional filter by items with special features. (optional) - - parameter hasTrailer: (query) Optional filter by items with trailers. (optional) - - parameter adjacentTo: (query) Optional. Return items that are siblings of a supplied item. (optional) - - parameter parentIndexNumber: (query) Optional filter by parent index number. (optional) - - parameter hasParentalRating: (query) Optional filter by items that have or do not have a parental rating. (optional) - - parameter isHd: (query) Optional filter by items that are HD or not. (optional) - - parameter is4K: (query) Optional filter by items that are 4K or not. (optional) - - parameter locationTypes: (query) Optional. If specified, results will be filtered based on LocationType. This allows multiple, comma delimited. (optional) - - parameter excludeLocationTypes: (query) Optional. If specified, results will be filtered based on the LocationType. This allows multiple, comma delimited. (optional) - - parameter isMissing: (query) Optional filter by items that are missing episodes or not. (optional) - - parameter isUnaired: (query) Optional filter by items that are unaired episodes or not. (optional) - - parameter minCommunityRating: (query) Optional filter by minimum community rating. (optional) - - parameter minCriticRating: (query) Optional filter by minimum critic rating. (optional) - - parameter minPremiereDate: (query) Optional. The minimum premiere date. Format = ISO. (optional) - - parameter minDateLastSaved: (query) Optional. The minimum last saved date. Format = ISO. (optional) - - parameter minDateLastSavedForUser: (query) Optional. The minimum last saved date for the current user. Format = ISO. (optional) - - parameter maxPremiereDate: (query) Optional. The maximum premiere date. Format = ISO. (optional) - - parameter hasOverview: (query) Optional filter by items that have an overview or not. (optional) - - parameter hasImdbId: (query) Optional filter by items that have an imdb id or not. (optional) - - parameter hasTmdbId: (query) Optional filter by items that have a tmdb id or not. (optional) - - parameter hasTvdbId: (query) Optional filter by items that have a tvdb id or not. (optional) - - parameter excludeItemIds: (query) Optional. If specified, results will be filtered by excluding item ids. This allows multiple, comma delimited. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter recursive: (query) When searching within folders, this determines whether or not the search will be recursive. true/false. (optional) - - parameter searchTerm: (query) Optional. Filter based on a search term. (optional) - - parameter sortOrder: (query) Sort Order - Ascending,Descending. (optional) - - parameter parentId: (query) Specify this to localize the search to a specific item or folder. Omit to use the root. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines. (optional) - - parameter excludeItemTypes: (query) Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. (optional) - - parameter filters: (query) Optional. Specify additional filters to apply. This allows multiple, comma delimited. Options: IsFolder, IsNotFolder, IsUnplayed, IsPlayed, IsFavorite, IsResumable, Likes, Dislikes. (optional) - - parameter isFavorite: (query) Optional filter by items that are marked as favorite, or not. (optional) - - parameter mediaTypes: (query) Optional filter by MediaType. Allows multiple, comma delimited. (optional) - - parameter imageTypes: (query) Optional. If specified, results will be filtered based on those containing image types. This allows multiple, comma delimited. (optional) - - parameter sortBy: (query) Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. (optional) - - parameter isPlayed: (query) Optional filter by items that are played, or not. (optional) - - parameter genres: (query) Optional. If specified, results will be filtered based on genre. This allows multiple, pipe delimited. (optional) - - parameter officialRatings: (query) Optional. If specified, results will be filtered based on OfficialRating. This allows multiple, pipe delimited. (optional) - - parameter tags: (query) Optional. If specified, results will be filtered based on tag. This allows multiple, pipe delimited. (optional) - - parameter years: (query) Optional. If specified, results will be filtered based on production year. This allows multiple, comma delimited. (optional) - - parameter enableUserData: (query) Optional, include user data. (optional) - - parameter imageTypeLimit: (query) Optional, the max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter person: (query) Optional. If specified, results will be filtered to include only those containing the specified person. (optional) - - parameter personIds: (query) Optional. If specified, results will be filtered to include only those containing the specified person id. (optional) - - parameter personTypes: (query) Optional. If specified, along with Person, results will be filtered to include only those containing the specified person and PersonType. Allows multiple, comma-delimited. (optional) - - parameter studios: (query) Optional. If specified, results will be filtered based on studio. This allows multiple, pipe delimited. (optional) - - parameter artists: (query) Optional. If specified, results will be filtered based on artists. This allows multiple, pipe delimited. (optional) - - parameter excludeArtistIds: (query) Optional. If specified, results will be filtered based on artist id. This allows multiple, pipe delimited. (optional) - - parameter artistIds: (query) Optional. If specified, results will be filtered to include only those containing the specified artist id. (optional) - - parameter albumArtistIds: (query) Optional. If specified, results will be filtered to include only those containing the specified album artist id. (optional) - - parameter contributingArtistIds: (query) Optional. If specified, results will be filtered to include only those containing the specified contributing artist id. (optional) - - parameter albums: (query) Optional. If specified, results will be filtered based on album. This allows multiple, pipe delimited. (optional) - - parameter albumIds: (query) Optional. If specified, results will be filtered based on album id. This allows multiple, pipe delimited. (optional) - - parameter ids: (query) Optional. If specific items are needed, specify a list of item id's to retrieve. This allows multiple, comma delimited. (optional) - - parameter videoTypes: (query) Optional filter by VideoType (videofile, dvd, bluray, iso). Allows multiple, comma delimited. (optional) - - parameter minOfficialRating: (query) Optional filter by minimum official rating (PG, PG-13, TV-MA, etc). (optional) - - parameter isLocked: (query) Optional filter by items that are locked. (optional) - - parameter isPlaceHolder: (query) Optional filter by items that are placeholders. (optional) - - parameter hasOfficialRating: (query) Optional filter by items that have official ratings. (optional) - - parameter collapseBoxSetItems: (query) Whether or not to hide items behind their boxsets. (optional) - - parameter minWidth: (query) Optional. Filter by the minimum width of the item. (optional) - - parameter minHeight: (query) Optional. Filter by the minimum height of the item. (optional) - - parameter maxWidth: (query) Optional. Filter by the maximum width of the item. (optional) - - parameter maxHeight: (query) Optional. Filter by the maximum height of the item. (optional) - - parameter is3D: (query) Optional filter by items that are 3D, or not. (optional) - - parameter seriesStatus: (query) Optional filter by Series Status. Allows multiple, comma delimited. (optional) - - parameter nameStartsWithOrGreater: (query) Optional filter by items whose name is sorted equally or greater than a given input string. (optional) - - parameter nameStartsWith: (query) Optional filter by items whose name is sorted equally than a given input string. (optional) - - parameter nameLessThan: (query) Optional filter by items whose name is equally or lesser than a given input string. (optional) - - parameter studioIds: (query) Optional. If specified, results will be filtered based on studio id. This allows multiple, pipe delimited. (optional) - - parameter genreIds: (query) Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimited. (optional) - - parameter enableTotalRecordCount: (query) Optional. Enable the total record count. (optional, default to true) - - parameter enableImages: (query) Optional, include image information in output. (optional, default to true) - - - returns: RequestBuilder - */ - open class func getTrailersWithRequestBuilder(userId: UUID? = nil, maxOfficialRating: String? = nil, hasThemeSong: Bool? = nil, hasThemeVideo: Bool? = nil, hasSubtitles: Bool? = nil, hasSpecialFeature: Bool? = nil, hasTrailer: Bool? = nil, adjacentTo: String? = nil, parentIndexNumber: Int? = nil, hasParentalRating: Bool? = nil, isHd: Bool? = nil, is4K: Bool? = nil, locationTypes: [LocationType]? = nil, excludeLocationTypes: [LocationType]? = nil, isMissing: Bool? = nil, isUnaired: Bool? = nil, minCommunityRating: Double? = nil, minCriticRating: Double? = nil, minPremiereDate: Date? = nil, minDateLastSaved: Date? = nil, minDateLastSavedForUser: Date? = nil, maxPremiereDate: Date? = nil, hasOverview: Bool? = nil, hasImdbId: Bool? = nil, hasTmdbId: Bool? = nil, hasTvdbId: Bool? = nil, excludeItemIds: [UUID]? = nil, startIndex: Int? = nil, limit: Int? = nil, recursive: Bool? = nil, searchTerm: String? = nil, sortOrder: [SortOrder]? = nil, parentId: UUID? = nil, fields: [ItemFields]? = nil, excludeItemTypes: [String]? = nil, filters: [ItemFilter]? = nil, isFavorite: Bool? = nil, mediaTypes: [String]? = nil, imageTypes: [ImageType]? = nil, sortBy: [String]? = nil, isPlayed: Bool? = nil, genres: [String]? = nil, officialRatings: [String]? = nil, tags: [String]? = nil, years: [Int]? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, person: String? = nil, personIds: [UUID]? = nil, personTypes: [String]? = nil, studios: [String]? = nil, artists: [String]? = nil, excludeArtistIds: [UUID]? = nil, artistIds: [UUID]? = nil, albumArtistIds: [UUID]? = nil, contributingArtistIds: [UUID]? = nil, albums: [String]? = nil, albumIds: [UUID]? = nil, ids: [UUID]? = nil, videoTypes: [VideoType]? = nil, minOfficialRating: String? = nil, isLocked: Bool? = nil, isPlaceHolder: Bool? = nil, hasOfficialRating: Bool? = nil, collapseBoxSetItems: Bool? = nil, minWidth: Int? = nil, minHeight: Int? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, is3D: Bool? = nil, seriesStatus: [SeriesStatus]? = nil, nameStartsWithOrGreater: String? = nil, nameStartsWith: String? = nil, nameLessThan: String? = nil, studioIds: [UUID]? = nil, genreIds: [UUID]? = nil, enableTotalRecordCount: Bool? = nil, enableImages: Bool? = nil) -> RequestBuilder { - let path = "/Trailers" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId, - "maxOfficialRating": maxOfficialRating, - "hasThemeSong": hasThemeSong, - "hasThemeVideo": hasThemeVideo, - "hasSubtitles": hasSubtitles, - "hasSpecialFeature": hasSpecialFeature, - "hasTrailer": hasTrailer, - "adjacentTo": adjacentTo, - "parentIndexNumber": parentIndexNumber?.encodeToJSON(), - "hasParentalRating": hasParentalRating, - "isHd": isHd, - "is4K": is4K, - "locationTypes": locationTypes, - "excludeLocationTypes": excludeLocationTypes, - "isMissing": isMissing, - "isUnaired": isUnaired, - "minCommunityRating": minCommunityRating, - "minCriticRating": minCriticRating, - "minPremiereDate": minPremiereDate?.encodeToJSON(), - "minDateLastSaved": minDateLastSaved?.encodeToJSON(), - "minDateLastSavedForUser": minDateLastSavedForUser?.encodeToJSON(), - "maxPremiereDate": maxPremiereDate?.encodeToJSON(), - "hasOverview": hasOverview, - "hasImdbId": hasImdbId, - "hasTmdbId": hasTmdbId, - "hasTvdbId": hasTvdbId, - "excludeItemIds": excludeItemIds, - "startIndex": startIndex?.encodeToJSON(), - "limit": limit?.encodeToJSON(), - "recursive": recursive, - "searchTerm": searchTerm, - "sortOrder": sortOrder, - "parentId": parentId, - "fields": fields, - "excludeItemTypes": excludeItemTypes, - "filters": filters, - "isFavorite": isFavorite, - "mediaTypes": mediaTypes, - "imageTypes": imageTypes, - "sortBy": sortBy, - "isPlayed": isPlayed, - "genres": genres, - "officialRatings": officialRatings, - "tags": tags, - "years": years, - "enableUserData": enableUserData, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes, - "person": person, - "personIds": personIds, - "personTypes": personTypes, - "studios": studios, - "artists": artists, - "excludeArtistIds": excludeArtistIds, - "artistIds": artistIds, - "albumArtistIds": albumArtistIds, - "contributingArtistIds": contributingArtistIds, - "albums": albums, - "albumIds": albumIds, - "ids": ids, - "videoTypes": videoTypes, - "minOfficialRating": minOfficialRating, - "isLocked": isLocked, - "isPlaceHolder": isPlaceHolder, - "hasOfficialRating": hasOfficialRating, - "collapseBoxSetItems": collapseBoxSetItems, - "minWidth": minWidth?.encodeToJSON(), - "minHeight": minHeight?.encodeToJSON(), - "maxWidth": maxWidth?.encodeToJSON(), - "maxHeight": maxHeight?.encodeToJSON(), - "is3D": is3D, - "seriesStatus": seriesStatus, - "nameStartsWithOrGreater": nameStartsWithOrGreater, - "nameStartsWith": nameStartsWith, - "nameLessThan": nameLessThan, - "studioIds": studioIds, - "genreIds": genreIds, - "enableTotalRecordCount": enableTotalRecordCount, - "enableImages": enableImages - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/TvShowsAPI.swift b/JellyfinPlayer/Swaggers/APIs/TvShowsAPI.swift deleted file mode 100644 index 21bc0013..00000000 --- a/JellyfinPlayer/Swaggers/APIs/TvShowsAPI.swift +++ /dev/null @@ -1,5391 +0,0 @@ -// -// TvShowsAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class TvShowsAPI { - /** - Gets episodes for a tv season. - - - parameter seriesId: (path) The series id. - - parameter userId: (query) The user id. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls. (optional) - - parameter season: (query) Optional filter by season number. (optional) - - parameter seasonId: (query) Optional. Filter by season id. (optional) - - parameter isMissing: (query) Optional. Filter by items that are missing episodes or not. (optional) - - parameter adjacentTo: (query) Optional. Return items that are siblings of a supplied item. (optional) - - parameter startItemId: (query) Optional. Skip through the list until a given item is found. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter enableImages: (query) Optional, include image information in output. (optional) - - parameter imageTypeLimit: (query) Optional, the max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter sortBy: (query) Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getEpisodes(seriesId: UUID, userId: UUID? = nil, fields: [ItemFields]? = nil, season: Int? = nil, seasonId: UUID? = nil, isMissing: Bool? = nil, adjacentTo: String? = nil, startItemId: UUID? = nil, startIndex: Int? = nil, limit: Int? = nil, enableImages: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, enableUserData: Bool? = nil, sortBy: String? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getEpisodesWithRequestBuilder(seriesId: seriesId, userId: userId, fields: fields, season: season, seasonId: seasonId, isMissing: isMissing, adjacentTo: adjacentTo, startItemId: startItemId, startIndex: startIndex, limit: limit, enableImages: enableImages, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes, enableUserData: enableUserData, sortBy: sortBy).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets episodes for a tv season. - - GET /Shows/{seriesId}/Episodes - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter seriesId: (path) The series id. - - parameter userId: (query) The user id. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls. (optional) - - parameter season: (query) Optional filter by season number. (optional) - - parameter seasonId: (query) Optional. Filter by season id. (optional) - - parameter isMissing: (query) Optional. Filter by items that are missing episodes or not. (optional) - - parameter adjacentTo: (query) Optional. Return items that are siblings of a supplied item. (optional) - - parameter startItemId: (query) Optional. Skip through the list until a given item is found. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter enableImages: (query) Optional, include image information in output. (optional) - - parameter imageTypeLimit: (query) Optional, the max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter sortBy: (query) Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. (optional) - - - returns: RequestBuilder - */ - open class func getEpisodesWithRequestBuilder(seriesId: UUID, userId: UUID? = nil, fields: [ItemFields]? = nil, season: Int? = nil, seasonId: UUID? = nil, isMissing: Bool? = nil, adjacentTo: String? = nil, startItemId: UUID? = nil, startIndex: Int? = nil, limit: Int? = nil, enableImages: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, enableUserData: Bool? = nil, sortBy: String? = nil) -> RequestBuilder { - var path = "/Shows/{seriesId}/Episodes" - let seriesIdPreEscape = "\(seriesId)" - let seriesIdPostEscape = seriesIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{seriesId}", with: seriesIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId, - "fields": fields, - "season": season?.encodeToJSON(), - "seasonId": seasonId, - "isMissing": isMissing, - "adjacentTo": adjacentTo, - "startItemId": startItemId, - "startIndex": startIndex?.encodeToJSON(), - "limit": limit?.encodeToJSON(), - "enableImages": enableImages, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes, - "enableUserData": enableUserData, - "sortBy": sortBy - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a list of next up episodes. - - - parameter userId: (query) The user id of the user to get the next up episodes for. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter seriesId: (query) Optional. Filter by series id. (optional) - - parameter parentId: (query) Optional. Specify this to localize the search to a specific item or folder. Omit to use the root. (optional) - - parameter enableImges: (query) Optional. Include image information in output. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter enableTotalRecordCount: (query) Whether to enable the total records count. Defaults to true. (optional, default to true) - - parameter disableFirstEpisode: (query) Whether to disable sending the first episode in a series as next up. (optional, default to false) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getNextUp(userId: UUID? = nil, startIndex: Int? = nil, limit: Int? = nil, fields: [ItemFields]? = nil, seriesId: String? = nil, parentId: UUID? = nil, enableImges: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, enableUserData: Bool? = nil, enableTotalRecordCount: Bool? = nil, disableFirstEpisode: Bool? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getNextUpWithRequestBuilder(userId: userId, startIndex: startIndex, limit: limit, fields: fields, seriesId: seriesId, parentId: parentId, enableImges: enableImges, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes, enableUserData: enableUserData, enableTotalRecordCount: enableTotalRecordCount, disableFirstEpisode: disableFirstEpisode).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a list of next up episodes. - - GET /Shows/NextUp - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter userId: (query) The user id of the user to get the next up episodes for. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter seriesId: (query) Optional. Filter by series id. (optional) - - parameter parentId: (query) Optional. Specify this to localize the search to a specific item or folder. Omit to use the root. (optional) - - parameter enableImges: (query) Optional. Include image information in output. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter enableTotalRecordCount: (query) Whether to enable the total records count. Defaults to true. (optional, default to true) - - parameter disableFirstEpisode: (query) Whether to disable sending the first episode in a series as next up. (optional, default to false) - - - returns: RequestBuilder - */ - open class func getNextUpWithRequestBuilder(userId: UUID? = nil, startIndex: Int? = nil, limit: Int? = nil, fields: [ItemFields]? = nil, seriesId: String? = nil, parentId: UUID? = nil, enableImges: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, enableUserData: Bool? = nil, enableTotalRecordCount: Bool? = nil, disableFirstEpisode: Bool? = nil) -> RequestBuilder { - let path = "/Shows/NextUp" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId, - "startIndex": startIndex?.encodeToJSON(), - "limit": limit?.encodeToJSON(), - "fields": fields, - "seriesId": seriesId, - "parentId": parentId, - "enableImges": enableImges, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes, - "enableUserData": enableUserData, - "enableTotalRecordCount": enableTotalRecordCount, - "disableFirstEpisode": disableFirstEpisode - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets seasons for a tv series. - - - parameter seriesId: (path) The series id. - - parameter userId: (query) The user id. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls. (optional) - - parameter isSpecialSeason: (query) Optional. Filter by special season. (optional) - - parameter isMissing: (query) Optional. Filter by items that are missing episodes or not. (optional) - - parameter adjacentTo: (query) Optional. Return items that are siblings of a supplied item. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getSeasons(seriesId: UUID, userId: UUID? = nil, fields: [ItemFields]? = nil, isSpecialSeason: Bool? = nil, isMissing: Bool? = nil, adjacentTo: String? = nil, enableImages: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, enableUserData: Bool? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getSeasonsWithRequestBuilder(seriesId: seriesId, userId: userId, fields: fields, isSpecialSeason: isSpecialSeason, isMissing: isMissing, adjacentTo: adjacentTo, enableImages: enableImages, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes, enableUserData: enableUserData).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets seasons for a tv series. - - GET /Shows/{seriesId}/Seasons - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter seriesId: (path) The series id. - - parameter userId: (query) The user id. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls. (optional) - - parameter isSpecialSeason: (query) Optional. Filter by special season. (optional) - - parameter isMissing: (query) Optional. Filter by items that are missing episodes or not. (optional) - - parameter adjacentTo: (query) Optional. Return items that are siblings of a supplied item. (optional) - - parameter enableImages: (query) Optional. Include image information in output. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - - returns: RequestBuilder - */ - open class func getSeasonsWithRequestBuilder(seriesId: UUID, userId: UUID? = nil, fields: [ItemFields]? = nil, isSpecialSeason: Bool? = nil, isMissing: Bool? = nil, adjacentTo: String? = nil, enableImages: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, enableUserData: Bool? = nil) -> RequestBuilder { - var path = "/Shows/{seriesId}/Seasons" - let seriesIdPreEscape = "\(seriesId)" - let seriesIdPostEscape = seriesIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{seriesId}", with: seriesIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId, - "fields": fields, - "isSpecialSeason": isSpecialSeason, - "isMissing": isMissing, - "adjacentTo": adjacentTo, - "enableImages": enableImages, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes, - "enableUserData": enableUserData - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a list of upcoming episodes. - - - parameter userId: (query) The user id of the user to get the upcoming episodes for. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter parentId: (query) Optional. Specify this to localize the search to a specific item or folder. Omit to use the root. (optional) - - parameter enableImges: (query) Optional. Include image information in output. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getUpcomingEpisodes(userId: UUID? = nil, startIndex: Int? = nil, limit: Int? = nil, fields: [ItemFields]? = nil, parentId: UUID? = nil, enableImges: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, enableUserData: Bool? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getUpcomingEpisodesWithRequestBuilder(userId: userId, startIndex: startIndex, limit: limit, fields: fields, parentId: parentId, enableImges: enableImges, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes, enableUserData: enableUserData).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a list of upcoming episodes. - - GET /Shows/Upcoming - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter userId: (query) The user id of the user to get the upcoming episodes for. (optional) - - parameter startIndex: (query) Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter parentId: (query) Optional. Specify this to localize the search to a specific item or folder. Omit to use the root. (optional) - - parameter enableImges: (query) Optional. Include image information in output. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - - returns: RequestBuilder - */ - open class func getUpcomingEpisodesWithRequestBuilder(userId: UUID? = nil, startIndex: Int? = nil, limit: Int? = nil, fields: [ItemFields]? = nil, parentId: UUID? = nil, enableImges: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, enableUserData: Bool? = nil) -> RequestBuilder { - let path = "/Shows/Upcoming" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId, - "startIndex": startIndex?.encodeToJSON(), - "limit": limit?.encodeToJSON(), - "fields": fields, - "parentId": parentId, - "enableImges": enableImges, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes, - "enableUserData": enableUserData - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/UniversalAudioAPI.swift b/JellyfinPlayer/Swaggers/APIs/UniversalAudioAPI.swift deleted file mode 100644 index 5e97ab42..00000000 --- a/JellyfinPlayer/Swaggers/APIs/UniversalAudioAPI.swift +++ /dev/null @@ -1,199 +0,0 @@ -// -// UniversalAudioAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class UniversalAudioAPI { - /** - Gets an audio stream. - - - parameter itemId: (path) The item id. - - parameter container: (query) Optional. The audio container. (optional) - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter userId: (query) Optional. The user id. (optional) - - parameter audioCodec: (query) Optional. The audio codec to transcode to. (optional) - - parameter maxAudioChannels: (query) Optional. The maximum number of audio channels. (optional) - - parameter transcodingAudioChannels: (query) Optional. The number of how many audio channels to transcode to. (optional) - - parameter maxStreamingBitrate: (query) Optional. The maximum streaming bitrate. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter transcodingContainer: (query) Optional. The container to transcode to. (optional) - - parameter transcodingProtocol: (query) Optional. The transcoding protocol. (optional) - - parameter maxAudioSampleRate: (query) Optional. The maximum audio sample rate. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter enableRemoteMedia: (query) Optional. Whether to enable remote media. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional, default to false) - - parameter enableRedirection: (query) Whether to enable redirection. Defaults to true. (optional, default to true) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getUniversalAudioStream(itemId: UUID, container: [String]? = nil, mediaSourceId: String? = nil, deviceId: String? = nil, userId: UUID? = nil, audioCodec: String? = nil, maxAudioChannels: Int? = nil, transcodingAudioChannels: Int? = nil, maxStreamingBitrate: Int? = nil, audioBitRate: Int? = nil, startTimeTicks: Int64? = nil, transcodingContainer: String? = nil, transcodingProtocol: String? = nil, maxAudioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, enableRemoteMedia: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, enableRedirection: Bool? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getUniversalAudioStreamWithRequestBuilder(itemId: itemId, container: container, mediaSourceId: mediaSourceId, deviceId: deviceId, userId: userId, audioCodec: audioCodec, maxAudioChannels: maxAudioChannels, transcodingAudioChannels: transcodingAudioChannels, maxStreamingBitrate: maxStreamingBitrate, audioBitRate: audioBitRate, startTimeTicks: startTimeTicks, transcodingContainer: transcodingContainer, transcodingProtocol: transcodingProtocol, maxAudioSampleRate: maxAudioSampleRate, maxAudioBitDepth: maxAudioBitDepth, enableRemoteMedia: enableRemoteMedia, breakOnNonKeyFrames: breakOnNonKeyFrames, enableRedirection: enableRedirection).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets an audio stream. - - GET /Audio/{itemId}/universal - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) The item id. - - parameter container: (query) Optional. The audio container. (optional) - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter userId: (query) Optional. The user id. (optional) - - parameter audioCodec: (query) Optional. The audio codec to transcode to. (optional) - - parameter maxAudioChannels: (query) Optional. The maximum number of audio channels. (optional) - - parameter transcodingAudioChannels: (query) Optional. The number of how many audio channels to transcode to. (optional) - - parameter maxStreamingBitrate: (query) Optional. The maximum streaming bitrate. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter transcodingContainer: (query) Optional. The container to transcode to. (optional) - - parameter transcodingProtocol: (query) Optional. The transcoding protocol. (optional) - - parameter maxAudioSampleRate: (query) Optional. The maximum audio sample rate. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter enableRemoteMedia: (query) Optional. Whether to enable remote media. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional, default to false) - - parameter enableRedirection: (query) Whether to enable redirection. Defaults to true. (optional, default to true) - - - returns: RequestBuilder - */ - open class func getUniversalAudioStreamWithRequestBuilder(itemId: UUID, container: [String]? = nil, mediaSourceId: String? = nil, deviceId: String? = nil, userId: UUID? = nil, audioCodec: String? = nil, maxAudioChannels: Int? = nil, transcodingAudioChannels: Int? = nil, maxStreamingBitrate: Int? = nil, audioBitRate: Int? = nil, startTimeTicks: Int64? = nil, transcodingContainer: String? = nil, transcodingProtocol: String? = nil, maxAudioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, enableRemoteMedia: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, enableRedirection: Bool? = nil) -> RequestBuilder { - var path = "/Audio/{itemId}/universal" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "container": container, - "mediaSourceId": mediaSourceId, - "deviceId": deviceId, - "userId": userId, - "audioCodec": audioCodec, - "maxAudioChannels": maxAudioChannels?.encodeToJSON(), - "transcodingAudioChannels": transcodingAudioChannels?.encodeToJSON(), - "maxStreamingBitrate": maxStreamingBitrate?.encodeToJSON(), - "audioBitRate": audioBitRate?.encodeToJSON(), - "startTimeTicks": startTimeTicks?.encodeToJSON(), - "transcodingContainer": transcodingContainer, - "transcodingProtocol": transcodingProtocol, - "maxAudioSampleRate": maxAudioSampleRate?.encodeToJSON(), - "maxAudioBitDepth": maxAudioBitDepth?.encodeToJSON(), - "enableRemoteMedia": enableRemoteMedia, - "breakOnNonKeyFrames": breakOnNonKeyFrames, - "enableRedirection": enableRedirection - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets an audio stream. - - - parameter itemId: (path) The item id. - - parameter container: (query) Optional. The audio container. (optional) - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter userId: (query) Optional. The user id. (optional) - - parameter audioCodec: (query) Optional. The audio codec to transcode to. (optional) - - parameter maxAudioChannels: (query) Optional. The maximum number of audio channels. (optional) - - parameter transcodingAudioChannels: (query) Optional. The number of how many audio channels to transcode to. (optional) - - parameter maxStreamingBitrate: (query) Optional. The maximum streaming bitrate. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter transcodingContainer: (query) Optional. The container to transcode to. (optional) - - parameter transcodingProtocol: (query) Optional. The transcoding protocol. (optional) - - parameter maxAudioSampleRate: (query) Optional. The maximum audio sample rate. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter enableRemoteMedia: (query) Optional. Whether to enable remote media. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional, default to false) - - parameter enableRedirection: (query) Whether to enable redirection. Defaults to true. (optional, default to true) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func headUniversalAudioStream(itemId: UUID, container: [String]? = nil, mediaSourceId: String? = nil, deviceId: String? = nil, userId: UUID? = nil, audioCodec: String? = nil, maxAudioChannels: Int? = nil, transcodingAudioChannels: Int? = nil, maxStreamingBitrate: Int? = nil, audioBitRate: Int? = nil, startTimeTicks: Int64? = nil, transcodingContainer: String? = nil, transcodingProtocol: String? = nil, maxAudioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, enableRemoteMedia: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, enableRedirection: Bool? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - headUniversalAudioStreamWithRequestBuilder(itemId: itemId, container: container, mediaSourceId: mediaSourceId, deviceId: deviceId, userId: userId, audioCodec: audioCodec, maxAudioChannels: maxAudioChannels, transcodingAudioChannels: transcodingAudioChannels, maxStreamingBitrate: maxStreamingBitrate, audioBitRate: audioBitRate, startTimeTicks: startTimeTicks, transcodingContainer: transcodingContainer, transcodingProtocol: transcodingProtocol, maxAudioSampleRate: maxAudioSampleRate, maxAudioBitDepth: maxAudioBitDepth, enableRemoteMedia: enableRemoteMedia, breakOnNonKeyFrames: breakOnNonKeyFrames, enableRedirection: enableRedirection).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets an audio stream. - - HEAD /Audio/{itemId}/universal - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) The item id. - - parameter container: (query) Optional. The audio container. (optional) - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter userId: (query) Optional. The user id. (optional) - - parameter audioCodec: (query) Optional. The audio codec to transcode to. (optional) - - parameter maxAudioChannels: (query) Optional. The maximum number of audio channels. (optional) - - parameter transcodingAudioChannels: (query) Optional. The number of how many audio channels to transcode to. (optional) - - parameter maxStreamingBitrate: (query) Optional. The maximum streaming bitrate. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter transcodingContainer: (query) Optional. The container to transcode to. (optional) - - parameter transcodingProtocol: (query) Optional. The transcoding protocol. (optional) - - parameter maxAudioSampleRate: (query) Optional. The maximum audio sample rate. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter enableRemoteMedia: (query) Optional. Whether to enable remote media. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional, default to false) - - parameter enableRedirection: (query) Whether to enable redirection. Defaults to true. (optional, default to true) - - - returns: RequestBuilder - */ - open class func headUniversalAudioStreamWithRequestBuilder(itemId: UUID, container: [String]? = nil, mediaSourceId: String? = nil, deviceId: String? = nil, userId: UUID? = nil, audioCodec: String? = nil, maxAudioChannels: Int? = nil, transcodingAudioChannels: Int? = nil, maxStreamingBitrate: Int? = nil, audioBitRate: Int? = nil, startTimeTicks: Int64? = nil, transcodingContainer: String? = nil, transcodingProtocol: String? = nil, maxAudioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, enableRemoteMedia: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, enableRedirection: Bool? = nil) -> RequestBuilder { - var path = "/Audio/{itemId}/universal" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "container": container, - "mediaSourceId": mediaSourceId, - "deviceId": deviceId, - "userId": userId, - "audioCodec": audioCodec, - "maxAudioChannels": maxAudioChannels?.encodeToJSON(), - "transcodingAudioChannels": transcodingAudioChannels?.encodeToJSON(), - "maxStreamingBitrate": maxStreamingBitrate?.encodeToJSON(), - "audioBitRate": audioBitRate?.encodeToJSON(), - "startTimeTicks": startTimeTicks?.encodeToJSON(), - "transcodingContainer": transcodingContainer, - "transcodingProtocol": transcodingProtocol, - "maxAudioSampleRate": maxAudioSampleRate?.encodeToJSON(), - "maxAudioBitDepth": maxAudioBitDepth?.encodeToJSON(), - "enableRemoteMedia": enableRemoteMedia, - "breakOnNonKeyFrames": breakOnNonKeyFrames, - "enableRedirection": enableRedirection - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "HEAD", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/UserAPI.swift b/JellyfinPlayer/Swaggers/APIs/UserAPI.swift deleted file mode 100644 index 4d38fbd5..00000000 --- a/JellyfinPlayer/Swaggers/APIs/UserAPI.swift +++ /dev/null @@ -1,776 +0,0 @@ -// -// UserAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class UserAPI { - /** - Authenticates a user. - - - parameter userId: (path) The user id. - - parameter pw: (query) The password as plain text. - - parameter password: (query) The password sha1-hash. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func authenticateUser(userId: UUID, pw: String, password: String? = nil, completion: @escaping ((_ data: AuthenticationResult?,_ error: Error?) -> Void)) { - authenticateUserWithRequestBuilder(userId: userId, pw: pw, password: password).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Authenticates a user. - - POST /Users/{userId}/Authenticate - - - - - examples: [{contentType=application/json, example={ - "User" : "", - "ServerId" : "ServerId", - "AccessToken" : "AccessToken", - "SessionInfo" : "" -}}] - - parameter userId: (path) The user id. - - parameter pw: (query) The password as plain text. - - parameter password: (query) The password sha1-hash. (optional) - - - returns: RequestBuilder - */ - open class func authenticateUserWithRequestBuilder(userId: UUID, pw: String, password: String? = nil) -> RequestBuilder { - var path = "/Users/{userId}/Authenticate" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "pw": pw, - "password": password - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Authenticates a user by name. - - - parameter body: (body) The M:Jellyfin.Api.Controllers.UserController.AuthenticateUserByName(Jellyfin.Api.Models.UserDtos.AuthenticateUserByName) request. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func authenticateUserByName(body: UsersAuthenticateByNameBody, completion: @escaping ((_ data: AuthenticationResult?,_ error: Error?) -> Void)) { - authenticateUserByNameWithRequestBuilder(body: body).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Authenticates a user by name. - - POST /Users/AuthenticateByName - - - - - examples: [{contentType=application/json, example={ - "User" : "", - "ServerId" : "ServerId", - "AccessToken" : "AccessToken", - "SessionInfo" : "" -}}] - - parameter body: (body) The M:Jellyfin.Api.Controllers.UserController.AuthenticateUserByName(Jellyfin.Api.Models.UserDtos.AuthenticateUserByName) request. - - - returns: RequestBuilder - */ - open class func authenticateUserByNameWithRequestBuilder(body: UsersAuthenticateByNameBody) -> RequestBuilder { - let path = "/Users/AuthenticateByName" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Authenticates a user with quick connect. - - - parameter body: (body) The Jellyfin.Api.Models.UserDtos.QuickConnectDto request. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func authenticateWithQuickConnect(body: UsersAuthenticateWithQuickConnectBody, completion: @escaping ((_ data: AuthenticationResult?,_ error: Error?) -> Void)) { - authenticateWithQuickConnectWithRequestBuilder(body: body).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Authenticates a user with quick connect. - - POST /Users/AuthenticateWithQuickConnect - - - - - examples: [{contentType=application/json, example={ - "User" : "", - "ServerId" : "ServerId", - "AccessToken" : "AccessToken", - "SessionInfo" : "" -}}] - - parameter body: (body) The Jellyfin.Api.Models.UserDtos.QuickConnectDto request. - - - returns: RequestBuilder - */ - open class func authenticateWithQuickConnectWithRequestBuilder(body: UsersAuthenticateWithQuickConnectBody) -> RequestBuilder { - let path = "/Users/AuthenticateWithQuickConnect" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Creates a user. - - - parameter body: (body) The create user by name request body. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func createUserByName(body: UsersNewBody, completion: @escaping ((_ data: UserDto?,_ error: Error?) -> Void)) { - createUserByNameWithRequestBuilder(body: body).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Creates a user. - - POST /Users/New - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "Policy" : "", - "HasConfiguredEasyPassword" : true, - "EnableAutoLogin" : true, - "Configuration" : "", - "LastLoginDate" : "2000-01-23T04:56:07.000+00:00", - "PrimaryImageTag" : "PrimaryImageTag", - "Name" : "Name", - "ServerId" : "ServerId", - "HasConfiguredPassword" : true, - "ServerName" : "ServerName", - "LastActivityDate" : "2000-01-23T04:56:07.000+00:00", - "PrimaryImageAspectRatio" : 0.8008281904610115, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "HasPassword" : true -}}] - - parameter body: (body) The create user by name request body. - - - returns: RequestBuilder - */ - open class func createUserByNameWithRequestBuilder(body: UsersNewBody) -> RequestBuilder { - let path = "/Users/New" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Deletes a user. - - - parameter userId: (path) The user id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func deleteUser(userId: UUID, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - deleteUserWithRequestBuilder(userId: userId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Deletes a user. - - DELETE /Users/{userId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter userId: (path) The user id. - - - returns: RequestBuilder - */ - open class func deleteUserWithRequestBuilder(userId: UUID) -> RequestBuilder { - var path = "/Users/{userId}" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Initiates the forgot password process for a local user. - - - parameter body: (body) The forgot password request containing the entered username. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func forgotPassword(body: UsersForgotPasswordBody, completion: @escaping ((_ data: ForgotPasswordResult?,_ error: Error?) -> Void)) { - forgotPasswordWithRequestBuilder(body: body).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Initiates the forgot password process for a local user. - - POST /Users/ForgotPassword - - - - - examples: [{contentType=application/json, example={ - "Action" : "", - "PinExpirationDate" : "2000-01-23T04:56:07.000+00:00", - "PinFile" : "PinFile" -}}] - - parameter body: (body) The forgot password request containing the entered username. - - - returns: RequestBuilder - */ - open class func forgotPasswordWithRequestBuilder(body: UsersForgotPasswordBody) -> RequestBuilder { - let path = "/Users/ForgotPassword" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Redeems a forgot password pin. - - - parameter body: (body) The forgot password pin request containing the entered pin. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func forgotPasswordPin(body: ForgotPasswordPinBody, completion: @escaping ((_ data: PinRedeemResult?,_ error: Error?) -> Void)) { - forgotPasswordPinWithRequestBuilder(body: body).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Redeems a forgot password pin. - - POST /Users/ForgotPassword/Pin - - - - - examples: [{contentType=application/json, example={ - "UsersReset" : [ "UsersReset", "UsersReset" ], - "Success" : true -}}] - - parameter body: (body) The forgot password pin request containing the entered pin. - - - returns: RequestBuilder - */ - open class func forgotPasswordPinWithRequestBuilder(body: ForgotPasswordPinBody) -> RequestBuilder { - let path = "/Users/ForgotPassword/Pin" - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Gets the user based on auth token. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getCurrentUser(completion: @escaping ((_ data: UserDto?,_ error: Error?) -> Void)) { - getCurrentUserWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets the user based on auth token. - - GET /Users/Me - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "Policy" : "", - "HasConfiguredEasyPassword" : true, - "EnableAutoLogin" : true, - "Configuration" : "", - "LastLoginDate" : "2000-01-23T04:56:07.000+00:00", - "PrimaryImageTag" : "PrimaryImageTag", - "Name" : "Name", - "ServerId" : "ServerId", - "HasConfiguredPassword" : true, - "ServerName" : "ServerName", - "LastActivityDate" : "2000-01-23T04:56:07.000+00:00", - "PrimaryImageAspectRatio" : 0.8008281904610115, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "HasPassword" : true -}}] - - - returns: RequestBuilder - */ - open class func getCurrentUserWithRequestBuilder() -> RequestBuilder { - let path = "/Users/Me" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a list of publicly visible users for display on a login screen. - - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getPublicUsers(completion: @escaping ((_ data: [UserDto]?,_ error: Error?) -> Void)) { - getPublicUsersWithRequestBuilder().execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a list of publicly visible users for display on a login screen. - - GET /Users/Public - - - - - examples: [{contentType=application/json, example=[ { - "Policy" : "", - "HasConfiguredEasyPassword" : true, - "EnableAutoLogin" : true, - "Configuration" : "", - "LastLoginDate" : "2000-01-23T04:56:07.000+00:00", - "PrimaryImageTag" : "PrimaryImageTag", - "Name" : "Name", - "ServerId" : "ServerId", - "HasConfiguredPassword" : true, - "ServerName" : "ServerName", - "LastActivityDate" : "2000-01-23T04:56:07.000+00:00", - "PrimaryImageAspectRatio" : 0.8008281904610115, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "HasPassword" : true -}, { - "Policy" : "", - "HasConfiguredEasyPassword" : true, - "EnableAutoLogin" : true, - "Configuration" : "", - "LastLoginDate" : "2000-01-23T04:56:07.000+00:00", - "PrimaryImageTag" : "PrimaryImageTag", - "Name" : "Name", - "ServerId" : "ServerId", - "HasConfiguredPassword" : true, - "ServerName" : "ServerName", - "LastActivityDate" : "2000-01-23T04:56:07.000+00:00", - "PrimaryImageAspectRatio" : 0.8008281904610115, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "HasPassword" : true -} ]}] - - - returns: RequestBuilder<[UserDto]> - */ - open class func getPublicUsersWithRequestBuilder() -> RequestBuilder<[UserDto]> { - let path = "/Users/Public" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[UserDto]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a user by Id. - - - parameter userId: (path) The user id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getUserById(userId: UUID, completion: @escaping ((_ data: UserDto?,_ error: Error?) -> Void)) { - getUserByIdWithRequestBuilder(userId: userId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a user by Id. - - GET /Users/{userId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "Policy" : "", - "HasConfiguredEasyPassword" : true, - "EnableAutoLogin" : true, - "Configuration" : "", - "LastLoginDate" : "2000-01-23T04:56:07.000+00:00", - "PrimaryImageTag" : "PrimaryImageTag", - "Name" : "Name", - "ServerId" : "ServerId", - "HasConfiguredPassword" : true, - "ServerName" : "ServerName", - "LastActivityDate" : "2000-01-23T04:56:07.000+00:00", - "PrimaryImageAspectRatio" : 0.8008281904610115, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "HasPassword" : true -}}] - - parameter userId: (path) The user id. - - - returns: RequestBuilder - */ - open class func getUserByIdWithRequestBuilder(userId: UUID) -> RequestBuilder { - var path = "/Users/{userId}" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a list of users. - - - parameter isHidden: (query) Optional filter by IsHidden=true or false. (optional) - - parameter isDisabled: (query) Optional filter by IsDisabled=true or false. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getUsers(isHidden: Bool? = nil, isDisabled: Bool? = nil, completion: @escaping ((_ data: [UserDto]?,_ error: Error?) -> Void)) { - getUsersWithRequestBuilder(isHidden: isHidden, isDisabled: isDisabled).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a list of users. - - GET /Users - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "Policy" : "", - "HasConfiguredEasyPassword" : true, - "EnableAutoLogin" : true, - "Configuration" : "", - "LastLoginDate" : "2000-01-23T04:56:07.000+00:00", - "PrimaryImageTag" : "PrimaryImageTag", - "Name" : "Name", - "ServerId" : "ServerId", - "HasConfiguredPassword" : true, - "ServerName" : "ServerName", - "LastActivityDate" : "2000-01-23T04:56:07.000+00:00", - "PrimaryImageAspectRatio" : 0.8008281904610115, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "HasPassword" : true -}, { - "Policy" : "", - "HasConfiguredEasyPassword" : true, - "EnableAutoLogin" : true, - "Configuration" : "", - "LastLoginDate" : "2000-01-23T04:56:07.000+00:00", - "PrimaryImageTag" : "PrimaryImageTag", - "Name" : "Name", - "ServerId" : "ServerId", - "HasConfiguredPassword" : true, - "ServerName" : "ServerName", - "LastActivityDate" : "2000-01-23T04:56:07.000+00:00", - "PrimaryImageAspectRatio" : 0.8008281904610115, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "HasPassword" : true -} ]}] - - parameter isHidden: (query) Optional filter by IsHidden=true or false. (optional) - - parameter isDisabled: (query) Optional filter by IsDisabled=true or false. (optional) - - - returns: RequestBuilder<[UserDto]> - */ - open class func getUsersWithRequestBuilder(isHidden: Bool? = nil, isDisabled: Bool? = nil) -> RequestBuilder<[UserDto]> { - let path = "/Users" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "isHidden": isHidden, - "isDisabled": isDisabled - ]) - - - let requestBuilder: RequestBuilder<[UserDto]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Updates a user. - - - parameter body: (body) The updated user model. - - parameter userId: (path) The user id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func updateUser(body: UsersUserIdBody, userId: UUID, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - updateUserWithRequestBuilder(body: body, userId: userId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Updates a user. - - POST /Users/{userId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The updated user model. - - parameter userId: (path) The user id. - - - returns: RequestBuilder - */ - open class func updateUserWithRequestBuilder(body: UsersUserIdBody, userId: UUID) -> RequestBuilder { - var path = "/Users/{userId}" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Updates a user configuration. - - - parameter body: (body) The new user configuration. - - parameter userId: (path) The user id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func updateUserConfiguration(body: UserIdConfigurationBody, userId: UUID, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - updateUserConfigurationWithRequestBuilder(body: body, userId: userId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Updates a user configuration. - - POST /Users/{userId}/Configuration - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The new user configuration. - - parameter userId: (path) The user id. - - - returns: RequestBuilder - */ - open class func updateUserConfigurationWithRequestBuilder(body: UserIdConfigurationBody, userId: UUID) -> RequestBuilder { - var path = "/Users/{userId}/Configuration" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Updates a user's easy password. - - - parameter body: (body) The M:Jellyfin.Api.Controllers.UserController.UpdateUserEasyPassword(System.Guid,Jellyfin.Api.Models.UserDtos.UpdateUserEasyPassword) request. - - parameter userId: (path) The user id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func updateUserEasyPassword(body: UserIdEasyPasswordBody, userId: UUID, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - updateUserEasyPasswordWithRequestBuilder(body: body, userId: userId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Updates a user's easy password. - - POST /Users/{userId}/EasyPassword - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The M:Jellyfin.Api.Controllers.UserController.UpdateUserEasyPassword(System.Guid,Jellyfin.Api.Models.UserDtos.UpdateUserEasyPassword) request. - - parameter userId: (path) The user id. - - - returns: RequestBuilder - */ - open class func updateUserEasyPasswordWithRequestBuilder(body: UserIdEasyPasswordBody, userId: UUID) -> RequestBuilder { - var path = "/Users/{userId}/EasyPassword" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Updates a user's password. - - - parameter body: (body) The M:Jellyfin.Api.Controllers.UserController.UpdateUserPassword(System.Guid,Jellyfin.Api.Models.UserDtos.UpdateUserPassword) request. - - parameter userId: (path) The user id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func updateUserPassword(body: UserIdPasswordBody, userId: UUID, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - updateUserPasswordWithRequestBuilder(body: body, userId: userId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Updates a user's password. - - POST /Users/{userId}/Password - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The M:Jellyfin.Api.Controllers.UserController.UpdateUserPassword(System.Guid,Jellyfin.Api.Models.UserDtos.UpdateUserPassword) request. - - parameter userId: (path) The user id. - - - returns: RequestBuilder - */ - open class func updateUserPasswordWithRequestBuilder(body: UserIdPasswordBody, userId: UUID) -> RequestBuilder { - var path = "/Users/{userId}/Password" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } - /** - Updates a user policy. - - - parameter body: (body) The new user policy. - - parameter userId: (path) The user id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func updateUserPolicy(body: UserIdPolicyBody, userId: UUID, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - updateUserPolicyWithRequestBuilder(body: body, userId: userId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Updates a user policy. - - POST /Users/{userId}/Policy - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter body: (body) The new user policy. - - parameter userId: (path) The user id. - - - returns: RequestBuilder - */ - open class func updateUserPolicyWithRequestBuilder(body: UserIdPolicyBody, userId: UUID) -> RequestBuilder { - var path = "/Users/{userId}/Policy" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/UserLibraryAPI.swift b/JellyfinPlayer/Swaggers/APIs/UserLibraryAPI.swift deleted file mode 100644 index 2e1d5ace..00000000 --- a/JellyfinPlayer/Swaggers/APIs/UserLibraryAPI.swift +++ /dev/null @@ -1,6882 +0,0 @@ -// -// UserLibraryAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class UserLibraryAPI { - /** - Deletes a user's saved personal rating for an item. - - - parameter userId: (path) User id. - - parameter itemId: (path) Item id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func deleteUserItemRating(userId: UUID, itemId: UUID, completion: @escaping ((_ data: UserItemDataDto?,_ error: Error?) -> Void)) { - deleteUserItemRatingWithRequestBuilder(userId: userId, itemId: itemId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Deletes a user's saved personal rating for an item. - - DELETE /Users/{userId}/Items/{itemId}/Rating - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "UnplayedItemCount" : 1, - "Played" : true, - "PlayedPercentage" : 6.027456183070403, - "Rating" : 0.8008281904610115, - "PlayCount" : 5, - "PlaybackPositionTicks" : 5, - "LastPlayedDate" : "2000-01-23T04:56:07.000+00:00", - "Likes" : true, - "IsFavorite" : true, - "ItemId" : "ItemId", - "Key" : "Key" -}}] - - parameter userId: (path) User id. - - parameter itemId: (path) Item id. - - - returns: RequestBuilder - */ - open class func deleteUserItemRatingWithRequestBuilder(userId: UUID, itemId: UUID) -> RequestBuilder { - var path = "/Users/{userId}/Items/{itemId}/Rating" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets intros to play before the main media item plays. - - - parameter userId: (path) User id. - - parameter itemId: (path) Item id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getIntros(userId: UUID, itemId: UUID, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getIntrosWithRequestBuilder(userId: userId, itemId: itemId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets intros to play before the main media item plays. - - GET /Users/{userId}/Items/{itemId}/Intros - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter userId: (path) User id. - - parameter itemId: (path) Item id. - - - returns: RequestBuilder - */ - open class func getIntrosWithRequestBuilder(userId: UUID, itemId: UUID) -> RequestBuilder { - var path = "/Users/{userId}/Items/{itemId}/Intros" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets an item from a user's library. - - - parameter userId: (path) User id. - - parameter itemId: (path) Item id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getItem(userId: UUID, itemId: UUID, completion: @escaping ((_ data: BaseItemDto?,_ error: Error?) -> Void)) { - getItemWithRequestBuilder(userId: userId, itemId: itemId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets an item from a user's library. - - GET /Users/{userId}/Items/{itemId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 -}}] - - parameter userId: (path) User id. - - parameter itemId: (path) Item id. - - - returns: RequestBuilder - */ - open class func getItemWithRequestBuilder(userId: UUID, itemId: UUID) -> RequestBuilder { - var path = "/Users/{userId}/Items/{itemId}" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets latest media. - - - parameter userId: (path) User id. - - parameter parentId: (query) Specify this to localize the search to a specific item or folder. Omit to use the root. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter includeItemTypes: (query) Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. (optional) - - parameter isPlayed: (query) Filter by items that are played, or not. (optional) - - parameter enableImages: (query) Optional. include image information in output. (optional) - - parameter imageTypeLimit: (query) Optional. the max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter enableUserData: (query) Optional. include user data. (optional) - - parameter limit: (query) Return item limit. (optional, default to 20) - - parameter groupItems: (query) Whether or not to group items into a parent container. (optional, default to true) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getLatestMedia(userId: UUID, parentId: UUID? = nil, fields: [ItemFields]? = nil, includeItemTypes: [String]? = nil, isPlayed: Bool? = nil, enableImages: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, enableUserData: Bool? = nil, limit: Int? = nil, groupItems: Bool? = nil, completion: @escaping ((_ data: [BaseItemDto]?,_ error: Error?) -> Void)) { - getLatestMediaWithRequestBuilder(userId: userId, parentId: parentId, fields: fields, includeItemTypes: includeItemTypes, isPlayed: isPlayed, enableImages: enableImages, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes, enableUserData: enableUserData, limit: limit, groupItems: groupItems).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets latest media. - - GET /Users/{userId}/Items/Latest - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 -}, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 -} ]}] - - parameter userId: (path) User id. - - parameter parentId: (query) Specify this to localize the search to a specific item or folder. Omit to use the root. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter includeItemTypes: (query) Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. (optional) - - parameter isPlayed: (query) Filter by items that are played, or not. (optional) - - parameter enableImages: (query) Optional. include image information in output. (optional) - - parameter imageTypeLimit: (query) Optional. the max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter enableUserData: (query) Optional. include user data. (optional) - - parameter limit: (query) Return item limit. (optional, default to 20) - - parameter groupItems: (query) Whether or not to group items into a parent container. (optional, default to true) - - - returns: RequestBuilder<[BaseItemDto]> - */ - open class func getLatestMediaWithRequestBuilder(userId: UUID, parentId: UUID? = nil, fields: [ItemFields]? = nil, includeItemTypes: [String]? = nil, isPlayed: Bool? = nil, enableImages: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, enableUserData: Bool? = nil, limit: Int? = nil, groupItems: Bool? = nil) -> RequestBuilder<[BaseItemDto]> { - var path = "/Users/{userId}/Items/Latest" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "parentId": parentId, - "fields": fields, - "includeItemTypes": includeItemTypes, - "isPlayed": isPlayed, - "enableImages": enableImages, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes, - "enableUserData": enableUserData, - "limit": limit?.encodeToJSON(), - "groupItems": groupItems - ]) - - - let requestBuilder: RequestBuilder<[BaseItemDto]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets local trailers for an item. - - - parameter userId: (path) User id. - - parameter itemId: (path) Item id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getLocalTrailers(userId: UUID, itemId: UUID, completion: @escaping ((_ data: [BaseItemDto]?,_ error: Error?) -> Void)) { - getLocalTrailersWithRequestBuilder(userId: userId, itemId: itemId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets local trailers for an item. - - GET /Users/{userId}/Items/{itemId}/LocalTrailers - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 -}, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 -} ]}] - - parameter userId: (path) User id. - - parameter itemId: (path) Item id. - - - returns: RequestBuilder<[BaseItemDto]> - */ - open class func getLocalTrailersWithRequestBuilder(userId: UUID, itemId: UUID) -> RequestBuilder<[BaseItemDto]> { - var path = "/Users/{userId}/Items/{itemId}/LocalTrailers" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[BaseItemDto]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets the root folder from a user's library. - - - parameter userId: (path) User id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getRootFolder(userId: UUID, completion: @escaping ((_ data: BaseItemDto?,_ error: Error?) -> Void)) { - getRootFolderWithRequestBuilder(userId: userId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets the root folder from a user's library. - - GET /Users/{userId}/Items/Root - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 -}}] - - parameter userId: (path) User id. - - - returns: RequestBuilder - */ - open class func getRootFolderWithRequestBuilder(userId: UUID) -> RequestBuilder { - var path = "/Users/{userId}/Items/Root" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets special features for an item. - - - parameter userId: (path) User id. - - parameter itemId: (path) Item id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getSpecialFeatures(userId: UUID, itemId: UUID, completion: @escaping ((_ data: [BaseItemDto]?,_ error: Error?) -> Void)) { - getSpecialFeaturesWithRequestBuilder(userId: userId, itemId: itemId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets special features for an item. - - GET /Users/{userId}/Items/{itemId}/SpecialFeatures - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=[ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 -}, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 -} ]}] - - parameter userId: (path) User id. - - parameter itemId: (path) Item id. - - - returns: RequestBuilder<[BaseItemDto]> - */ - open class func getSpecialFeaturesWithRequestBuilder(userId: UUID, itemId: UUID) -> RequestBuilder<[BaseItemDto]> { - var path = "/Users/{userId}/Items/{itemId}/SpecialFeatures" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[BaseItemDto]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Marks an item as a favorite. - - - parameter userId: (path) User id. - - parameter itemId: (path) Item id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func markFavoriteItem(userId: UUID, itemId: UUID, completion: @escaping ((_ data: UserItemDataDto?,_ error: Error?) -> Void)) { - markFavoriteItemWithRequestBuilder(userId: userId, itemId: itemId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Marks an item as a favorite. - - POST /Users/{userId}/FavoriteItems/{itemId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "UnplayedItemCount" : 1, - "Played" : true, - "PlayedPercentage" : 6.027456183070403, - "Rating" : 0.8008281904610115, - "PlayCount" : 5, - "PlaybackPositionTicks" : 5, - "LastPlayedDate" : "2000-01-23T04:56:07.000+00:00", - "Likes" : true, - "IsFavorite" : true, - "ItemId" : "ItemId", - "Key" : "Key" -}}] - - parameter userId: (path) User id. - - parameter itemId: (path) Item id. - - - returns: RequestBuilder - */ - open class func markFavoriteItemWithRequestBuilder(userId: UUID, itemId: UUID) -> RequestBuilder { - var path = "/Users/{userId}/FavoriteItems/{itemId}" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Unmarks item as a favorite. - - - parameter userId: (path) User id. - - parameter itemId: (path) Item id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func unmarkFavoriteItem(userId: UUID, itemId: UUID, completion: @escaping ((_ data: UserItemDataDto?,_ error: Error?) -> Void)) { - unmarkFavoriteItemWithRequestBuilder(userId: userId, itemId: itemId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Unmarks item as a favorite. - - DELETE /Users/{userId}/FavoriteItems/{itemId} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "UnplayedItemCount" : 1, - "Played" : true, - "PlayedPercentage" : 6.027456183070403, - "Rating" : 0.8008281904610115, - "PlayCount" : 5, - "PlaybackPositionTicks" : 5, - "LastPlayedDate" : "2000-01-23T04:56:07.000+00:00", - "Likes" : true, - "IsFavorite" : true, - "ItemId" : "ItemId", - "Key" : "Key" -}}] - - parameter userId: (path) User id. - - parameter itemId: (path) Item id. - - - returns: RequestBuilder - */ - open class func unmarkFavoriteItemWithRequestBuilder(userId: UUID, itemId: UUID) -> RequestBuilder { - var path = "/Users/{userId}/FavoriteItems/{itemId}" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Updates a user's rating for an item. - - - parameter userId: (path) User id. - - parameter itemId: (path) Item id. - - parameter likes: (query) Whether this M:Jellyfin.Api.Controllers.UserLibraryController.UpdateUserItemRating(System.Guid,System.Guid,System.Nullable{System.Boolean}) is likes. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func updateUserItemRating(userId: UUID, itemId: UUID, likes: Bool? = nil, completion: @escaping ((_ data: UserItemDataDto?,_ error: Error?) -> Void)) { - updateUserItemRatingWithRequestBuilder(userId: userId, itemId: itemId, likes: likes).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Updates a user's rating for an item. - - POST /Users/{userId}/Items/{itemId}/Rating - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "UnplayedItemCount" : 1, - "Played" : true, - "PlayedPercentage" : 6.027456183070403, - "Rating" : 0.8008281904610115, - "PlayCount" : 5, - "PlaybackPositionTicks" : 5, - "LastPlayedDate" : "2000-01-23T04:56:07.000+00:00", - "Likes" : true, - "IsFavorite" : true, - "ItemId" : "ItemId", - "Key" : "Key" -}}] - - parameter userId: (path) User id. - - parameter itemId: (path) Item id. - - parameter likes: (query) Whether this M:Jellyfin.Api.Controllers.UserLibraryController.UpdateUserItemRating(System.Guid,System.Guid,System.Nullable{System.Boolean}) is likes. (optional) - - - returns: RequestBuilder - */ - open class func updateUserItemRatingWithRequestBuilder(userId: UUID, itemId: UUID, likes: Bool? = nil) -> RequestBuilder { - var path = "/Users/{userId}/Items/{itemId}/Rating" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "likes": likes - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/UserViewsAPI.swift b/JellyfinPlayer/Swaggers/APIs/UserViewsAPI.swift deleted file mode 100644 index a44df2b3..00000000 --- a/JellyfinPlayer/Swaggers/APIs/UserViewsAPI.swift +++ /dev/null @@ -1,1376 +0,0 @@ -// -// UserViewsAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class UserViewsAPI { - /** - Get user view grouping options. - - - parameter userId: (path) User id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getGroupingOptions(userId: UUID, completion: @escaping ((_ data: [SpecialViewOptionDto]?,_ error: Error?) -> Void)) { - getGroupingOptionsWithRequestBuilder(userId: userId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get user view grouping options. - - GET /Users/{userId}/GroupingOptions - - - - - examples: [{contentType=application/json, example=[ { - "Id" : "Id", - "Name" : "Name" -}, { - "Id" : "Id", - "Name" : "Name" -} ]}] - - parameter userId: (path) User id. - - - returns: RequestBuilder<[SpecialViewOptionDto]> - */ - open class func getGroupingOptionsWithRequestBuilder(userId: UUID) -> RequestBuilder<[SpecialViewOptionDto]> { - var path = "/Users/{userId}/GroupingOptions" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder<[SpecialViewOptionDto]>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get user views. - - - parameter userId: (path) User id. - - parameter includeExternalContent: (query) Whether or not to include external views such as channels or live tv. (optional) - - parameter presetViews: (query) Preset views. (optional) - - parameter includeHidden: (query) Whether or not to include hidden content. (optional, default to false) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getUserViews(userId: UUID, includeExternalContent: Bool? = nil, presetViews: [String]? = nil, includeHidden: Bool? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getUserViewsWithRequestBuilder(userId: userId, includeExternalContent: includeExternalContent, presetViews: presetViews, includeHidden: includeHidden).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get user views. - - GET /Users/{userId}/Views - - - - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter userId: (path) User id. - - parameter includeExternalContent: (query) Whether or not to include external views such as channels or live tv. (optional) - - parameter presetViews: (query) Preset views. (optional) - - parameter includeHidden: (query) Whether or not to include hidden content. (optional, default to false) - - - returns: RequestBuilder - */ - open class func getUserViewsWithRequestBuilder(userId: UUID, includeExternalContent: Bool? = nil, presetViews: [String]? = nil, includeHidden: Bool? = nil) -> RequestBuilder { - var path = "/Users/{userId}/Views" - let userIdPreEscape = "\(userId)" - let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{userId}", with: userIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "includeExternalContent": includeExternalContent, - "presetViews": presetViews, - "includeHidden": includeHidden - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/VideoAttachmentsAPI.swift b/JellyfinPlayer/Swaggers/APIs/VideoAttachmentsAPI.swift deleted file mode 100644 index d3ab0703..00000000 --- a/JellyfinPlayer/Swaggers/APIs/VideoAttachmentsAPI.swift +++ /dev/null @@ -1,60 +0,0 @@ -// -// VideoAttachmentsAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class VideoAttachmentsAPI { - /** - Get video attachment. - - - parameter videoId: (path) Video ID. - - parameter mediaSourceId: (path) Media Source ID. - - parameter index: (path) Attachment Index. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getAttachment(videoId: UUID, mediaSourceId: String, index: Int, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getAttachmentWithRequestBuilder(videoId: videoId, mediaSourceId: mediaSourceId, index: index).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get video attachment. - - GET /Videos/{videoId}/{mediaSourceId}/Attachments/{index} - - - - - examples: [{contentType=application/json, example=""}] - - parameter videoId: (path) Video ID. - - parameter mediaSourceId: (path) Media Source ID. - - parameter index: (path) Attachment Index. - - - returns: RequestBuilder - */ - open class func getAttachmentWithRequestBuilder(videoId: UUID, mediaSourceId: String, index: Int) -> RequestBuilder { - var path = "/Videos/{videoId}/{mediaSourceId}/Attachments/{index}" - let videoIdPreEscape = "\(videoId)" - let videoIdPostEscape = videoIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{videoId}", with: videoIdPostEscape, options: .literal, range: nil) - let mediaSourceIdPreEscape = "\(mediaSourceId)" - let mediaSourceIdPostEscape = mediaSourceIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{mediaSourceId}", with: mediaSourceIdPostEscape, options: .literal, range: nil) - let indexPreEscape = "\(index)" - let indexPostEscape = indexPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{index}", with: indexPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/VideoHlsAPI.swift b/JellyfinPlayer/Swaggers/APIs/VideoHlsAPI.swift deleted file mode 100644 index 220ee457..00000000 --- a/JellyfinPlayer/Swaggers/APIs/VideoHlsAPI.swift +++ /dev/null @@ -1,208 +0,0 @@ -// -// VideoHlsAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class VideoHlsAPI { - /** - Gets a hls live stream. - - - parameter itemId: (path) The item id. - - parameter container: (query) The audio container. (optional) - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment lenght. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamorphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - parameter maxWidth: (query) Optional. The max width. (optional) - - parameter maxHeight: (query) Optional. The max height. (optional) - - parameter enableSubtitlesInManifest: (query) Optional. Whether to enable subtitles in the manifest. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getLiveHlsStream(itemId: UUID, container: String? = nil, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, mediaSourceId: String? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod12? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context12? = nil, streamOptions: [String:String]? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, enableSubtitlesInManifest: Bool? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getLiveHlsStreamWithRequestBuilder(itemId: itemId, container: container, _static: _static, params: params, tag: tag, deviceProfileId: deviceProfileId, playSessionId: playSessionId, segmentContainer: segmentContainer, segmentLength: segmentLength, minSegments: minSegments, mediaSourceId: mediaSourceId, deviceId: deviceId, audioCodec: audioCodec, enableAutoStreamCopy: enableAutoStreamCopy, allowVideoStreamCopy: allowVideoStreamCopy, allowAudioStreamCopy: allowAudioStreamCopy, breakOnNonKeyFrames: breakOnNonKeyFrames, audioSampleRate: audioSampleRate, maxAudioBitDepth: maxAudioBitDepth, audioBitRate: audioBitRate, audioChannels: audioChannels, maxAudioChannels: maxAudioChannels, profile: profile, level: level, framerate: framerate, maxFramerate: maxFramerate, copyTimestamps: copyTimestamps, startTimeTicks: startTimeTicks, width: width, height: height, videoBitRate: videoBitRate, subtitleStreamIndex: subtitleStreamIndex, subtitleMethod: subtitleMethod, maxRefFrames: maxRefFrames, maxVideoBitDepth: maxVideoBitDepth, requireAvc: requireAvc, deInterlace: deInterlace, requireNonAnamorphic: requireNonAnamorphic, transcodingMaxAudioChannels: transcodingMaxAudioChannels, cpuCoreLimit: cpuCoreLimit, liveStreamId: liveStreamId, enableMpegtsM2TsMode: enableMpegtsM2TsMode, videoCodec: videoCodec, subtitleCodec: subtitleCodec, transcodeReasons: transcodeReasons, audioStreamIndex: audioStreamIndex, videoStreamIndex: videoStreamIndex, context: context, streamOptions: streamOptions, maxWidth: maxWidth, maxHeight: maxHeight, enableSubtitlesInManifest: enableSubtitlesInManifest).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a hls live stream. - - GET /Videos/{itemId}/live.m3u8 - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) The item id. - - parameter container: (query) The audio container. (optional) - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment lenght. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamorphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - parameter maxWidth: (query) Optional. The max width. (optional) - - parameter maxHeight: (query) Optional. The max height. (optional) - - parameter enableSubtitlesInManifest: (query) Optional. Whether to enable subtitles in the manifest. (optional) - - - returns: RequestBuilder - */ - open class func getLiveHlsStreamWithRequestBuilder(itemId: UUID, container: String? = nil, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, mediaSourceId: String? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod12? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context12? = nil, streamOptions: [String:String]? = nil, maxWidth: Int? = nil, maxHeight: Int? = nil, enableSubtitlesInManifest: Bool? = nil) -> RequestBuilder { - var path = "/Videos/{itemId}/live.m3u8" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "container": container, - "static": _static, - "params": params, - "tag": tag, - "deviceProfileId": deviceProfileId, - "playSessionId": playSessionId, - "segmentContainer": segmentContainer, - "segmentLength": segmentLength?.encodeToJSON(), - "minSegments": minSegments?.encodeToJSON(), - "mediaSourceId": mediaSourceId, - "deviceId": deviceId, - "audioCodec": audioCodec, - "enableAutoStreamCopy": enableAutoStreamCopy, - "allowVideoStreamCopy": allowVideoStreamCopy, - "allowAudioStreamCopy": allowAudioStreamCopy, - "breakOnNonKeyFrames": breakOnNonKeyFrames, - "audioSampleRate": audioSampleRate?.encodeToJSON(), - "maxAudioBitDepth": maxAudioBitDepth?.encodeToJSON(), - "audioBitRate": audioBitRate?.encodeToJSON(), - "audioChannels": audioChannels?.encodeToJSON(), - "maxAudioChannels": maxAudioChannels?.encodeToJSON(), - "profile": profile, - "level": level, - "framerate": framerate, - "maxFramerate": maxFramerate, - "copyTimestamps": copyTimestamps, - "startTimeTicks": startTimeTicks?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "videoBitRate": videoBitRate?.encodeToJSON(), - "subtitleStreamIndex": subtitleStreamIndex?.encodeToJSON(), - "subtitleMethod": subtitleMethod, - "maxRefFrames": maxRefFrames?.encodeToJSON(), - "maxVideoBitDepth": maxVideoBitDepth?.encodeToJSON(), - "requireAvc": requireAvc, - "deInterlace": deInterlace, - "requireNonAnamorphic": requireNonAnamorphic, - "transcodingMaxAudioChannels": transcodingMaxAudioChannels?.encodeToJSON(), - "cpuCoreLimit": cpuCoreLimit?.encodeToJSON(), - "liveStreamId": liveStreamId, - "enableMpegtsM2TsMode": enableMpegtsM2TsMode, - "videoCodec": videoCodec, - "subtitleCodec": subtitleCodec, - "transcodeReasons": transcodeReasons, - "audioStreamIndex": audioStreamIndex?.encodeToJSON(), - "videoStreamIndex": videoStreamIndex?.encodeToJSON(), - "context": context, - "streamOptions": streamOptions, - "maxWidth": maxWidth?.encodeToJSON(), - "maxHeight": maxHeight?.encodeToJSON(), - "enableSubtitlesInManifest": enableSubtitlesInManifest - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/VideosAPI.swift b/JellyfinPlayer/Swaggers/APIs/VideosAPI.swift deleted file mode 100644 index e9da0c72..00000000 --- a/JellyfinPlayer/Swaggers/APIs/VideosAPI.swift +++ /dev/null @@ -1,2152 +0,0 @@ -// -// VideosAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class VideosAPI { - /** - Removes alternate video sources. - - - parameter itemId: (path) The item id. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func deleteAlternateSources(itemId: UUID, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - deleteAlternateSourcesWithRequestBuilder(itemId: itemId).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Removes alternate video sources. - - DELETE /Videos/{itemId}/AlternateSources - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter itemId: (path) The item id. - - - returns: RequestBuilder - */ - open class func deleteAlternateSourcesWithRequestBuilder(itemId: UUID) -> RequestBuilder { - var path = "/Videos/{itemId}/AlternateSources" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - let url = URLComponents(string: URLString) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets additional parts for a video. - - - parameter itemId: (path) The item id. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getAdditionalPart(itemId: UUID, userId: UUID? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getAdditionalPartWithRequestBuilder(itemId: itemId, userId: userId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets additional parts for a video. - - GET /Videos/{itemId}/AdditionalParts - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter itemId: (path) The item id. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - - returns: RequestBuilder - */ - open class func getAdditionalPartWithRequestBuilder(itemId: UUID, userId: UUID? = nil) -> RequestBuilder { - var path = "/Videos/{itemId}/AdditionalParts" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a video stream. - - - parameter itemId: (path) The item id. - - parameter container: (query) The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv. (optional) - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment length. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamorphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getVideoStream(itemId: UUID, container: String? = nil, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, mediaSourceId: String? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod13? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context13? = nil, streamOptions: [String:String]? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getVideoStreamWithRequestBuilder(itemId: itemId, container: container, _static: _static, params: params, tag: tag, deviceProfileId: deviceProfileId, playSessionId: playSessionId, segmentContainer: segmentContainer, segmentLength: segmentLength, minSegments: minSegments, mediaSourceId: mediaSourceId, deviceId: deviceId, audioCodec: audioCodec, enableAutoStreamCopy: enableAutoStreamCopy, allowVideoStreamCopy: allowVideoStreamCopy, allowAudioStreamCopy: allowAudioStreamCopy, breakOnNonKeyFrames: breakOnNonKeyFrames, audioSampleRate: audioSampleRate, maxAudioBitDepth: maxAudioBitDepth, audioBitRate: audioBitRate, audioChannels: audioChannels, maxAudioChannels: maxAudioChannels, profile: profile, level: level, framerate: framerate, maxFramerate: maxFramerate, copyTimestamps: copyTimestamps, startTimeTicks: startTimeTicks, width: width, height: height, videoBitRate: videoBitRate, subtitleStreamIndex: subtitleStreamIndex, subtitleMethod: subtitleMethod, maxRefFrames: maxRefFrames, maxVideoBitDepth: maxVideoBitDepth, requireAvc: requireAvc, deInterlace: deInterlace, requireNonAnamorphic: requireNonAnamorphic, transcodingMaxAudioChannels: transcodingMaxAudioChannels, cpuCoreLimit: cpuCoreLimit, liveStreamId: liveStreamId, enableMpegtsM2TsMode: enableMpegtsM2TsMode, videoCodec: videoCodec, subtitleCodec: subtitleCodec, transcodeReasons: transcodeReasons, audioStreamIndex: audioStreamIndex, videoStreamIndex: videoStreamIndex, context: context, streamOptions: streamOptions).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a video stream. - - GET /Videos/{itemId}/stream - - - - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) The item id. - - parameter container: (query) The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv. (optional) - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment length. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamorphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - - returns: RequestBuilder - */ - open class func getVideoStreamWithRequestBuilder(itemId: UUID, container: String? = nil, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, mediaSourceId: String? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod13? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context13? = nil, streamOptions: [String:String]? = nil) -> RequestBuilder { - var path = "/Videos/{itemId}/stream" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "container": container, - "static": _static, - "params": params, - "tag": tag, - "deviceProfileId": deviceProfileId, - "playSessionId": playSessionId, - "segmentContainer": segmentContainer, - "segmentLength": segmentLength?.encodeToJSON(), - "minSegments": minSegments?.encodeToJSON(), - "mediaSourceId": mediaSourceId, - "deviceId": deviceId, - "audioCodec": audioCodec, - "enableAutoStreamCopy": enableAutoStreamCopy, - "allowVideoStreamCopy": allowVideoStreamCopy, - "allowAudioStreamCopy": allowAudioStreamCopy, - "breakOnNonKeyFrames": breakOnNonKeyFrames, - "audioSampleRate": audioSampleRate?.encodeToJSON(), - "maxAudioBitDepth": maxAudioBitDepth?.encodeToJSON(), - "audioBitRate": audioBitRate?.encodeToJSON(), - "audioChannels": audioChannels?.encodeToJSON(), - "maxAudioChannels": maxAudioChannels?.encodeToJSON(), - "profile": profile, - "level": level, - "framerate": framerate, - "maxFramerate": maxFramerate, - "copyTimestamps": copyTimestamps, - "startTimeTicks": startTimeTicks?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "videoBitRate": videoBitRate?.encodeToJSON(), - "subtitleStreamIndex": subtitleStreamIndex?.encodeToJSON(), - "subtitleMethod": subtitleMethod, - "maxRefFrames": maxRefFrames?.encodeToJSON(), - "maxVideoBitDepth": maxVideoBitDepth?.encodeToJSON(), - "requireAvc": requireAvc, - "deInterlace": deInterlace, - "requireNonAnamorphic": requireNonAnamorphic, - "transcodingMaxAudioChannels": transcodingMaxAudioChannels?.encodeToJSON(), - "cpuCoreLimit": cpuCoreLimit?.encodeToJSON(), - "liveStreamId": liveStreamId, - "enableMpegtsM2TsMode": enableMpegtsM2TsMode, - "videoCodec": videoCodec, - "subtitleCodec": subtitleCodec, - "transcodeReasons": transcodeReasons, - "audioStreamIndex": audioStreamIndex?.encodeToJSON(), - "videoStreamIndex": videoStreamIndex?.encodeToJSON(), - "context": context, - "streamOptions": streamOptions - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a video stream. - - - parameter itemId: (path) The item id. - - parameter container: (path) The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv. - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment length. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamorphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getVideoStreamByContainer(itemId: UUID, container: String, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, mediaSourceId: String? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod15? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context15? = nil, streamOptions: [String:String]? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - getVideoStreamByContainerWithRequestBuilder(itemId: itemId, container: container, _static: _static, params: params, tag: tag, deviceProfileId: deviceProfileId, playSessionId: playSessionId, segmentContainer: segmentContainer, segmentLength: segmentLength, minSegments: minSegments, mediaSourceId: mediaSourceId, deviceId: deviceId, audioCodec: audioCodec, enableAutoStreamCopy: enableAutoStreamCopy, allowVideoStreamCopy: allowVideoStreamCopy, allowAudioStreamCopy: allowAudioStreamCopy, breakOnNonKeyFrames: breakOnNonKeyFrames, audioSampleRate: audioSampleRate, maxAudioBitDepth: maxAudioBitDepth, audioBitRate: audioBitRate, audioChannels: audioChannels, maxAudioChannels: maxAudioChannels, profile: profile, level: level, framerate: framerate, maxFramerate: maxFramerate, copyTimestamps: copyTimestamps, startTimeTicks: startTimeTicks, width: width, height: height, videoBitRate: videoBitRate, subtitleStreamIndex: subtitleStreamIndex, subtitleMethod: subtitleMethod, maxRefFrames: maxRefFrames, maxVideoBitDepth: maxVideoBitDepth, requireAvc: requireAvc, deInterlace: deInterlace, requireNonAnamorphic: requireNonAnamorphic, transcodingMaxAudioChannels: transcodingMaxAudioChannels, cpuCoreLimit: cpuCoreLimit, liveStreamId: liveStreamId, enableMpegtsM2TsMode: enableMpegtsM2TsMode, videoCodec: videoCodec, subtitleCodec: subtitleCodec, transcodeReasons: transcodeReasons, audioStreamIndex: audioStreamIndex, videoStreamIndex: videoStreamIndex, context: context, streamOptions: streamOptions).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a video stream. - - GET /Videos/{itemId}/stream.{container} - - - - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) The item id. - - parameter container: (path) The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv. - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment length. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamorphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - - returns: RequestBuilder - */ - open class func getVideoStreamByContainerWithRequestBuilder(itemId: UUID, container: String, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, mediaSourceId: String? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod15? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context15? = nil, streamOptions: [String:String]? = nil) -> RequestBuilder { - var path = "/Videos/{itemId}/stream.{container}" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let containerPreEscape = "\(container)" - let containerPostEscape = containerPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{container}", with: containerPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "static": _static, - "params": params, - "tag": tag, - "deviceProfileId": deviceProfileId, - "playSessionId": playSessionId, - "segmentContainer": segmentContainer, - "segmentLength": segmentLength?.encodeToJSON(), - "minSegments": minSegments?.encodeToJSON(), - "mediaSourceId": mediaSourceId, - "deviceId": deviceId, - "audioCodec": audioCodec, - "enableAutoStreamCopy": enableAutoStreamCopy, - "allowVideoStreamCopy": allowVideoStreamCopy, - "allowAudioStreamCopy": allowAudioStreamCopy, - "breakOnNonKeyFrames": breakOnNonKeyFrames, - "audioSampleRate": audioSampleRate?.encodeToJSON(), - "maxAudioBitDepth": maxAudioBitDepth?.encodeToJSON(), - "audioBitRate": audioBitRate?.encodeToJSON(), - "audioChannels": audioChannels?.encodeToJSON(), - "maxAudioChannels": maxAudioChannels?.encodeToJSON(), - "profile": profile, - "level": level, - "framerate": framerate, - "maxFramerate": maxFramerate, - "copyTimestamps": copyTimestamps, - "startTimeTicks": startTimeTicks?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "videoBitRate": videoBitRate?.encodeToJSON(), - "subtitleStreamIndex": subtitleStreamIndex?.encodeToJSON(), - "subtitleMethod": subtitleMethod, - "maxRefFrames": maxRefFrames?.encodeToJSON(), - "maxVideoBitDepth": maxVideoBitDepth?.encodeToJSON(), - "requireAvc": requireAvc, - "deInterlace": deInterlace, - "requireNonAnamorphic": requireNonAnamorphic, - "transcodingMaxAudioChannels": transcodingMaxAudioChannels?.encodeToJSON(), - "cpuCoreLimit": cpuCoreLimit?.encodeToJSON(), - "liveStreamId": liveStreamId, - "enableMpegtsM2TsMode": enableMpegtsM2TsMode, - "videoCodec": videoCodec, - "subtitleCodec": subtitleCodec, - "transcodeReasons": transcodeReasons, - "audioStreamIndex": audioStreamIndex?.encodeToJSON(), - "videoStreamIndex": videoStreamIndex?.encodeToJSON(), - "context": context, - "streamOptions": streamOptions - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a video stream. - - - parameter itemId: (path) The item id. - - parameter container: (query) The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv. (optional) - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment length. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamorphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func headVideoStream(itemId: UUID, container: String? = nil, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, mediaSourceId: String? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod14? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context14? = nil, streamOptions: [String:String]? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - headVideoStreamWithRequestBuilder(itemId: itemId, container: container, _static: _static, params: params, tag: tag, deviceProfileId: deviceProfileId, playSessionId: playSessionId, segmentContainer: segmentContainer, segmentLength: segmentLength, minSegments: minSegments, mediaSourceId: mediaSourceId, deviceId: deviceId, audioCodec: audioCodec, enableAutoStreamCopy: enableAutoStreamCopy, allowVideoStreamCopy: allowVideoStreamCopy, allowAudioStreamCopy: allowAudioStreamCopy, breakOnNonKeyFrames: breakOnNonKeyFrames, audioSampleRate: audioSampleRate, maxAudioBitDepth: maxAudioBitDepth, audioBitRate: audioBitRate, audioChannels: audioChannels, maxAudioChannels: maxAudioChannels, profile: profile, level: level, framerate: framerate, maxFramerate: maxFramerate, copyTimestamps: copyTimestamps, startTimeTicks: startTimeTicks, width: width, height: height, videoBitRate: videoBitRate, subtitleStreamIndex: subtitleStreamIndex, subtitleMethod: subtitleMethod, maxRefFrames: maxRefFrames, maxVideoBitDepth: maxVideoBitDepth, requireAvc: requireAvc, deInterlace: deInterlace, requireNonAnamorphic: requireNonAnamorphic, transcodingMaxAudioChannels: transcodingMaxAudioChannels, cpuCoreLimit: cpuCoreLimit, liveStreamId: liveStreamId, enableMpegtsM2TsMode: enableMpegtsM2TsMode, videoCodec: videoCodec, subtitleCodec: subtitleCodec, transcodeReasons: transcodeReasons, audioStreamIndex: audioStreamIndex, videoStreamIndex: videoStreamIndex, context: context, streamOptions: streamOptions).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a video stream. - - HEAD /Videos/{itemId}/stream - - - - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) The item id. - - parameter container: (query) The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv. (optional) - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment length. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamorphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - - returns: RequestBuilder - */ - open class func headVideoStreamWithRequestBuilder(itemId: UUID, container: String? = nil, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, mediaSourceId: String? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod14? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context14? = nil, streamOptions: [String:String]? = nil) -> RequestBuilder { - var path = "/Videos/{itemId}/stream" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "container": container, - "static": _static, - "params": params, - "tag": tag, - "deviceProfileId": deviceProfileId, - "playSessionId": playSessionId, - "segmentContainer": segmentContainer, - "segmentLength": segmentLength?.encodeToJSON(), - "minSegments": minSegments?.encodeToJSON(), - "mediaSourceId": mediaSourceId, - "deviceId": deviceId, - "audioCodec": audioCodec, - "enableAutoStreamCopy": enableAutoStreamCopy, - "allowVideoStreamCopy": allowVideoStreamCopy, - "allowAudioStreamCopy": allowAudioStreamCopy, - "breakOnNonKeyFrames": breakOnNonKeyFrames, - "audioSampleRate": audioSampleRate?.encodeToJSON(), - "maxAudioBitDepth": maxAudioBitDepth?.encodeToJSON(), - "audioBitRate": audioBitRate?.encodeToJSON(), - "audioChannels": audioChannels?.encodeToJSON(), - "maxAudioChannels": maxAudioChannels?.encodeToJSON(), - "profile": profile, - "level": level, - "framerate": framerate, - "maxFramerate": maxFramerate, - "copyTimestamps": copyTimestamps, - "startTimeTicks": startTimeTicks?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "videoBitRate": videoBitRate?.encodeToJSON(), - "subtitleStreamIndex": subtitleStreamIndex?.encodeToJSON(), - "subtitleMethod": subtitleMethod, - "maxRefFrames": maxRefFrames?.encodeToJSON(), - "maxVideoBitDepth": maxVideoBitDepth?.encodeToJSON(), - "requireAvc": requireAvc, - "deInterlace": deInterlace, - "requireNonAnamorphic": requireNonAnamorphic, - "transcodingMaxAudioChannels": transcodingMaxAudioChannels?.encodeToJSON(), - "cpuCoreLimit": cpuCoreLimit?.encodeToJSON(), - "liveStreamId": liveStreamId, - "enableMpegtsM2TsMode": enableMpegtsM2TsMode, - "videoCodec": videoCodec, - "subtitleCodec": subtitleCodec, - "transcodeReasons": transcodeReasons, - "audioStreamIndex": audioStreamIndex?.encodeToJSON(), - "videoStreamIndex": videoStreamIndex?.encodeToJSON(), - "context": context, - "streamOptions": streamOptions - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "HEAD", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Gets a video stream. - - - parameter itemId: (path) The item id. - - parameter container: (path) The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv. - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment length. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamorphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func headVideoStreamByContainer(itemId: UUID, container: String, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, mediaSourceId: String? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod16? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context16? = nil, streamOptions: [String:String]? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) { - headVideoStreamByContainerWithRequestBuilder(itemId: itemId, container: container, _static: _static, params: params, tag: tag, deviceProfileId: deviceProfileId, playSessionId: playSessionId, segmentContainer: segmentContainer, segmentLength: segmentLength, minSegments: minSegments, mediaSourceId: mediaSourceId, deviceId: deviceId, audioCodec: audioCodec, enableAutoStreamCopy: enableAutoStreamCopy, allowVideoStreamCopy: allowVideoStreamCopy, allowAudioStreamCopy: allowAudioStreamCopy, breakOnNonKeyFrames: breakOnNonKeyFrames, audioSampleRate: audioSampleRate, maxAudioBitDepth: maxAudioBitDepth, audioBitRate: audioBitRate, audioChannels: audioChannels, maxAudioChannels: maxAudioChannels, profile: profile, level: level, framerate: framerate, maxFramerate: maxFramerate, copyTimestamps: copyTimestamps, startTimeTicks: startTimeTicks, width: width, height: height, videoBitRate: videoBitRate, subtitleStreamIndex: subtitleStreamIndex, subtitleMethod: subtitleMethod, maxRefFrames: maxRefFrames, maxVideoBitDepth: maxVideoBitDepth, requireAvc: requireAvc, deInterlace: deInterlace, requireNonAnamorphic: requireNonAnamorphic, transcodingMaxAudioChannels: transcodingMaxAudioChannels, cpuCoreLimit: cpuCoreLimit, liveStreamId: liveStreamId, enableMpegtsM2TsMode: enableMpegtsM2TsMode, videoCodec: videoCodec, subtitleCodec: subtitleCodec, transcodeReasons: transcodeReasons, audioStreamIndex: audioStreamIndex, videoStreamIndex: videoStreamIndex, context: context, streamOptions: streamOptions).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a video stream. - - HEAD /Videos/{itemId}/stream.{container} - - - - - examples: [{contentType=application/json, example=""}] - - parameter itemId: (path) The item id. - - parameter container: (path) The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv. - - parameter _static: (query) Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. (optional) - - parameter params: (query) The streaming parameters. (optional) - - parameter tag: (query) The tag. (optional) - - parameter deviceProfileId: (query) Optional. The dlna device profile id to utilize. (optional) - - parameter playSessionId: (query) The play session id. (optional) - - parameter segmentContainer: (query) The segment container. (optional) - - parameter segmentLength: (query) The segment length. (optional) - - parameter minSegments: (query) The minimum number of segments. (optional) - - parameter mediaSourceId: (query) The media version id, if playing an alternate version. (optional) - - parameter deviceId: (query) The device id of the client requesting. Used to stop encoding processes when needed. (optional) - - parameter audioCodec: (query) Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url's extension. Options: aac, mp3, vorbis, wma. (optional) - - parameter enableAutoStreamCopy: (query) Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. (optional) - - parameter allowVideoStreamCopy: (query) Whether or not to allow copying of the video stream url. (optional) - - parameter allowAudioStreamCopy: (query) Whether or not to allow copying of the audio stream url. (optional) - - parameter breakOnNonKeyFrames: (query) Optional. Whether to break on non key frames. (optional) - - parameter audioSampleRate: (query) Optional. Specify a specific audio sample rate, e.g. 44100. (optional) - - parameter maxAudioBitDepth: (query) Optional. The maximum audio bit depth. (optional) - - parameter audioBitRate: (query) Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. (optional) - - parameter audioChannels: (query) Optional. Specify a specific number of audio channels to encode to, e.g. 2. (optional) - - parameter maxAudioChannels: (query) Optional. Specify a maximum number of audio channels to encode to, e.g. 2. (optional) - - parameter profile: (query) Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. (optional) - - parameter level: (query) Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. (optional) - - parameter framerate: (query) Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter maxFramerate: (query) Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. (optional) - - parameter copyTimestamps: (query) Whether or not to copy timestamps when transcoding with an offset. Defaults to false. (optional) - - parameter startTimeTicks: (query) Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. (optional) - - parameter width: (query) Optional. The fixed horizontal resolution of the encoded video. (optional) - - parameter height: (query) Optional. The fixed vertical resolution of the encoded video. (optional) - - parameter videoBitRate: (query) Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. (optional) - - parameter subtitleStreamIndex: (query) Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. (optional) - - parameter subtitleMethod: (query) Optional. Specify the subtitle delivery method. (optional) - - parameter maxRefFrames: (query) Optional. (optional) - - parameter maxVideoBitDepth: (query) Optional. The maximum video bit depth. (optional) - - parameter requireAvc: (query) Optional. Whether to require avc. (optional) - - parameter deInterlace: (query) Optional. Whether to deinterlace the video. (optional) - - parameter requireNonAnamorphic: (query) Optional. Whether to require a non anamorphic stream. (optional) - - parameter transcodingMaxAudioChannels: (query) Optional. The maximum number of audio channels to transcode. (optional) - - parameter cpuCoreLimit: (query) Optional. The limit of how many cpu cores to use. (optional) - - parameter liveStreamId: (query) The live stream id. (optional) - - parameter enableMpegtsM2TsMode: (query) Optional. Whether to enable the MpegtsM2Ts mode. (optional) - - parameter videoCodec: (query) Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv. (optional) - - parameter subtitleCodec: (query) Optional. Specify a subtitle codec to encode to. (optional) - - parameter transcodeReasons: (query) Optional. The transcoding reason. (optional) - - parameter audioStreamIndex: (query) Optional. The index of the audio stream to use. If omitted the first audio stream will be used. (optional) - - parameter videoStreamIndex: (query) Optional. The index of the video stream to use. If omitted the first video stream will be used. (optional) - - parameter context: (query) Optional. The MediaBrowser.Model.Dlna.EncodingContext. (optional) - - parameter streamOptions: (query) Optional. The streaming options. (optional) - - - returns: RequestBuilder - */ - open class func headVideoStreamByContainerWithRequestBuilder(itemId: UUID, container: String, _static: Bool? = nil, params: String? = nil, tag: String? = nil, deviceProfileId: String? = nil, playSessionId: String? = nil, segmentContainer: String? = nil, segmentLength: Int? = nil, minSegments: Int? = nil, mediaSourceId: String? = nil, deviceId: String? = nil, audioCodec: String? = nil, enableAutoStreamCopy: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, breakOnNonKeyFrames: Bool? = nil, audioSampleRate: Int? = nil, maxAudioBitDepth: Int? = nil, audioBitRate: Int? = nil, audioChannels: Int? = nil, maxAudioChannels: Int? = nil, profile: String? = nil, level: String? = nil, framerate: Float? = nil, maxFramerate: Float? = nil, copyTimestamps: Bool? = nil, startTimeTicks: Int64? = nil, width: Int? = nil, height: Int? = nil, videoBitRate: Int? = nil, subtitleStreamIndex: Int? = nil, subtitleMethod: SubtitleMethod16? = nil, maxRefFrames: Int? = nil, maxVideoBitDepth: Int? = nil, requireAvc: Bool? = nil, deInterlace: Bool? = nil, requireNonAnamorphic: Bool? = nil, transcodingMaxAudioChannels: Int? = nil, cpuCoreLimit: Int? = nil, liveStreamId: String? = nil, enableMpegtsM2TsMode: Bool? = nil, videoCodec: String? = nil, subtitleCodec: String? = nil, transcodeReasons: String? = nil, audioStreamIndex: Int? = nil, videoStreamIndex: Int? = nil, context: Context16? = nil, streamOptions: [String:String]? = nil) -> RequestBuilder { - var path = "/Videos/{itemId}/stream.{container}" - let itemIdPreEscape = "\(itemId)" - let itemIdPostEscape = itemIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{itemId}", with: itemIdPostEscape, options: .literal, range: nil) - let containerPreEscape = "\(container)" - let containerPostEscape = containerPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{container}", with: containerPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "static": _static, - "params": params, - "tag": tag, - "deviceProfileId": deviceProfileId, - "playSessionId": playSessionId, - "segmentContainer": segmentContainer, - "segmentLength": segmentLength?.encodeToJSON(), - "minSegments": minSegments?.encodeToJSON(), - "mediaSourceId": mediaSourceId, - "deviceId": deviceId, - "audioCodec": audioCodec, - "enableAutoStreamCopy": enableAutoStreamCopy, - "allowVideoStreamCopy": allowVideoStreamCopy, - "allowAudioStreamCopy": allowAudioStreamCopy, - "breakOnNonKeyFrames": breakOnNonKeyFrames, - "audioSampleRate": audioSampleRate?.encodeToJSON(), - "maxAudioBitDepth": maxAudioBitDepth?.encodeToJSON(), - "audioBitRate": audioBitRate?.encodeToJSON(), - "audioChannels": audioChannels?.encodeToJSON(), - "maxAudioChannels": maxAudioChannels?.encodeToJSON(), - "profile": profile, - "level": level, - "framerate": framerate, - "maxFramerate": maxFramerate, - "copyTimestamps": copyTimestamps, - "startTimeTicks": startTimeTicks?.encodeToJSON(), - "width": width?.encodeToJSON(), - "height": height?.encodeToJSON(), - "videoBitRate": videoBitRate?.encodeToJSON(), - "subtitleStreamIndex": subtitleStreamIndex?.encodeToJSON(), - "subtitleMethod": subtitleMethod, - "maxRefFrames": maxRefFrames?.encodeToJSON(), - "maxVideoBitDepth": maxVideoBitDepth?.encodeToJSON(), - "requireAvc": requireAvc, - "deInterlace": deInterlace, - "requireNonAnamorphic": requireNonAnamorphic, - "transcodingMaxAudioChannels": transcodingMaxAudioChannels?.encodeToJSON(), - "cpuCoreLimit": cpuCoreLimit?.encodeToJSON(), - "liveStreamId": liveStreamId, - "enableMpegtsM2TsMode": enableMpegtsM2TsMode, - "videoCodec": videoCodec, - "subtitleCodec": subtitleCodec, - "transcodeReasons": transcodeReasons, - "audioStreamIndex": audioStreamIndex?.encodeToJSON(), - "videoStreamIndex": videoStreamIndex?.encodeToJSON(), - "context": context, - "streamOptions": streamOptions - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "HEAD", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Merges videos into a single record. - - - parameter ids: (query) Item id list. This allows multiple, comma delimited. - - parameter completion: completion handler to receive the data and the error objects - */ - open class func mergeVersions(ids: [UUID], completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { - mergeVersionsWithRequestBuilder(ids: ids).execute { (response, error) -> Void in - if error == nil { - completion((), error) - } else { - completion(nil, error) - } - } - } - - - /** - Merges videos into a single record. - - POST /Videos/MergeVersions - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - parameter ids: (query) Item id list. This allows multiple, comma delimited. - - - returns: RequestBuilder - */ - open class func mergeVersionsWithRequestBuilder(ids: [UUID]) -> RequestBuilder { - let path = "/Videos/MergeVersions" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "ids": ids - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getNonDecodableBuilder() - - return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/APIs/YearsAPI.swift b/JellyfinPlayer/Swaggers/APIs/YearsAPI.swift deleted file mode 100644 index e5fad4cf..00000000 --- a/JellyfinPlayer/Swaggers/APIs/YearsAPI.swift +++ /dev/null @@ -1,2046 +0,0 @@ -// -// YearsAPI.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - - -open class YearsAPI { - /** - Gets a year. - - - parameter year: (path) The year. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getYear(year: Int, userId: UUID? = nil, completion: @escaping ((_ data: BaseItemDto?,_ error: Error?) -> Void)) { - getYearWithRequestBuilder(year: year, userId: userId).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Gets a year. - - GET /Years/{year} - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 -}}] - - parameter year: (path) The year. - - parameter userId: (query) Optional. Filter by user id, and attach user data. (optional) - - - returns: RequestBuilder - */ - open class func getYearWithRequestBuilder(year: Int, userId: UUID? = nil) -> RequestBuilder { - var path = "/Years/{year}" - let yearPreEscape = "\(year)" - let yearPostEscape = yearPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" - path = path.replacingOccurrences(of: "{year}", with: yearPostEscape, options: .literal, range: nil) - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "userId": userId - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } - /** - Get years. - - - parameter startIndex: (query) Skips over a given number of items within the results. Use for paging. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter sortOrder: (query) Sort Order - Ascending,Descending. (optional) - - parameter parentId: (query) Specify this to localize the search to a specific item or folder. Omit to use the root. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter excludeItemTypes: (query) Optional. If specified, results will be excluded based on item type. This allows multiple, comma delimited. (optional) - - parameter includeItemTypes: (query) Optional. If specified, results will be included based on item type. This allows multiple, comma delimited. (optional) - - parameter mediaTypes: (query) Optional. Filter by MediaType. Allows multiple, comma delimited. (optional) - - parameter sortBy: (query) Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter userId: (query) User Id. (optional) - - parameter recursive: (query) Search recursively. (optional, default to true) - - parameter enableImages: (query) Optional. Include image information in output. (optional, default to true) - - parameter completion: completion handler to receive the data and the error objects - */ - open class func getYears(startIndex: Int? = nil, limit: Int? = nil, sortOrder: [SortOrder]? = nil, parentId: UUID? = nil, fields: [ItemFields]? = nil, excludeItemTypes: [String]? = nil, includeItemTypes: [String]? = nil, mediaTypes: [String]? = nil, sortBy: [String]? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, userId: UUID? = nil, recursive: Bool? = nil, enableImages: Bool? = nil, completion: @escaping ((_ data: BaseItemDtoQueryResult?,_ error: Error?) -> Void)) { - getYearsWithRequestBuilder(startIndex: startIndex, limit: limit, sortOrder: sortOrder, parentId: parentId, fields: fields, excludeItemTypes: excludeItemTypes, includeItemTypes: includeItemTypes, mediaTypes: mediaTypes, sortBy: sortBy, enableUserData: enableUserData, imageTypeLimit: imageTypeLimit, enableImageTypes: enableImageTypes, userId: userId, recursive: recursive, enableImages: enableImages).execute { (response, error) -> Void in - completion(response?.body, error) - } - } - - - /** - Get years. - - GET /Years - - - - - API Key: - - type: apiKey X-Emby-Authorization - - name: CustomAuthentication - - examples: [{contentType=application/json, example={ - "TotalRecordCount" : 7, - "StartIndex" : 5, - "Items" : [ { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - }, { - "SeasonName" : "SeasonName", - "PremiereDate" : "2000-01-23T04:56:07.000+00:00", - "CriticRating" : 9.018348, - "AirTime" : "AirTime", - "Studios" : [ { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - }, { - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "Name" : "Name" - } ], - "CameraMake" : "CameraMake", - "Aperture" : 1.041444916118296, - "ChannelPrimaryImageTag" : "ChannelPrimaryImageTag", - "ExtraType" : "ExtraType", - "ParentBackdropItemId" : "ParentBackdropItemId", - "Etag" : "Etag", - "ParentLogoImageTag" : "ParentLogoImageTag", - "ExposureTime" : 6.628464275087742, - "IsoType" : "", - "MediaType" : "MediaType", - "Tags" : [ "Tags", "Tags" ], - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - }, - "Status" : "Status", - "IndexNumberEnd" : 6, - "ArtistItems" : [ null, null ], - "MediaSources" : [ { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - }, { - "EncoderPath" : "EncoderPath", - "RequiredHttpHeaders" : { - "key" : "RequiredHttpHeaders" - }, - "RunTimeTicks" : 5, - "MediaStreams" : [ { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - }, { - "VideoRange" : "VideoRange", - "CodecTimeBase" : "CodecTimeBase", - "ColorSpace" : "ColorSpace", - "Index" : 7, - "ColorRange" : "ColorRange", - "localizedForced" : "localizedForced", - "BitDepth" : 9, - "Channels" : 4, - "Profile" : "Profile", - "SupportsExternalStream" : true, - "localizedDefault" : "localizedDefault", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "ColorPrimaries" : "ColorPrimaries", - "SampleRate" : 7, - "Language" : "Language", - "IsTextSubtitleStream" : true, - "IsAnamorphic" : true, - "NalLengthSize" : "NalLengthSize", - "Height" : 1, - "PixelFormat" : "PixelFormat", - "RefFrames" : 3, - "IsAVC" : true, - "Width" : 1, - "TimeBase" : "TimeBase", - "ColorTransfer" : "ColorTransfer", - "CodecTag" : "CodecTag", - "IsDefault" : true, - "Path" : "Path", - "Comment" : "Comment", - "DeliveryMethod" : "", - "IsExternalUrl" : true, - "DisplayTitle" : "DisplayTitle", - "IsForced" : true, - "ChannelLayout" : "ChannelLayout", - "localizedUndefined" : "localizedUndefined", - "PacketLength" : 2, - "Title" : "Title", - "RealFrameRate" : 6.846853, - "AspectRatio" : "AspectRatio", - "AverageFrameRate" : 1.4894159, - "Type" : "", - "Score" : 1, - "IsExternal" : true, - "IsInterlaced" : true, - "Level" : 4.965218492984954, - "BitRate" : 7 - } ], - "Size" : 5, - "Video3DFormat" : "", - "BufferMs" : 2, - "Timestamp" : "", - "Name" : "Name", - "RequiresOpening" : true, - "SupportsDirectStream" : true, - "VideoType" : "", - "RequiresClosing" : true, - "Container" : "Container", - "IsoType" : "", - "LiveStreamId" : "LiveStreamId", - "RequiresLooping" : true, - "Protocol" : "", - "DefaultSubtitleStreamIndex" : 8, - "GenPtsInput" : true, - "IsInfiniteStream" : true, - "Path" : "Path", - "IsRemote" : true, - "EncoderProtocol" : "", - "IgnoreIndex" : true, - "SupportsDirectPlay" : true, - "TranscodingSubProtocol" : "TranscodingSubProtocol", - "Formats" : [ "Formats", "Formats" ], - "AnalyzeDurationMs" : 9, - "Bitrate" : 9, - "OpenToken" : "OpenToken", - "SupportsProbing" : true, - "Type" : "", - "MediaAttachments" : [ { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - }, { - "CodecTag" : "CodecTag", - "Comment" : "Comment", - "DeliveryUrl" : "DeliveryUrl", - "Codec" : "Codec", - "FileName" : "FileName", - "Index" : 5, - "MimeType" : "MimeType" - } ], - "ReadAtNativeFramerate" : true, - "ETag" : "ETag", - "TranscodingContainer" : "TranscodingContainer", - "IgnoreDts" : true, - "TranscodingUrl" : "TranscodingUrl", - "Id" : "Id", - "SupportsTranscoding" : true, - "DefaultAudioStreamIndex" : 6 - } ], - "GenreItems" : [ null, null ], - "OfficialRating" : "OfficialRating", - "ProgramCount" : 7, - "ProgramId" : "ProgramId", - "Longitude" : 9.132027271330688, - "LockData" : true, - "FocalLength" : 4.258773108174356, - "IsNews" : true, - "ShutterSpeed" : 4.678947989005849, - "Id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "IsFolder" : true, - "SeriesTimerId" : "SeriesTimerId", - "SeriesId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MediaStreams" : [ null, null ], - "IsPlaceHolder" : true, - "CanDownload" : true, - "SeriesCount" : 8, - "IsMovie" : true, - "DateLastMediaAdded" : "2000-01-23T04:56:07.000+00:00", - "ParentArtImageTag" : "ParentArtImageTag", - "PlayAccess" : "", - "SeriesStudio" : "SeriesStudio", - "IsLive" : true, - "Width" : 4, - "ExternalUrls" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "RecursiveItemCount" : 6, - "Path" : "Path", - "ParentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "MusicVideoCount" : 3, - "ScreenshotImageTags" : [ "ScreenshotImageTags", "ScreenshotImageTags" ], - "EpisodeCount" : 3, - "IsSeries" : true, - "ProductionLocations" : [ "ProductionLocations", "ProductionLocations" ], - "ParentPrimaryImageItemId" : "ParentPrimaryImageItemId", - "EndDate" : "2000-01-23T04:56:07.000+00:00", - "SeriesPrimaryImageTag" : "SeriesPrimaryImageTag", - "ParentThumbItemId" : "ParentThumbItemId", - "PreferredMetadataLanguage" : "PreferredMetadataLanguage", - "Type" : "Type", - "BackdropImageTags" : [ "BackdropImageTags", "BackdropImageTags" ], - "ParentBackdropImageTags" : [ "ParentBackdropImageTags", "ParentBackdropImageTags" ], - "AirsBeforeEpisodeNumber" : 1, - "ChildCount" : 3, - "Audio" : "", - "Artists" : [ "Artists", "Artists" ], - "ChannelType" : "", - "RunTimeTicks" : 6, - "AlbumPrimaryImageTag" : "AlbumPrimaryImageTag", - "Video3DFormat" : "", - "CumulativeRunTimeTicks" : 3, - "SourceType" : "SourceType", - "CanDelete" : true, - "PlaylistItemId" : "PlaylistItemId", - "DisplayPreferencesId" : "DisplayPreferencesId", - "Album" : "Album", - "Latitude" : 7.260521264802104, - "SortName" : "SortName", - "ArtistCount" : 5, - "Name" : "Name", - "StartDate" : "2000-01-23T04:56:07.000+00:00", - "Container" : "Container", - "ProductionYear" : 1, - "SeriesName" : "SeriesName", - "ParentArtItemId" : "ParentArtItemId", - "AlbumId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "SupportsSync" : true, - "LocalTrailerCount" : 5, - "IndexNumber" : 2, - "CompletionPercentage" : 0.5199002018724985, - "Genres" : [ "Genres", "Genres" ], - "SeasonId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "LockedFields" : [ "Cast", "Cast" ], - "ParentPrimaryImageTag" : "ParentPrimaryImageTag", - "ProviderIds" : { - "key" : "ProviderIds" - }, - "RemoteTrailers" : [ { - "Url" : "Url", - "Name" : "Name" - }, { - "Url" : "Url", - "Name" : "Name" - } ], - "MediaSourceCount" : 7, - "CustomRating" : "CustomRating", - "AirsAfterSeasonNumber" : 6, - "AirDays" : [ "Sunday", "Sunday" ], - "ParentLogoItemId" : "ParentLogoItemId", - "PartCount" : 0, - "ChannelName" : "ChannelName", - "EpisodeTitle" : "EpisodeTitle", - "IsoSpeedRating" : 9, - "CommunityRating" : 6.4384236, - "Software" : "Software", - "Chapters" : [ { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - }, { - "StartPositionTicks" : 6, - "ImageTag" : "ImageTag", - "ImageDateModified" : "2000-01-23T04:56:07.000+00:00", - "ImagePath" : "ImagePath", - "Name" : "Name" - } ], - "SongCount" : 3, - "Taglines" : [ "Taglines", "Taglines" ], - "AirsBeforeSeasonNumber" : 0, - "PreferredMetadataCountryCode" : "PreferredMetadataCountryCode", - "CameraModel" : "CameraModel", - "ChannelNumber" : "ChannelNumber", - "UserData" : "", - "TimerId" : "TimerId", - "DateCreated" : "2000-01-23T04:56:07.000+00:00", - "HasSubtitles" : true, - "ParentThumbImageTag" : "ParentThumbImageTag", - "IsSports" : true, - "ChannelId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91", - "ParentIndexNumber" : 6, - "VideoType" : "", - "AlbumArtists" : [ null, null ], - "ServerId" : "ServerId", - "Number" : "Number", - "AlbumCount" : 7, - "IsRepeat" : true, - "CollectionType" : "CollectionType", - "PrimaryImageAspectRatio" : 7.143538047012306, - "Height" : 0, - "IsKids" : true, - "DisplayOrder" : "DisplayOrder", - "IsHD" : true, - "EnableMediaSourceDisplay" : true, - "SeriesThumbImageTag" : "SeriesThumbImageTag", - "MovieCount" : 4, - "People" : [ { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - }, { - "Role" : "Role", - "Type" : "Type", - "PrimaryImageTag" : "PrimaryImageTag", - "Id" : "Id", - "Name" : "Name", - "ImageBlurHashes" : { - "Art" : { - "key" : "Art" - }, - "Banner" : { - "key" : "Banner" - }, - "Thumb" : { - "key" : "Thumb" - }, - "Chapter" : { - "key" : "Chapter" - }, - "BoxRear" : { - "key" : "BoxRear" - }, - "Box" : { - "key" : "Box" - }, - "Profile" : { - "key" : "Profile" - }, - "Logo" : { - "key" : "Logo" - }, - "Disc" : { - "key" : "Disc" - }, - "Primary" : { - "key" : "Primary" - }, - "Screenshot" : { - "key" : "Screenshot" - }, - "Backdrop" : { - "key" : "Backdrop" - }, - "Menu" : { - "key" : "Menu" - } - } - } ], - "Overview" : "Overview", - "SpecialFeatureCount" : 3, - "ImageOrientation" : "", - "AlbumArtist" : "AlbumArtist", - "ImageTags" : { - "key" : "ImageTags" - }, - "AspectRatio" : "AspectRatio", - "TrailerCount" : 0, - "OriginalTitle" : "OriginalTitle", - "ForcedSortName" : "ForcedSortName", - "CurrentProgram" : "", - "LocationType" : "", - "IsPremiere" : true, - "Altitude" : 0.8774076871421566 - } ] -}}] - - parameter startIndex: (query) Skips over a given number of items within the results. Use for paging. (optional) - - parameter limit: (query) Optional. The maximum number of records to return. (optional) - - parameter sortOrder: (query) Sort Order - Ascending,Descending. (optional) - - parameter parentId: (query) Specify this to localize the search to a specific item or folder. Omit to use the root. (optional) - - parameter fields: (query) Optional. Specify additional fields of information to return in the output. (optional) - - parameter excludeItemTypes: (query) Optional. If specified, results will be excluded based on item type. This allows multiple, comma delimited. (optional) - - parameter includeItemTypes: (query) Optional. If specified, results will be included based on item type. This allows multiple, comma delimited. (optional) - - parameter mediaTypes: (query) Optional. Filter by MediaType. Allows multiple, comma delimited. (optional) - - parameter sortBy: (query) Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. (optional) - - parameter enableUserData: (query) Optional. Include user data. (optional) - - parameter imageTypeLimit: (query) Optional. The max number of images to return, per image type. (optional) - - parameter enableImageTypes: (query) Optional. The image types to include in the output. (optional) - - parameter userId: (query) User Id. (optional) - - parameter recursive: (query) Search recursively. (optional, default to true) - - parameter enableImages: (query) Optional. Include image information in output. (optional, default to true) - - - returns: RequestBuilder - */ - open class func getYearsWithRequestBuilder(startIndex: Int? = nil, limit: Int? = nil, sortOrder: [SortOrder]? = nil, parentId: UUID? = nil, fields: [ItemFields]? = nil, excludeItemTypes: [String]? = nil, includeItemTypes: [String]? = nil, mediaTypes: [String]? = nil, sortBy: [String]? = nil, enableUserData: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, userId: UUID? = nil, recursive: Bool? = nil, enableImages: Bool? = nil) -> RequestBuilder { - let path = "/Years" - let URLString = SwaggerClientAPI.basePath + path - let parameters: [String:Any]? = nil - var url = URLComponents(string: URLString) - url?.queryItems = APIHelper.mapValuesToQueryItems([ - "startIndex": startIndex?.encodeToJSON(), - "limit": limit?.encodeToJSON(), - "sortOrder": sortOrder, - "parentId": parentId, - "fields": fields, - "excludeItemTypes": excludeItemTypes, - "includeItemTypes": includeItemTypes, - "mediaTypes": mediaTypes, - "sortBy": sortBy, - "enableUserData": enableUserData, - "imageTypeLimit": imageTypeLimit?.encodeToJSON(), - "enableImageTypes": enableImageTypes, - "userId": userId, - "recursive": recursive, - "enableImages": enableImages - ]) - - - let requestBuilder: RequestBuilder.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() - - return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) - } -} diff --git a/JellyfinPlayer/Swaggers/AlamofireImplementations.swift b/JellyfinPlayer/Swaggers/AlamofireImplementations.swift deleted file mode 100644 index f072650e..00000000 --- a/JellyfinPlayer/Swaggers/AlamofireImplementations.swift +++ /dev/null @@ -1,422 +0,0 @@ -// AlamofireImplementations.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - -class AlamofireRequestBuilderFactory: RequestBuilderFactory { - func getNonDecodableBuilder() -> RequestBuilder.Type { - return AlamofireRequestBuilder.self - } - - func getBuilder() -> RequestBuilder.Type { - return AlamofireDecodableRequestBuilder.self - } -} - -// Store manager to retain its reference -private var managerStore: [String: Alamofire.SessionManager] = [:] - -// Sync queue to manage safe access to the store manager -private let syncQueue = DispatchQueue(label: "thread-safe-sync-queue", attributes: .concurrent) - -open class AlamofireRequestBuilder: RequestBuilder { - required public init(method: String, URLString: String, parameters: [String : Any]?, isBody: Bool, headers: [String : String] = [:]) { - super.init(method: method, URLString: URLString, parameters: parameters, isBody: isBody, headers: headers) - } - - /** - May be overridden by a subclass if you want to control the session - configuration. - */ - open func createSessionManager() -> Alamofire.SessionManager { - let configuration = URLSessionConfiguration.default - configuration.httpAdditionalHeaders = buildHeaders() - return Alamofire.SessionManager(configuration: configuration) - } - - /** - May be overridden by a subclass if you want to control the Content-Type - that is given to an uploaded form part. - - Return nil to use the default behavior (inferring the Content-Type from - the file extension). Return the desired Content-Type otherwise. - */ - open func contentTypeForFormPart(fileURL: URL) -> String? { - return nil - } - - /** - May be overridden by a subclass if you want to control the request - configuration (e.g. to override the cache policy). - */ - open func makeRequest(manager: SessionManager, method: HTTPMethod, encoding: ParameterEncoding, headers: [String:String]) -> DataRequest { - return manager.request(URLString, method: method, parameters: parameters, encoding: encoding, headers: headers) - } - - override open func execute(_ completion: @escaping (_ response: Response?, _ error: Error?) -> Void) { - let managerId:String = UUID().uuidString - // Create a new manager for each request to customize its request header - let manager = createSessionManager() - syncQueue.async(flags: .barrier) { - managerStore[managerId] = manager - } - - let encoding:ParameterEncoding = isBody ? JSONDataEncoding() : URLEncoding() - - let xMethod = Alamofire.HTTPMethod(rawValue: method) - let fileKeys = parameters == nil ? [] : parameters!.filter { $1 is NSURL } - .map { $0.0 } - - if fileKeys.count > 0 { - manager.upload(multipartFormData: { mpForm in - for (k, v) in self.parameters! { - switch v { - case let fileURL as URL: - if let mimeType = self.contentTypeForFormPart(fileURL: fileURL) { - mpForm.append(fileURL, withName: k, fileName: fileURL.lastPathComponent, mimeType: mimeType) - } - else { - mpForm.append(fileURL, withName: k) - } - case let string as String: - mpForm.append(string.data(using: String.Encoding.utf8)!, withName: k) - case let number as NSNumber: - mpForm.append(number.stringValue.data(using: String.Encoding.utf8)!, withName: k) - default: - fatalError("Unprocessable value \(v) with key \(k)") - } - } - }, to: URLString, method: xMethod!, headers: nil, encodingCompletion: { encodingResult in - switch encodingResult { - case .success(let upload, _, _): - if let onProgressReady = self.onProgressReady { - onProgressReady(upload.uploadProgress) - } - self.processRequest(request: upload, managerId, completion) - case .failure(let encodingError): - completion(nil, ErrorResponse.error(415, nil, encodingError)) - } - }) - } else { - let request = makeRequest(manager: manager, method: xMethod!, encoding: encoding, headers: headers) - if let onProgressReady = self.onProgressReady { - onProgressReady(request.progress) - } - processRequest(request: request, managerId, completion) - } - - } - - fileprivate func processRequest(request: DataRequest, _ managerId: String, _ completion: @escaping (_ response: Response?, _ error: Error?) -> Void) { - if let credential = self.credential { - request.authenticate(usingCredential: credential) - } - - let cleanupRequest = { - syncQueue.async(flags: .barrier) { - _ = managerStore.removeValue(forKey: managerId) - } - } - - let validatedRequest = request.validate() - - switch T.self { - case is String.Type: - validatedRequest.responseString(completionHandler: { (stringResponse) in - cleanupRequest() - - if stringResponse.result.isFailure { - completion( - nil, - ErrorResponse.error(stringResponse.response?.statusCode ?? 500, stringResponse.data, stringResponse.result.error!) - ) - return - } - - completion( - Response( - response: stringResponse.response!, - body: ((stringResponse.result.value ?? "") as! T) - ), - nil - ) - }) - case is URL.Type: - validatedRequest.responseData(completionHandler: { (dataResponse) in - cleanupRequest() - - do { - - guard !dataResponse.result.isFailure else { - throw DownloadException.responseFailed - } - - guard let data = dataResponse.data else { - throw DownloadException.responseDataMissing - } - - guard let request = request.request else { - throw DownloadException.requestMissing - } - - let fileManager = FileManager.default - let urlRequest = try request.asURLRequest() - let documentsDirectory = fileManager.urls(for: .documentDirectory, in: .userDomainMask)[0] - let requestURL = try self.getURL(from: urlRequest) - - var requestPath = try self.getPath(from: requestURL) - - if let headerFileName = self.getFileName(fromContentDisposition: dataResponse.response?.allHeaderFields["Content-Disposition"] as? String) { - requestPath = requestPath.appending("/\(headerFileName)") - } - - let filePath = documentsDirectory.appendingPathComponent(requestPath) - let directoryPath = filePath.deletingLastPathComponent().path - - try fileManager.createDirectory(atPath: directoryPath, withIntermediateDirectories: true, attributes: nil) - try data.write(to: filePath, options: .atomic) - - completion( - Response( - response: dataResponse.response!, - body: (filePath as! T) - ), - nil - ) - - } catch let requestParserError as DownloadException { - completion(nil, ErrorResponse.error(400, dataResponse.data, requestParserError)) - } catch let error { - completion(nil, ErrorResponse.error(400, dataResponse.data, error)) - } - return - }) - case is Void.Type: - validatedRequest.responseData(completionHandler: { (voidResponse) in - cleanupRequest() - - if voidResponse.result.isFailure { - completion( - nil, - ErrorResponse.error(voidResponse.response?.statusCode ?? 500, voidResponse.data, voidResponse.result.error!) - ) - return - } - - completion( - Response( - response: voidResponse.response!, - body: nil), - nil - ) - }) - default: - validatedRequest.responseData(completionHandler: { (dataResponse) in - cleanupRequest() - - if dataResponse.result.isFailure { - completion( - nil, - ErrorResponse.error(dataResponse.response?.statusCode ?? 500, dataResponse.data, dataResponse.result.error!) - ) - return - } - - completion( - Response( - response: dataResponse.response!, - body: (dataResponse.data as! T) - ), - nil - ) - }) - } - } - - open func buildHeaders() -> [String: String] { - var httpHeaders = SessionManager.defaultHTTPHeaders - for (key, value) in self.headers { - httpHeaders[key] = value - } - return httpHeaders - } - - fileprivate func getFileName(fromContentDisposition contentDisposition : String?) -> String? { - - guard let contentDisposition = contentDisposition else { - return nil - } - - let items = contentDisposition.components(separatedBy: ";") - - var filename : String? = nil - - for contentItem in items { - - let filenameKey = "filename=" - guard let range = contentItem.range(of: filenameKey) else { - break - } - - filename = contentItem - return filename? - .replacingCharacters(in: range, with:"") - .replacingOccurrences(of: "\"", with: "") - .trimmingCharacters(in: .whitespacesAndNewlines) - } - - return filename - - } - - fileprivate func getPath(from url : URL) throws -> String { - - guard var path = URLComponents(url: url, resolvingAgainstBaseURL: true)?.path else { - throw DownloadException.requestMissingPath - } - - if path.hasPrefix("/") { - path.remove(at: path.startIndex) - } - - return path - - } - - fileprivate func getURL(from urlRequest : URLRequest) throws -> URL { - - guard let url = urlRequest.url else { - throw DownloadException.requestMissingURL - } - - return url - } - -} - -fileprivate enum DownloadException : Error { - case responseDataMissing - case responseFailed - case requestMissing - case requestMissingPath - case requestMissingURL -} - -public enum AlamofireDecodableRequestBuilderError: Error { - case emptyDataResponse - case nilHTTPResponse - case jsonDecoding(DecodingError) - case generalError(Error) -} - -open class AlamofireDecodableRequestBuilder: AlamofireRequestBuilder { - - override fileprivate func processRequest(request: DataRequest, _ managerId: String, _ completion: @escaping (_ response: Response?, _ error: Error?) -> Void) { - if let credential = self.credential { - request.authenticate(usingCredential: credential) - } - - let cleanupRequest = { - syncQueue.async(flags: .barrier) { - _ = managerStore.removeValue(forKey: managerId) - } - } - - let validatedRequest = request.validate() - - switch T.self { - case is String.Type: - validatedRequest.responseString(completionHandler: { (stringResponse) in - cleanupRequest() - - if stringResponse.result.isFailure { - completion( - nil, - ErrorResponse.error(stringResponse.response?.statusCode ?? 500, stringResponse.data, stringResponse.result.error!) - ) - return - } - - completion( - Response( - response: stringResponse.response!, - body: ((stringResponse.result.value ?? "") as! T) - ), - nil - ) - }) - case is Void.Type: - validatedRequest.responseData(completionHandler: { (voidResponse) in - cleanupRequest() - - if voidResponse.result.isFailure { - completion( - nil, - ErrorResponse.error(voidResponse.response?.statusCode ?? 500, voidResponse.data, voidResponse.result.error!) - ) - return - } - - completion( - Response( - response: voidResponse.response!, - body: nil), - nil - ) - }) - case is Data.Type: - validatedRequest.responseData(completionHandler: { (dataResponse) in - cleanupRequest() - - if dataResponse.result.isFailure { - completion( - nil, - ErrorResponse.error(dataResponse.response?.statusCode ?? 500, dataResponse.data, dataResponse.result.error!) - ) - return - } - - completion( - Response( - response: dataResponse.response!, - body: (dataResponse.data as! T) - ), - nil - ) - }) - default: - validatedRequest.responseData(completionHandler: { (dataResponse: DataResponse) in - cleanupRequest() - - guard dataResponse.result.isSuccess else { - completion(nil, ErrorResponse.error(dataResponse.response?.statusCode ?? 500, dataResponse.data, dataResponse.result.error!)) - return - } - - guard let data = dataResponse.data, !data.isEmpty else { - completion(nil, ErrorResponse.error(-1, nil, AlamofireDecodableRequestBuilderError.emptyDataResponse)) - return - } - - guard let httpResponse = dataResponse.response else { - completion(nil, ErrorResponse.error(-2, nil, AlamofireDecodableRequestBuilderError.nilHTTPResponse)) - return - } - - var responseObj: Response? = nil - - let decodeResult: (decodableObj: T?, error: Error?) = CodableHelper.decode(T.self, from: data) - if decodeResult.error == nil { - responseObj = Response(response: httpResponse, body: decodeResult.decodableObj) - } - - completion(responseObj, decodeResult.error) - }) - } - } - -} diff --git a/JellyfinPlayer/Swaggers/CodableHelper.swift b/JellyfinPlayer/Swaggers/CodableHelper.swift deleted file mode 100644 index c3039419..00000000 --- a/JellyfinPlayer/Swaggers/CodableHelper.swift +++ /dev/null @@ -1,93 +0,0 @@ -// -// CodableHelper.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - -public typealias EncodeResult = (data: Data?, error: Error?) - -enum DateError: String, Error { - case invalidDate -} - -open class CodableHelper { - - public static var dateformatter: DateFormatter? - - open class func decode(_ type: T.Type, from data: Data) -> (decodableObj: T?, error: Error?) where T : Decodable { - var returnedDecodable: T? = nil - var returnedError: Error? = nil - - let decoder = JSONDecoder() - - if let df = self.dateformatter { - decoder.dateDecodingStrategy = .formatted(df) - } else { - decoder.dataDecodingStrategy = .base64 - decoder.dateDecodingStrategy = .custom({ (decoder) -> Date in - let container = try decoder.singleValueContainer() - let dateStr = try container.decode(String.self) - - let formatters = [ - "yyyy-MM-dd", - "yyyy-MM-dd'T'HH:mm:ssZZZZZ", - "yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ", - "yyyy-MM-dd'T'HH:mm:ss'Z'", - "yyyy-MM-dd'T'HH:mm:ss.SSS", - "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", - "yyyy-MM-dd HH:mm:ss" - ].map { (format: String) -> DateFormatter in - let formatter = DateFormatter() - formatter.locale = Locale(identifier: "en_US_POSIX") - formatter.dateFormat = format - return formatter - } - - for formatter in formatters { - - if let date = formatter.date(from: dateStr) { - return date - } - } - - throw DateError.invalidDate - }) - } - - do { - returnedDecodable = try decoder.decode(type, from: data) - } catch { - returnedError = error - } - - return (returnedDecodable, returnedError) - } - - open class func encode(_ value: T, prettyPrint: Bool = false) -> EncodeResult where T : Encodable { - var returnedData: Data? - var returnedError: Error? = nil - - let encoder = JSONEncoder() - if prettyPrint { - encoder.outputFormatting = .prettyPrinted - } - encoder.dataEncodingStrategy = .base64 - let formatter = DateFormatter() - formatter.calendar = Calendar(identifier: .iso8601) - formatter.locale = Locale(identifier: "en_US_POSIX") - formatter.timeZone = TimeZone(secondsFromGMT: 0) - formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSXXXXX" - encoder.dateEncodingStrategy = .formatted(formatter) - - do { - returnedData = try encoder.encode(value) - } catch { - returnedError = error - } - - return (returnedData, returnedError) - } -} diff --git a/JellyfinPlayer/Swaggers/Configuration.swift b/JellyfinPlayer/Swaggers/Configuration.swift deleted file mode 100644 index 139bced0..00000000 --- a/JellyfinPlayer/Swaggers/Configuration.swift +++ /dev/null @@ -1,15 +0,0 @@ -// Configuration.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - -open class Configuration { - - // This value is used to configure the date formatter that is used to serialize dates into JSON format. - // You must set it prior to encoding any dates, and it will only be read once. - public static var dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ" - -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Extensions.swift b/JellyfinPlayer/Swaggers/Extensions.swift deleted file mode 100644 index f9c33ea7..00000000 --- a/JellyfinPlayer/Swaggers/Extensions.swift +++ /dev/null @@ -1,173 +0,0 @@ -// Extensions.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - -extension Bool: JSONEncodable { - func encodeToJSON() -> Any { return self as Any } -} - -extension Float: JSONEncodable { - func encodeToJSON() -> Any { return self as Any } -} - -extension Int: JSONEncodable { - func encodeToJSON() -> Any { return self as Any } -} - -extension Int32: JSONEncodable { - func encodeToJSON() -> Any { return NSNumber(value: self as Int32) } -} - -extension Int64: JSONEncodable { - func encodeToJSON() -> Any { return NSNumber(value: self as Int64) } -} - -extension Double: JSONEncodable { - func encodeToJSON() -> Any { return self as Any } -} - -extension String: JSONEncodable { - func encodeToJSON() -> Any { return self as Any } -} - -private func encodeIfPossible(_ object: T) -> Any { - if let encodableObject = object as? JSONEncodable { - return encodableObject.encodeToJSON() - } else { - return object as Any - } -} - -extension Array: JSONEncodable { - func encodeToJSON() -> Any { - return self.map(encodeIfPossible) - } -} - -extension Dictionary: JSONEncodable { - func encodeToJSON() -> Any { - var dictionary = [AnyHashable: Any]() - for (key, value) in self { - dictionary[key] = encodeIfPossible(value) - } - return dictionary as Any - } -} - -extension Data: JSONEncodable { - func encodeToJSON() -> Any { - return self.base64EncodedString(options: Data.Base64EncodingOptions()) - } -} - -private let dateFormatter: DateFormatter = { - let fmt = DateFormatter() - fmt.dateFormat = Configuration.dateFormat - fmt.locale = Locale(identifier: "en_US_POSIX") - return fmt -}() - -extension Date: JSONEncodable { - func encodeToJSON() -> Any { - return dateFormatter.string(from: self) as Any - } -} - -extension UUID: JSONEncodable { - func encodeToJSON() -> Any { - return self.uuidString - } -} - -extension String: CodingKey { - - public var stringValue: String { - return self - } - - public init?(stringValue: String) { - self.init(stringLiteral: stringValue) - } - - public var intValue: Int? { - return nil - } - - public init?(intValue: Int) { - return nil - } - -} - -extension KeyedEncodingContainerProtocol { - - public mutating func encodeArray(_ values: [T], forKey key: Self.Key) throws where T : Encodable { - var arrayContainer = nestedUnkeyedContainer(forKey: key) - try arrayContainer.encode(contentsOf: values) - } - - public mutating func encodeArrayIfPresent(_ values: [T]?, forKey key: Self.Key) throws where T : Encodable { - if let values = values { - try encodeArray(values, forKey: key) - } - } - - public mutating func encodeMap(_ pairs: [Self.Key: T]) throws where T : Encodable { - for (key, value) in pairs { - try encode(value, forKey: key) - } - } - - public mutating func encodeMapIfPresent(_ pairs: [Self.Key: T]?) throws where T : Encodable { - if let pairs = pairs { - try encodeMap(pairs) - } - } - -} - -extension KeyedDecodingContainerProtocol { - - public func decodeArray(_ type: T.Type, forKey key: Self.Key) throws -> [T] where T : Decodable { - var tmpArray = [T]() - - var nestedContainer = try nestedUnkeyedContainer(forKey: key) - while !nestedContainer.isAtEnd { - let arrayValue = try nestedContainer.decode(T.self) - tmpArray.append(arrayValue) - } - - return tmpArray - } - - public func decodeArrayIfPresent(_ type: T.Type, forKey key: Self.Key) throws -> [T]? where T : Decodable { - var tmpArray: [T]? = nil - - if contains(key) { - tmpArray = try decodeArray(T.self, forKey: key) - } - - return tmpArray - } - - public func decodeMap(_ type: T.Type, excludedKeys: Set) throws -> [Self.Key: T] where T : Decodable { - var map: [Self.Key : T] = [:] - - for key in allKeys { - if !excludedKeys.contains(key) { - let value = try decode(T.self, forKey: key) - map[key] = value - } - } - - return map - } - -} - - diff --git a/JellyfinPlayer/Swaggers/JSONEncodableEncoding.swift b/JellyfinPlayer/Swaggers/JSONEncodableEncoding.swift deleted file mode 100644 index 472e955e..00000000 --- a/JellyfinPlayer/Swaggers/JSONEncodableEncoding.swift +++ /dev/null @@ -1,54 +0,0 @@ -// -// JSONDataEncoding.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - -public struct JSONDataEncoding: ParameterEncoding { - - // MARK: Properties - - private static let jsonDataKey = "jsonData" - - // MARK: Encoding - - /// Creates a URL request by encoding parameters and applying them onto an existing request. - /// - /// - parameter urlRequest: The request to have parameters applied. - /// - parameter parameters: The parameters to apply. This should have a single key/value - /// pair with "jsonData" as the key and a Data object as the value. - /// - /// - throws: An `Error` if the encoding process encounters an error. - /// - /// - returns: The encoded request. - public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest { - var urlRequest = try urlRequest.asURLRequest() - - guard let jsonData = parameters?[JSONDataEncoding.jsonDataKey] as? Data, !jsonData.isEmpty else { - return urlRequest - } - - if urlRequest.value(forHTTPHeaderField: "Content-Type") == nil { - urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type") - } - - urlRequest.httpBody = jsonData - - return urlRequest - } - - public static func encodingParameters(jsonData: Data?) -> Parameters? { - var returnedParams: Parameters? = nil - if let jsonData = jsonData, !jsonData.isEmpty { - var params = Parameters() - params[jsonDataKey] = jsonData - returnedParams = params - } - return returnedParams - } - -} diff --git a/JellyfinPlayer/Swaggers/JSONEncodingHelper.swift b/JellyfinPlayer/Swaggers/JSONEncodingHelper.swift deleted file mode 100644 index 19ee06b1..00000000 --- a/JellyfinPlayer/Swaggers/JSONEncodingHelper.swift +++ /dev/null @@ -1,43 +0,0 @@ -// -// JSONEncodingHelper.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation -import Alamofire - -open class JSONEncodingHelper { - - open class func encodingParameters(forEncodableObject encodableObj: T?) -> Parameters? { - var params: Parameters? = nil - - // Encode the Encodable object - if let encodableObj = encodableObj { - let encodeResult = CodableHelper.encode(encodableObj, prettyPrint: true) - if encodeResult.error == nil { - params = JSONDataEncoding.encodingParameters(jsonData: encodeResult.data) - } - } - - return params - } - - open class func encodingParameters(forEncodableObject encodableObj: Any?) -> Parameters? { - var params: Parameters? = nil - - if let encodableObj = encodableObj { - do { - let data = try JSONSerialization.data(withJSONObject: encodableObj, options: .prettyPrinted) - params = JSONDataEncoding.encodingParameters(jsonData: data) - } catch { - print(error) - return nil - } - } - - return params - } - -} diff --git a/JellyfinPlayer/Swaggers/JSONValue.swift b/JellyfinPlayer/Swaggers/JSONValue.swift deleted file mode 100644 index 21a93ac8..00000000 --- a/JellyfinPlayer/Swaggers/JSONValue.swift +++ /dev/null @@ -1,99 +0,0 @@ -// -// JSONEncodingHelper.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum JSONValue: Codable, Equatable { - case string(String) - case int(Int) - case double(Double) - case bool(Bool) - case object([String: JSONValue]) - case array([JSONValue]) - case null - - public func encode(to encoder: Encoder) throws { - var container = encoder.singleValueContainer() - switch self { - case .string(let string): try container.encode(string) - case .int(let int): try container.encode(int) - case .double(let double): try container.encode(double) - case .bool(let bool): try container.encode(bool) - case .object(let object): try container.encode(object) - case .array(let array): try container.encode(array) - case .null: try container.encode(Optional.none) - } - } - - public init(from decoder: Decoder) throws { - let container = try decoder.singleValueContainer() - self = try ((try? container.decode(String.self)).map(JSONValue.string)) - .or((try? container.decode(Int.self)).map(JSONValue.int)) - .or((try? container.decode(Double.self)).map(JSONValue.double)) - .or((try? container.decode(Bool.self)).map(JSONValue.bool)) - .or((try? container.decode([String: JSONValue].self)).map(JSONValue.object)) - .or((try? container.decode([JSONValue].self)).map(JSONValue.array)) - .or((container.decodeNil() ? .some(JSONValue.null) : .none)) - .resolve( - with: DecodingError.typeMismatch( - JSONValue.self, - DecodingError.Context( - codingPath: container.codingPath, - debugDescription: "Not a JSON value" - ) - ) - ) - } - -} - -extension JSONValue: ExpressibleByStringLiteral { - public init(stringLiteral value: String) { - self = .string(value) - } -} -extension JSONValue: ExpressibleByIntegerLiteral { - public init(integerLiteral value: Int) { - self = .int(value) - } -} -extension JSONValue: ExpressibleByFloatLiteral { - public init(floatLiteral value: Double) { - self = .double(value) - } -} -extension JSONValue: ExpressibleByBooleanLiteral { - public init(booleanLiteral value: Bool) { - self = .bool(value) - } -} -extension JSONValue: ExpressibleByDictionaryLiteral { - public init(dictionaryLiteral elements: (String, JSONValue)...) { - self = .object([String: JSONValue](uniqueKeysWithValues: elements)) - } -} -extension JSONValue: ExpressibleByArrayLiteral { - public init(arrayLiteral elements: JSONValue...) { - self = .array(elements) - } -} - -fileprivate extension Optional { - func or(_ other: Optional) -> Optional { - switch self { - case .none: return other - case .some: return self - } - } - func resolve(with error: @autoclosure () -> Error) throws -> Wrapped { - switch self { - case .none: throw error() - case .some(let wrapped): return wrapped - } - } -} diff --git a/JellyfinPlayer/Swaggers/Models.swift b/JellyfinPlayer/Swaggers/Models.swift deleted file mode 100644 index d7dfe637..00000000 --- a/JellyfinPlayer/Swaggers/Models.swift +++ /dev/null @@ -1,36 +0,0 @@ -// Models.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - -protocol JSONEncodable { - func encodeToJSON() -> Any -} - -public enum ErrorResponse : Error { - case error(Int, Data?, Error) -} - -open class Response { - public let statusCode: Int - public let header: [String: String] - public let body: T? - - public init(statusCode: Int, header: [String: String], body: T?) { - self.statusCode = statusCode - self.header = header - self.body = body - } - - public convenience init(response: HTTPURLResponse, body: T?) { - let rawHeader = response.allHeaderFields - var header = [String:String]() - for case let (key, value) as (String, String) in rawHeader { - header[key] = value - } - self.init(statusCode: response.statusCode, header: header, body: body) - } -} diff --git a/JellyfinPlayer/Swaggers/Models/AccessSchedule.swift b/JellyfinPlayer/Swaggers/Models/AccessSchedule.swift deleted file mode 100644 index aeea407d..00000000 --- a/JellyfinPlayer/Swaggers/Models/AccessSchedule.swift +++ /dev/null @@ -1,42 +0,0 @@ -// -// AccessSchedule.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** An entity representing a user's access schedule. */ - -public struct AccessSchedule: Codable { - - /** Gets or sets the id of this instance. */ - public var _id: Int - /** Gets or sets the id of the associated user. */ - public var userId: UUID - /** Gets or sets the day of week. */ - public var dayOfWeek: AllOfAccessScheduleDayOfWeek - /** Gets or sets the start hour. */ - public var startHour: Double - /** Gets or sets the end hour. */ - public var endHour: Double - - public init(_id: Int, userId: UUID, dayOfWeek: AllOfAccessScheduleDayOfWeek, startHour: Double, endHour: Double) { - self._id = _id - self.userId = userId - self.dayOfWeek = dayOfWeek - self.startHour = startHour - self.endHour = endHour - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case userId = "UserId" - case dayOfWeek = "DayOfWeek" - case startHour = "StartHour" - case endHour = "EndHour" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ActivityLogEntry.swift b/JellyfinPlayer/Swaggers/Models/ActivityLogEntry.swift deleted file mode 100644 index 8c54ff9b..00000000 --- a/JellyfinPlayer/Swaggers/Models/ActivityLogEntry.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// ActivityLogEntry.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct ActivityLogEntry: Codable { - - /** Gets or sets the identifier. */ - public var _id: Int64? - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the overview. */ - public var overview: String? - /** Gets or sets the short overview. */ - public var shortOverview: String? - /** Gets or sets the type. */ - public var type: String? - /** Gets or sets the item identifier. */ - public var itemId: String? - /** Gets or sets the date. */ - public var date: Date? - /** Gets or sets the user identifier. */ - public var userId: UUID? - /** Gets or sets the user primary image tag. */ - public var userPrimaryImageTag: String? - /** Gets or sets the log severity. */ - public var severity: AllOfActivityLogEntrySeverity? - - public init(_id: Int64? = nil, name: String? = nil, overview: String? = nil, shortOverview: String? = nil, type: String? = nil, itemId: String? = nil, date: Date? = nil, userId: UUID? = nil, userPrimaryImageTag: String? = nil, severity: AllOfActivityLogEntrySeverity? = nil) { - self._id = _id - self.name = name - self.overview = overview - self.shortOverview = shortOverview - self.type = type - self.itemId = itemId - self.date = date - self.userId = userId - self.userPrimaryImageTag = userPrimaryImageTag - self.severity = severity - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case name = "Name" - case overview = "Overview" - case shortOverview = "ShortOverview" - case type = "Type" - case itemId = "ItemId" - case date = "Date" - case userId = "UserId" - case userPrimaryImageTag = "UserPrimaryImageTag" - case severity = "Severity" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ActivityLogEntryQueryResult.swift b/JellyfinPlayer/Swaggers/Models/ActivityLogEntryQueryResult.swift deleted file mode 100644 index e54b16ad..00000000 --- a/JellyfinPlayer/Swaggers/Models/ActivityLogEntryQueryResult.swift +++ /dev/null @@ -1,33 +0,0 @@ -// -// ActivityLogEntryQueryResult.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct ActivityLogEntryQueryResult: Codable { - - /** Gets or sets the items. */ - public var items: [ActivityLogEntry]? - /** The total number of records available. */ - public var totalRecordCount: Int? - /** The index of the first record in Items. */ - public var startIndex: Int? - - public init(items: [ActivityLogEntry]? = nil, totalRecordCount: Int? = nil, startIndex: Int? = nil) { - self.items = items - self.totalRecordCount = totalRecordCount - self.startIndex = startIndex - } - - public enum CodingKeys: String, CodingKey { - case items = "Items" - case totalRecordCount = "TotalRecordCount" - case startIndex = "StartIndex" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AddVirtualFolderDto.swift b/JellyfinPlayer/Swaggers/Models/AddVirtualFolderDto.swift deleted file mode 100644 index d841f677..00000000 --- a/JellyfinPlayer/Swaggers/Models/AddVirtualFolderDto.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// AddVirtualFolderDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Add virtual folder dto. */ - -public struct AddVirtualFolderDto: Codable { - - /** Gets or sets library options. */ - public var libraryOptions: AllOfAddVirtualFolderDtoLibraryOptions? - - public init(libraryOptions: AllOfAddVirtualFolderDtoLibraryOptions? = nil) { - self.libraryOptions = libraryOptions - } - - public enum CodingKeys: String, CodingKey { - case libraryOptions = "LibraryOptions" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AdminNotificationDto.swift b/JellyfinPlayer/Swaggers/Models/AdminNotificationDto.swift deleted file mode 100644 index 935f2793..00000000 --- a/JellyfinPlayer/Swaggers/Models/AdminNotificationDto.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// AdminNotificationDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The admin notification dto. */ - -public struct AdminNotificationDto: Codable { - - /** Gets or sets the notification name. */ - public var name: String? - /** Gets or sets the notification description. */ - public var _description: String? - /** Gets or sets the notification level. */ - public var notificationLevel: AllOfAdminNotificationDtoNotificationLevel? - /** Gets or sets the notification url. */ - public var url: String? - - public init(name: String? = nil, _description: String? = nil, notificationLevel: AllOfAdminNotificationDtoNotificationLevel? = nil, url: String? = nil) { - self.name = name - self._description = _description - self.notificationLevel = notificationLevel - self.url = url - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case _description = "Description" - case notificationLevel = "NotificationLevel" - case url = "Url" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AlbumInfo.swift b/JellyfinPlayer/Swaggers/Models/AlbumInfo.swift deleted file mode 100644 index 1790a4e7..00000000 --- a/JellyfinPlayer/Swaggers/Models/AlbumInfo.swift +++ /dev/null @@ -1,68 +0,0 @@ -// -// AlbumInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AlbumInfo: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the path. */ - public var path: String? - /** Gets or sets the metadata language. */ - public var metadataLanguage: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets the year. */ - public var year: Int? - public var indexNumber: Int? - public var parentIndexNumber: Int? - public var premiereDate: Date? - public var isAutomated: Bool? - /** Gets or sets the album artist. */ - public var albumArtists: [String]? - /** Gets or sets the artist provider ids. */ - public var artistProviderIds: [String:String]? - public var songInfos: [SongInfo]? - - public init(name: String? = nil, path: String? = nil, metadataLanguage: String? = nil, metadataCountryCode: String? = nil, providerIds: [String:String]? = nil, year: Int? = nil, indexNumber: Int? = nil, parentIndexNumber: Int? = nil, premiereDate: Date? = nil, isAutomated: Bool? = nil, albumArtists: [String]? = nil, artistProviderIds: [String:String]? = nil, songInfos: [SongInfo]? = nil) { - self.name = name - self.path = path - self.metadataLanguage = metadataLanguage - self.metadataCountryCode = metadataCountryCode - self.providerIds = providerIds - self.year = year - self.indexNumber = indexNumber - self.parentIndexNumber = parentIndexNumber - self.premiereDate = premiereDate - self.isAutomated = isAutomated - self.albumArtists = albumArtists - self.artistProviderIds = artistProviderIds - self.songInfos = songInfos - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case path = "Path" - case metadataLanguage = "MetadataLanguage" - case metadataCountryCode = "MetadataCountryCode" - case providerIds = "ProviderIds" - case year = "Year" - case indexNumber = "IndexNumber" - case parentIndexNumber = "ParentIndexNumber" - case premiereDate = "PremiereDate" - case isAutomated = "IsAutomated" - case albumArtists = "AlbumArtists" - case artistProviderIds = "ArtistProviderIds" - case songInfos = "SongInfos" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AlbumInfoRemoteSearchQuery.swift b/JellyfinPlayer/Swaggers/Models/AlbumInfoRemoteSearchQuery.swift deleted file mode 100644 index e530ad3d..00000000 --- a/JellyfinPlayer/Swaggers/Models/AlbumInfoRemoteSearchQuery.swift +++ /dev/null @@ -1,35 +0,0 @@ -// -// AlbumInfoRemoteSearchQuery.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AlbumInfoRemoteSearchQuery: Codable { - - public var searchInfo: AllOfAlbumInfoRemoteSearchQuerySearchInfo? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: AllOfAlbumInfoRemoteSearchQuerySearchInfo? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfAccessScheduleDayOfWeek.swift b/JellyfinPlayer/Swaggers/Models/AllOfAccessScheduleDayOfWeek.swift deleted file mode 100644 index 3786931f..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfAccessScheduleDayOfWeek.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfAccessScheduleDayOfWeek.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the day of week. */ - -public struct AllOfAccessScheduleDayOfWeek: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfActivityLogEntrySeverity.swift b/JellyfinPlayer/Swaggers/Models/AllOfActivityLogEntrySeverity.swift deleted file mode 100644 index 067aa138..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfActivityLogEntrySeverity.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfActivityLogEntrySeverity.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the log severity. */ - -public struct AllOfActivityLogEntrySeverity: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfAddVirtualFolderDtoLibraryOptions.swift b/JellyfinPlayer/Swaggers/Models/AllOfAddVirtualFolderDtoLibraryOptions.swift deleted file mode 100644 index ccf6d848..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfAddVirtualFolderDtoLibraryOptions.swift +++ /dev/null @@ -1,99 +0,0 @@ -// -// AllOfAddVirtualFolderDtoLibraryOptions.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets library options. */ - -public struct AllOfAddVirtualFolderDtoLibraryOptions: Codable { - - public var enablePhotos: Bool? - public var enableRealtimeMonitor: Bool? - public var enableChapterImageExtraction: Bool? - public var extractChapterImagesDuringLibraryScan: Bool? - public var pathInfos: [MediaPathInfo]? - public var saveLocalMetadata: Bool? - public var enableInternetProviders: Bool? - public var enableAutomaticSeriesGrouping: Bool? - public var enableEmbeddedTitles: Bool? - public var enableEmbeddedEpisodeInfos: Bool? - public var automaticRefreshIntervalDays: Int? - /** Gets or sets the preferred metadata language. */ - public var preferredMetadataLanguage: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - public var seasonZeroDisplayName: String? - public var metadataSavers: [String]? - public var disabledLocalMetadataReaders: [String]? - public var localMetadataReaderOrder: [String]? - public var disabledSubtitleFetchers: [String]? - public var subtitleFetcherOrder: [String]? - public var skipSubtitlesIfEmbeddedSubtitlesPresent: Bool? - public var skipSubtitlesIfAudioTrackMatches: Bool? - public var subtitleDownloadLanguages: [String]? - public var requirePerfectSubtitleMatch: Bool? - public var saveSubtitlesWithMedia: Bool? - public var typeOptions: [TypeOptions]? - - public init(enablePhotos: Bool? = nil, enableRealtimeMonitor: Bool? = nil, enableChapterImageExtraction: Bool? = nil, extractChapterImagesDuringLibraryScan: Bool? = nil, pathInfos: [MediaPathInfo]? = nil, saveLocalMetadata: Bool? = nil, enableInternetProviders: Bool? = nil, enableAutomaticSeriesGrouping: Bool? = nil, enableEmbeddedTitles: Bool? = nil, enableEmbeddedEpisodeInfos: Bool? = nil, automaticRefreshIntervalDays: Int? = nil, preferredMetadataLanguage: String? = nil, metadataCountryCode: String? = nil, seasonZeroDisplayName: String? = nil, metadataSavers: [String]? = nil, disabledLocalMetadataReaders: [String]? = nil, localMetadataReaderOrder: [String]? = nil, disabledSubtitleFetchers: [String]? = nil, subtitleFetcherOrder: [String]? = nil, skipSubtitlesIfEmbeddedSubtitlesPresent: Bool? = nil, skipSubtitlesIfAudioTrackMatches: Bool? = nil, subtitleDownloadLanguages: [String]? = nil, requirePerfectSubtitleMatch: Bool? = nil, saveSubtitlesWithMedia: Bool? = nil, typeOptions: [TypeOptions]? = nil) { - self.enablePhotos = enablePhotos - self.enableRealtimeMonitor = enableRealtimeMonitor - self.enableChapterImageExtraction = enableChapterImageExtraction - self.extractChapterImagesDuringLibraryScan = extractChapterImagesDuringLibraryScan - self.pathInfos = pathInfos - self.saveLocalMetadata = saveLocalMetadata - self.enableInternetProviders = enableInternetProviders - self.enableAutomaticSeriesGrouping = enableAutomaticSeriesGrouping - self.enableEmbeddedTitles = enableEmbeddedTitles - self.enableEmbeddedEpisodeInfos = enableEmbeddedEpisodeInfos - self.automaticRefreshIntervalDays = automaticRefreshIntervalDays - self.preferredMetadataLanguage = preferredMetadataLanguage - self.metadataCountryCode = metadataCountryCode - self.seasonZeroDisplayName = seasonZeroDisplayName - self.metadataSavers = metadataSavers - self.disabledLocalMetadataReaders = disabledLocalMetadataReaders - self.localMetadataReaderOrder = localMetadataReaderOrder - self.disabledSubtitleFetchers = disabledSubtitleFetchers - self.subtitleFetcherOrder = subtitleFetcherOrder - self.skipSubtitlesIfEmbeddedSubtitlesPresent = skipSubtitlesIfEmbeddedSubtitlesPresent - self.skipSubtitlesIfAudioTrackMatches = skipSubtitlesIfAudioTrackMatches - self.subtitleDownloadLanguages = subtitleDownloadLanguages - self.requirePerfectSubtitleMatch = requirePerfectSubtitleMatch - self.saveSubtitlesWithMedia = saveSubtitlesWithMedia - self.typeOptions = typeOptions - } - - public enum CodingKeys: String, CodingKey { - case enablePhotos = "EnablePhotos" - case enableRealtimeMonitor = "EnableRealtimeMonitor" - case enableChapterImageExtraction = "EnableChapterImageExtraction" - case extractChapterImagesDuringLibraryScan = "ExtractChapterImagesDuringLibraryScan" - case pathInfos = "PathInfos" - case saveLocalMetadata = "SaveLocalMetadata" - case enableInternetProviders = "EnableInternetProviders" - case enableAutomaticSeriesGrouping = "EnableAutomaticSeriesGrouping" - case enableEmbeddedTitles = "EnableEmbeddedTitles" - case enableEmbeddedEpisodeInfos = "EnableEmbeddedEpisodeInfos" - case automaticRefreshIntervalDays = "AutomaticRefreshIntervalDays" - case preferredMetadataLanguage = "PreferredMetadataLanguage" - case metadataCountryCode = "MetadataCountryCode" - case seasonZeroDisplayName = "SeasonZeroDisplayName" - case metadataSavers = "MetadataSavers" - case disabledLocalMetadataReaders = "DisabledLocalMetadataReaders" - case localMetadataReaderOrder = "LocalMetadataReaderOrder" - case disabledSubtitleFetchers = "DisabledSubtitleFetchers" - case subtitleFetcherOrder = "SubtitleFetcherOrder" - case skipSubtitlesIfEmbeddedSubtitlesPresent = "SkipSubtitlesIfEmbeddedSubtitlesPresent" - case skipSubtitlesIfAudioTrackMatches = "SkipSubtitlesIfAudioTrackMatches" - case subtitleDownloadLanguages = "SubtitleDownloadLanguages" - case requirePerfectSubtitleMatch = "RequirePerfectSubtitleMatch" - case saveSubtitlesWithMedia = "SaveSubtitlesWithMedia" - case typeOptions = "TypeOptions" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfAdminNotificationDtoNotificationLevel.swift b/JellyfinPlayer/Swaggers/Models/AllOfAdminNotificationDtoNotificationLevel.swift deleted file mode 100644 index 7b1085a0..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfAdminNotificationDtoNotificationLevel.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfAdminNotificationDtoNotificationLevel.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the notification level. */ - -public struct AllOfAdminNotificationDtoNotificationLevel: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfAlbumInfoRemoteSearchQuerySearchInfo.swift b/JellyfinPlayer/Swaggers/Models/AllOfAlbumInfoRemoteSearchQuerySearchInfo.swift deleted file mode 100644 index 9e4509dd..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfAlbumInfoRemoteSearchQuerySearchInfo.swift +++ /dev/null @@ -1,68 +0,0 @@ -// -// AllOfAlbumInfoRemoteSearchQuerySearchInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfAlbumInfoRemoteSearchQuerySearchInfo: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the path. */ - public var path: String? - /** Gets or sets the metadata language. */ - public var metadataLanguage: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets the year. */ - public var year: Int? - public var indexNumber: Int? - public var parentIndexNumber: Int? - public var premiereDate: Date? - public var isAutomated: Bool? - /** Gets or sets the album artist. */ - public var albumArtists: [String]? - /** Gets or sets the artist provider ids. */ - public var artistProviderIds: [String:String]? - public var songInfos: [SongInfo]? - - public init(name: String? = nil, path: String? = nil, metadataLanguage: String? = nil, metadataCountryCode: String? = nil, providerIds: [String:String]? = nil, year: Int? = nil, indexNumber: Int? = nil, parentIndexNumber: Int? = nil, premiereDate: Date? = nil, isAutomated: Bool? = nil, albumArtists: [String]? = nil, artistProviderIds: [String:String]? = nil, songInfos: [SongInfo]? = nil) { - self.name = name - self.path = path - self.metadataLanguage = metadataLanguage - self.metadataCountryCode = metadataCountryCode - self.providerIds = providerIds - self.year = year - self.indexNumber = indexNumber - self.parentIndexNumber = parentIndexNumber - self.premiereDate = premiereDate - self.isAutomated = isAutomated - self.albumArtists = albumArtists - self.artistProviderIds = artistProviderIds - self.songInfos = songInfos - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case path = "Path" - case metadataLanguage = "MetadataLanguage" - case metadataCountryCode = "MetadataCountryCode" - case providerIds = "ProviderIds" - case year = "Year" - case indexNumber = "IndexNumber" - case parentIndexNumber = "ParentIndexNumber" - case premiereDate = "PremiereDate" - case isAutomated = "IsAutomated" - case albumArtists = "AlbumArtists" - case artistProviderIds = "ArtistProviderIds" - case songInfos = "SongInfos" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfAllThemeMediaResultSoundtrackSongsResult.swift b/JellyfinPlayer/Swaggers/Models/AllOfAllThemeMediaResultSoundtrackSongsResult.swift deleted file mode 100644 index 1eba6a6f..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfAllThemeMediaResultSoundtrackSongsResult.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// AllOfAllThemeMediaResultSoundtrackSongsResult.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class ThemeMediaResult. */ - -public struct AllOfAllThemeMediaResultSoundtrackSongsResult: Codable { - - /** Gets or sets the items. */ - public var items: [BaseItemDto]? - /** The total number of records available. */ - public var totalRecordCount: Int? - /** The index of the first record in Items. */ - public var startIndex: Int? - /** Gets or sets the owner id. */ - public var ownerId: UUID? - - public init(items: [BaseItemDto]? = nil, totalRecordCount: Int? = nil, startIndex: Int? = nil, ownerId: UUID? = nil) { - self.items = items - self.totalRecordCount = totalRecordCount - self.startIndex = startIndex - self.ownerId = ownerId - } - - public enum CodingKeys: String, CodingKey { - case items = "Items" - case totalRecordCount = "TotalRecordCount" - case startIndex = "StartIndex" - case ownerId = "OwnerId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfAllThemeMediaResultThemeSongsResult.swift b/JellyfinPlayer/Swaggers/Models/AllOfAllThemeMediaResultThemeSongsResult.swift deleted file mode 100644 index a07e598a..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfAllThemeMediaResultThemeSongsResult.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// AllOfAllThemeMediaResultThemeSongsResult.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class ThemeMediaResult. */ - -public struct AllOfAllThemeMediaResultThemeSongsResult: Codable { - - /** Gets or sets the items. */ - public var items: [BaseItemDto]? - /** The total number of records available. */ - public var totalRecordCount: Int? - /** The index of the first record in Items. */ - public var startIndex: Int? - /** Gets or sets the owner id. */ - public var ownerId: UUID? - - public init(items: [BaseItemDto]? = nil, totalRecordCount: Int? = nil, startIndex: Int? = nil, ownerId: UUID? = nil) { - self.items = items - self.totalRecordCount = totalRecordCount - self.startIndex = startIndex - self.ownerId = ownerId - } - - public enum CodingKeys: String, CodingKey { - case items = "Items" - case totalRecordCount = "TotalRecordCount" - case startIndex = "StartIndex" - case ownerId = "OwnerId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfAllThemeMediaResultThemeVideosResult.swift b/JellyfinPlayer/Swaggers/Models/AllOfAllThemeMediaResultThemeVideosResult.swift deleted file mode 100644 index 1df1996d..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfAllThemeMediaResultThemeVideosResult.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// AllOfAllThemeMediaResultThemeVideosResult.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class ThemeMediaResult. */ - -public struct AllOfAllThemeMediaResultThemeVideosResult: Codable { - - /** Gets or sets the items. */ - public var items: [BaseItemDto]? - /** The total number of records available. */ - public var totalRecordCount: Int? - /** The index of the first record in Items. */ - public var startIndex: Int? - /** Gets or sets the owner id. */ - public var ownerId: UUID? - - public init(items: [BaseItemDto]? = nil, totalRecordCount: Int? = nil, startIndex: Int? = nil, ownerId: UUID? = nil) { - self.items = items - self.totalRecordCount = totalRecordCount - self.startIndex = startIndex - self.ownerId = ownerId - } - - public enum CodingKeys: String, CodingKey { - case items = "Items" - case totalRecordCount = "TotalRecordCount" - case startIndex = "StartIndex" - case ownerId = "OwnerId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfArtistInfoRemoteSearchQuerySearchInfo.swift b/JellyfinPlayer/Swaggers/Models/AllOfArtistInfoRemoteSearchQuerySearchInfo.swift deleted file mode 100644 index dde4ab85..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfArtistInfoRemoteSearchQuerySearchInfo.swift +++ /dev/null @@ -1,60 +0,0 @@ -// -// AllOfArtistInfoRemoteSearchQuerySearchInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfArtistInfoRemoteSearchQuerySearchInfo: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the path. */ - public var path: String? - /** Gets or sets the metadata language. */ - public var metadataLanguage: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets the year. */ - public var year: Int? - public var indexNumber: Int? - public var parentIndexNumber: Int? - public var premiereDate: Date? - public var isAutomated: Bool? - public var songInfos: [SongInfo]? - - public init(name: String? = nil, path: String? = nil, metadataLanguage: String? = nil, metadataCountryCode: String? = nil, providerIds: [String:String]? = nil, year: Int? = nil, indexNumber: Int? = nil, parentIndexNumber: Int? = nil, premiereDate: Date? = nil, isAutomated: Bool? = nil, songInfos: [SongInfo]? = nil) { - self.name = name - self.path = path - self.metadataLanguage = metadataLanguage - self.metadataCountryCode = metadataCountryCode - self.providerIds = providerIds - self.year = year - self.indexNumber = indexNumber - self.parentIndexNumber = parentIndexNumber - self.premiereDate = premiereDate - self.isAutomated = isAutomated - self.songInfos = songInfos - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case path = "Path" - case metadataLanguage = "MetadataLanguage" - case metadataCountryCode = "MetadataCountryCode" - case providerIds = "ProviderIds" - case year = "Year" - case indexNumber = "IndexNumber" - case parentIndexNumber = "ParentIndexNumber" - case premiereDate = "PremiereDate" - case isAutomated = "IsAutomated" - case songInfos = "SongInfos" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfAuthenticationResultSessionInfo.swift b/JellyfinPlayer/Swaggers/Models/AllOfAuthenticationResultSessionInfo.swift deleted file mode 100644 index 49bffbc5..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfAuthenticationResultSessionInfo.swift +++ /dev/null @@ -1,123 +0,0 @@ -// -// AllOfAuthenticationResultSessionInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class SessionInfo. */ - -public struct AllOfAuthenticationResultSessionInfo: Codable { - - public var playState: Any? - public var additionalUsers: [SessionUserInfo]? - public var capabilities: Any? - /** Gets or sets the remote end point. */ - public var remoteEndPoint: String? - /** Gets or sets the playable media types. */ - public var playableMediaTypes: [String]? - /** Gets or sets the id. */ - public var _id: String? - /** Gets or sets the user id. */ - public var userId: UUID? - /** Gets or sets the username. */ - public var userName: String? - /** Gets or sets the type of the client. */ - public var client: String? - /** Gets or sets the last activity date. */ - public var lastActivityDate: Date? - /** Gets or sets the last playback check in. */ - public var lastPlaybackCheckIn: Date? - /** Gets or sets the name of the device. */ - public var deviceName: String? - /** Gets or sets the type of the device. */ - public var deviceType: String? - /** Gets or sets the now playing item. */ - public var nowPlayingItem: Any? - /** Class BaseItem. */ - public var fullNowPlayingItem: Any? - /** This is strictly used as a data transfer object from the api layer. This holds information about a BaseItem in a format that is convenient for the client. */ - public var nowViewingItem: Any? - /** Gets or sets the device id. */ - public var deviceId: String? - /** Gets or sets the application version. */ - public var applicationVersion: String? - public var transcodingInfo: Any? - /** Gets a value indicating whether this instance is active. */ - public var isActive: Bool? - public var supportsMediaControl: Bool? - public var supportsRemoteControl: Bool? - public var nowPlayingQueue: [QueueItem]? - public var hasCustomDeviceName: Bool? - public var playlistItemId: String? - public var serverId: String? - public var userPrimaryImageTag: String? - /** Gets or sets the supported commands. */ - public var supportedCommands: [GeneralCommandType]? - - public init(playState: Any? = nil, additionalUsers: [SessionUserInfo]? = nil, capabilities: Any? = nil, remoteEndPoint: String? = nil, playableMediaTypes: [String]? = nil, _id: String? = nil, userId: UUID? = nil, userName: String? = nil, client: String? = nil, lastActivityDate: Date? = nil, lastPlaybackCheckIn: Date? = nil, deviceName: String? = nil, deviceType: String? = nil, nowPlayingItem: Any? = nil, fullNowPlayingItem: Any? = nil, nowViewingItem: Any? = nil, deviceId: String? = nil, applicationVersion: String? = nil, transcodingInfo: Any? = nil, isActive: Bool? = nil, supportsMediaControl: Bool? = nil, supportsRemoteControl: Bool? = nil, nowPlayingQueue: [QueueItem]? = nil, hasCustomDeviceName: Bool? = nil, playlistItemId: String? = nil, serverId: String? = nil, userPrimaryImageTag: String? = nil, supportedCommands: [GeneralCommandType]? = nil) { - self.playState = playState - self.additionalUsers = additionalUsers - self.capabilities = capabilities - self.remoteEndPoint = remoteEndPoint - self.playableMediaTypes = playableMediaTypes - self._id = _id - self.userId = userId - self.userName = userName - self.client = client - self.lastActivityDate = lastActivityDate - self.lastPlaybackCheckIn = lastPlaybackCheckIn - self.deviceName = deviceName - self.deviceType = deviceType - self.nowPlayingItem = nowPlayingItem - self.fullNowPlayingItem = fullNowPlayingItem - self.nowViewingItem = nowViewingItem - self.deviceId = deviceId - self.applicationVersion = applicationVersion - self.transcodingInfo = transcodingInfo - self.isActive = isActive - self.supportsMediaControl = supportsMediaControl - self.supportsRemoteControl = supportsRemoteControl - self.nowPlayingQueue = nowPlayingQueue - self.hasCustomDeviceName = hasCustomDeviceName - self.playlistItemId = playlistItemId - self.serverId = serverId - self.userPrimaryImageTag = userPrimaryImageTag - self.supportedCommands = supportedCommands - } - - public enum CodingKeys: String, CodingKey { - case playState = "PlayState" - case additionalUsers = "AdditionalUsers" - case capabilities = "Capabilities" - case remoteEndPoint = "RemoteEndPoint" - case playableMediaTypes = "PlayableMediaTypes" - case _id = "Id" - case userId = "UserId" - case userName = "UserName" - case client = "Client" - case lastActivityDate = "LastActivityDate" - case lastPlaybackCheckIn = "LastPlaybackCheckIn" - case deviceName = "DeviceName" - case deviceType = "DeviceType" - case nowPlayingItem = "NowPlayingItem" - case fullNowPlayingItem = "FullNowPlayingItem" - case nowViewingItem = "NowViewingItem" - case deviceId = "DeviceId" - case applicationVersion = "ApplicationVersion" - case transcodingInfo = "TranscodingInfo" - case isActive = "IsActive" - case supportsMediaControl = "SupportsMediaControl" - case supportsRemoteControl = "SupportsRemoteControl" - case nowPlayingQueue = "NowPlayingQueue" - case hasCustomDeviceName = "HasCustomDeviceName" - case playlistItemId = "PlaylistItemId" - case serverId = "ServerId" - case userPrimaryImageTag = "UserPrimaryImageTag" - case supportedCommands = "SupportedCommands" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfAuthenticationResultUser.swift b/JellyfinPlayer/Swaggers/Models/AllOfAuthenticationResultUser.swift deleted file mode 100644 index 44be93f3..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfAuthenticationResultUser.swift +++ /dev/null @@ -1,78 +0,0 @@ -// -// AllOfAuthenticationResultUser.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class UserDto. */ - -public struct AllOfAuthenticationResultUser: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the server identifier. */ - public var serverId: String? - /** Gets or sets the name of the server. This is not used by the server and is for client-side usage only. */ - public var serverName: String? - /** Gets or sets the id. */ - public var _id: UUID? - /** Gets or sets the primary image tag. */ - public var primaryImageTag: String? - /** Gets or sets a value indicating whether this instance has password. */ - public var hasPassword: Bool? - /** Gets or sets a value indicating whether this instance has configured password. */ - public var hasConfiguredPassword: Bool? - /** Gets or sets a value indicating whether this instance has configured easy password. */ - public var hasConfiguredEasyPassword: Bool? - /** Gets or sets whether async login is enabled or not. */ - public var enableAutoLogin: Bool? - /** Gets or sets the last login date. */ - public var lastLoginDate: Date? - /** Gets or sets the last activity date. */ - public var lastActivityDate: Date? - /** Gets or sets the configuration. */ - public var configuration: Any? - /** Gets or sets the policy. */ - public var policy: Any? - /** Gets or sets the primary image aspect ratio. */ - public var primaryImageAspectRatio: Double? - - public init(name: String? = nil, serverId: String? = nil, serverName: String? = nil, _id: UUID? = nil, primaryImageTag: String? = nil, hasPassword: Bool? = nil, hasConfiguredPassword: Bool? = nil, hasConfiguredEasyPassword: Bool? = nil, enableAutoLogin: Bool? = nil, lastLoginDate: Date? = nil, lastActivityDate: Date? = nil, configuration: Any? = nil, policy: Any? = nil, primaryImageAspectRatio: Double? = nil) { - self.name = name - self.serverId = serverId - self.serverName = serverName - self._id = _id - self.primaryImageTag = primaryImageTag - self.hasPassword = hasPassword - self.hasConfiguredPassword = hasConfiguredPassword - self.hasConfiguredEasyPassword = hasConfiguredEasyPassword - self.enableAutoLogin = enableAutoLogin - self.lastLoginDate = lastLoginDate - self.lastActivityDate = lastActivityDate - self.configuration = configuration - self.policy = policy - self.primaryImageAspectRatio = primaryImageAspectRatio - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case serverId = "ServerId" - case serverName = "ServerName" - case _id = "Id" - case primaryImageTag = "PrimaryImageTag" - case hasPassword = "HasPassword" - case hasConfiguredPassword = "HasConfiguredPassword" - case hasConfiguredEasyPassword = "HasConfiguredEasyPassword" - case enableAutoLogin = "EnableAutoLogin" - case lastLoginDate = "LastLoginDate" - case lastActivityDate = "LastActivityDate" - case configuration = "Configuration" - case policy = "Policy" - case primaryImageAspectRatio = "PrimaryImageAspectRatio" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfBaseItemDtoAudio.swift b/JellyfinPlayer/Swaggers/Models/AllOfBaseItemDtoAudio.swift deleted file mode 100644 index 37e1ff1c..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfBaseItemDtoAudio.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfBaseItemDtoAudio.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the audio. */ - -public struct AllOfBaseItemDtoAudio: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfBaseItemDtoChannelType.swift b/JellyfinPlayer/Swaggers/Models/AllOfBaseItemDtoChannelType.swift deleted file mode 100644 index 87a601ad..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfBaseItemDtoChannelType.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfBaseItemDtoChannelType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the type of the channel. */ - -public struct AllOfBaseItemDtoChannelType: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfBaseItemDtoCurrentProgram.swift b/JellyfinPlayer/Swaggers/Models/AllOfBaseItemDtoCurrentProgram.swift deleted file mode 100644 index 74195a97..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfBaseItemDtoCurrentProgram.swift +++ /dev/null @@ -1,590 +0,0 @@ -// -// AllOfBaseItemDtoCurrentProgram.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the current program. */ - -public struct AllOfBaseItemDtoCurrentProgram: Codable { - - /** Gets or sets the name. */ - public var name: String? - public var originalTitle: String? - /** Gets or sets the server identifier. */ - public var serverId: String? - /** Gets or sets the id. */ - public var _id: UUID? - /** Gets or sets the etag. */ - public var etag: String? - /** Gets or sets the type of the source. */ - public var sourceType: String? - /** Gets or sets the playlist item identifier. */ - public var playlistItemId: String? - /** Gets or sets the date created. */ - public var dateCreated: Date? - public var dateLastMediaAdded: Date? - public var extraType: String? - public var airsBeforeSeasonNumber: Int? - public var airsAfterSeasonNumber: Int? - public var airsBeforeEpisodeNumber: Int? - public var canDelete: Bool? - public var canDownload: Bool? - public var hasSubtitles: Bool? - public var preferredMetadataLanguage: String? - public var preferredMetadataCountryCode: String? - /** Gets or sets a value indicating whether [supports synchronize]. */ - public var supportsSync: Bool? - public var container: String? - /** Gets or sets the name of the sort. */ - public var sortName: String? - public var forcedSortName: String? - /** Gets or sets the video3 D format. */ - public var video3DFormat: Any? - /** Gets or sets the premiere date. */ - public var premiereDate: Date? - /** Gets or sets the external urls. */ - public var externalUrls: [ExternalUrl]? - /** Gets or sets the media versions. */ - public var mediaSources: [MediaSourceInfo]? - /** Gets or sets the critic rating. */ - public var criticRating: Float? - public var productionLocations: [String]? - /** Gets or sets the path. */ - public var path: String? - public var enableMediaSourceDisplay: Bool? - /** Gets or sets the official rating. */ - public var officialRating: String? - /** Gets or sets the custom rating. */ - public var customRating: String? - /** Gets or sets the channel identifier. */ - public var channelId: UUID? - public var channelName: String? - /** Gets or sets the overview. */ - public var overview: String? - /** Gets or sets the taglines. */ - public var taglines: [String]? - /** Gets or sets the genres. */ - public var genres: [String]? - /** Gets or sets the community rating. */ - public var communityRating: Float? - /** Gets or sets the cumulative run time ticks. */ - public var cumulativeRunTimeTicks: Int64? - /** Gets or sets the run time ticks. */ - public var runTimeTicks: Int64? - /** Gets or sets the play access. */ - public var playAccess: Any? - /** Gets or sets the aspect ratio. */ - public var aspectRatio: String? - /** Gets or sets the production year. */ - public var productionYear: Int? - /** Gets or sets a value indicating whether this instance is place holder. */ - public var isPlaceHolder: Bool? - /** Gets or sets the number. */ - public var number: String? - public var channelNumber: String? - /** Gets or sets the index number. */ - public var indexNumber: Int? - /** Gets or sets the index number end. */ - public var indexNumberEnd: Int? - /** Gets or sets the parent index number. */ - public var parentIndexNumber: Int? - /** Gets or sets the trailer urls. */ - public var remoteTrailers: [MediaUrl]? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets a value indicating whether this instance is HD. */ - public var isHD: Bool? - /** Gets or sets a value indicating whether this instance is folder. */ - public var isFolder: Bool? - /** Gets or sets the parent id. */ - public var parentId: UUID? - /** Gets or sets the type. */ - public var type: String? - /** Gets or sets the people. */ - public var people: [BaseItemPerson]? - /** Gets or sets the studios. */ - public var studios: [NameGuidPair]? - public var genreItems: [NameGuidPair]? - /** If the item does not have a logo, this will hold the Id of the Parent that has one. */ - public var parentLogoItemId: String? - /** If the item does not have any backdrops, this will hold the Id of the Parent that has one. */ - public var parentBackdropItemId: String? - /** Gets or sets the parent backdrop image tags. */ - public var parentBackdropImageTags: [String]? - /** Gets or sets the local trailer count. */ - public var localTrailerCount: Int? - /** User data for this item based on the user it's being requested for. */ - public var userData: Any? - /** Gets or sets the recursive item count. */ - public var recursiveItemCount: Int? - /** Gets or sets the child count. */ - public var childCount: Int? - /** Gets or sets the name of the series. */ - public var seriesName: String? - /** Gets or sets the series id. */ - public var seriesId: UUID? - /** Gets or sets the season identifier. */ - public var seasonId: UUID? - /** Gets or sets the special feature count. */ - public var specialFeatureCount: Int? - /** Gets or sets the display preferences id. */ - public var displayPreferencesId: String? - /** Gets or sets the status. */ - public var status: String? - /** Gets or sets the air time. */ - public var airTime: String? - /** Gets or sets the air days. */ - public var airDays: [DayOfWeek]? - /** Gets or sets the tags. */ - public var tags: [String]? - /** Gets or sets the primary image aspect ratio, after image enhancements. */ - public var primaryImageAspectRatio: Double? - /** Gets or sets the artists. */ - public var artists: [String]? - /** Gets or sets the artist items. */ - public var artistItems: [NameGuidPair]? - /** Gets or sets the album. */ - public var album: String? - /** Gets or sets the type of the collection. */ - public var collectionType: String? - /** Gets or sets the display order. */ - public var displayOrder: String? - /** Gets or sets the album id. */ - public var albumId: UUID? - /** Gets or sets the album image tag. */ - public var albumPrimaryImageTag: String? - /** Gets or sets the series primary image tag. */ - public var seriesPrimaryImageTag: String? - /** Gets or sets the album artist. */ - public var albumArtist: String? - /** Gets or sets the album artists. */ - public var albumArtists: [NameGuidPair]? - /** Gets or sets the name of the season. */ - public var seasonName: String? - /** Gets or sets the media streams. */ - public var mediaStreams: [MediaStream]? - /** Gets or sets the type of the video. */ - public var videoType: Any? - /** Gets or sets the part count. */ - public var partCount: Int? - public var mediaSourceCount: Int? - /** Gets or sets the image tags. */ - public var imageTags: [String:String]? - /** Gets or sets the backdrop image tags. */ - public var backdropImageTags: [String]? - /** Gets or sets the screenshot image tags. */ - public var screenshotImageTags: [String]? - /** Gets or sets the parent logo image tag. */ - public var parentLogoImageTag: String? - /** If the item does not have a art, this will hold the Id of the Parent that has one. */ - public var parentArtItemId: String? - /** Gets or sets the parent art image tag. */ - public var parentArtImageTag: String? - /** Gets or sets the series thumb image tag. */ - public var seriesThumbImageTag: String? - public var imageBlurHashes: BaseItemDtoImageBlurHashes? - /** Gets or sets the series studio. */ - public var seriesStudio: String? - /** Gets or sets the parent thumb item id. */ - public var parentThumbItemId: String? - /** Gets or sets the parent thumb image tag. */ - public var parentThumbImageTag: String? - /** Gets or sets the parent primary image item identifier. */ - public var parentPrimaryImageItemId: String? - /** Gets or sets the parent primary image tag. */ - public var parentPrimaryImageTag: String? - /** Gets or sets the chapters. */ - public var chapters: [ChapterInfo]? - /** Gets or sets the type of the location. */ - public var locationType: Any? - /** Gets or sets the type of the iso. */ - public var isoType: Any? - /** Gets or sets the type of the media. */ - public var mediaType: String? - /** Gets or sets the end date. */ - public var endDate: Date? - /** Gets or sets the locked fields. */ - public var lockedFields: [MetadataField]? - /** Gets or sets the trailer count. */ - public var trailerCount: Int? - /** Gets or sets the movie count. */ - public var movieCount: Int? - /** Gets or sets the series count. */ - public var seriesCount: Int? - public var programCount: Int? - /** Gets or sets the episode count. */ - public var episodeCount: Int? - /** Gets or sets the song count. */ - public var songCount: Int? - /** Gets or sets the album count. */ - public var albumCount: Int? - public var artistCount: Int? - /** Gets or sets the music video count. */ - public var musicVideoCount: Int? - /** Gets or sets a value indicating whether [enable internet providers]. */ - public var lockData: Bool? - public var width: Int? - public var height: Int? - public var cameraMake: String? - public var cameraModel: String? - public var software: String? - public var exposureTime: Double? - public var focalLength: Double? - public var imageOrientation: Any? - public var aperture: Double? - public var shutterSpeed: Double? - public var latitude: Double? - public var longitude: Double? - public var altitude: Double? - public var isoSpeedRating: Int? - /** Gets or sets the series timer identifier. */ - public var seriesTimerId: String? - /** Gets or sets the program identifier. */ - public var programId: String? - /** Gets or sets the channel primary image tag. */ - public var channelPrimaryImageTag: String? - /** The start date of the recording, in UTC. */ - public var startDate: Date? - /** Gets or sets the completion percentage. */ - public var completionPercentage: Double? - /** Gets or sets a value indicating whether this instance is repeat. */ - public var isRepeat: Bool? - /** Gets or sets the episode title. */ - public var episodeTitle: String? - /** Gets or sets the type of the channel. */ - public var channelType: Any? - /** Gets or sets the audio. */ - public var audio: Any? - /** Gets or sets a value indicating whether this instance is movie. */ - public var isMovie: Bool? - /** Gets or sets a value indicating whether this instance is sports. */ - public var isSports: Bool? - /** Gets or sets a value indicating whether this instance is series. */ - public var isSeries: Bool? - /** Gets or sets a value indicating whether this instance is live. */ - public var isLive: Bool? - /** Gets or sets a value indicating whether this instance is news. */ - public var isNews: Bool? - /** Gets or sets a value indicating whether this instance is kids. */ - public var isKids: Bool? - /** Gets or sets a value indicating whether this instance is premiere. */ - public var isPremiere: Bool? - /** Gets or sets the timer identifier. */ - public var timerId: String? - /** Gets or sets the current program. */ - public var currentProgram: Any? - - public init(name: String? = nil, originalTitle: String? = nil, serverId: String? = nil, _id: UUID? = nil, etag: String? = nil, sourceType: String? = nil, playlistItemId: String? = nil, dateCreated: Date? = nil, dateLastMediaAdded: Date? = nil, extraType: String? = nil, airsBeforeSeasonNumber: Int? = nil, airsAfterSeasonNumber: Int? = nil, airsBeforeEpisodeNumber: Int? = nil, canDelete: Bool? = nil, canDownload: Bool? = nil, hasSubtitles: Bool? = nil, preferredMetadataLanguage: String? = nil, preferredMetadataCountryCode: String? = nil, supportsSync: Bool? = nil, container: String? = nil, sortName: String? = nil, forcedSortName: String? = nil, video3DFormat: Any? = nil, premiereDate: Date? = nil, externalUrls: [ExternalUrl]? = nil, mediaSources: [MediaSourceInfo]? = nil, criticRating: Float? = nil, productionLocations: [String]? = nil, path: String? = nil, enableMediaSourceDisplay: Bool? = nil, officialRating: String? = nil, customRating: String? = nil, channelId: UUID? = nil, channelName: String? = nil, overview: String? = nil, taglines: [String]? = nil, genres: [String]? = nil, communityRating: Float? = nil, cumulativeRunTimeTicks: Int64? = nil, runTimeTicks: Int64? = nil, playAccess: Any? = nil, aspectRatio: String? = nil, productionYear: Int? = nil, isPlaceHolder: Bool? = nil, number: String? = nil, channelNumber: String? = nil, indexNumber: Int? = nil, indexNumberEnd: Int? = nil, parentIndexNumber: Int? = nil, remoteTrailers: [MediaUrl]? = nil, providerIds: [String:String]? = nil, isHD: Bool? = nil, isFolder: Bool? = nil, parentId: UUID? = nil, type: String? = nil, people: [BaseItemPerson]? = nil, studios: [NameGuidPair]? = nil, genreItems: [NameGuidPair]? = nil, parentLogoItemId: String? = nil, parentBackdropItemId: String? = nil, parentBackdropImageTags: [String]? = nil, localTrailerCount: Int? = nil, userData: Any? = nil, recursiveItemCount: Int? = nil, childCount: Int? = nil, seriesName: String? = nil, seriesId: UUID? = nil, seasonId: UUID? = nil, specialFeatureCount: Int? = nil, displayPreferencesId: String? = nil, status: String? = nil, airTime: String? = nil, airDays: [DayOfWeek]? = nil, tags: [String]? = nil, primaryImageAspectRatio: Double? = nil, artists: [String]? = nil, artistItems: [NameGuidPair]? = nil, album: String? = nil, collectionType: String? = nil, displayOrder: String? = nil, albumId: UUID? = nil, albumPrimaryImageTag: String? = nil, seriesPrimaryImageTag: String? = nil, albumArtist: String? = nil, albumArtists: [NameGuidPair]? = nil, seasonName: String? = nil, mediaStreams: [MediaStream]? = nil, videoType: Any? = nil, partCount: Int? = nil, mediaSourceCount: Int? = nil, imageTags: [String:String]? = nil, backdropImageTags: [String]? = nil, screenshotImageTags: [String]? = nil, parentLogoImageTag: String? = nil, parentArtItemId: String? = nil, parentArtImageTag: String? = nil, seriesThumbImageTag: String? = nil, imageBlurHashes: BaseItemDtoImageBlurHashes? = nil, seriesStudio: String? = nil, parentThumbItemId: String? = nil, parentThumbImageTag: String? = nil, parentPrimaryImageItemId: String? = nil, parentPrimaryImageTag: String? = nil, chapters: [ChapterInfo]? = nil, locationType: Any? = nil, isoType: Any? = nil, mediaType: String? = nil, endDate: Date? = nil, lockedFields: [MetadataField]? = nil, trailerCount: Int? = nil, movieCount: Int? = nil, seriesCount: Int? = nil, programCount: Int? = nil, episodeCount: Int? = nil, songCount: Int? = nil, albumCount: Int? = nil, artistCount: Int? = nil, musicVideoCount: Int? = nil, lockData: Bool? = nil, width: Int? = nil, height: Int? = nil, cameraMake: String? = nil, cameraModel: String? = nil, software: String? = nil, exposureTime: Double? = nil, focalLength: Double? = nil, imageOrientation: Any? = nil, aperture: Double? = nil, shutterSpeed: Double? = nil, latitude: Double? = nil, longitude: Double? = nil, altitude: Double? = nil, isoSpeedRating: Int? = nil, seriesTimerId: String? = nil, programId: String? = nil, channelPrimaryImageTag: String? = nil, startDate: Date? = nil, completionPercentage: Double? = nil, isRepeat: Bool? = nil, episodeTitle: String? = nil, channelType: Any? = nil, audio: Any? = nil, isMovie: Bool? = nil, isSports: Bool? = nil, isSeries: Bool? = nil, isLive: Bool? = nil, isNews: Bool? = nil, isKids: Bool? = nil, isPremiere: Bool? = nil, timerId: String? = nil, currentProgram: Any? = nil) { - self.name = name - self.originalTitle = originalTitle - self.serverId = serverId - self._id = _id - self.etag = etag - self.sourceType = sourceType - self.playlistItemId = playlistItemId - self.dateCreated = dateCreated - self.dateLastMediaAdded = dateLastMediaAdded - self.extraType = extraType - self.airsBeforeSeasonNumber = airsBeforeSeasonNumber - self.airsAfterSeasonNumber = airsAfterSeasonNumber - self.airsBeforeEpisodeNumber = airsBeforeEpisodeNumber - self.canDelete = canDelete - self.canDownload = canDownload - self.hasSubtitles = hasSubtitles - self.preferredMetadataLanguage = preferredMetadataLanguage - self.preferredMetadataCountryCode = preferredMetadataCountryCode - self.supportsSync = supportsSync - self.container = container - self.sortName = sortName - self.forcedSortName = forcedSortName - self.video3DFormat = video3DFormat - self.premiereDate = premiereDate - self.externalUrls = externalUrls - self.mediaSources = mediaSources - self.criticRating = criticRating - self.productionLocations = productionLocations - self.path = path - self.enableMediaSourceDisplay = enableMediaSourceDisplay - self.officialRating = officialRating - self.customRating = customRating - self.channelId = channelId - self.channelName = channelName - self.overview = overview - self.taglines = taglines - self.genres = genres - self.communityRating = communityRating - self.cumulativeRunTimeTicks = cumulativeRunTimeTicks - self.runTimeTicks = runTimeTicks - self.playAccess = playAccess - self.aspectRatio = aspectRatio - self.productionYear = productionYear - self.isPlaceHolder = isPlaceHolder - self.number = number - self.channelNumber = channelNumber - self.indexNumber = indexNumber - self.indexNumberEnd = indexNumberEnd - self.parentIndexNumber = parentIndexNumber - self.remoteTrailers = remoteTrailers - self.providerIds = providerIds - self.isHD = isHD - self.isFolder = isFolder - self.parentId = parentId - self.type = type - self.people = people - self.studios = studios - self.genreItems = genreItems - self.parentLogoItemId = parentLogoItemId - self.parentBackdropItemId = parentBackdropItemId - self.parentBackdropImageTags = parentBackdropImageTags - self.localTrailerCount = localTrailerCount - self.userData = userData - self.recursiveItemCount = recursiveItemCount - self.childCount = childCount - self.seriesName = seriesName - self.seriesId = seriesId - self.seasonId = seasonId - self.specialFeatureCount = specialFeatureCount - self.displayPreferencesId = displayPreferencesId - self.status = status - self.airTime = airTime - self.airDays = airDays - self.tags = tags - self.primaryImageAspectRatio = primaryImageAspectRatio - self.artists = artists - self.artistItems = artistItems - self.album = album - self.collectionType = collectionType - self.displayOrder = displayOrder - self.albumId = albumId - self.albumPrimaryImageTag = albumPrimaryImageTag - self.seriesPrimaryImageTag = seriesPrimaryImageTag - self.albumArtist = albumArtist - self.albumArtists = albumArtists - self.seasonName = seasonName - self.mediaStreams = mediaStreams - self.videoType = videoType - self.partCount = partCount - self.mediaSourceCount = mediaSourceCount - self.imageTags = imageTags - self.backdropImageTags = backdropImageTags - self.screenshotImageTags = screenshotImageTags - self.parentLogoImageTag = parentLogoImageTag - self.parentArtItemId = parentArtItemId - self.parentArtImageTag = parentArtImageTag - self.seriesThumbImageTag = seriesThumbImageTag - self.imageBlurHashes = imageBlurHashes - self.seriesStudio = seriesStudio - self.parentThumbItemId = parentThumbItemId - self.parentThumbImageTag = parentThumbImageTag - self.parentPrimaryImageItemId = parentPrimaryImageItemId - self.parentPrimaryImageTag = parentPrimaryImageTag - self.chapters = chapters - self.locationType = locationType - self.isoType = isoType - self.mediaType = mediaType - self.endDate = endDate - self.lockedFields = lockedFields - self.trailerCount = trailerCount - self.movieCount = movieCount - self.seriesCount = seriesCount - self.programCount = programCount - self.episodeCount = episodeCount - self.songCount = songCount - self.albumCount = albumCount - self.artistCount = artistCount - self.musicVideoCount = musicVideoCount - self.lockData = lockData - self.width = width - self.height = height - self.cameraMake = cameraMake - self.cameraModel = cameraModel - self.software = software - self.exposureTime = exposureTime - self.focalLength = focalLength - self.imageOrientation = imageOrientation - self.aperture = aperture - self.shutterSpeed = shutterSpeed - self.latitude = latitude - self.longitude = longitude - self.altitude = altitude - self.isoSpeedRating = isoSpeedRating - self.seriesTimerId = seriesTimerId - self.programId = programId - self.channelPrimaryImageTag = channelPrimaryImageTag - self.startDate = startDate - self.completionPercentage = completionPercentage - self.isRepeat = isRepeat - self.episodeTitle = episodeTitle - self.channelType = channelType - self.audio = audio - self.isMovie = isMovie - self.isSports = isSports - self.isSeries = isSeries - self.isLive = isLive - self.isNews = isNews - self.isKids = isKids - self.isPremiere = isPremiere - self.timerId = timerId - self.currentProgram = currentProgram - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case originalTitle = "OriginalTitle" - case serverId = "ServerId" - case _id = "Id" - case etag = "Etag" - case sourceType = "SourceType" - case playlistItemId = "PlaylistItemId" - case dateCreated = "DateCreated" - case dateLastMediaAdded = "DateLastMediaAdded" - case extraType = "ExtraType" - case airsBeforeSeasonNumber = "AirsBeforeSeasonNumber" - case airsAfterSeasonNumber = "AirsAfterSeasonNumber" - case airsBeforeEpisodeNumber = "AirsBeforeEpisodeNumber" - case canDelete = "CanDelete" - case canDownload = "CanDownload" - case hasSubtitles = "HasSubtitles" - case preferredMetadataLanguage = "PreferredMetadataLanguage" - case preferredMetadataCountryCode = "PreferredMetadataCountryCode" - case supportsSync = "SupportsSync" - case container = "Container" - case sortName = "SortName" - case forcedSortName = "ForcedSortName" - case video3DFormat = "Video3DFormat" - case premiereDate = "PremiereDate" - case externalUrls = "ExternalUrls" - case mediaSources = "MediaSources" - case criticRating = "CriticRating" - case productionLocations = "ProductionLocations" - case path = "Path" - case enableMediaSourceDisplay = "EnableMediaSourceDisplay" - case officialRating = "OfficialRating" - case customRating = "CustomRating" - case channelId = "ChannelId" - case channelName = "ChannelName" - case overview = "Overview" - case taglines = "Taglines" - case genres = "Genres" - case communityRating = "CommunityRating" - case cumulativeRunTimeTicks = "CumulativeRunTimeTicks" - case runTimeTicks = "RunTimeTicks" - case playAccess = "PlayAccess" - case aspectRatio = "AspectRatio" - case productionYear = "ProductionYear" - case isPlaceHolder = "IsPlaceHolder" - case number = "Number" - case channelNumber = "ChannelNumber" - case indexNumber = "IndexNumber" - case indexNumberEnd = "IndexNumberEnd" - case parentIndexNumber = "ParentIndexNumber" - case remoteTrailers = "RemoteTrailers" - case providerIds = "ProviderIds" - case isHD = "IsHD" - case isFolder = "IsFolder" - case parentId = "ParentId" - case type = "Type" - case people = "People" - case studios = "Studios" - case genreItems = "GenreItems" - case parentLogoItemId = "ParentLogoItemId" - case parentBackdropItemId = "ParentBackdropItemId" - case parentBackdropImageTags = "ParentBackdropImageTags" - case localTrailerCount = "LocalTrailerCount" - case userData = "UserData" - case recursiveItemCount = "RecursiveItemCount" - case childCount = "ChildCount" - case seriesName = "SeriesName" - case seriesId = "SeriesId" - case seasonId = "SeasonId" - case specialFeatureCount = "SpecialFeatureCount" - case displayPreferencesId = "DisplayPreferencesId" - case status = "Status" - case airTime = "AirTime" - case airDays = "AirDays" - case tags = "Tags" - case primaryImageAspectRatio = "PrimaryImageAspectRatio" - case artists = "Artists" - case artistItems = "ArtistItems" - case album = "Album" - case collectionType = "CollectionType" - case displayOrder = "DisplayOrder" - case albumId = "AlbumId" - case albumPrimaryImageTag = "AlbumPrimaryImageTag" - case seriesPrimaryImageTag = "SeriesPrimaryImageTag" - case albumArtist = "AlbumArtist" - case albumArtists = "AlbumArtists" - case seasonName = "SeasonName" - case mediaStreams = "MediaStreams" - case videoType = "VideoType" - case partCount = "PartCount" - case mediaSourceCount = "MediaSourceCount" - case imageTags = "ImageTags" - case backdropImageTags = "BackdropImageTags" - case screenshotImageTags = "ScreenshotImageTags" - case parentLogoImageTag = "ParentLogoImageTag" - case parentArtItemId = "ParentArtItemId" - case parentArtImageTag = "ParentArtImageTag" - case seriesThumbImageTag = "SeriesThumbImageTag" - case imageBlurHashes = "ImageBlurHashes" - case seriesStudio = "SeriesStudio" - case parentThumbItemId = "ParentThumbItemId" - case parentThumbImageTag = "ParentThumbImageTag" - case parentPrimaryImageItemId = "ParentPrimaryImageItemId" - case parentPrimaryImageTag = "ParentPrimaryImageTag" - case chapters = "Chapters" - case locationType = "LocationType" - case isoType = "IsoType" - case mediaType = "MediaType" - case endDate = "EndDate" - case lockedFields = "LockedFields" - case trailerCount = "TrailerCount" - case movieCount = "MovieCount" - case seriesCount = "SeriesCount" - case programCount = "ProgramCount" - case episodeCount = "EpisodeCount" - case songCount = "SongCount" - case albumCount = "AlbumCount" - case artistCount = "ArtistCount" - case musicVideoCount = "MusicVideoCount" - case lockData = "LockData" - case width = "Width" - case height = "Height" - case cameraMake = "CameraMake" - case cameraModel = "CameraModel" - case software = "Software" - case exposureTime = "ExposureTime" - case focalLength = "FocalLength" - case imageOrientation = "ImageOrientation" - case aperture = "Aperture" - case shutterSpeed = "ShutterSpeed" - case latitude = "Latitude" - case longitude = "Longitude" - case altitude = "Altitude" - case isoSpeedRating = "IsoSpeedRating" - case seriesTimerId = "SeriesTimerId" - case programId = "ProgramId" - case channelPrimaryImageTag = "ChannelPrimaryImageTag" - case startDate = "StartDate" - case completionPercentage = "CompletionPercentage" - case isRepeat = "IsRepeat" - case episodeTitle = "EpisodeTitle" - case channelType = "ChannelType" - case audio = "Audio" - case isMovie = "IsMovie" - case isSports = "IsSports" - case isSeries = "IsSeries" - case isLive = "IsLive" - case isNews = "IsNews" - case isKids = "IsKids" - case isPremiere = "IsPremiere" - case timerId = "TimerId" - case currentProgram = "CurrentProgram" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfBaseItemDtoImageOrientation.swift b/JellyfinPlayer/Swaggers/Models/AllOfBaseItemDtoImageOrientation.swift deleted file mode 100644 index a43b1763..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfBaseItemDtoImageOrientation.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// AllOfBaseItemDtoImageOrientation.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfBaseItemDtoImageOrientation: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfBaseItemDtoIsoType.swift b/JellyfinPlayer/Swaggers/Models/AllOfBaseItemDtoIsoType.swift deleted file mode 100644 index 2c9c3dc0..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfBaseItemDtoIsoType.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfBaseItemDtoIsoType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the type of the iso. */ - -public struct AllOfBaseItemDtoIsoType: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfBaseItemDtoLocationType.swift b/JellyfinPlayer/Swaggers/Models/AllOfBaseItemDtoLocationType.swift deleted file mode 100644 index 4c8a150c..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfBaseItemDtoLocationType.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfBaseItemDtoLocationType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the type of the location. */ - -public struct AllOfBaseItemDtoLocationType: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfBaseItemDtoPlayAccess.swift b/JellyfinPlayer/Swaggers/Models/AllOfBaseItemDtoPlayAccess.swift deleted file mode 100644 index a887087f..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfBaseItemDtoPlayAccess.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfBaseItemDtoPlayAccess.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the play access. */ - -public struct AllOfBaseItemDtoPlayAccess: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfBaseItemDtoUserData.swift b/JellyfinPlayer/Swaggers/Models/AllOfBaseItemDtoUserData.swift deleted file mode 100644 index 2d6e1141..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfBaseItemDtoUserData.swift +++ /dev/null @@ -1,66 +0,0 @@ -// -// AllOfBaseItemDtoUserData.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** User data for this item based on the user it's being requested for. */ - -public struct AllOfBaseItemDtoUserData: Codable { - - /** Gets or sets the rating. */ - public var rating: Double? - /** Gets or sets the played percentage. */ - public var playedPercentage: Double? - /** Gets or sets the unplayed item count. */ - public var unplayedItemCount: Int? - /** Gets or sets the playback position ticks. */ - public var playbackPositionTicks: Int64? - /** Gets or sets the play count. */ - public var playCount: Int? - /** Gets or sets a value indicating whether this instance is favorite. */ - public var isFavorite: Bool? - /** Gets or sets a value indicating whether this MediaBrowser.Model.Dto.UserItemDataDto is likes. */ - public var likes: Bool? - /** Gets or sets the last played date. */ - public var lastPlayedDate: Date? - /** Gets or sets a value indicating whether this MediaBrowser.Model.Dto.UserItemDataDto is played. */ - public var played: Bool? - /** Gets or sets the key. */ - public var key: String? - /** Gets or sets the item identifier. */ - public var itemId: String? - - public init(rating: Double? = nil, playedPercentage: Double? = nil, unplayedItemCount: Int? = nil, playbackPositionTicks: Int64? = nil, playCount: Int? = nil, isFavorite: Bool? = nil, likes: Bool? = nil, lastPlayedDate: Date? = nil, played: Bool? = nil, key: String? = nil, itemId: String? = nil) { - self.rating = rating - self.playedPercentage = playedPercentage - self.unplayedItemCount = unplayedItemCount - self.playbackPositionTicks = playbackPositionTicks - self.playCount = playCount - self.isFavorite = isFavorite - self.likes = likes - self.lastPlayedDate = lastPlayedDate - self.played = played - self.key = key - self.itemId = itemId - } - - public enum CodingKeys: String, CodingKey { - case rating = "Rating" - case playedPercentage = "PlayedPercentage" - case unplayedItemCount = "UnplayedItemCount" - case playbackPositionTicks = "PlaybackPositionTicks" - case playCount = "PlayCount" - case isFavorite = "IsFavorite" - case likes = "Likes" - case lastPlayedDate = "LastPlayedDate" - case played = "Played" - case key = "Key" - case itemId = "ItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfBaseItemDtoVideo3DFormat.swift b/JellyfinPlayer/Swaggers/Models/AllOfBaseItemDtoVideo3DFormat.swift deleted file mode 100644 index ca45763c..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfBaseItemDtoVideo3DFormat.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfBaseItemDtoVideo3DFormat.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the video3 D format. */ - -public struct AllOfBaseItemDtoVideo3DFormat: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfBaseItemDtoVideoType.swift b/JellyfinPlayer/Swaggers/Models/AllOfBaseItemDtoVideoType.swift deleted file mode 100644 index b6b6bbdb..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfBaseItemDtoVideoType.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfBaseItemDtoVideoType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the type of the video. */ - -public struct AllOfBaseItemDtoVideoType: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfBookInfoRemoteSearchQuerySearchInfo.swift b/JellyfinPlayer/Swaggers/Models/AllOfBookInfoRemoteSearchQuerySearchInfo.swift deleted file mode 100644 index d5314b19..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfBookInfoRemoteSearchQuerySearchInfo.swift +++ /dev/null @@ -1,60 +0,0 @@ -// -// AllOfBookInfoRemoteSearchQuerySearchInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfBookInfoRemoteSearchQuerySearchInfo: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the path. */ - public var path: String? - /** Gets or sets the metadata language. */ - public var metadataLanguage: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets the year. */ - public var year: Int? - public var indexNumber: Int? - public var parentIndexNumber: Int? - public var premiereDate: Date? - public var isAutomated: Bool? - public var seriesName: String? - - public init(name: String? = nil, path: String? = nil, metadataLanguage: String? = nil, metadataCountryCode: String? = nil, providerIds: [String:String]? = nil, year: Int? = nil, indexNumber: Int? = nil, parentIndexNumber: Int? = nil, premiereDate: Date? = nil, isAutomated: Bool? = nil, seriesName: String? = nil) { - self.name = name - self.path = path - self.metadataLanguage = metadataLanguage - self.metadataCountryCode = metadataCountryCode - self.providerIds = providerIds - self.year = year - self.indexNumber = indexNumber - self.parentIndexNumber = parentIndexNumber - self.premiereDate = premiereDate - self.isAutomated = isAutomated - self.seriesName = seriesName - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case path = "Path" - case metadataLanguage = "MetadataLanguage" - case metadataCountryCode = "MetadataCountryCode" - case providerIds = "ProviderIds" - case year = "Year" - case indexNumber = "IndexNumber" - case parentIndexNumber = "ParentIndexNumber" - case premiereDate = "PremiereDate" - case isAutomated = "IsAutomated" - case seriesName = "SeriesName" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfBoxSetInfoRemoteSearchQuerySearchInfo.swift b/JellyfinPlayer/Swaggers/Models/AllOfBoxSetInfoRemoteSearchQuerySearchInfo.swift deleted file mode 100644 index f42cae3f..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfBoxSetInfoRemoteSearchQuerySearchInfo.swift +++ /dev/null @@ -1,57 +0,0 @@ -// -// AllOfBoxSetInfoRemoteSearchQuerySearchInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfBoxSetInfoRemoteSearchQuerySearchInfo: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the path. */ - public var path: String? - /** Gets or sets the metadata language. */ - public var metadataLanguage: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets the year. */ - public var year: Int? - public var indexNumber: Int? - public var parentIndexNumber: Int? - public var premiereDate: Date? - public var isAutomated: Bool? - - public init(name: String? = nil, path: String? = nil, metadataLanguage: String? = nil, metadataCountryCode: String? = nil, providerIds: [String:String]? = nil, year: Int? = nil, indexNumber: Int? = nil, parentIndexNumber: Int? = nil, premiereDate: Date? = nil, isAutomated: Bool? = nil) { - self.name = name - self.path = path - self.metadataLanguage = metadataLanguage - self.metadataCountryCode = metadataCountryCode - self.providerIds = providerIds - self.year = year - self.indexNumber = indexNumber - self.parentIndexNumber = parentIndexNumber - self.premiereDate = premiereDate - self.isAutomated = isAutomated - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case path = "Path" - case metadataLanguage = "MetadataLanguage" - case metadataCountryCode = "MetadataCountryCode" - case providerIds = "ProviderIds" - case year = "Year" - case indexNumber = "IndexNumber" - case parentIndexNumber = "ParentIndexNumber" - case premiereDate = "PremiereDate" - case isAutomated = "IsAutomated" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfClientCapabilitiesDeviceProfile.swift b/JellyfinPlayer/Swaggers/Models/AllOfClientCapabilitiesDeviceProfile.swift deleted file mode 100644 index 6b7c3db6..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfClientCapabilitiesDeviceProfile.swift +++ /dev/null @@ -1,178 +0,0 @@ -// -// AllOfClientCapabilitiesDeviceProfile.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Defines the MediaBrowser.Model.Dlna.DeviceProfile. */ - -public struct AllOfClientCapabilitiesDeviceProfile: Codable { - - /** Gets or sets the Name. */ - public var name: String? - /** Gets or sets the Id. */ - public var _id: String? - /** Gets or sets the Identification. */ - public var identification: Any? - /** Gets or sets the FriendlyName. */ - public var friendlyName: String? - /** Gets or sets the Manufacturer. */ - public var manufacturer: String? - /** Gets or sets the ManufacturerUrl. */ - public var manufacturerUrl: String? - /** Gets or sets the ModelName. */ - public var modelName: String? - /** Gets or sets the ModelDescription. */ - public var modelDescription: String? - /** Gets or sets the ModelNumber. */ - public var modelNumber: String? - /** Gets or sets the ModelUrl. */ - public var modelUrl: String? - /** Gets or sets the SerialNumber. */ - public var serialNumber: String? - /** Gets or sets a value indicating whether EnableAlbumArtInDidl. */ - public var enableAlbumArtInDidl: Bool? - /** Gets or sets a value indicating whether EnableSingleAlbumArtLimit. */ - public var enableSingleAlbumArtLimit: Bool? - /** Gets or sets a value indicating whether EnableSingleSubtitleLimit. */ - public var enableSingleSubtitleLimit: Bool? - /** Gets or sets the SupportedMediaTypes. */ - public var supportedMediaTypes: String? - /** Gets or sets the UserId. */ - public var userId: String? - /** Gets or sets the AlbumArtPn. */ - public var albumArtPn: String? - /** Gets or sets the MaxAlbumArtWidth. */ - public var maxAlbumArtWidth: Int? - /** Gets or sets the MaxAlbumArtHeight. */ - public var maxAlbumArtHeight: Int? - /** Gets or sets the MaxIconWidth. */ - public var maxIconWidth: Int? - /** Gets or sets the MaxIconHeight. */ - public var maxIconHeight: Int? - /** Gets or sets the MaxStreamingBitrate. */ - public var maxStreamingBitrate: Int? - /** Gets or sets the MaxStaticBitrate. */ - public var maxStaticBitrate: Int? - /** Gets or sets the MusicStreamingTranscodingBitrate. */ - public var musicStreamingTranscodingBitrate: Int? - /** Gets or sets the MaxStaticMusicBitrate. */ - public var maxStaticMusicBitrate: Int? - /** Gets or sets the content of the aggregationFlags element in the urn:schemas-sonycom:av namespace. */ - public var sonyAggregationFlags: String? - /** Gets or sets the ProtocolInfo. */ - public var protocolInfo: String? - /** Gets or sets the TimelineOffsetSeconds. */ - public var timelineOffsetSeconds: Int? - /** Gets or sets a value indicating whether RequiresPlainVideoItems. */ - public var requiresPlainVideoItems: Bool? - /** Gets or sets a value indicating whether RequiresPlainFolders. */ - public var requiresPlainFolders: Bool? - /** Gets or sets a value indicating whether EnableMSMediaReceiverRegistrar. */ - public var enableMSMediaReceiverRegistrar: Bool? - /** Gets or sets a value indicating whether IgnoreTranscodeByteRangeRequests. */ - public var ignoreTranscodeByteRangeRequests: Bool? - /** Gets or sets the XmlRootAttributes. */ - public var xmlRootAttributes: [XmlAttribute]? - /** Gets or sets the direct play profiles. */ - public var directPlayProfiles: [DirectPlayProfile]? - /** Gets or sets the transcoding profiles. */ - public var transcodingProfiles: [TranscodingProfile]? - /** Gets or sets the ContainerProfiles. */ - public var containerProfiles: [ContainerProfile]? - /** Gets or sets the CodecProfiles. */ - public var codecProfiles: [CodecProfile]? - /** Gets or sets the ResponseProfiles. */ - public var responseProfiles: [ResponseProfile]? - /** Gets or sets the SubtitleProfiles. */ - public var subtitleProfiles: [SubtitleProfile]? - - public init(name: String? = nil, _id: String? = nil, identification: Any? = nil, friendlyName: String? = nil, manufacturer: String? = nil, manufacturerUrl: String? = nil, modelName: String? = nil, modelDescription: String? = nil, modelNumber: String? = nil, modelUrl: String? = nil, serialNumber: String? = nil, enableAlbumArtInDidl: Bool? = nil, enableSingleAlbumArtLimit: Bool? = nil, enableSingleSubtitleLimit: Bool? = nil, supportedMediaTypes: String? = nil, userId: String? = nil, albumArtPn: String? = nil, maxAlbumArtWidth: Int? = nil, maxAlbumArtHeight: Int? = nil, maxIconWidth: Int? = nil, maxIconHeight: Int? = nil, maxStreamingBitrate: Int? = nil, maxStaticBitrate: Int? = nil, musicStreamingTranscodingBitrate: Int? = nil, maxStaticMusicBitrate: Int? = nil, sonyAggregationFlags: String? = nil, protocolInfo: String? = nil, timelineOffsetSeconds: Int? = nil, requiresPlainVideoItems: Bool? = nil, requiresPlainFolders: Bool? = nil, enableMSMediaReceiverRegistrar: Bool? = nil, ignoreTranscodeByteRangeRequests: Bool? = nil, xmlRootAttributes: [XmlAttribute]? = nil, directPlayProfiles: [DirectPlayProfile]? = nil, transcodingProfiles: [TranscodingProfile]? = nil, containerProfiles: [ContainerProfile]? = nil, codecProfiles: [CodecProfile]? = nil, responseProfiles: [ResponseProfile]? = nil, subtitleProfiles: [SubtitleProfile]? = nil) { - self.name = name - self._id = _id - self.identification = identification - self.friendlyName = friendlyName - self.manufacturer = manufacturer - self.manufacturerUrl = manufacturerUrl - self.modelName = modelName - self.modelDescription = modelDescription - self.modelNumber = modelNumber - self.modelUrl = modelUrl - self.serialNumber = serialNumber - self.enableAlbumArtInDidl = enableAlbumArtInDidl - self.enableSingleAlbumArtLimit = enableSingleAlbumArtLimit - self.enableSingleSubtitleLimit = enableSingleSubtitleLimit - self.supportedMediaTypes = supportedMediaTypes - self.userId = userId - self.albumArtPn = albumArtPn - self.maxAlbumArtWidth = maxAlbumArtWidth - self.maxAlbumArtHeight = maxAlbumArtHeight - self.maxIconWidth = maxIconWidth - self.maxIconHeight = maxIconHeight - self.maxStreamingBitrate = maxStreamingBitrate - self.maxStaticBitrate = maxStaticBitrate - self.musicStreamingTranscodingBitrate = musicStreamingTranscodingBitrate - self.maxStaticMusicBitrate = maxStaticMusicBitrate - self.sonyAggregationFlags = sonyAggregationFlags - self.protocolInfo = protocolInfo - self.timelineOffsetSeconds = timelineOffsetSeconds - self.requiresPlainVideoItems = requiresPlainVideoItems - self.requiresPlainFolders = requiresPlainFolders - self.enableMSMediaReceiverRegistrar = enableMSMediaReceiverRegistrar - self.ignoreTranscodeByteRangeRequests = ignoreTranscodeByteRangeRequests - self.xmlRootAttributes = xmlRootAttributes - self.directPlayProfiles = directPlayProfiles - self.transcodingProfiles = transcodingProfiles - self.containerProfiles = containerProfiles - self.codecProfiles = codecProfiles - self.responseProfiles = responseProfiles - self.subtitleProfiles = subtitleProfiles - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case _id = "Id" - case identification = "Identification" - case friendlyName = "FriendlyName" - case manufacturer = "Manufacturer" - case manufacturerUrl = "ManufacturerUrl" - case modelName = "ModelName" - case modelDescription = "ModelDescription" - case modelNumber = "ModelNumber" - case modelUrl = "ModelUrl" - case serialNumber = "SerialNumber" - case enableAlbumArtInDidl = "EnableAlbumArtInDidl" - case enableSingleAlbumArtLimit = "EnableSingleAlbumArtLimit" - case enableSingleSubtitleLimit = "EnableSingleSubtitleLimit" - case supportedMediaTypes = "SupportedMediaTypes" - case userId = "UserId" - case albumArtPn = "AlbumArtPn" - case maxAlbumArtWidth = "MaxAlbumArtWidth" - case maxAlbumArtHeight = "MaxAlbumArtHeight" - case maxIconWidth = "MaxIconWidth" - case maxIconHeight = "MaxIconHeight" - case maxStreamingBitrate = "MaxStreamingBitrate" - case maxStaticBitrate = "MaxStaticBitrate" - case musicStreamingTranscodingBitrate = "MusicStreamingTranscodingBitrate" - case maxStaticMusicBitrate = "MaxStaticMusicBitrate" - case sonyAggregationFlags = "SonyAggregationFlags" - case protocolInfo = "ProtocolInfo" - case timelineOffsetSeconds = "TimelineOffsetSeconds" - case requiresPlainVideoItems = "RequiresPlainVideoItems" - case requiresPlainFolders = "RequiresPlainFolders" - case enableMSMediaReceiverRegistrar = "EnableMSMediaReceiverRegistrar" - case ignoreTranscodeByteRangeRequests = "IgnoreTranscodeByteRangeRequests" - case xmlRootAttributes = "XmlRootAttributes" - case directPlayProfiles = "DirectPlayProfiles" - case transcodingProfiles = "TranscodingProfiles" - case containerProfiles = "ContainerProfiles" - case codecProfiles = "CodecProfiles" - case responseProfiles = "ResponseProfiles" - case subtitleProfiles = "SubtitleProfiles" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfClientCapabilitiesDtoDeviceProfile.swift b/JellyfinPlayer/Swaggers/Models/AllOfClientCapabilitiesDtoDeviceProfile.swift deleted file mode 100644 index 35a18ef4..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfClientCapabilitiesDtoDeviceProfile.swift +++ /dev/null @@ -1,178 +0,0 @@ -// -// AllOfClientCapabilitiesDtoDeviceProfile.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the device profile. */ - -public struct AllOfClientCapabilitiesDtoDeviceProfile: Codable { - - /** Gets or sets the Name. */ - public var name: String? - /** Gets or sets the Id. */ - public var _id: String? - /** Gets or sets the Identification. */ - public var identification: Any? - /** Gets or sets the FriendlyName. */ - public var friendlyName: String? - /** Gets or sets the Manufacturer. */ - public var manufacturer: String? - /** Gets or sets the ManufacturerUrl. */ - public var manufacturerUrl: String? - /** Gets or sets the ModelName. */ - public var modelName: String? - /** Gets or sets the ModelDescription. */ - public var modelDescription: String? - /** Gets or sets the ModelNumber. */ - public var modelNumber: String? - /** Gets or sets the ModelUrl. */ - public var modelUrl: String? - /** Gets or sets the SerialNumber. */ - public var serialNumber: String? - /** Gets or sets a value indicating whether EnableAlbumArtInDidl. */ - public var enableAlbumArtInDidl: Bool? - /** Gets or sets a value indicating whether EnableSingleAlbumArtLimit. */ - public var enableSingleAlbumArtLimit: Bool? - /** Gets or sets a value indicating whether EnableSingleSubtitleLimit. */ - public var enableSingleSubtitleLimit: Bool? - /** Gets or sets the SupportedMediaTypes. */ - public var supportedMediaTypes: String? - /** Gets or sets the UserId. */ - public var userId: String? - /** Gets or sets the AlbumArtPn. */ - public var albumArtPn: String? - /** Gets or sets the MaxAlbumArtWidth. */ - public var maxAlbumArtWidth: Int? - /** Gets or sets the MaxAlbumArtHeight. */ - public var maxAlbumArtHeight: Int? - /** Gets or sets the MaxIconWidth. */ - public var maxIconWidth: Int? - /** Gets or sets the MaxIconHeight. */ - public var maxIconHeight: Int? - /** Gets or sets the MaxStreamingBitrate. */ - public var maxStreamingBitrate: Int? - /** Gets or sets the MaxStaticBitrate. */ - public var maxStaticBitrate: Int? - /** Gets or sets the MusicStreamingTranscodingBitrate. */ - public var musicStreamingTranscodingBitrate: Int? - /** Gets or sets the MaxStaticMusicBitrate. */ - public var maxStaticMusicBitrate: Int? - /** Gets or sets the content of the aggregationFlags element in the urn:schemas-sonycom:av namespace. */ - public var sonyAggregationFlags: String? - /** Gets or sets the ProtocolInfo. */ - public var protocolInfo: String? - /** Gets or sets the TimelineOffsetSeconds. */ - public var timelineOffsetSeconds: Int? - /** Gets or sets a value indicating whether RequiresPlainVideoItems. */ - public var requiresPlainVideoItems: Bool? - /** Gets or sets a value indicating whether RequiresPlainFolders. */ - public var requiresPlainFolders: Bool? - /** Gets or sets a value indicating whether EnableMSMediaReceiverRegistrar. */ - public var enableMSMediaReceiverRegistrar: Bool? - /** Gets or sets a value indicating whether IgnoreTranscodeByteRangeRequests. */ - public var ignoreTranscodeByteRangeRequests: Bool? - /** Gets or sets the XmlRootAttributes. */ - public var xmlRootAttributes: [XmlAttribute]? - /** Gets or sets the direct play profiles. */ - public var directPlayProfiles: [DirectPlayProfile]? - /** Gets or sets the transcoding profiles. */ - public var transcodingProfiles: [TranscodingProfile]? - /** Gets or sets the ContainerProfiles. */ - public var containerProfiles: [ContainerProfile]? - /** Gets or sets the CodecProfiles. */ - public var codecProfiles: [CodecProfile]? - /** Gets or sets the ResponseProfiles. */ - public var responseProfiles: [ResponseProfile]? - /** Gets or sets the SubtitleProfiles. */ - public var subtitleProfiles: [SubtitleProfile]? - - public init(name: String? = nil, _id: String? = nil, identification: Any? = nil, friendlyName: String? = nil, manufacturer: String? = nil, manufacturerUrl: String? = nil, modelName: String? = nil, modelDescription: String? = nil, modelNumber: String? = nil, modelUrl: String? = nil, serialNumber: String? = nil, enableAlbumArtInDidl: Bool? = nil, enableSingleAlbumArtLimit: Bool? = nil, enableSingleSubtitleLimit: Bool? = nil, supportedMediaTypes: String? = nil, userId: String? = nil, albumArtPn: String? = nil, maxAlbumArtWidth: Int? = nil, maxAlbumArtHeight: Int? = nil, maxIconWidth: Int? = nil, maxIconHeight: Int? = nil, maxStreamingBitrate: Int? = nil, maxStaticBitrate: Int? = nil, musicStreamingTranscodingBitrate: Int? = nil, maxStaticMusicBitrate: Int? = nil, sonyAggregationFlags: String? = nil, protocolInfo: String? = nil, timelineOffsetSeconds: Int? = nil, requiresPlainVideoItems: Bool? = nil, requiresPlainFolders: Bool? = nil, enableMSMediaReceiverRegistrar: Bool? = nil, ignoreTranscodeByteRangeRequests: Bool? = nil, xmlRootAttributes: [XmlAttribute]? = nil, directPlayProfiles: [DirectPlayProfile]? = nil, transcodingProfiles: [TranscodingProfile]? = nil, containerProfiles: [ContainerProfile]? = nil, codecProfiles: [CodecProfile]? = nil, responseProfiles: [ResponseProfile]? = nil, subtitleProfiles: [SubtitleProfile]? = nil) { - self.name = name - self._id = _id - self.identification = identification - self.friendlyName = friendlyName - self.manufacturer = manufacturer - self.manufacturerUrl = manufacturerUrl - self.modelName = modelName - self.modelDescription = modelDescription - self.modelNumber = modelNumber - self.modelUrl = modelUrl - self.serialNumber = serialNumber - self.enableAlbumArtInDidl = enableAlbumArtInDidl - self.enableSingleAlbumArtLimit = enableSingleAlbumArtLimit - self.enableSingleSubtitleLimit = enableSingleSubtitleLimit - self.supportedMediaTypes = supportedMediaTypes - self.userId = userId - self.albumArtPn = albumArtPn - self.maxAlbumArtWidth = maxAlbumArtWidth - self.maxAlbumArtHeight = maxAlbumArtHeight - self.maxIconWidth = maxIconWidth - self.maxIconHeight = maxIconHeight - self.maxStreamingBitrate = maxStreamingBitrate - self.maxStaticBitrate = maxStaticBitrate - self.musicStreamingTranscodingBitrate = musicStreamingTranscodingBitrate - self.maxStaticMusicBitrate = maxStaticMusicBitrate - self.sonyAggregationFlags = sonyAggregationFlags - self.protocolInfo = protocolInfo - self.timelineOffsetSeconds = timelineOffsetSeconds - self.requiresPlainVideoItems = requiresPlainVideoItems - self.requiresPlainFolders = requiresPlainFolders - self.enableMSMediaReceiverRegistrar = enableMSMediaReceiverRegistrar - self.ignoreTranscodeByteRangeRequests = ignoreTranscodeByteRangeRequests - self.xmlRootAttributes = xmlRootAttributes - self.directPlayProfiles = directPlayProfiles - self.transcodingProfiles = transcodingProfiles - self.containerProfiles = containerProfiles - self.codecProfiles = codecProfiles - self.responseProfiles = responseProfiles - self.subtitleProfiles = subtitleProfiles - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case _id = "Id" - case identification = "Identification" - case friendlyName = "FriendlyName" - case manufacturer = "Manufacturer" - case manufacturerUrl = "ManufacturerUrl" - case modelName = "ModelName" - case modelDescription = "ModelDescription" - case modelNumber = "ModelNumber" - case modelUrl = "ModelUrl" - case serialNumber = "SerialNumber" - case enableAlbumArtInDidl = "EnableAlbumArtInDidl" - case enableSingleAlbumArtLimit = "EnableSingleAlbumArtLimit" - case enableSingleSubtitleLimit = "EnableSingleSubtitleLimit" - case supportedMediaTypes = "SupportedMediaTypes" - case userId = "UserId" - case albumArtPn = "AlbumArtPn" - case maxAlbumArtWidth = "MaxAlbumArtWidth" - case maxAlbumArtHeight = "MaxAlbumArtHeight" - case maxIconWidth = "MaxIconWidth" - case maxIconHeight = "MaxIconHeight" - case maxStreamingBitrate = "MaxStreamingBitrate" - case maxStaticBitrate = "MaxStaticBitrate" - case musicStreamingTranscodingBitrate = "MusicStreamingTranscodingBitrate" - case maxStaticMusicBitrate = "MaxStaticMusicBitrate" - case sonyAggregationFlags = "SonyAggregationFlags" - case protocolInfo = "ProtocolInfo" - case timelineOffsetSeconds = "TimelineOffsetSeconds" - case requiresPlainVideoItems = "RequiresPlainVideoItems" - case requiresPlainFolders = "RequiresPlainFolders" - case enableMSMediaReceiverRegistrar = "EnableMSMediaReceiverRegistrar" - case ignoreTranscodeByteRangeRequests = "IgnoreTranscodeByteRangeRequests" - case xmlRootAttributes = "XmlRootAttributes" - case directPlayProfiles = "DirectPlayProfiles" - case transcodingProfiles = "TranscodingProfiles" - case containerProfiles = "ContainerProfiles" - case codecProfiles = "CodecProfiles" - case responseProfiles = "ResponseProfiles" - case subtitleProfiles = "SubtitleProfiles" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfCodecProfileModelType.swift b/JellyfinPlayer/Swaggers/Models/AllOfCodecProfileModelType.swift deleted file mode 100644 index f99ae12c..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfCodecProfileModelType.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// AllOfCodecProfileModelType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfCodecProfileModelType: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfConfigurationPageInfoConfigurationPageType.swift b/JellyfinPlayer/Swaggers/Models/AllOfConfigurationPageInfoConfigurationPageType.swift deleted file mode 100644 index aafe8895..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfConfigurationPageInfoConfigurationPageType.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfConfigurationPageInfoConfigurationPageType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the type of the configuration page. */ - -public struct AllOfConfigurationPageInfoConfigurationPageType: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfContainerProfileModelType.swift b/JellyfinPlayer/Swaggers/Models/AllOfContainerProfileModelType.swift deleted file mode 100644 index 676439fa..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfContainerProfileModelType.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// AllOfContainerProfileModelType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfContainerProfileModelType: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfDeviceInfoCapabilities.swift b/JellyfinPlayer/Swaggers/Models/AllOfDeviceInfoCapabilities.swift deleted file mode 100644 index 1d2dc03e..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfDeviceInfoCapabilities.swift +++ /dev/null @@ -1,53 +0,0 @@ -// -// AllOfDeviceInfoCapabilities.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the capabilities. */ - -public struct AllOfDeviceInfoCapabilities: Codable { - - public var playableMediaTypes: [String]? - public var supportedCommands: [GeneralCommandType]? - public var supportsMediaControl: Bool? - public var supportsContentUploading: Bool? - public var messageCallbackUrl: String? - public var supportsPersistentIdentifier: Bool? - public var supportsSync: Bool? - /** Defines the MediaBrowser.Model.Dlna.DeviceProfile. */ - public var deviceProfile: Any? - public var appStoreUrl: String? - public var iconUrl: String? - - public init(playableMediaTypes: [String]? = nil, supportedCommands: [GeneralCommandType]? = nil, supportsMediaControl: Bool? = nil, supportsContentUploading: Bool? = nil, messageCallbackUrl: String? = nil, supportsPersistentIdentifier: Bool? = nil, supportsSync: Bool? = nil, deviceProfile: Any? = nil, appStoreUrl: String? = nil, iconUrl: String? = nil) { - self.playableMediaTypes = playableMediaTypes - self.supportedCommands = supportedCommands - self.supportsMediaControl = supportsMediaControl - self.supportsContentUploading = supportsContentUploading - self.messageCallbackUrl = messageCallbackUrl - self.supportsPersistentIdentifier = supportsPersistentIdentifier - self.supportsSync = supportsSync - self.deviceProfile = deviceProfile - self.appStoreUrl = appStoreUrl - self.iconUrl = iconUrl - } - - public enum CodingKeys: String, CodingKey { - case playableMediaTypes = "PlayableMediaTypes" - case supportedCommands = "SupportedCommands" - case supportsMediaControl = "SupportsMediaControl" - case supportsContentUploading = "SupportsContentUploading" - case messageCallbackUrl = "MessageCallbackUrl" - case supportsPersistentIdentifier = "SupportsPersistentIdentifier" - case supportsSync = "SupportsSync" - case deviceProfile = "DeviceProfile" - case appStoreUrl = "AppStoreUrl" - case iconUrl = "IconUrl" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfDeviceProfileIdentification.swift b/JellyfinPlayer/Swaggers/Models/AllOfDeviceProfileIdentification.swift deleted file mode 100644 index 6b1f28e0..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfDeviceProfileIdentification.swift +++ /dev/null @@ -1,58 +0,0 @@ -// -// AllOfDeviceProfileIdentification.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the Identification. */ - -public struct AllOfDeviceProfileIdentification: Codable { - - /** Gets or sets the name of the friendly. */ - public var friendlyName: String? - /** Gets or sets the model number. */ - public var modelNumber: String? - /** Gets or sets the serial number. */ - public var serialNumber: String? - /** Gets or sets the name of the model. */ - public var modelName: String? - /** Gets or sets the model description. */ - public var modelDescription: String? - /** Gets or sets the model URL. */ - public var modelUrl: String? - /** Gets or sets the manufacturer. */ - public var manufacturer: String? - /** Gets or sets the manufacturer URL. */ - public var manufacturerUrl: String? - /** Gets or sets the headers. */ - public var headers: [HttpHeaderInfo]? - - public init(friendlyName: String? = nil, modelNumber: String? = nil, serialNumber: String? = nil, modelName: String? = nil, modelDescription: String? = nil, modelUrl: String? = nil, manufacturer: String? = nil, manufacturerUrl: String? = nil, headers: [HttpHeaderInfo]? = nil) { - self.friendlyName = friendlyName - self.modelNumber = modelNumber - self.serialNumber = serialNumber - self.modelName = modelName - self.modelDescription = modelDescription - self.modelUrl = modelUrl - self.manufacturer = manufacturer - self.manufacturerUrl = manufacturerUrl - self.headers = headers - } - - public enum CodingKeys: String, CodingKey { - case friendlyName = "FriendlyName" - case modelNumber = "ModelNumber" - case serialNumber = "SerialNumber" - case modelName = "ModelName" - case modelDescription = "ModelDescription" - case modelUrl = "ModelUrl" - case manufacturer = "Manufacturer" - case manufacturerUrl = "ManufacturerUrl" - case headers = "Headers" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfDeviceProfileInfoModelType.swift b/JellyfinPlayer/Swaggers/Models/AllOfDeviceProfileInfoModelType.swift deleted file mode 100644 index ba57f2ef..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfDeviceProfileInfoModelType.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfDeviceProfileInfoModelType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the type. */ - -public struct AllOfDeviceProfileInfoModelType: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfDirectPlayProfileModelType.swift b/JellyfinPlayer/Swaggers/Models/AllOfDirectPlayProfileModelType.swift deleted file mode 100644 index 8635f3ec..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfDirectPlayProfileModelType.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// AllOfDirectPlayProfileModelType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfDirectPlayProfileModelType: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfDisplayPreferencesDtoScrollDirection.swift b/JellyfinPlayer/Swaggers/Models/AllOfDisplayPreferencesDtoScrollDirection.swift deleted file mode 100644 index 365bfa0b..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfDisplayPreferencesDtoScrollDirection.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfDisplayPreferencesDtoScrollDirection.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** An enum representing the axis that should be scrolled. */ - -public struct AllOfDisplayPreferencesDtoScrollDirection: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfDisplayPreferencesDtoSortOrder.swift b/JellyfinPlayer/Swaggers/Models/AllOfDisplayPreferencesDtoSortOrder.swift deleted file mode 100644 index 730b71d7..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfDisplayPreferencesDtoSortOrder.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfDisplayPreferencesDtoSortOrder.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** An enum representing the sorting order. */ - -public struct AllOfDisplayPreferencesDtoSortOrder: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfExternalIdInfoModelType.swift b/JellyfinPlayer/Swaggers/Models/AllOfExternalIdInfoModelType.swift deleted file mode 100644 index ef590909..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfExternalIdInfoModelType.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfExternalIdInfoModelType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the specific media type for this id. This is used to distinguish between the different external id types for providers with multiple ids. A null value indicates there is no specific media type associated with the external id, or this is the default id for the external provider so there is no need to specify a type. */ - -public struct AllOfExternalIdInfoModelType: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfFileSystemEntryInfoModelType.swift b/JellyfinPlayer/Swaggers/Models/AllOfFileSystemEntryInfoModelType.swift deleted file mode 100644 index 38a5bfae..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfFileSystemEntryInfoModelType.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfFileSystemEntryInfoModelType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets the type. */ - -public struct AllOfFileSystemEntryInfoModelType: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfForgotPasswordResultAction.swift b/JellyfinPlayer/Swaggers/Models/AllOfForgotPasswordResultAction.swift deleted file mode 100644 index d81be2bd..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfForgotPasswordResultAction.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfForgotPasswordResultAction.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the action. */ - -public struct AllOfForgotPasswordResultAction: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfGeneralCommandName.swift b/JellyfinPlayer/Swaggers/Models/AllOfGeneralCommandName.swift deleted file mode 100644 index ff49815c..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfGeneralCommandName.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfGeneralCommandName.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** This exists simply to identify a set of known commands. */ - -public struct AllOfGeneralCommandName: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfGroupInfoDtoState.swift b/JellyfinPlayer/Swaggers/Models/AllOfGroupInfoDtoState.swift deleted file mode 100644 index 7048bb1b..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfGroupInfoDtoState.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfGroupInfoDtoState.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets the group state. */ - -public struct AllOfGroupInfoDtoState: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfHttpHeaderInfoMatch.swift b/JellyfinPlayer/Swaggers/Models/AllOfHttpHeaderInfoMatch.swift deleted file mode 100644 index 24bf153e..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfHttpHeaderInfoMatch.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// AllOfHttpHeaderInfoMatch.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfHttpHeaderInfoMatch: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfIPluginVersion.swift b/JellyfinPlayer/Swaggers/Models/AllOfIPluginVersion.swift deleted file mode 100644 index dce27b28..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfIPluginVersion.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// AllOfIPluginVersion.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets the plugin version. */ - -public struct AllOfIPluginVersion: Codable { - - public var major: Int? - public var minor: Int? - public var build: Int? - public var revision: Int? - public var majorRevision: Int? - public var minorRevision: Int? - - public init(major: Int? = nil, minor: Int? = nil, build: Int? = nil, revision: Int? = nil, majorRevision: Int? = nil, minorRevision: Int? = nil) { - self.major = major - self.minor = minor - self.build = build - self.revision = revision - self.majorRevision = majorRevision - self.minorRevision = minorRevision - } - - public enum CodingKeys: String, CodingKey { - case major = "Major" - case minor = "Minor" - case build = "Build" - case revision = "Revision" - case majorRevision = "MajorRevision" - case minorRevision = "MinorRevision" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfImageInfoImageType.swift b/JellyfinPlayer/Swaggers/Models/AllOfImageInfoImageType.swift deleted file mode 100644 index eb678940..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfImageInfoImageType.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfImageInfoImageType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the type of the image. */ - -public struct AllOfImageInfoImageType: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfImageOptionModelType.swift b/JellyfinPlayer/Swaggers/Models/AllOfImageOptionModelType.swift deleted file mode 100644 index fe51e009..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfImageOptionModelType.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfImageOptionModelType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the type. */ - -public struct AllOfImageOptionModelType: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfInstallationInfoPackageInfo.swift b/JellyfinPlayer/Swaggers/Models/AllOfInstallationInfoPackageInfo.swift deleted file mode 100644 index 39c06044..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfInstallationInfoPackageInfo.swift +++ /dev/null @@ -1,54 +0,0 @@ -// -// AllOfInstallationInfoPackageInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets package information for the installation. */ - -public struct AllOfInstallationInfoPackageInfo: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets a long description of the plugin containing features or helpful explanations. */ - public var _description: String? - /** Gets or sets a short overview of what the plugin does. */ - public var overview: String? - /** Gets or sets the owner. */ - public var owner: String? - /** Gets or sets the category. */ - public var category: String? - /** Gets or sets the guid of the assembly associated with this plugin. This is used to identify the proper item for automatic updates. */ - public var guid: String? - /** Gets or sets the versions. */ - public var versions: [VersionInfo]? - /** Gets or sets the image url for the package. */ - public var imageUrl: String? - - public init(name: String? = nil, _description: String? = nil, overview: String? = nil, owner: String? = nil, category: String? = nil, guid: String? = nil, versions: [VersionInfo]? = nil, imageUrl: String? = nil) { - self.name = name - self._description = _description - self.overview = overview - self.owner = owner - self.category = category - self.guid = guid - self.versions = versions - self.imageUrl = imageUrl - } - - public enum CodingKeys: String, CodingKey { - case name - case _description = "description" - case overview - case owner - case category - case guid - case versions - case imageUrl - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfInstallationInfoVersion.swift b/JellyfinPlayer/Swaggers/Models/AllOfInstallationInfoVersion.swift deleted file mode 100644 index ae92c17f..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfInstallationInfoVersion.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// AllOfInstallationInfoVersion.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the version. */ - -public struct AllOfInstallationInfoVersion: Codable { - - public var major: Int? - public var minor: Int? - public var build: Int? - public var revision: Int? - public var majorRevision: Int? - public var minorRevision: Int? - - public init(major: Int? = nil, minor: Int? = nil, build: Int? = nil, revision: Int? = nil, majorRevision: Int? = nil, minorRevision: Int? = nil) { - self.major = major - self.minor = minor - self.build = build - self.revision = revision - self.majorRevision = majorRevision - self.minorRevision = minorRevision - } - - public enum CodingKeys: String, CodingKey { - case major = "Major" - case minor = "Minor" - case build = "Build" - case revision = "Revision" - case majorRevision = "MajorRevision" - case minorRevision = "MinorRevision" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfLiveStreamResponseMediaSource.swift b/JellyfinPlayer/Swaggers/Models/AllOfLiveStreamResponseMediaSource.swift deleted file mode 100644 index 65418b68..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfLiveStreamResponseMediaSource.swift +++ /dev/null @@ -1,148 +0,0 @@ -// -// AllOfLiveStreamResponseMediaSource.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfLiveStreamResponseMediaSource: Codable { - - public var _protocol: Any? - public var _id: String? - public var path: String? - public var encoderPath: String? - public var encoderProtocol: Any? - public var type: Any? - public var container: String? - public var size: Int64? - public var name: String? - /** Differentiate internet url vs local network. */ - public var isRemote: Bool? - public var eTag: String? - public var runTimeTicks: Int64? - public var readAtNativeFramerate: Bool? - public var ignoreDts: Bool? - public var ignoreIndex: Bool? - public var genPtsInput: Bool? - public var supportsTranscoding: Bool? - public var supportsDirectStream: Bool? - public var supportsDirectPlay: Bool? - public var isInfiniteStream: Bool? - public var requiresOpening: Bool? - public var openToken: String? - public var requiresClosing: Bool? - public var liveStreamId: String? - public var bufferMs: Int? - public var requiresLooping: Bool? - public var supportsProbing: Bool? - public var videoType: Any? - public var isoType: Any? - public var video3DFormat: Any? - public var mediaStreams: [MediaStream]? - public var mediaAttachments: [MediaAttachment]? - public var formats: [String]? - public var bitrate: Int? - public var timestamp: Any? - public var requiredHttpHeaders: [String:String]? - public var transcodingUrl: String? - public var transcodingSubProtocol: String? - public var transcodingContainer: String? - public var analyzeDurationMs: Int? - public var defaultAudioStreamIndex: Int? - public var defaultSubtitleStreamIndex: Int? - - public init(_protocol: Any? = nil, _id: String? = nil, path: String? = nil, encoderPath: String? = nil, encoderProtocol: Any? = nil, type: Any? = nil, container: String? = nil, size: Int64? = nil, name: String? = nil, isRemote: Bool? = nil, eTag: String? = nil, runTimeTicks: Int64? = nil, readAtNativeFramerate: Bool? = nil, ignoreDts: Bool? = nil, ignoreIndex: Bool? = nil, genPtsInput: Bool? = nil, supportsTranscoding: Bool? = nil, supportsDirectStream: Bool? = nil, supportsDirectPlay: Bool? = nil, isInfiniteStream: Bool? = nil, requiresOpening: Bool? = nil, openToken: String? = nil, requiresClosing: Bool? = nil, liveStreamId: String? = nil, bufferMs: Int? = nil, requiresLooping: Bool? = nil, supportsProbing: Bool? = nil, videoType: Any? = nil, isoType: Any? = nil, video3DFormat: Any? = nil, mediaStreams: [MediaStream]? = nil, mediaAttachments: [MediaAttachment]? = nil, formats: [String]? = nil, bitrate: Int? = nil, timestamp: Any? = nil, requiredHttpHeaders: [String:String]? = nil, transcodingUrl: String? = nil, transcodingSubProtocol: String? = nil, transcodingContainer: String? = nil, analyzeDurationMs: Int? = nil, defaultAudioStreamIndex: Int? = nil, defaultSubtitleStreamIndex: Int? = nil) { - self._protocol = _protocol - self._id = _id - self.path = path - self.encoderPath = encoderPath - self.encoderProtocol = encoderProtocol - self.type = type - self.container = container - self.size = size - self.name = name - self.isRemote = isRemote - self.eTag = eTag - self.runTimeTicks = runTimeTicks - self.readAtNativeFramerate = readAtNativeFramerate - self.ignoreDts = ignoreDts - self.ignoreIndex = ignoreIndex - self.genPtsInput = genPtsInput - self.supportsTranscoding = supportsTranscoding - self.supportsDirectStream = supportsDirectStream - self.supportsDirectPlay = supportsDirectPlay - self.isInfiniteStream = isInfiniteStream - self.requiresOpening = requiresOpening - self.openToken = openToken - self.requiresClosing = requiresClosing - self.liveStreamId = liveStreamId - self.bufferMs = bufferMs - self.requiresLooping = requiresLooping - self.supportsProbing = supportsProbing - self.videoType = videoType - self.isoType = isoType - self.video3DFormat = video3DFormat - self.mediaStreams = mediaStreams - self.mediaAttachments = mediaAttachments - self.formats = formats - self.bitrate = bitrate - self.timestamp = timestamp - self.requiredHttpHeaders = requiredHttpHeaders - self.transcodingUrl = transcodingUrl - self.transcodingSubProtocol = transcodingSubProtocol - self.transcodingContainer = transcodingContainer - self.analyzeDurationMs = analyzeDurationMs - self.defaultAudioStreamIndex = defaultAudioStreamIndex - self.defaultSubtitleStreamIndex = defaultSubtitleStreamIndex - } - - public enum CodingKeys: String, CodingKey { - case _protocol = "Protocol" - case _id = "Id" - case path = "Path" - case encoderPath = "EncoderPath" - case encoderProtocol = "EncoderProtocol" - case type = "Type" - case container = "Container" - case size = "Size" - case name = "Name" - case isRemote = "IsRemote" - case eTag = "ETag" - case runTimeTicks = "RunTimeTicks" - case readAtNativeFramerate = "ReadAtNativeFramerate" - case ignoreDts = "IgnoreDts" - case ignoreIndex = "IgnoreIndex" - case genPtsInput = "GenPtsInput" - case supportsTranscoding = "SupportsTranscoding" - case supportsDirectStream = "SupportsDirectStream" - case supportsDirectPlay = "SupportsDirectPlay" - case isInfiniteStream = "IsInfiniteStream" - case requiresOpening = "RequiresOpening" - case openToken = "OpenToken" - case requiresClosing = "RequiresClosing" - case liveStreamId = "LiveStreamId" - case bufferMs = "BufferMs" - case requiresLooping = "RequiresLooping" - case supportsProbing = "SupportsProbing" - case videoType = "VideoType" - case isoType = "IsoType" - case video3DFormat = "Video3DFormat" - case mediaStreams = "MediaStreams" - case mediaAttachments = "MediaAttachments" - case formats = "Formats" - case bitrate = "Bitrate" - case timestamp = "Timestamp" - case requiredHttpHeaders = "RequiredHttpHeaders" - case transcodingUrl = "TranscodingUrl" - case transcodingSubProtocol = "TranscodingSubProtocol" - case transcodingContainer = "TranscodingContainer" - case analyzeDurationMs = "AnalyzeDurationMs" - case defaultAudioStreamIndex = "DefaultAudioStreamIndex" - case defaultSubtitleStreamIndex = "DefaultSubtitleStreamIndex" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfLiveTvServiceInfoStatus.swift b/JellyfinPlayer/Swaggers/Models/AllOfLiveTvServiceInfoStatus.swift deleted file mode 100644 index 01bebea6..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfLiveTvServiceInfoStatus.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfLiveTvServiceInfoStatus.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the status. */ - -public struct AllOfLiveTvServiceInfoStatus: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfMediaPathDtoPathInfo.swift b/JellyfinPlayer/Swaggers/Models/AllOfMediaPathDtoPathInfo.swift deleted file mode 100644 index 57646152..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfMediaPathDtoPathInfo.swift +++ /dev/null @@ -1,28 +0,0 @@ -// -// AllOfMediaPathDtoPathInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the path info. */ - -public struct AllOfMediaPathDtoPathInfo: Codable { - - public var path: String? - public var networkPath: String? - - public init(path: String? = nil, networkPath: String? = nil) { - self.path = path - self.networkPath = networkPath - } - - public enum CodingKeys: String, CodingKey { - case path = "Path" - case networkPath = "NetworkPath" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfMediaSourceInfoEncoderProtocol.swift b/JellyfinPlayer/Swaggers/Models/AllOfMediaSourceInfoEncoderProtocol.swift deleted file mode 100644 index be9beeab..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfMediaSourceInfoEncoderProtocol.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// AllOfMediaSourceInfoEncoderProtocol.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfMediaSourceInfoEncoderProtocol: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfMediaSourceInfoIsoType.swift b/JellyfinPlayer/Swaggers/Models/AllOfMediaSourceInfoIsoType.swift deleted file mode 100644 index 5403f0b0..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfMediaSourceInfoIsoType.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// AllOfMediaSourceInfoIsoType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfMediaSourceInfoIsoType: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfMediaSourceInfoModelProtocol.swift b/JellyfinPlayer/Swaggers/Models/AllOfMediaSourceInfoModelProtocol.swift deleted file mode 100644 index 39b7120b..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfMediaSourceInfoModelProtocol.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// AllOfMediaSourceInfoModelProtocol.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfMediaSourceInfoModelProtocol: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfMediaSourceInfoModelType.swift b/JellyfinPlayer/Swaggers/Models/AllOfMediaSourceInfoModelType.swift deleted file mode 100644 index f1efb9c2..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfMediaSourceInfoModelType.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// AllOfMediaSourceInfoModelType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfMediaSourceInfoModelType: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfMediaSourceInfoTimestamp.swift b/JellyfinPlayer/Swaggers/Models/AllOfMediaSourceInfoTimestamp.swift deleted file mode 100644 index 550e3d44..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfMediaSourceInfoTimestamp.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// AllOfMediaSourceInfoTimestamp.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfMediaSourceInfoTimestamp: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfMediaSourceInfoVideo3DFormat.swift b/JellyfinPlayer/Swaggers/Models/AllOfMediaSourceInfoVideo3DFormat.swift deleted file mode 100644 index b5df2ceb..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfMediaSourceInfoVideo3DFormat.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// AllOfMediaSourceInfoVideo3DFormat.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfMediaSourceInfoVideo3DFormat: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfMediaSourceInfoVideoType.swift b/JellyfinPlayer/Swaggers/Models/AllOfMediaSourceInfoVideoType.swift deleted file mode 100644 index c689833d..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfMediaSourceInfoVideoType.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// AllOfMediaSourceInfoVideoType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfMediaSourceInfoVideoType: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfMediaStreamDeliveryMethod.swift b/JellyfinPlayer/Swaggers/Models/AllOfMediaStreamDeliveryMethod.swift deleted file mode 100644 index 21ea9e05..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfMediaStreamDeliveryMethod.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfMediaStreamDeliveryMethod.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the method. */ - -public struct AllOfMediaStreamDeliveryMethod: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfMediaStreamModelType.swift b/JellyfinPlayer/Swaggers/Models/AllOfMediaStreamModelType.swift deleted file mode 100644 index eb51c90e..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfMediaStreamModelType.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfMediaStreamModelType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the type. */ - -public struct AllOfMediaStreamModelType: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfMovieInfoRemoteSearchQuerySearchInfo.swift b/JellyfinPlayer/Swaggers/Models/AllOfMovieInfoRemoteSearchQuerySearchInfo.swift deleted file mode 100644 index 411fbfb1..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfMovieInfoRemoteSearchQuerySearchInfo.swift +++ /dev/null @@ -1,57 +0,0 @@ -// -// AllOfMovieInfoRemoteSearchQuerySearchInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfMovieInfoRemoteSearchQuerySearchInfo: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the path. */ - public var path: String? - /** Gets or sets the metadata language. */ - public var metadataLanguage: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets the year. */ - public var year: Int? - public var indexNumber: Int? - public var parentIndexNumber: Int? - public var premiereDate: Date? - public var isAutomated: Bool? - - public init(name: String? = nil, path: String? = nil, metadataLanguage: String? = nil, metadataCountryCode: String? = nil, providerIds: [String:String]? = nil, year: Int? = nil, indexNumber: Int? = nil, parentIndexNumber: Int? = nil, premiereDate: Date? = nil, isAutomated: Bool? = nil) { - self.name = name - self.path = path - self.metadataLanguage = metadataLanguage - self.metadataCountryCode = metadataCountryCode - self.providerIds = providerIds - self.year = year - self.indexNumber = indexNumber - self.parentIndexNumber = parentIndexNumber - self.premiereDate = premiereDate - self.isAutomated = isAutomated - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case path = "Path" - case metadataLanguage = "MetadataLanguage" - case metadataCountryCode = "MetadataCountryCode" - case providerIds = "ProviderIds" - case year = "Year" - case indexNumber = "IndexNumber" - case parentIndexNumber = "ParentIndexNumber" - case premiereDate = "PremiereDate" - case isAutomated = "IsAutomated" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfMusicVideoInfoRemoteSearchQuerySearchInfo.swift b/JellyfinPlayer/Swaggers/Models/AllOfMusicVideoInfoRemoteSearchQuerySearchInfo.swift deleted file mode 100644 index 55e7ce1d..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfMusicVideoInfoRemoteSearchQuerySearchInfo.swift +++ /dev/null @@ -1,60 +0,0 @@ -// -// AllOfMusicVideoInfoRemoteSearchQuerySearchInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfMusicVideoInfoRemoteSearchQuerySearchInfo: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the path. */ - public var path: String? - /** Gets or sets the metadata language. */ - public var metadataLanguage: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets the year. */ - public var year: Int? - public var indexNumber: Int? - public var parentIndexNumber: Int? - public var premiereDate: Date? - public var isAutomated: Bool? - public var artists: [String]? - - public init(name: String? = nil, path: String? = nil, metadataLanguage: String? = nil, metadataCountryCode: String? = nil, providerIds: [String:String]? = nil, year: Int? = nil, indexNumber: Int? = nil, parentIndexNumber: Int? = nil, premiereDate: Date? = nil, isAutomated: Bool? = nil, artists: [String]? = nil) { - self.name = name - self.path = path - self.metadataLanguage = metadataLanguage - self.metadataCountryCode = metadataCountryCode - self.providerIds = providerIds - self.year = year - self.indexNumber = indexNumber - self.parentIndexNumber = parentIndexNumber - self.premiereDate = premiereDate - self.isAutomated = isAutomated - self.artists = artists - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case path = "Path" - case metadataLanguage = "MetadataLanguage" - case metadataCountryCode = "MetadataCountryCode" - case providerIds = "ProviderIds" - case year = "Year" - case indexNumber = "IndexNumber" - case parentIndexNumber = "ParentIndexNumber" - case premiereDate = "PremiereDate" - case isAutomated = "IsAutomated" - case artists = "Artists" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfNotificationDtoLevel.swift b/JellyfinPlayer/Swaggers/Models/AllOfNotificationDtoLevel.swift deleted file mode 100644 index 6db95146..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfNotificationDtoLevel.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfNotificationDtoLevel.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the notification level. */ - -public struct AllOfNotificationDtoLevel: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfNotificationsSummaryDtoMaxUnreadNotificationLevel.swift b/JellyfinPlayer/Swaggers/Models/AllOfNotificationsSummaryDtoMaxUnreadNotificationLevel.swift deleted file mode 100644 index a37e26e4..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfNotificationsSummaryDtoMaxUnreadNotificationLevel.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfNotificationsSummaryDtoMaxUnreadNotificationLevel.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the maximum unread notification level. */ - -public struct AllOfNotificationsSummaryDtoMaxUnreadNotificationLevel: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfObjectGroupUpdateModelType.swift b/JellyfinPlayer/Swaggers/Models/AllOfObjectGroupUpdateModelType.swift deleted file mode 100644 index 1e0478d0..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfObjectGroupUpdateModelType.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfObjectGroupUpdateModelType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets the update type. */ - -public struct AllOfObjectGroupUpdateModelType: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfOpenLiveStreamDtoDeviceProfile.swift b/JellyfinPlayer/Swaggers/Models/AllOfOpenLiveStreamDtoDeviceProfile.swift deleted file mode 100644 index 71fec448..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfOpenLiveStreamDtoDeviceProfile.swift +++ /dev/null @@ -1,178 +0,0 @@ -// -// AllOfOpenLiveStreamDtoDeviceProfile.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the device profile. */ - -public struct AllOfOpenLiveStreamDtoDeviceProfile: Codable { - - /** Gets or sets the Name. */ - public var name: String? - /** Gets or sets the Id. */ - public var _id: String? - /** Gets or sets the Identification. */ - public var identification: Any? - /** Gets or sets the FriendlyName. */ - public var friendlyName: String? - /** Gets or sets the Manufacturer. */ - public var manufacturer: String? - /** Gets or sets the ManufacturerUrl. */ - public var manufacturerUrl: String? - /** Gets or sets the ModelName. */ - public var modelName: String? - /** Gets or sets the ModelDescription. */ - public var modelDescription: String? - /** Gets or sets the ModelNumber. */ - public var modelNumber: String? - /** Gets or sets the ModelUrl. */ - public var modelUrl: String? - /** Gets or sets the SerialNumber. */ - public var serialNumber: String? - /** Gets or sets a value indicating whether EnableAlbumArtInDidl. */ - public var enableAlbumArtInDidl: Bool? - /** Gets or sets a value indicating whether EnableSingleAlbumArtLimit. */ - public var enableSingleAlbumArtLimit: Bool? - /** Gets or sets a value indicating whether EnableSingleSubtitleLimit. */ - public var enableSingleSubtitleLimit: Bool? - /** Gets or sets the SupportedMediaTypes. */ - public var supportedMediaTypes: String? - /** Gets or sets the UserId. */ - public var userId: String? - /** Gets or sets the AlbumArtPn. */ - public var albumArtPn: String? - /** Gets or sets the MaxAlbumArtWidth. */ - public var maxAlbumArtWidth: Int? - /** Gets or sets the MaxAlbumArtHeight. */ - public var maxAlbumArtHeight: Int? - /** Gets or sets the MaxIconWidth. */ - public var maxIconWidth: Int? - /** Gets or sets the MaxIconHeight. */ - public var maxIconHeight: Int? - /** Gets or sets the MaxStreamingBitrate. */ - public var maxStreamingBitrate: Int? - /** Gets or sets the MaxStaticBitrate. */ - public var maxStaticBitrate: Int? - /** Gets or sets the MusicStreamingTranscodingBitrate. */ - public var musicStreamingTranscodingBitrate: Int? - /** Gets or sets the MaxStaticMusicBitrate. */ - public var maxStaticMusicBitrate: Int? - /** Gets or sets the content of the aggregationFlags element in the urn:schemas-sonycom:av namespace. */ - public var sonyAggregationFlags: String? - /** Gets or sets the ProtocolInfo. */ - public var protocolInfo: String? - /** Gets or sets the TimelineOffsetSeconds. */ - public var timelineOffsetSeconds: Int? - /** Gets or sets a value indicating whether RequiresPlainVideoItems. */ - public var requiresPlainVideoItems: Bool? - /** Gets or sets a value indicating whether RequiresPlainFolders. */ - public var requiresPlainFolders: Bool? - /** Gets or sets a value indicating whether EnableMSMediaReceiverRegistrar. */ - public var enableMSMediaReceiverRegistrar: Bool? - /** Gets or sets a value indicating whether IgnoreTranscodeByteRangeRequests. */ - public var ignoreTranscodeByteRangeRequests: Bool? - /** Gets or sets the XmlRootAttributes. */ - public var xmlRootAttributes: [XmlAttribute]? - /** Gets or sets the direct play profiles. */ - public var directPlayProfiles: [DirectPlayProfile]? - /** Gets or sets the transcoding profiles. */ - public var transcodingProfiles: [TranscodingProfile]? - /** Gets or sets the ContainerProfiles. */ - public var containerProfiles: [ContainerProfile]? - /** Gets or sets the CodecProfiles. */ - public var codecProfiles: [CodecProfile]? - /** Gets or sets the ResponseProfiles. */ - public var responseProfiles: [ResponseProfile]? - /** Gets or sets the SubtitleProfiles. */ - public var subtitleProfiles: [SubtitleProfile]? - - public init(name: String? = nil, _id: String? = nil, identification: Any? = nil, friendlyName: String? = nil, manufacturer: String? = nil, manufacturerUrl: String? = nil, modelName: String? = nil, modelDescription: String? = nil, modelNumber: String? = nil, modelUrl: String? = nil, serialNumber: String? = nil, enableAlbumArtInDidl: Bool? = nil, enableSingleAlbumArtLimit: Bool? = nil, enableSingleSubtitleLimit: Bool? = nil, supportedMediaTypes: String? = nil, userId: String? = nil, albumArtPn: String? = nil, maxAlbumArtWidth: Int? = nil, maxAlbumArtHeight: Int? = nil, maxIconWidth: Int? = nil, maxIconHeight: Int? = nil, maxStreamingBitrate: Int? = nil, maxStaticBitrate: Int? = nil, musicStreamingTranscodingBitrate: Int? = nil, maxStaticMusicBitrate: Int? = nil, sonyAggregationFlags: String? = nil, protocolInfo: String? = nil, timelineOffsetSeconds: Int? = nil, requiresPlainVideoItems: Bool? = nil, requiresPlainFolders: Bool? = nil, enableMSMediaReceiverRegistrar: Bool? = nil, ignoreTranscodeByteRangeRequests: Bool? = nil, xmlRootAttributes: [XmlAttribute]? = nil, directPlayProfiles: [DirectPlayProfile]? = nil, transcodingProfiles: [TranscodingProfile]? = nil, containerProfiles: [ContainerProfile]? = nil, codecProfiles: [CodecProfile]? = nil, responseProfiles: [ResponseProfile]? = nil, subtitleProfiles: [SubtitleProfile]? = nil) { - self.name = name - self._id = _id - self.identification = identification - self.friendlyName = friendlyName - self.manufacturer = manufacturer - self.manufacturerUrl = manufacturerUrl - self.modelName = modelName - self.modelDescription = modelDescription - self.modelNumber = modelNumber - self.modelUrl = modelUrl - self.serialNumber = serialNumber - self.enableAlbumArtInDidl = enableAlbumArtInDidl - self.enableSingleAlbumArtLimit = enableSingleAlbumArtLimit - self.enableSingleSubtitleLimit = enableSingleSubtitleLimit - self.supportedMediaTypes = supportedMediaTypes - self.userId = userId - self.albumArtPn = albumArtPn - self.maxAlbumArtWidth = maxAlbumArtWidth - self.maxAlbumArtHeight = maxAlbumArtHeight - self.maxIconWidth = maxIconWidth - self.maxIconHeight = maxIconHeight - self.maxStreamingBitrate = maxStreamingBitrate - self.maxStaticBitrate = maxStaticBitrate - self.musicStreamingTranscodingBitrate = musicStreamingTranscodingBitrate - self.maxStaticMusicBitrate = maxStaticMusicBitrate - self.sonyAggregationFlags = sonyAggregationFlags - self.protocolInfo = protocolInfo - self.timelineOffsetSeconds = timelineOffsetSeconds - self.requiresPlainVideoItems = requiresPlainVideoItems - self.requiresPlainFolders = requiresPlainFolders - self.enableMSMediaReceiverRegistrar = enableMSMediaReceiverRegistrar - self.ignoreTranscodeByteRangeRequests = ignoreTranscodeByteRangeRequests - self.xmlRootAttributes = xmlRootAttributes - self.directPlayProfiles = directPlayProfiles - self.transcodingProfiles = transcodingProfiles - self.containerProfiles = containerProfiles - self.codecProfiles = codecProfiles - self.responseProfiles = responseProfiles - self.subtitleProfiles = subtitleProfiles - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case _id = "Id" - case identification = "Identification" - case friendlyName = "FriendlyName" - case manufacturer = "Manufacturer" - case manufacturerUrl = "ManufacturerUrl" - case modelName = "ModelName" - case modelDescription = "ModelDescription" - case modelNumber = "ModelNumber" - case modelUrl = "ModelUrl" - case serialNumber = "SerialNumber" - case enableAlbumArtInDidl = "EnableAlbumArtInDidl" - case enableSingleAlbumArtLimit = "EnableSingleAlbumArtLimit" - case enableSingleSubtitleLimit = "EnableSingleSubtitleLimit" - case supportedMediaTypes = "SupportedMediaTypes" - case userId = "UserId" - case albumArtPn = "AlbumArtPn" - case maxAlbumArtWidth = "MaxAlbumArtWidth" - case maxAlbumArtHeight = "MaxAlbumArtHeight" - case maxIconWidth = "MaxIconWidth" - case maxIconHeight = "MaxIconHeight" - case maxStreamingBitrate = "MaxStreamingBitrate" - case maxStaticBitrate = "MaxStaticBitrate" - case musicStreamingTranscodingBitrate = "MusicStreamingTranscodingBitrate" - case maxStaticMusicBitrate = "MaxStaticMusicBitrate" - case sonyAggregationFlags = "SonyAggregationFlags" - case protocolInfo = "ProtocolInfo" - case timelineOffsetSeconds = "TimelineOffsetSeconds" - case requiresPlainVideoItems = "RequiresPlainVideoItems" - case requiresPlainFolders = "RequiresPlainFolders" - case enableMSMediaReceiverRegistrar = "EnableMSMediaReceiverRegistrar" - case ignoreTranscodeByteRangeRequests = "IgnoreTranscodeByteRangeRequests" - case xmlRootAttributes = "XmlRootAttributes" - case directPlayProfiles = "DirectPlayProfiles" - case transcodingProfiles = "TranscodingProfiles" - case containerProfiles = "ContainerProfiles" - case codecProfiles = "CodecProfiles" - case responseProfiles = "ResponseProfiles" - case subtitleProfiles = "SubtitleProfiles" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfPersonLookupInfoRemoteSearchQuerySearchInfo.swift b/JellyfinPlayer/Swaggers/Models/AllOfPersonLookupInfoRemoteSearchQuerySearchInfo.swift deleted file mode 100644 index 99982a4c..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfPersonLookupInfoRemoteSearchQuerySearchInfo.swift +++ /dev/null @@ -1,57 +0,0 @@ -// -// AllOfPersonLookupInfoRemoteSearchQuerySearchInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfPersonLookupInfoRemoteSearchQuerySearchInfo: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the path. */ - public var path: String? - /** Gets or sets the metadata language. */ - public var metadataLanguage: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets the year. */ - public var year: Int? - public var indexNumber: Int? - public var parentIndexNumber: Int? - public var premiereDate: Date? - public var isAutomated: Bool? - - public init(name: String? = nil, path: String? = nil, metadataLanguage: String? = nil, metadataCountryCode: String? = nil, providerIds: [String:String]? = nil, year: Int? = nil, indexNumber: Int? = nil, parentIndexNumber: Int? = nil, premiereDate: Date? = nil, isAutomated: Bool? = nil) { - self.name = name - self.path = path - self.metadataLanguage = metadataLanguage - self.metadataCountryCode = metadataCountryCode - self.providerIds = providerIds - self.year = year - self.indexNumber = indexNumber - self.parentIndexNumber = parentIndexNumber - self.premiereDate = premiereDate - self.isAutomated = isAutomated - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case path = "Path" - case metadataLanguage = "MetadataLanguage" - case metadataCountryCode = "MetadataCountryCode" - case providerIds = "ProviderIds" - case year = "Year" - case indexNumber = "IndexNumber" - case parentIndexNumber = "ParentIndexNumber" - case premiereDate = "PremiereDate" - case isAutomated = "IsAutomated" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfPlayRequestPlayCommand.swift b/JellyfinPlayer/Swaggers/Models/AllOfPlayRequestPlayCommand.swift deleted file mode 100644 index 08dbca3b..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfPlayRequestPlayCommand.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfPlayRequestPlayCommand.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the play command. */ - -public struct AllOfPlayRequestPlayCommand: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfPlaybackInfoDtoDeviceProfile.swift b/JellyfinPlayer/Swaggers/Models/AllOfPlaybackInfoDtoDeviceProfile.swift deleted file mode 100644 index 7e1d8dac..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfPlaybackInfoDtoDeviceProfile.swift +++ /dev/null @@ -1,178 +0,0 @@ -// -// AllOfPlaybackInfoDtoDeviceProfile.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the device profile. */ - -public struct AllOfPlaybackInfoDtoDeviceProfile: Codable { - - /** Gets or sets the Name. */ - public var name: String? - /** Gets or sets the Id. */ - public var _id: String? - /** Gets or sets the Identification. */ - public var identification: Any? - /** Gets or sets the FriendlyName. */ - public var friendlyName: String? - /** Gets or sets the Manufacturer. */ - public var manufacturer: String? - /** Gets or sets the ManufacturerUrl. */ - public var manufacturerUrl: String? - /** Gets or sets the ModelName. */ - public var modelName: String? - /** Gets or sets the ModelDescription. */ - public var modelDescription: String? - /** Gets or sets the ModelNumber. */ - public var modelNumber: String? - /** Gets or sets the ModelUrl. */ - public var modelUrl: String? - /** Gets or sets the SerialNumber. */ - public var serialNumber: String? - /** Gets or sets a value indicating whether EnableAlbumArtInDidl. */ - public var enableAlbumArtInDidl: Bool? - /** Gets or sets a value indicating whether EnableSingleAlbumArtLimit. */ - public var enableSingleAlbumArtLimit: Bool? - /** Gets or sets a value indicating whether EnableSingleSubtitleLimit. */ - public var enableSingleSubtitleLimit: Bool? - /** Gets or sets the SupportedMediaTypes. */ - public var supportedMediaTypes: String? - /** Gets or sets the UserId. */ - public var userId: String? - /** Gets or sets the AlbumArtPn. */ - public var albumArtPn: String? - /** Gets or sets the MaxAlbumArtWidth. */ - public var maxAlbumArtWidth: Int? - /** Gets or sets the MaxAlbumArtHeight. */ - public var maxAlbumArtHeight: Int? - /** Gets or sets the MaxIconWidth. */ - public var maxIconWidth: Int? - /** Gets or sets the MaxIconHeight. */ - public var maxIconHeight: Int? - /** Gets or sets the MaxStreamingBitrate. */ - public var maxStreamingBitrate: Int? - /** Gets or sets the MaxStaticBitrate. */ - public var maxStaticBitrate: Int? - /** Gets or sets the MusicStreamingTranscodingBitrate. */ - public var musicStreamingTranscodingBitrate: Int? - /** Gets or sets the MaxStaticMusicBitrate. */ - public var maxStaticMusicBitrate: Int? - /** Gets or sets the content of the aggregationFlags element in the urn:schemas-sonycom:av namespace. */ - public var sonyAggregationFlags: String? - /** Gets or sets the ProtocolInfo. */ - public var protocolInfo: String? - /** Gets or sets the TimelineOffsetSeconds. */ - public var timelineOffsetSeconds: Int? - /** Gets or sets a value indicating whether RequiresPlainVideoItems. */ - public var requiresPlainVideoItems: Bool? - /** Gets or sets a value indicating whether RequiresPlainFolders. */ - public var requiresPlainFolders: Bool? - /** Gets or sets a value indicating whether EnableMSMediaReceiverRegistrar. */ - public var enableMSMediaReceiverRegistrar: Bool? - /** Gets or sets a value indicating whether IgnoreTranscodeByteRangeRequests. */ - public var ignoreTranscodeByteRangeRequests: Bool? - /** Gets or sets the XmlRootAttributes. */ - public var xmlRootAttributes: [XmlAttribute]? - /** Gets or sets the direct play profiles. */ - public var directPlayProfiles: [DirectPlayProfile]? - /** Gets or sets the transcoding profiles. */ - public var transcodingProfiles: [TranscodingProfile]? - /** Gets or sets the ContainerProfiles. */ - public var containerProfiles: [ContainerProfile]? - /** Gets or sets the CodecProfiles. */ - public var codecProfiles: [CodecProfile]? - /** Gets or sets the ResponseProfiles. */ - public var responseProfiles: [ResponseProfile]? - /** Gets or sets the SubtitleProfiles. */ - public var subtitleProfiles: [SubtitleProfile]? - - public init(name: String? = nil, _id: String? = nil, identification: Any? = nil, friendlyName: String? = nil, manufacturer: String? = nil, manufacturerUrl: String? = nil, modelName: String? = nil, modelDescription: String? = nil, modelNumber: String? = nil, modelUrl: String? = nil, serialNumber: String? = nil, enableAlbumArtInDidl: Bool? = nil, enableSingleAlbumArtLimit: Bool? = nil, enableSingleSubtitleLimit: Bool? = nil, supportedMediaTypes: String? = nil, userId: String? = nil, albumArtPn: String? = nil, maxAlbumArtWidth: Int? = nil, maxAlbumArtHeight: Int? = nil, maxIconWidth: Int? = nil, maxIconHeight: Int? = nil, maxStreamingBitrate: Int? = nil, maxStaticBitrate: Int? = nil, musicStreamingTranscodingBitrate: Int? = nil, maxStaticMusicBitrate: Int? = nil, sonyAggregationFlags: String? = nil, protocolInfo: String? = nil, timelineOffsetSeconds: Int? = nil, requiresPlainVideoItems: Bool? = nil, requiresPlainFolders: Bool? = nil, enableMSMediaReceiverRegistrar: Bool? = nil, ignoreTranscodeByteRangeRequests: Bool? = nil, xmlRootAttributes: [XmlAttribute]? = nil, directPlayProfiles: [DirectPlayProfile]? = nil, transcodingProfiles: [TranscodingProfile]? = nil, containerProfiles: [ContainerProfile]? = nil, codecProfiles: [CodecProfile]? = nil, responseProfiles: [ResponseProfile]? = nil, subtitleProfiles: [SubtitleProfile]? = nil) { - self.name = name - self._id = _id - self.identification = identification - self.friendlyName = friendlyName - self.manufacturer = manufacturer - self.manufacturerUrl = manufacturerUrl - self.modelName = modelName - self.modelDescription = modelDescription - self.modelNumber = modelNumber - self.modelUrl = modelUrl - self.serialNumber = serialNumber - self.enableAlbumArtInDidl = enableAlbumArtInDidl - self.enableSingleAlbumArtLimit = enableSingleAlbumArtLimit - self.enableSingleSubtitleLimit = enableSingleSubtitleLimit - self.supportedMediaTypes = supportedMediaTypes - self.userId = userId - self.albumArtPn = albumArtPn - self.maxAlbumArtWidth = maxAlbumArtWidth - self.maxAlbumArtHeight = maxAlbumArtHeight - self.maxIconWidth = maxIconWidth - self.maxIconHeight = maxIconHeight - self.maxStreamingBitrate = maxStreamingBitrate - self.maxStaticBitrate = maxStaticBitrate - self.musicStreamingTranscodingBitrate = musicStreamingTranscodingBitrate - self.maxStaticMusicBitrate = maxStaticMusicBitrate - self.sonyAggregationFlags = sonyAggregationFlags - self.protocolInfo = protocolInfo - self.timelineOffsetSeconds = timelineOffsetSeconds - self.requiresPlainVideoItems = requiresPlainVideoItems - self.requiresPlainFolders = requiresPlainFolders - self.enableMSMediaReceiverRegistrar = enableMSMediaReceiverRegistrar - self.ignoreTranscodeByteRangeRequests = ignoreTranscodeByteRangeRequests - self.xmlRootAttributes = xmlRootAttributes - self.directPlayProfiles = directPlayProfiles - self.transcodingProfiles = transcodingProfiles - self.containerProfiles = containerProfiles - self.codecProfiles = codecProfiles - self.responseProfiles = responseProfiles - self.subtitleProfiles = subtitleProfiles - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case _id = "Id" - case identification = "Identification" - case friendlyName = "FriendlyName" - case manufacturer = "Manufacturer" - case manufacturerUrl = "ManufacturerUrl" - case modelName = "ModelName" - case modelDescription = "ModelDescription" - case modelNumber = "ModelNumber" - case modelUrl = "ModelUrl" - case serialNumber = "SerialNumber" - case enableAlbumArtInDidl = "EnableAlbumArtInDidl" - case enableSingleAlbumArtLimit = "EnableSingleAlbumArtLimit" - case enableSingleSubtitleLimit = "EnableSingleSubtitleLimit" - case supportedMediaTypes = "SupportedMediaTypes" - case userId = "UserId" - case albumArtPn = "AlbumArtPn" - case maxAlbumArtWidth = "MaxAlbumArtWidth" - case maxAlbumArtHeight = "MaxAlbumArtHeight" - case maxIconWidth = "MaxIconWidth" - case maxIconHeight = "MaxIconHeight" - case maxStreamingBitrate = "MaxStreamingBitrate" - case maxStaticBitrate = "MaxStaticBitrate" - case musicStreamingTranscodingBitrate = "MusicStreamingTranscodingBitrate" - case maxStaticMusicBitrate = "MaxStaticMusicBitrate" - case sonyAggregationFlags = "SonyAggregationFlags" - case protocolInfo = "ProtocolInfo" - case timelineOffsetSeconds = "TimelineOffsetSeconds" - case requiresPlainVideoItems = "RequiresPlainVideoItems" - case requiresPlainFolders = "RequiresPlainFolders" - case enableMSMediaReceiverRegistrar = "EnableMSMediaReceiverRegistrar" - case ignoreTranscodeByteRangeRequests = "IgnoreTranscodeByteRangeRequests" - case xmlRootAttributes = "XmlRootAttributes" - case directPlayProfiles = "DirectPlayProfiles" - case transcodingProfiles = "TranscodingProfiles" - case containerProfiles = "ContainerProfiles" - case codecProfiles = "CodecProfiles" - case responseProfiles = "ResponseProfiles" - case subtitleProfiles = "SubtitleProfiles" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfPlaybackInfoResponseErrorCode.swift b/JellyfinPlayer/Swaggers/Models/AllOfPlaybackInfoResponseErrorCode.swift deleted file mode 100644 index 805307b9..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfPlaybackInfoResponseErrorCode.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfPlaybackInfoResponseErrorCode.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the error code. */ - -public struct AllOfPlaybackInfoResponseErrorCode: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfPlaybackProgressInfoItem.swift b/JellyfinPlayer/Swaggers/Models/AllOfPlaybackProgressInfoItem.swift deleted file mode 100644 index 8edca860..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfPlaybackProgressInfoItem.swift +++ /dev/null @@ -1,590 +0,0 @@ -// -// AllOfPlaybackProgressInfoItem.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the item. */ - -public struct AllOfPlaybackProgressInfoItem: Codable { - - /** Gets or sets the name. */ - public var name: String? - public var originalTitle: String? - /** Gets or sets the server identifier. */ - public var serverId: String? - /** Gets or sets the id. */ - public var _id: UUID? - /** Gets or sets the etag. */ - public var etag: String? - /** Gets or sets the type of the source. */ - public var sourceType: String? - /** Gets or sets the playlist item identifier. */ - public var playlistItemId: String? - /** Gets or sets the date created. */ - public var dateCreated: Date? - public var dateLastMediaAdded: Date? - public var extraType: String? - public var airsBeforeSeasonNumber: Int? - public var airsAfterSeasonNumber: Int? - public var airsBeforeEpisodeNumber: Int? - public var canDelete: Bool? - public var canDownload: Bool? - public var hasSubtitles: Bool? - public var preferredMetadataLanguage: String? - public var preferredMetadataCountryCode: String? - /** Gets or sets a value indicating whether [supports synchronize]. */ - public var supportsSync: Bool? - public var container: String? - /** Gets or sets the name of the sort. */ - public var sortName: String? - public var forcedSortName: String? - /** Gets or sets the video3 D format. */ - public var video3DFormat: Any? - /** Gets or sets the premiere date. */ - public var premiereDate: Date? - /** Gets or sets the external urls. */ - public var externalUrls: [ExternalUrl]? - /** Gets or sets the media versions. */ - public var mediaSources: [MediaSourceInfo]? - /** Gets or sets the critic rating. */ - public var criticRating: Float? - public var productionLocations: [String]? - /** Gets or sets the path. */ - public var path: String? - public var enableMediaSourceDisplay: Bool? - /** Gets or sets the official rating. */ - public var officialRating: String? - /** Gets or sets the custom rating. */ - public var customRating: String? - /** Gets or sets the channel identifier. */ - public var channelId: UUID? - public var channelName: String? - /** Gets or sets the overview. */ - public var overview: String? - /** Gets or sets the taglines. */ - public var taglines: [String]? - /** Gets or sets the genres. */ - public var genres: [String]? - /** Gets or sets the community rating. */ - public var communityRating: Float? - /** Gets or sets the cumulative run time ticks. */ - public var cumulativeRunTimeTicks: Int64? - /** Gets or sets the run time ticks. */ - public var runTimeTicks: Int64? - /** Gets or sets the play access. */ - public var playAccess: Any? - /** Gets or sets the aspect ratio. */ - public var aspectRatio: String? - /** Gets or sets the production year. */ - public var productionYear: Int? - /** Gets or sets a value indicating whether this instance is place holder. */ - public var isPlaceHolder: Bool? - /** Gets or sets the number. */ - public var number: String? - public var channelNumber: String? - /** Gets or sets the index number. */ - public var indexNumber: Int? - /** Gets or sets the index number end. */ - public var indexNumberEnd: Int? - /** Gets or sets the parent index number. */ - public var parentIndexNumber: Int? - /** Gets or sets the trailer urls. */ - public var remoteTrailers: [MediaUrl]? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets a value indicating whether this instance is HD. */ - public var isHD: Bool? - /** Gets or sets a value indicating whether this instance is folder. */ - public var isFolder: Bool? - /** Gets or sets the parent id. */ - public var parentId: UUID? - /** Gets or sets the type. */ - public var type: String? - /** Gets or sets the people. */ - public var people: [BaseItemPerson]? - /** Gets or sets the studios. */ - public var studios: [NameGuidPair]? - public var genreItems: [NameGuidPair]? - /** If the item does not have a logo, this will hold the Id of the Parent that has one. */ - public var parentLogoItemId: String? - /** If the item does not have any backdrops, this will hold the Id of the Parent that has one. */ - public var parentBackdropItemId: String? - /** Gets or sets the parent backdrop image tags. */ - public var parentBackdropImageTags: [String]? - /** Gets or sets the local trailer count. */ - public var localTrailerCount: Int? - /** User data for this item based on the user it's being requested for. */ - public var userData: Any? - /** Gets or sets the recursive item count. */ - public var recursiveItemCount: Int? - /** Gets or sets the child count. */ - public var childCount: Int? - /** Gets or sets the name of the series. */ - public var seriesName: String? - /** Gets or sets the series id. */ - public var seriesId: UUID? - /** Gets or sets the season identifier. */ - public var seasonId: UUID? - /** Gets or sets the special feature count. */ - public var specialFeatureCount: Int? - /** Gets or sets the display preferences id. */ - public var displayPreferencesId: String? - /** Gets or sets the status. */ - public var status: String? - /** Gets or sets the air time. */ - public var airTime: String? - /** Gets or sets the air days. */ - public var airDays: [DayOfWeek]? - /** Gets or sets the tags. */ - public var tags: [String]? - /** Gets or sets the primary image aspect ratio, after image enhancements. */ - public var primaryImageAspectRatio: Double? - /** Gets or sets the artists. */ - public var artists: [String]? - /** Gets or sets the artist items. */ - public var artistItems: [NameGuidPair]? - /** Gets or sets the album. */ - public var album: String? - /** Gets or sets the type of the collection. */ - public var collectionType: String? - /** Gets or sets the display order. */ - public var displayOrder: String? - /** Gets or sets the album id. */ - public var albumId: UUID? - /** Gets or sets the album image tag. */ - public var albumPrimaryImageTag: String? - /** Gets or sets the series primary image tag. */ - public var seriesPrimaryImageTag: String? - /** Gets or sets the album artist. */ - public var albumArtist: String? - /** Gets or sets the album artists. */ - public var albumArtists: [NameGuidPair]? - /** Gets or sets the name of the season. */ - public var seasonName: String? - /** Gets or sets the media streams. */ - public var mediaStreams: [MediaStream]? - /** Gets or sets the type of the video. */ - public var videoType: Any? - /** Gets or sets the part count. */ - public var partCount: Int? - public var mediaSourceCount: Int? - /** Gets or sets the image tags. */ - public var imageTags: [String:String]? - /** Gets or sets the backdrop image tags. */ - public var backdropImageTags: [String]? - /** Gets or sets the screenshot image tags. */ - public var screenshotImageTags: [String]? - /** Gets or sets the parent logo image tag. */ - public var parentLogoImageTag: String? - /** If the item does not have a art, this will hold the Id of the Parent that has one. */ - public var parentArtItemId: String? - /** Gets or sets the parent art image tag. */ - public var parentArtImageTag: String? - /** Gets or sets the series thumb image tag. */ - public var seriesThumbImageTag: String? - public var imageBlurHashes: BaseItemDtoImageBlurHashes? - /** Gets or sets the series studio. */ - public var seriesStudio: String? - /** Gets or sets the parent thumb item id. */ - public var parentThumbItemId: String? - /** Gets or sets the parent thumb image tag. */ - public var parentThumbImageTag: String? - /** Gets or sets the parent primary image item identifier. */ - public var parentPrimaryImageItemId: String? - /** Gets or sets the parent primary image tag. */ - public var parentPrimaryImageTag: String? - /** Gets or sets the chapters. */ - public var chapters: [ChapterInfo]? - /** Gets or sets the type of the location. */ - public var locationType: Any? - /** Gets or sets the type of the iso. */ - public var isoType: Any? - /** Gets or sets the type of the media. */ - public var mediaType: String? - /** Gets or sets the end date. */ - public var endDate: Date? - /** Gets or sets the locked fields. */ - public var lockedFields: [MetadataField]? - /** Gets or sets the trailer count. */ - public var trailerCount: Int? - /** Gets or sets the movie count. */ - public var movieCount: Int? - /** Gets or sets the series count. */ - public var seriesCount: Int? - public var programCount: Int? - /** Gets or sets the episode count. */ - public var episodeCount: Int? - /** Gets or sets the song count. */ - public var songCount: Int? - /** Gets or sets the album count. */ - public var albumCount: Int? - public var artistCount: Int? - /** Gets or sets the music video count. */ - public var musicVideoCount: Int? - /** Gets or sets a value indicating whether [enable internet providers]. */ - public var lockData: Bool? - public var width: Int? - public var height: Int? - public var cameraMake: String? - public var cameraModel: String? - public var software: String? - public var exposureTime: Double? - public var focalLength: Double? - public var imageOrientation: Any? - public var aperture: Double? - public var shutterSpeed: Double? - public var latitude: Double? - public var longitude: Double? - public var altitude: Double? - public var isoSpeedRating: Int? - /** Gets or sets the series timer identifier. */ - public var seriesTimerId: String? - /** Gets or sets the program identifier. */ - public var programId: String? - /** Gets or sets the channel primary image tag. */ - public var channelPrimaryImageTag: String? - /** The start date of the recording, in UTC. */ - public var startDate: Date? - /** Gets or sets the completion percentage. */ - public var completionPercentage: Double? - /** Gets or sets a value indicating whether this instance is repeat. */ - public var isRepeat: Bool? - /** Gets or sets the episode title. */ - public var episodeTitle: String? - /** Gets or sets the type of the channel. */ - public var channelType: Any? - /** Gets or sets the audio. */ - public var audio: Any? - /** Gets or sets a value indicating whether this instance is movie. */ - public var isMovie: Bool? - /** Gets or sets a value indicating whether this instance is sports. */ - public var isSports: Bool? - /** Gets or sets a value indicating whether this instance is series. */ - public var isSeries: Bool? - /** Gets or sets a value indicating whether this instance is live. */ - public var isLive: Bool? - /** Gets or sets a value indicating whether this instance is news. */ - public var isNews: Bool? - /** Gets or sets a value indicating whether this instance is kids. */ - public var isKids: Bool? - /** Gets or sets a value indicating whether this instance is premiere. */ - public var isPremiere: Bool? - /** Gets or sets the timer identifier. */ - public var timerId: String? - /** Gets or sets the current program. */ - public var currentProgram: Any? - - public init(name: String? = nil, originalTitle: String? = nil, serverId: String? = nil, _id: UUID? = nil, etag: String? = nil, sourceType: String? = nil, playlistItemId: String? = nil, dateCreated: Date? = nil, dateLastMediaAdded: Date? = nil, extraType: String? = nil, airsBeforeSeasonNumber: Int? = nil, airsAfterSeasonNumber: Int? = nil, airsBeforeEpisodeNumber: Int? = nil, canDelete: Bool? = nil, canDownload: Bool? = nil, hasSubtitles: Bool? = nil, preferredMetadataLanguage: String? = nil, preferredMetadataCountryCode: String? = nil, supportsSync: Bool? = nil, container: String? = nil, sortName: String? = nil, forcedSortName: String? = nil, video3DFormat: Any? = nil, premiereDate: Date? = nil, externalUrls: [ExternalUrl]? = nil, mediaSources: [MediaSourceInfo]? = nil, criticRating: Float? = nil, productionLocations: [String]? = nil, path: String? = nil, enableMediaSourceDisplay: Bool? = nil, officialRating: String? = nil, customRating: String? = nil, channelId: UUID? = nil, channelName: String? = nil, overview: String? = nil, taglines: [String]? = nil, genres: [String]? = nil, communityRating: Float? = nil, cumulativeRunTimeTicks: Int64? = nil, runTimeTicks: Int64? = nil, playAccess: Any? = nil, aspectRatio: String? = nil, productionYear: Int? = nil, isPlaceHolder: Bool? = nil, number: String? = nil, channelNumber: String? = nil, indexNumber: Int? = nil, indexNumberEnd: Int? = nil, parentIndexNumber: Int? = nil, remoteTrailers: [MediaUrl]? = nil, providerIds: [String:String]? = nil, isHD: Bool? = nil, isFolder: Bool? = nil, parentId: UUID? = nil, type: String? = nil, people: [BaseItemPerson]? = nil, studios: [NameGuidPair]? = nil, genreItems: [NameGuidPair]? = nil, parentLogoItemId: String? = nil, parentBackdropItemId: String? = nil, parentBackdropImageTags: [String]? = nil, localTrailerCount: Int? = nil, userData: Any? = nil, recursiveItemCount: Int? = nil, childCount: Int? = nil, seriesName: String? = nil, seriesId: UUID? = nil, seasonId: UUID? = nil, specialFeatureCount: Int? = nil, displayPreferencesId: String? = nil, status: String? = nil, airTime: String? = nil, airDays: [DayOfWeek]? = nil, tags: [String]? = nil, primaryImageAspectRatio: Double? = nil, artists: [String]? = nil, artistItems: [NameGuidPair]? = nil, album: String? = nil, collectionType: String? = nil, displayOrder: String? = nil, albumId: UUID? = nil, albumPrimaryImageTag: String? = nil, seriesPrimaryImageTag: String? = nil, albumArtist: String? = nil, albumArtists: [NameGuidPair]? = nil, seasonName: String? = nil, mediaStreams: [MediaStream]? = nil, videoType: Any? = nil, partCount: Int? = nil, mediaSourceCount: Int? = nil, imageTags: [String:String]? = nil, backdropImageTags: [String]? = nil, screenshotImageTags: [String]? = nil, parentLogoImageTag: String? = nil, parentArtItemId: String? = nil, parentArtImageTag: String? = nil, seriesThumbImageTag: String? = nil, imageBlurHashes: BaseItemDtoImageBlurHashes? = nil, seriesStudio: String? = nil, parentThumbItemId: String? = nil, parentThumbImageTag: String? = nil, parentPrimaryImageItemId: String? = nil, parentPrimaryImageTag: String? = nil, chapters: [ChapterInfo]? = nil, locationType: Any? = nil, isoType: Any? = nil, mediaType: String? = nil, endDate: Date? = nil, lockedFields: [MetadataField]? = nil, trailerCount: Int? = nil, movieCount: Int? = nil, seriesCount: Int? = nil, programCount: Int? = nil, episodeCount: Int? = nil, songCount: Int? = nil, albumCount: Int? = nil, artistCount: Int? = nil, musicVideoCount: Int? = nil, lockData: Bool? = nil, width: Int? = nil, height: Int? = nil, cameraMake: String? = nil, cameraModel: String? = nil, software: String? = nil, exposureTime: Double? = nil, focalLength: Double? = nil, imageOrientation: Any? = nil, aperture: Double? = nil, shutterSpeed: Double? = nil, latitude: Double? = nil, longitude: Double? = nil, altitude: Double? = nil, isoSpeedRating: Int? = nil, seriesTimerId: String? = nil, programId: String? = nil, channelPrimaryImageTag: String? = nil, startDate: Date? = nil, completionPercentage: Double? = nil, isRepeat: Bool? = nil, episodeTitle: String? = nil, channelType: Any? = nil, audio: Any? = nil, isMovie: Bool? = nil, isSports: Bool? = nil, isSeries: Bool? = nil, isLive: Bool? = nil, isNews: Bool? = nil, isKids: Bool? = nil, isPremiere: Bool? = nil, timerId: String? = nil, currentProgram: Any? = nil) { - self.name = name - self.originalTitle = originalTitle - self.serverId = serverId - self._id = _id - self.etag = etag - self.sourceType = sourceType - self.playlistItemId = playlistItemId - self.dateCreated = dateCreated - self.dateLastMediaAdded = dateLastMediaAdded - self.extraType = extraType - self.airsBeforeSeasonNumber = airsBeforeSeasonNumber - self.airsAfterSeasonNumber = airsAfterSeasonNumber - self.airsBeforeEpisodeNumber = airsBeforeEpisodeNumber - self.canDelete = canDelete - self.canDownload = canDownload - self.hasSubtitles = hasSubtitles - self.preferredMetadataLanguage = preferredMetadataLanguage - self.preferredMetadataCountryCode = preferredMetadataCountryCode - self.supportsSync = supportsSync - self.container = container - self.sortName = sortName - self.forcedSortName = forcedSortName - self.video3DFormat = video3DFormat - self.premiereDate = premiereDate - self.externalUrls = externalUrls - self.mediaSources = mediaSources - self.criticRating = criticRating - self.productionLocations = productionLocations - self.path = path - self.enableMediaSourceDisplay = enableMediaSourceDisplay - self.officialRating = officialRating - self.customRating = customRating - self.channelId = channelId - self.channelName = channelName - self.overview = overview - self.taglines = taglines - self.genres = genres - self.communityRating = communityRating - self.cumulativeRunTimeTicks = cumulativeRunTimeTicks - self.runTimeTicks = runTimeTicks - self.playAccess = playAccess - self.aspectRatio = aspectRatio - self.productionYear = productionYear - self.isPlaceHolder = isPlaceHolder - self.number = number - self.channelNumber = channelNumber - self.indexNumber = indexNumber - self.indexNumberEnd = indexNumberEnd - self.parentIndexNumber = parentIndexNumber - self.remoteTrailers = remoteTrailers - self.providerIds = providerIds - self.isHD = isHD - self.isFolder = isFolder - self.parentId = parentId - self.type = type - self.people = people - self.studios = studios - self.genreItems = genreItems - self.parentLogoItemId = parentLogoItemId - self.parentBackdropItemId = parentBackdropItemId - self.parentBackdropImageTags = parentBackdropImageTags - self.localTrailerCount = localTrailerCount - self.userData = userData - self.recursiveItemCount = recursiveItemCount - self.childCount = childCount - self.seriesName = seriesName - self.seriesId = seriesId - self.seasonId = seasonId - self.specialFeatureCount = specialFeatureCount - self.displayPreferencesId = displayPreferencesId - self.status = status - self.airTime = airTime - self.airDays = airDays - self.tags = tags - self.primaryImageAspectRatio = primaryImageAspectRatio - self.artists = artists - self.artistItems = artistItems - self.album = album - self.collectionType = collectionType - self.displayOrder = displayOrder - self.albumId = albumId - self.albumPrimaryImageTag = albumPrimaryImageTag - self.seriesPrimaryImageTag = seriesPrimaryImageTag - self.albumArtist = albumArtist - self.albumArtists = albumArtists - self.seasonName = seasonName - self.mediaStreams = mediaStreams - self.videoType = videoType - self.partCount = partCount - self.mediaSourceCount = mediaSourceCount - self.imageTags = imageTags - self.backdropImageTags = backdropImageTags - self.screenshotImageTags = screenshotImageTags - self.parentLogoImageTag = parentLogoImageTag - self.parentArtItemId = parentArtItemId - self.parentArtImageTag = parentArtImageTag - self.seriesThumbImageTag = seriesThumbImageTag - self.imageBlurHashes = imageBlurHashes - self.seriesStudio = seriesStudio - self.parentThumbItemId = parentThumbItemId - self.parentThumbImageTag = parentThumbImageTag - self.parentPrimaryImageItemId = parentPrimaryImageItemId - self.parentPrimaryImageTag = parentPrimaryImageTag - self.chapters = chapters - self.locationType = locationType - self.isoType = isoType - self.mediaType = mediaType - self.endDate = endDate - self.lockedFields = lockedFields - self.trailerCount = trailerCount - self.movieCount = movieCount - self.seriesCount = seriesCount - self.programCount = programCount - self.episodeCount = episodeCount - self.songCount = songCount - self.albumCount = albumCount - self.artistCount = artistCount - self.musicVideoCount = musicVideoCount - self.lockData = lockData - self.width = width - self.height = height - self.cameraMake = cameraMake - self.cameraModel = cameraModel - self.software = software - self.exposureTime = exposureTime - self.focalLength = focalLength - self.imageOrientation = imageOrientation - self.aperture = aperture - self.shutterSpeed = shutterSpeed - self.latitude = latitude - self.longitude = longitude - self.altitude = altitude - self.isoSpeedRating = isoSpeedRating - self.seriesTimerId = seriesTimerId - self.programId = programId - self.channelPrimaryImageTag = channelPrimaryImageTag - self.startDate = startDate - self.completionPercentage = completionPercentage - self.isRepeat = isRepeat - self.episodeTitle = episodeTitle - self.channelType = channelType - self.audio = audio - self.isMovie = isMovie - self.isSports = isSports - self.isSeries = isSeries - self.isLive = isLive - self.isNews = isNews - self.isKids = isKids - self.isPremiere = isPremiere - self.timerId = timerId - self.currentProgram = currentProgram - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case originalTitle = "OriginalTitle" - case serverId = "ServerId" - case _id = "Id" - case etag = "Etag" - case sourceType = "SourceType" - case playlistItemId = "PlaylistItemId" - case dateCreated = "DateCreated" - case dateLastMediaAdded = "DateLastMediaAdded" - case extraType = "ExtraType" - case airsBeforeSeasonNumber = "AirsBeforeSeasonNumber" - case airsAfterSeasonNumber = "AirsAfterSeasonNumber" - case airsBeforeEpisodeNumber = "AirsBeforeEpisodeNumber" - case canDelete = "CanDelete" - case canDownload = "CanDownload" - case hasSubtitles = "HasSubtitles" - case preferredMetadataLanguage = "PreferredMetadataLanguage" - case preferredMetadataCountryCode = "PreferredMetadataCountryCode" - case supportsSync = "SupportsSync" - case container = "Container" - case sortName = "SortName" - case forcedSortName = "ForcedSortName" - case video3DFormat = "Video3DFormat" - case premiereDate = "PremiereDate" - case externalUrls = "ExternalUrls" - case mediaSources = "MediaSources" - case criticRating = "CriticRating" - case productionLocations = "ProductionLocations" - case path = "Path" - case enableMediaSourceDisplay = "EnableMediaSourceDisplay" - case officialRating = "OfficialRating" - case customRating = "CustomRating" - case channelId = "ChannelId" - case channelName = "ChannelName" - case overview = "Overview" - case taglines = "Taglines" - case genres = "Genres" - case communityRating = "CommunityRating" - case cumulativeRunTimeTicks = "CumulativeRunTimeTicks" - case runTimeTicks = "RunTimeTicks" - case playAccess = "PlayAccess" - case aspectRatio = "AspectRatio" - case productionYear = "ProductionYear" - case isPlaceHolder = "IsPlaceHolder" - case number = "Number" - case channelNumber = "ChannelNumber" - case indexNumber = "IndexNumber" - case indexNumberEnd = "IndexNumberEnd" - case parentIndexNumber = "ParentIndexNumber" - case remoteTrailers = "RemoteTrailers" - case providerIds = "ProviderIds" - case isHD = "IsHD" - case isFolder = "IsFolder" - case parentId = "ParentId" - case type = "Type" - case people = "People" - case studios = "Studios" - case genreItems = "GenreItems" - case parentLogoItemId = "ParentLogoItemId" - case parentBackdropItemId = "ParentBackdropItemId" - case parentBackdropImageTags = "ParentBackdropImageTags" - case localTrailerCount = "LocalTrailerCount" - case userData = "UserData" - case recursiveItemCount = "RecursiveItemCount" - case childCount = "ChildCount" - case seriesName = "SeriesName" - case seriesId = "SeriesId" - case seasonId = "SeasonId" - case specialFeatureCount = "SpecialFeatureCount" - case displayPreferencesId = "DisplayPreferencesId" - case status = "Status" - case airTime = "AirTime" - case airDays = "AirDays" - case tags = "Tags" - case primaryImageAspectRatio = "PrimaryImageAspectRatio" - case artists = "Artists" - case artistItems = "ArtistItems" - case album = "Album" - case collectionType = "CollectionType" - case displayOrder = "DisplayOrder" - case albumId = "AlbumId" - case albumPrimaryImageTag = "AlbumPrimaryImageTag" - case seriesPrimaryImageTag = "SeriesPrimaryImageTag" - case albumArtist = "AlbumArtist" - case albumArtists = "AlbumArtists" - case seasonName = "SeasonName" - case mediaStreams = "MediaStreams" - case videoType = "VideoType" - case partCount = "PartCount" - case mediaSourceCount = "MediaSourceCount" - case imageTags = "ImageTags" - case backdropImageTags = "BackdropImageTags" - case screenshotImageTags = "ScreenshotImageTags" - case parentLogoImageTag = "ParentLogoImageTag" - case parentArtItemId = "ParentArtItemId" - case parentArtImageTag = "ParentArtImageTag" - case seriesThumbImageTag = "SeriesThumbImageTag" - case imageBlurHashes = "ImageBlurHashes" - case seriesStudio = "SeriesStudio" - case parentThumbItemId = "ParentThumbItemId" - case parentThumbImageTag = "ParentThumbImageTag" - case parentPrimaryImageItemId = "ParentPrimaryImageItemId" - case parentPrimaryImageTag = "ParentPrimaryImageTag" - case chapters = "Chapters" - case locationType = "LocationType" - case isoType = "IsoType" - case mediaType = "MediaType" - case endDate = "EndDate" - case lockedFields = "LockedFields" - case trailerCount = "TrailerCount" - case movieCount = "MovieCount" - case seriesCount = "SeriesCount" - case programCount = "ProgramCount" - case episodeCount = "EpisodeCount" - case songCount = "SongCount" - case albumCount = "AlbumCount" - case artistCount = "ArtistCount" - case musicVideoCount = "MusicVideoCount" - case lockData = "LockData" - case width = "Width" - case height = "Height" - case cameraMake = "CameraMake" - case cameraModel = "CameraModel" - case software = "Software" - case exposureTime = "ExposureTime" - case focalLength = "FocalLength" - case imageOrientation = "ImageOrientation" - case aperture = "Aperture" - case shutterSpeed = "ShutterSpeed" - case latitude = "Latitude" - case longitude = "Longitude" - case altitude = "Altitude" - case isoSpeedRating = "IsoSpeedRating" - case seriesTimerId = "SeriesTimerId" - case programId = "ProgramId" - case channelPrimaryImageTag = "ChannelPrimaryImageTag" - case startDate = "StartDate" - case completionPercentage = "CompletionPercentage" - case isRepeat = "IsRepeat" - case episodeTitle = "EpisodeTitle" - case channelType = "ChannelType" - case audio = "Audio" - case isMovie = "IsMovie" - case isSports = "IsSports" - case isSeries = "IsSeries" - case isLive = "IsLive" - case isNews = "IsNews" - case isKids = "IsKids" - case isPremiere = "IsPremiere" - case timerId = "TimerId" - case currentProgram = "CurrentProgram" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfPlaybackProgressInfoPlayMethod.swift b/JellyfinPlayer/Swaggers/Models/AllOfPlaybackProgressInfoPlayMethod.swift deleted file mode 100644 index 0907c1ec..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfPlaybackProgressInfoPlayMethod.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfPlaybackProgressInfoPlayMethod.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the play method. */ - -public struct AllOfPlaybackProgressInfoPlayMethod: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfPlaybackProgressInfoRepeatMode.swift b/JellyfinPlayer/Swaggers/Models/AllOfPlaybackProgressInfoRepeatMode.swift deleted file mode 100644 index b70da7a0..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfPlaybackProgressInfoRepeatMode.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfPlaybackProgressInfoRepeatMode.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the repeat mode. */ - -public struct AllOfPlaybackProgressInfoRepeatMode: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfPlaybackStartInfoItem.swift b/JellyfinPlayer/Swaggers/Models/AllOfPlaybackStartInfoItem.swift deleted file mode 100644 index e09e199a..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfPlaybackStartInfoItem.swift +++ /dev/null @@ -1,590 +0,0 @@ -// -// AllOfPlaybackStartInfoItem.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the item. */ - -public struct AllOfPlaybackStartInfoItem: Codable { - - /** Gets or sets the name. */ - public var name: String? - public var originalTitle: String? - /** Gets or sets the server identifier. */ - public var serverId: String? - /** Gets or sets the id. */ - public var _id: UUID? - /** Gets or sets the etag. */ - public var etag: String? - /** Gets or sets the type of the source. */ - public var sourceType: String? - /** Gets or sets the playlist item identifier. */ - public var playlistItemId: String? - /** Gets or sets the date created. */ - public var dateCreated: Date? - public var dateLastMediaAdded: Date? - public var extraType: String? - public var airsBeforeSeasonNumber: Int? - public var airsAfterSeasonNumber: Int? - public var airsBeforeEpisodeNumber: Int? - public var canDelete: Bool? - public var canDownload: Bool? - public var hasSubtitles: Bool? - public var preferredMetadataLanguage: String? - public var preferredMetadataCountryCode: String? - /** Gets or sets a value indicating whether [supports synchronize]. */ - public var supportsSync: Bool? - public var container: String? - /** Gets or sets the name of the sort. */ - public var sortName: String? - public var forcedSortName: String? - /** Gets or sets the video3 D format. */ - public var video3DFormat: Any? - /** Gets or sets the premiere date. */ - public var premiereDate: Date? - /** Gets or sets the external urls. */ - public var externalUrls: [ExternalUrl]? - /** Gets or sets the media versions. */ - public var mediaSources: [MediaSourceInfo]? - /** Gets or sets the critic rating. */ - public var criticRating: Float? - public var productionLocations: [String]? - /** Gets or sets the path. */ - public var path: String? - public var enableMediaSourceDisplay: Bool? - /** Gets or sets the official rating. */ - public var officialRating: String? - /** Gets or sets the custom rating. */ - public var customRating: String? - /** Gets or sets the channel identifier. */ - public var channelId: UUID? - public var channelName: String? - /** Gets or sets the overview. */ - public var overview: String? - /** Gets or sets the taglines. */ - public var taglines: [String]? - /** Gets or sets the genres. */ - public var genres: [String]? - /** Gets or sets the community rating. */ - public var communityRating: Float? - /** Gets or sets the cumulative run time ticks. */ - public var cumulativeRunTimeTicks: Int64? - /** Gets or sets the run time ticks. */ - public var runTimeTicks: Int64? - /** Gets or sets the play access. */ - public var playAccess: Any? - /** Gets or sets the aspect ratio. */ - public var aspectRatio: String? - /** Gets or sets the production year. */ - public var productionYear: Int? - /** Gets or sets a value indicating whether this instance is place holder. */ - public var isPlaceHolder: Bool? - /** Gets or sets the number. */ - public var number: String? - public var channelNumber: String? - /** Gets or sets the index number. */ - public var indexNumber: Int? - /** Gets or sets the index number end. */ - public var indexNumberEnd: Int? - /** Gets or sets the parent index number. */ - public var parentIndexNumber: Int? - /** Gets or sets the trailer urls. */ - public var remoteTrailers: [MediaUrl]? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets a value indicating whether this instance is HD. */ - public var isHD: Bool? - /** Gets or sets a value indicating whether this instance is folder. */ - public var isFolder: Bool? - /** Gets or sets the parent id. */ - public var parentId: UUID? - /** Gets or sets the type. */ - public var type: String? - /** Gets or sets the people. */ - public var people: [BaseItemPerson]? - /** Gets or sets the studios. */ - public var studios: [NameGuidPair]? - public var genreItems: [NameGuidPair]? - /** If the item does not have a logo, this will hold the Id of the Parent that has one. */ - public var parentLogoItemId: String? - /** If the item does not have any backdrops, this will hold the Id of the Parent that has one. */ - public var parentBackdropItemId: String? - /** Gets or sets the parent backdrop image tags. */ - public var parentBackdropImageTags: [String]? - /** Gets or sets the local trailer count. */ - public var localTrailerCount: Int? - /** User data for this item based on the user it's being requested for. */ - public var userData: Any? - /** Gets or sets the recursive item count. */ - public var recursiveItemCount: Int? - /** Gets or sets the child count. */ - public var childCount: Int? - /** Gets or sets the name of the series. */ - public var seriesName: String? - /** Gets or sets the series id. */ - public var seriesId: UUID? - /** Gets or sets the season identifier. */ - public var seasonId: UUID? - /** Gets or sets the special feature count. */ - public var specialFeatureCount: Int? - /** Gets or sets the display preferences id. */ - public var displayPreferencesId: String? - /** Gets or sets the status. */ - public var status: String? - /** Gets or sets the air time. */ - public var airTime: String? - /** Gets or sets the air days. */ - public var airDays: [DayOfWeek]? - /** Gets or sets the tags. */ - public var tags: [String]? - /** Gets or sets the primary image aspect ratio, after image enhancements. */ - public var primaryImageAspectRatio: Double? - /** Gets or sets the artists. */ - public var artists: [String]? - /** Gets or sets the artist items. */ - public var artistItems: [NameGuidPair]? - /** Gets or sets the album. */ - public var album: String? - /** Gets or sets the type of the collection. */ - public var collectionType: String? - /** Gets or sets the display order. */ - public var displayOrder: String? - /** Gets or sets the album id. */ - public var albumId: UUID? - /** Gets or sets the album image tag. */ - public var albumPrimaryImageTag: String? - /** Gets or sets the series primary image tag. */ - public var seriesPrimaryImageTag: String? - /** Gets or sets the album artist. */ - public var albumArtist: String? - /** Gets or sets the album artists. */ - public var albumArtists: [NameGuidPair]? - /** Gets or sets the name of the season. */ - public var seasonName: String? - /** Gets or sets the media streams. */ - public var mediaStreams: [MediaStream]? - /** Gets or sets the type of the video. */ - public var videoType: Any? - /** Gets or sets the part count. */ - public var partCount: Int? - public var mediaSourceCount: Int? - /** Gets or sets the image tags. */ - public var imageTags: [String:String]? - /** Gets or sets the backdrop image tags. */ - public var backdropImageTags: [String]? - /** Gets or sets the screenshot image tags. */ - public var screenshotImageTags: [String]? - /** Gets or sets the parent logo image tag. */ - public var parentLogoImageTag: String? - /** If the item does not have a art, this will hold the Id of the Parent that has one. */ - public var parentArtItemId: String? - /** Gets or sets the parent art image tag. */ - public var parentArtImageTag: String? - /** Gets or sets the series thumb image tag. */ - public var seriesThumbImageTag: String? - public var imageBlurHashes: BaseItemDtoImageBlurHashes? - /** Gets or sets the series studio. */ - public var seriesStudio: String? - /** Gets or sets the parent thumb item id. */ - public var parentThumbItemId: String? - /** Gets or sets the parent thumb image tag. */ - public var parentThumbImageTag: String? - /** Gets or sets the parent primary image item identifier. */ - public var parentPrimaryImageItemId: String? - /** Gets or sets the parent primary image tag. */ - public var parentPrimaryImageTag: String? - /** Gets or sets the chapters. */ - public var chapters: [ChapterInfo]? - /** Gets or sets the type of the location. */ - public var locationType: Any? - /** Gets or sets the type of the iso. */ - public var isoType: Any? - /** Gets or sets the type of the media. */ - public var mediaType: String? - /** Gets or sets the end date. */ - public var endDate: Date? - /** Gets or sets the locked fields. */ - public var lockedFields: [MetadataField]? - /** Gets or sets the trailer count. */ - public var trailerCount: Int? - /** Gets or sets the movie count. */ - public var movieCount: Int? - /** Gets or sets the series count. */ - public var seriesCount: Int? - public var programCount: Int? - /** Gets or sets the episode count. */ - public var episodeCount: Int? - /** Gets or sets the song count. */ - public var songCount: Int? - /** Gets or sets the album count. */ - public var albumCount: Int? - public var artistCount: Int? - /** Gets or sets the music video count. */ - public var musicVideoCount: Int? - /** Gets or sets a value indicating whether [enable internet providers]. */ - public var lockData: Bool? - public var width: Int? - public var height: Int? - public var cameraMake: String? - public var cameraModel: String? - public var software: String? - public var exposureTime: Double? - public var focalLength: Double? - public var imageOrientation: Any? - public var aperture: Double? - public var shutterSpeed: Double? - public var latitude: Double? - public var longitude: Double? - public var altitude: Double? - public var isoSpeedRating: Int? - /** Gets or sets the series timer identifier. */ - public var seriesTimerId: String? - /** Gets or sets the program identifier. */ - public var programId: String? - /** Gets or sets the channel primary image tag. */ - public var channelPrimaryImageTag: String? - /** The start date of the recording, in UTC. */ - public var startDate: Date? - /** Gets or sets the completion percentage. */ - public var completionPercentage: Double? - /** Gets or sets a value indicating whether this instance is repeat. */ - public var isRepeat: Bool? - /** Gets or sets the episode title. */ - public var episodeTitle: String? - /** Gets or sets the type of the channel. */ - public var channelType: Any? - /** Gets or sets the audio. */ - public var audio: Any? - /** Gets or sets a value indicating whether this instance is movie. */ - public var isMovie: Bool? - /** Gets or sets a value indicating whether this instance is sports. */ - public var isSports: Bool? - /** Gets or sets a value indicating whether this instance is series. */ - public var isSeries: Bool? - /** Gets or sets a value indicating whether this instance is live. */ - public var isLive: Bool? - /** Gets or sets a value indicating whether this instance is news. */ - public var isNews: Bool? - /** Gets or sets a value indicating whether this instance is kids. */ - public var isKids: Bool? - /** Gets or sets a value indicating whether this instance is premiere. */ - public var isPremiere: Bool? - /** Gets or sets the timer identifier. */ - public var timerId: String? - /** Gets or sets the current program. */ - public var currentProgram: Any? - - public init(name: String? = nil, originalTitle: String? = nil, serverId: String? = nil, _id: UUID? = nil, etag: String? = nil, sourceType: String? = nil, playlistItemId: String? = nil, dateCreated: Date? = nil, dateLastMediaAdded: Date? = nil, extraType: String? = nil, airsBeforeSeasonNumber: Int? = nil, airsAfterSeasonNumber: Int? = nil, airsBeforeEpisodeNumber: Int? = nil, canDelete: Bool? = nil, canDownload: Bool? = nil, hasSubtitles: Bool? = nil, preferredMetadataLanguage: String? = nil, preferredMetadataCountryCode: String? = nil, supportsSync: Bool? = nil, container: String? = nil, sortName: String? = nil, forcedSortName: String? = nil, video3DFormat: Any? = nil, premiereDate: Date? = nil, externalUrls: [ExternalUrl]? = nil, mediaSources: [MediaSourceInfo]? = nil, criticRating: Float? = nil, productionLocations: [String]? = nil, path: String? = nil, enableMediaSourceDisplay: Bool? = nil, officialRating: String? = nil, customRating: String? = nil, channelId: UUID? = nil, channelName: String? = nil, overview: String? = nil, taglines: [String]? = nil, genres: [String]? = nil, communityRating: Float? = nil, cumulativeRunTimeTicks: Int64? = nil, runTimeTicks: Int64? = nil, playAccess: Any? = nil, aspectRatio: String? = nil, productionYear: Int? = nil, isPlaceHolder: Bool? = nil, number: String? = nil, channelNumber: String? = nil, indexNumber: Int? = nil, indexNumberEnd: Int? = nil, parentIndexNumber: Int? = nil, remoteTrailers: [MediaUrl]? = nil, providerIds: [String:String]? = nil, isHD: Bool? = nil, isFolder: Bool? = nil, parentId: UUID? = nil, type: String? = nil, people: [BaseItemPerson]? = nil, studios: [NameGuidPair]? = nil, genreItems: [NameGuidPair]? = nil, parentLogoItemId: String? = nil, parentBackdropItemId: String? = nil, parentBackdropImageTags: [String]? = nil, localTrailerCount: Int? = nil, userData: Any? = nil, recursiveItemCount: Int? = nil, childCount: Int? = nil, seriesName: String? = nil, seriesId: UUID? = nil, seasonId: UUID? = nil, specialFeatureCount: Int? = nil, displayPreferencesId: String? = nil, status: String? = nil, airTime: String? = nil, airDays: [DayOfWeek]? = nil, tags: [String]? = nil, primaryImageAspectRatio: Double? = nil, artists: [String]? = nil, artistItems: [NameGuidPair]? = nil, album: String? = nil, collectionType: String? = nil, displayOrder: String? = nil, albumId: UUID? = nil, albumPrimaryImageTag: String? = nil, seriesPrimaryImageTag: String? = nil, albumArtist: String? = nil, albumArtists: [NameGuidPair]? = nil, seasonName: String? = nil, mediaStreams: [MediaStream]? = nil, videoType: Any? = nil, partCount: Int? = nil, mediaSourceCount: Int? = nil, imageTags: [String:String]? = nil, backdropImageTags: [String]? = nil, screenshotImageTags: [String]? = nil, parentLogoImageTag: String? = nil, parentArtItemId: String? = nil, parentArtImageTag: String? = nil, seriesThumbImageTag: String? = nil, imageBlurHashes: BaseItemDtoImageBlurHashes? = nil, seriesStudio: String? = nil, parentThumbItemId: String? = nil, parentThumbImageTag: String? = nil, parentPrimaryImageItemId: String? = nil, parentPrimaryImageTag: String? = nil, chapters: [ChapterInfo]? = nil, locationType: Any? = nil, isoType: Any? = nil, mediaType: String? = nil, endDate: Date? = nil, lockedFields: [MetadataField]? = nil, trailerCount: Int? = nil, movieCount: Int? = nil, seriesCount: Int? = nil, programCount: Int? = nil, episodeCount: Int? = nil, songCount: Int? = nil, albumCount: Int? = nil, artistCount: Int? = nil, musicVideoCount: Int? = nil, lockData: Bool? = nil, width: Int? = nil, height: Int? = nil, cameraMake: String? = nil, cameraModel: String? = nil, software: String? = nil, exposureTime: Double? = nil, focalLength: Double? = nil, imageOrientation: Any? = nil, aperture: Double? = nil, shutterSpeed: Double? = nil, latitude: Double? = nil, longitude: Double? = nil, altitude: Double? = nil, isoSpeedRating: Int? = nil, seriesTimerId: String? = nil, programId: String? = nil, channelPrimaryImageTag: String? = nil, startDate: Date? = nil, completionPercentage: Double? = nil, isRepeat: Bool? = nil, episodeTitle: String? = nil, channelType: Any? = nil, audio: Any? = nil, isMovie: Bool? = nil, isSports: Bool? = nil, isSeries: Bool? = nil, isLive: Bool? = nil, isNews: Bool? = nil, isKids: Bool? = nil, isPremiere: Bool? = nil, timerId: String? = nil, currentProgram: Any? = nil) { - self.name = name - self.originalTitle = originalTitle - self.serverId = serverId - self._id = _id - self.etag = etag - self.sourceType = sourceType - self.playlistItemId = playlistItemId - self.dateCreated = dateCreated - self.dateLastMediaAdded = dateLastMediaAdded - self.extraType = extraType - self.airsBeforeSeasonNumber = airsBeforeSeasonNumber - self.airsAfterSeasonNumber = airsAfterSeasonNumber - self.airsBeforeEpisodeNumber = airsBeforeEpisodeNumber - self.canDelete = canDelete - self.canDownload = canDownload - self.hasSubtitles = hasSubtitles - self.preferredMetadataLanguage = preferredMetadataLanguage - self.preferredMetadataCountryCode = preferredMetadataCountryCode - self.supportsSync = supportsSync - self.container = container - self.sortName = sortName - self.forcedSortName = forcedSortName - self.video3DFormat = video3DFormat - self.premiereDate = premiereDate - self.externalUrls = externalUrls - self.mediaSources = mediaSources - self.criticRating = criticRating - self.productionLocations = productionLocations - self.path = path - self.enableMediaSourceDisplay = enableMediaSourceDisplay - self.officialRating = officialRating - self.customRating = customRating - self.channelId = channelId - self.channelName = channelName - self.overview = overview - self.taglines = taglines - self.genres = genres - self.communityRating = communityRating - self.cumulativeRunTimeTicks = cumulativeRunTimeTicks - self.runTimeTicks = runTimeTicks - self.playAccess = playAccess - self.aspectRatio = aspectRatio - self.productionYear = productionYear - self.isPlaceHolder = isPlaceHolder - self.number = number - self.channelNumber = channelNumber - self.indexNumber = indexNumber - self.indexNumberEnd = indexNumberEnd - self.parentIndexNumber = parentIndexNumber - self.remoteTrailers = remoteTrailers - self.providerIds = providerIds - self.isHD = isHD - self.isFolder = isFolder - self.parentId = parentId - self.type = type - self.people = people - self.studios = studios - self.genreItems = genreItems - self.parentLogoItemId = parentLogoItemId - self.parentBackdropItemId = parentBackdropItemId - self.parentBackdropImageTags = parentBackdropImageTags - self.localTrailerCount = localTrailerCount - self.userData = userData - self.recursiveItemCount = recursiveItemCount - self.childCount = childCount - self.seriesName = seriesName - self.seriesId = seriesId - self.seasonId = seasonId - self.specialFeatureCount = specialFeatureCount - self.displayPreferencesId = displayPreferencesId - self.status = status - self.airTime = airTime - self.airDays = airDays - self.tags = tags - self.primaryImageAspectRatio = primaryImageAspectRatio - self.artists = artists - self.artistItems = artistItems - self.album = album - self.collectionType = collectionType - self.displayOrder = displayOrder - self.albumId = albumId - self.albumPrimaryImageTag = albumPrimaryImageTag - self.seriesPrimaryImageTag = seriesPrimaryImageTag - self.albumArtist = albumArtist - self.albumArtists = albumArtists - self.seasonName = seasonName - self.mediaStreams = mediaStreams - self.videoType = videoType - self.partCount = partCount - self.mediaSourceCount = mediaSourceCount - self.imageTags = imageTags - self.backdropImageTags = backdropImageTags - self.screenshotImageTags = screenshotImageTags - self.parentLogoImageTag = parentLogoImageTag - self.parentArtItemId = parentArtItemId - self.parentArtImageTag = parentArtImageTag - self.seriesThumbImageTag = seriesThumbImageTag - self.imageBlurHashes = imageBlurHashes - self.seriesStudio = seriesStudio - self.parentThumbItemId = parentThumbItemId - self.parentThumbImageTag = parentThumbImageTag - self.parentPrimaryImageItemId = parentPrimaryImageItemId - self.parentPrimaryImageTag = parentPrimaryImageTag - self.chapters = chapters - self.locationType = locationType - self.isoType = isoType - self.mediaType = mediaType - self.endDate = endDate - self.lockedFields = lockedFields - self.trailerCount = trailerCount - self.movieCount = movieCount - self.seriesCount = seriesCount - self.programCount = programCount - self.episodeCount = episodeCount - self.songCount = songCount - self.albumCount = albumCount - self.artistCount = artistCount - self.musicVideoCount = musicVideoCount - self.lockData = lockData - self.width = width - self.height = height - self.cameraMake = cameraMake - self.cameraModel = cameraModel - self.software = software - self.exposureTime = exposureTime - self.focalLength = focalLength - self.imageOrientation = imageOrientation - self.aperture = aperture - self.shutterSpeed = shutterSpeed - self.latitude = latitude - self.longitude = longitude - self.altitude = altitude - self.isoSpeedRating = isoSpeedRating - self.seriesTimerId = seriesTimerId - self.programId = programId - self.channelPrimaryImageTag = channelPrimaryImageTag - self.startDate = startDate - self.completionPercentage = completionPercentage - self.isRepeat = isRepeat - self.episodeTitle = episodeTitle - self.channelType = channelType - self.audio = audio - self.isMovie = isMovie - self.isSports = isSports - self.isSeries = isSeries - self.isLive = isLive - self.isNews = isNews - self.isKids = isKids - self.isPremiere = isPremiere - self.timerId = timerId - self.currentProgram = currentProgram - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case originalTitle = "OriginalTitle" - case serverId = "ServerId" - case _id = "Id" - case etag = "Etag" - case sourceType = "SourceType" - case playlistItemId = "PlaylistItemId" - case dateCreated = "DateCreated" - case dateLastMediaAdded = "DateLastMediaAdded" - case extraType = "ExtraType" - case airsBeforeSeasonNumber = "AirsBeforeSeasonNumber" - case airsAfterSeasonNumber = "AirsAfterSeasonNumber" - case airsBeforeEpisodeNumber = "AirsBeforeEpisodeNumber" - case canDelete = "CanDelete" - case canDownload = "CanDownload" - case hasSubtitles = "HasSubtitles" - case preferredMetadataLanguage = "PreferredMetadataLanguage" - case preferredMetadataCountryCode = "PreferredMetadataCountryCode" - case supportsSync = "SupportsSync" - case container = "Container" - case sortName = "SortName" - case forcedSortName = "ForcedSortName" - case video3DFormat = "Video3DFormat" - case premiereDate = "PremiereDate" - case externalUrls = "ExternalUrls" - case mediaSources = "MediaSources" - case criticRating = "CriticRating" - case productionLocations = "ProductionLocations" - case path = "Path" - case enableMediaSourceDisplay = "EnableMediaSourceDisplay" - case officialRating = "OfficialRating" - case customRating = "CustomRating" - case channelId = "ChannelId" - case channelName = "ChannelName" - case overview = "Overview" - case taglines = "Taglines" - case genres = "Genres" - case communityRating = "CommunityRating" - case cumulativeRunTimeTicks = "CumulativeRunTimeTicks" - case runTimeTicks = "RunTimeTicks" - case playAccess = "PlayAccess" - case aspectRatio = "AspectRatio" - case productionYear = "ProductionYear" - case isPlaceHolder = "IsPlaceHolder" - case number = "Number" - case channelNumber = "ChannelNumber" - case indexNumber = "IndexNumber" - case indexNumberEnd = "IndexNumberEnd" - case parentIndexNumber = "ParentIndexNumber" - case remoteTrailers = "RemoteTrailers" - case providerIds = "ProviderIds" - case isHD = "IsHD" - case isFolder = "IsFolder" - case parentId = "ParentId" - case type = "Type" - case people = "People" - case studios = "Studios" - case genreItems = "GenreItems" - case parentLogoItemId = "ParentLogoItemId" - case parentBackdropItemId = "ParentBackdropItemId" - case parentBackdropImageTags = "ParentBackdropImageTags" - case localTrailerCount = "LocalTrailerCount" - case userData = "UserData" - case recursiveItemCount = "RecursiveItemCount" - case childCount = "ChildCount" - case seriesName = "SeriesName" - case seriesId = "SeriesId" - case seasonId = "SeasonId" - case specialFeatureCount = "SpecialFeatureCount" - case displayPreferencesId = "DisplayPreferencesId" - case status = "Status" - case airTime = "AirTime" - case airDays = "AirDays" - case tags = "Tags" - case primaryImageAspectRatio = "PrimaryImageAspectRatio" - case artists = "Artists" - case artistItems = "ArtistItems" - case album = "Album" - case collectionType = "CollectionType" - case displayOrder = "DisplayOrder" - case albumId = "AlbumId" - case albumPrimaryImageTag = "AlbumPrimaryImageTag" - case seriesPrimaryImageTag = "SeriesPrimaryImageTag" - case albumArtist = "AlbumArtist" - case albumArtists = "AlbumArtists" - case seasonName = "SeasonName" - case mediaStreams = "MediaStreams" - case videoType = "VideoType" - case partCount = "PartCount" - case mediaSourceCount = "MediaSourceCount" - case imageTags = "ImageTags" - case backdropImageTags = "BackdropImageTags" - case screenshotImageTags = "ScreenshotImageTags" - case parentLogoImageTag = "ParentLogoImageTag" - case parentArtItemId = "ParentArtItemId" - case parentArtImageTag = "ParentArtImageTag" - case seriesThumbImageTag = "SeriesThumbImageTag" - case imageBlurHashes = "ImageBlurHashes" - case seriesStudio = "SeriesStudio" - case parentThumbItemId = "ParentThumbItemId" - case parentThumbImageTag = "ParentThumbImageTag" - case parentPrimaryImageItemId = "ParentPrimaryImageItemId" - case parentPrimaryImageTag = "ParentPrimaryImageTag" - case chapters = "Chapters" - case locationType = "LocationType" - case isoType = "IsoType" - case mediaType = "MediaType" - case endDate = "EndDate" - case lockedFields = "LockedFields" - case trailerCount = "TrailerCount" - case movieCount = "MovieCount" - case seriesCount = "SeriesCount" - case programCount = "ProgramCount" - case episodeCount = "EpisodeCount" - case songCount = "SongCount" - case albumCount = "AlbumCount" - case artistCount = "ArtistCount" - case musicVideoCount = "MusicVideoCount" - case lockData = "LockData" - case width = "Width" - case height = "Height" - case cameraMake = "CameraMake" - case cameraModel = "CameraModel" - case software = "Software" - case exposureTime = "ExposureTime" - case focalLength = "FocalLength" - case imageOrientation = "ImageOrientation" - case aperture = "Aperture" - case shutterSpeed = "ShutterSpeed" - case latitude = "Latitude" - case longitude = "Longitude" - case altitude = "Altitude" - case isoSpeedRating = "IsoSpeedRating" - case seriesTimerId = "SeriesTimerId" - case programId = "ProgramId" - case channelPrimaryImageTag = "ChannelPrimaryImageTag" - case startDate = "StartDate" - case completionPercentage = "CompletionPercentage" - case isRepeat = "IsRepeat" - case episodeTitle = "EpisodeTitle" - case channelType = "ChannelType" - case audio = "Audio" - case isMovie = "IsMovie" - case isSports = "IsSports" - case isSeries = "IsSeries" - case isLive = "IsLive" - case isNews = "IsNews" - case isKids = "IsKids" - case isPremiere = "IsPremiere" - case timerId = "TimerId" - case currentProgram = "CurrentProgram" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfPlaybackStartInfoPlayMethod.swift b/JellyfinPlayer/Swaggers/Models/AllOfPlaybackStartInfoPlayMethod.swift deleted file mode 100644 index f0629ae6..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfPlaybackStartInfoPlayMethod.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfPlaybackStartInfoPlayMethod.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the play method. */ - -public struct AllOfPlaybackStartInfoPlayMethod: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfPlaybackStartInfoRepeatMode.swift b/JellyfinPlayer/Swaggers/Models/AllOfPlaybackStartInfoRepeatMode.swift deleted file mode 100644 index 43c79e67..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfPlaybackStartInfoRepeatMode.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfPlaybackStartInfoRepeatMode.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the repeat mode. */ - -public struct AllOfPlaybackStartInfoRepeatMode: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfPlaybackStopInfoItem.swift b/JellyfinPlayer/Swaggers/Models/AllOfPlaybackStopInfoItem.swift deleted file mode 100644 index 80d78ff7..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfPlaybackStopInfoItem.swift +++ /dev/null @@ -1,590 +0,0 @@ -// -// AllOfPlaybackStopInfoItem.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the item. */ - -public struct AllOfPlaybackStopInfoItem: Codable { - - /** Gets or sets the name. */ - public var name: String? - public var originalTitle: String? - /** Gets or sets the server identifier. */ - public var serverId: String? - /** Gets or sets the id. */ - public var _id: UUID? - /** Gets or sets the etag. */ - public var etag: String? - /** Gets or sets the type of the source. */ - public var sourceType: String? - /** Gets or sets the playlist item identifier. */ - public var playlistItemId: String? - /** Gets or sets the date created. */ - public var dateCreated: Date? - public var dateLastMediaAdded: Date? - public var extraType: String? - public var airsBeforeSeasonNumber: Int? - public var airsAfterSeasonNumber: Int? - public var airsBeforeEpisodeNumber: Int? - public var canDelete: Bool? - public var canDownload: Bool? - public var hasSubtitles: Bool? - public var preferredMetadataLanguage: String? - public var preferredMetadataCountryCode: String? - /** Gets or sets a value indicating whether [supports synchronize]. */ - public var supportsSync: Bool? - public var container: String? - /** Gets or sets the name of the sort. */ - public var sortName: String? - public var forcedSortName: String? - /** Gets or sets the video3 D format. */ - public var video3DFormat: Any? - /** Gets or sets the premiere date. */ - public var premiereDate: Date? - /** Gets or sets the external urls. */ - public var externalUrls: [ExternalUrl]? - /** Gets or sets the media versions. */ - public var mediaSources: [MediaSourceInfo]? - /** Gets or sets the critic rating. */ - public var criticRating: Float? - public var productionLocations: [String]? - /** Gets or sets the path. */ - public var path: String? - public var enableMediaSourceDisplay: Bool? - /** Gets or sets the official rating. */ - public var officialRating: String? - /** Gets or sets the custom rating. */ - public var customRating: String? - /** Gets or sets the channel identifier. */ - public var channelId: UUID? - public var channelName: String? - /** Gets or sets the overview. */ - public var overview: String? - /** Gets or sets the taglines. */ - public var taglines: [String]? - /** Gets or sets the genres. */ - public var genres: [String]? - /** Gets or sets the community rating. */ - public var communityRating: Float? - /** Gets or sets the cumulative run time ticks. */ - public var cumulativeRunTimeTicks: Int64? - /** Gets or sets the run time ticks. */ - public var runTimeTicks: Int64? - /** Gets or sets the play access. */ - public var playAccess: Any? - /** Gets or sets the aspect ratio. */ - public var aspectRatio: String? - /** Gets or sets the production year. */ - public var productionYear: Int? - /** Gets or sets a value indicating whether this instance is place holder. */ - public var isPlaceHolder: Bool? - /** Gets or sets the number. */ - public var number: String? - public var channelNumber: String? - /** Gets or sets the index number. */ - public var indexNumber: Int? - /** Gets or sets the index number end. */ - public var indexNumberEnd: Int? - /** Gets or sets the parent index number. */ - public var parentIndexNumber: Int? - /** Gets or sets the trailer urls. */ - public var remoteTrailers: [MediaUrl]? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets a value indicating whether this instance is HD. */ - public var isHD: Bool? - /** Gets or sets a value indicating whether this instance is folder. */ - public var isFolder: Bool? - /** Gets or sets the parent id. */ - public var parentId: UUID? - /** Gets or sets the type. */ - public var type: String? - /** Gets or sets the people. */ - public var people: [BaseItemPerson]? - /** Gets or sets the studios. */ - public var studios: [NameGuidPair]? - public var genreItems: [NameGuidPair]? - /** If the item does not have a logo, this will hold the Id of the Parent that has one. */ - public var parentLogoItemId: String? - /** If the item does not have any backdrops, this will hold the Id of the Parent that has one. */ - public var parentBackdropItemId: String? - /** Gets or sets the parent backdrop image tags. */ - public var parentBackdropImageTags: [String]? - /** Gets or sets the local trailer count. */ - public var localTrailerCount: Int? - /** User data for this item based on the user it's being requested for. */ - public var userData: Any? - /** Gets or sets the recursive item count. */ - public var recursiveItemCount: Int? - /** Gets or sets the child count. */ - public var childCount: Int? - /** Gets or sets the name of the series. */ - public var seriesName: String? - /** Gets or sets the series id. */ - public var seriesId: UUID? - /** Gets or sets the season identifier. */ - public var seasonId: UUID? - /** Gets or sets the special feature count. */ - public var specialFeatureCount: Int? - /** Gets or sets the display preferences id. */ - public var displayPreferencesId: String? - /** Gets or sets the status. */ - public var status: String? - /** Gets or sets the air time. */ - public var airTime: String? - /** Gets or sets the air days. */ - public var airDays: [DayOfWeek]? - /** Gets or sets the tags. */ - public var tags: [String]? - /** Gets or sets the primary image aspect ratio, after image enhancements. */ - public var primaryImageAspectRatio: Double? - /** Gets or sets the artists. */ - public var artists: [String]? - /** Gets or sets the artist items. */ - public var artistItems: [NameGuidPair]? - /** Gets or sets the album. */ - public var album: String? - /** Gets or sets the type of the collection. */ - public var collectionType: String? - /** Gets or sets the display order. */ - public var displayOrder: String? - /** Gets or sets the album id. */ - public var albumId: UUID? - /** Gets or sets the album image tag. */ - public var albumPrimaryImageTag: String? - /** Gets or sets the series primary image tag. */ - public var seriesPrimaryImageTag: String? - /** Gets or sets the album artist. */ - public var albumArtist: String? - /** Gets or sets the album artists. */ - public var albumArtists: [NameGuidPair]? - /** Gets or sets the name of the season. */ - public var seasonName: String? - /** Gets or sets the media streams. */ - public var mediaStreams: [MediaStream]? - /** Gets or sets the type of the video. */ - public var videoType: Any? - /** Gets or sets the part count. */ - public var partCount: Int? - public var mediaSourceCount: Int? - /** Gets or sets the image tags. */ - public var imageTags: [String:String]? - /** Gets or sets the backdrop image tags. */ - public var backdropImageTags: [String]? - /** Gets or sets the screenshot image tags. */ - public var screenshotImageTags: [String]? - /** Gets or sets the parent logo image tag. */ - public var parentLogoImageTag: String? - /** If the item does not have a art, this will hold the Id of the Parent that has one. */ - public var parentArtItemId: String? - /** Gets or sets the parent art image tag. */ - public var parentArtImageTag: String? - /** Gets or sets the series thumb image tag. */ - public var seriesThumbImageTag: String? - public var imageBlurHashes: BaseItemDtoImageBlurHashes? - /** Gets or sets the series studio. */ - public var seriesStudio: String? - /** Gets or sets the parent thumb item id. */ - public var parentThumbItemId: String? - /** Gets or sets the parent thumb image tag. */ - public var parentThumbImageTag: String? - /** Gets or sets the parent primary image item identifier. */ - public var parentPrimaryImageItemId: String? - /** Gets or sets the parent primary image tag. */ - public var parentPrimaryImageTag: String? - /** Gets or sets the chapters. */ - public var chapters: [ChapterInfo]? - /** Gets or sets the type of the location. */ - public var locationType: Any? - /** Gets or sets the type of the iso. */ - public var isoType: Any? - /** Gets or sets the type of the media. */ - public var mediaType: String? - /** Gets or sets the end date. */ - public var endDate: Date? - /** Gets or sets the locked fields. */ - public var lockedFields: [MetadataField]? - /** Gets or sets the trailer count. */ - public var trailerCount: Int? - /** Gets or sets the movie count. */ - public var movieCount: Int? - /** Gets or sets the series count. */ - public var seriesCount: Int? - public var programCount: Int? - /** Gets or sets the episode count. */ - public var episodeCount: Int? - /** Gets or sets the song count. */ - public var songCount: Int? - /** Gets or sets the album count. */ - public var albumCount: Int? - public var artistCount: Int? - /** Gets or sets the music video count. */ - public var musicVideoCount: Int? - /** Gets or sets a value indicating whether [enable internet providers]. */ - public var lockData: Bool? - public var width: Int? - public var height: Int? - public var cameraMake: String? - public var cameraModel: String? - public var software: String? - public var exposureTime: Double? - public var focalLength: Double? - public var imageOrientation: Any? - public var aperture: Double? - public var shutterSpeed: Double? - public var latitude: Double? - public var longitude: Double? - public var altitude: Double? - public var isoSpeedRating: Int? - /** Gets or sets the series timer identifier. */ - public var seriesTimerId: String? - /** Gets or sets the program identifier. */ - public var programId: String? - /** Gets or sets the channel primary image tag. */ - public var channelPrimaryImageTag: String? - /** The start date of the recording, in UTC. */ - public var startDate: Date? - /** Gets or sets the completion percentage. */ - public var completionPercentage: Double? - /** Gets or sets a value indicating whether this instance is repeat. */ - public var isRepeat: Bool? - /** Gets or sets the episode title. */ - public var episodeTitle: String? - /** Gets or sets the type of the channel. */ - public var channelType: Any? - /** Gets or sets the audio. */ - public var audio: Any? - /** Gets or sets a value indicating whether this instance is movie. */ - public var isMovie: Bool? - /** Gets or sets a value indicating whether this instance is sports. */ - public var isSports: Bool? - /** Gets or sets a value indicating whether this instance is series. */ - public var isSeries: Bool? - /** Gets or sets a value indicating whether this instance is live. */ - public var isLive: Bool? - /** Gets or sets a value indicating whether this instance is news. */ - public var isNews: Bool? - /** Gets or sets a value indicating whether this instance is kids. */ - public var isKids: Bool? - /** Gets or sets a value indicating whether this instance is premiere. */ - public var isPremiere: Bool? - /** Gets or sets the timer identifier. */ - public var timerId: String? - /** Gets or sets the current program. */ - public var currentProgram: Any? - - public init(name: String? = nil, originalTitle: String? = nil, serverId: String? = nil, _id: UUID? = nil, etag: String? = nil, sourceType: String? = nil, playlistItemId: String? = nil, dateCreated: Date? = nil, dateLastMediaAdded: Date? = nil, extraType: String? = nil, airsBeforeSeasonNumber: Int? = nil, airsAfterSeasonNumber: Int? = nil, airsBeforeEpisodeNumber: Int? = nil, canDelete: Bool? = nil, canDownload: Bool? = nil, hasSubtitles: Bool? = nil, preferredMetadataLanguage: String? = nil, preferredMetadataCountryCode: String? = nil, supportsSync: Bool? = nil, container: String? = nil, sortName: String? = nil, forcedSortName: String? = nil, video3DFormat: Any? = nil, premiereDate: Date? = nil, externalUrls: [ExternalUrl]? = nil, mediaSources: [MediaSourceInfo]? = nil, criticRating: Float? = nil, productionLocations: [String]? = nil, path: String? = nil, enableMediaSourceDisplay: Bool? = nil, officialRating: String? = nil, customRating: String? = nil, channelId: UUID? = nil, channelName: String? = nil, overview: String? = nil, taglines: [String]? = nil, genres: [String]? = nil, communityRating: Float? = nil, cumulativeRunTimeTicks: Int64? = nil, runTimeTicks: Int64? = nil, playAccess: Any? = nil, aspectRatio: String? = nil, productionYear: Int? = nil, isPlaceHolder: Bool? = nil, number: String? = nil, channelNumber: String? = nil, indexNumber: Int? = nil, indexNumberEnd: Int? = nil, parentIndexNumber: Int? = nil, remoteTrailers: [MediaUrl]? = nil, providerIds: [String:String]? = nil, isHD: Bool? = nil, isFolder: Bool? = nil, parentId: UUID? = nil, type: String? = nil, people: [BaseItemPerson]? = nil, studios: [NameGuidPair]? = nil, genreItems: [NameGuidPair]? = nil, parentLogoItemId: String? = nil, parentBackdropItemId: String? = nil, parentBackdropImageTags: [String]? = nil, localTrailerCount: Int? = nil, userData: Any? = nil, recursiveItemCount: Int? = nil, childCount: Int? = nil, seriesName: String? = nil, seriesId: UUID? = nil, seasonId: UUID? = nil, specialFeatureCount: Int? = nil, displayPreferencesId: String? = nil, status: String? = nil, airTime: String? = nil, airDays: [DayOfWeek]? = nil, tags: [String]? = nil, primaryImageAspectRatio: Double? = nil, artists: [String]? = nil, artistItems: [NameGuidPair]? = nil, album: String? = nil, collectionType: String? = nil, displayOrder: String? = nil, albumId: UUID? = nil, albumPrimaryImageTag: String? = nil, seriesPrimaryImageTag: String? = nil, albumArtist: String? = nil, albumArtists: [NameGuidPair]? = nil, seasonName: String? = nil, mediaStreams: [MediaStream]? = nil, videoType: Any? = nil, partCount: Int? = nil, mediaSourceCount: Int? = nil, imageTags: [String:String]? = nil, backdropImageTags: [String]? = nil, screenshotImageTags: [String]? = nil, parentLogoImageTag: String? = nil, parentArtItemId: String? = nil, parentArtImageTag: String? = nil, seriesThumbImageTag: String? = nil, imageBlurHashes: BaseItemDtoImageBlurHashes? = nil, seriesStudio: String? = nil, parentThumbItemId: String? = nil, parentThumbImageTag: String? = nil, parentPrimaryImageItemId: String? = nil, parentPrimaryImageTag: String? = nil, chapters: [ChapterInfo]? = nil, locationType: Any? = nil, isoType: Any? = nil, mediaType: String? = nil, endDate: Date? = nil, lockedFields: [MetadataField]? = nil, trailerCount: Int? = nil, movieCount: Int? = nil, seriesCount: Int? = nil, programCount: Int? = nil, episodeCount: Int? = nil, songCount: Int? = nil, albumCount: Int? = nil, artistCount: Int? = nil, musicVideoCount: Int? = nil, lockData: Bool? = nil, width: Int? = nil, height: Int? = nil, cameraMake: String? = nil, cameraModel: String? = nil, software: String? = nil, exposureTime: Double? = nil, focalLength: Double? = nil, imageOrientation: Any? = nil, aperture: Double? = nil, shutterSpeed: Double? = nil, latitude: Double? = nil, longitude: Double? = nil, altitude: Double? = nil, isoSpeedRating: Int? = nil, seriesTimerId: String? = nil, programId: String? = nil, channelPrimaryImageTag: String? = nil, startDate: Date? = nil, completionPercentage: Double? = nil, isRepeat: Bool? = nil, episodeTitle: String? = nil, channelType: Any? = nil, audio: Any? = nil, isMovie: Bool? = nil, isSports: Bool? = nil, isSeries: Bool? = nil, isLive: Bool? = nil, isNews: Bool? = nil, isKids: Bool? = nil, isPremiere: Bool? = nil, timerId: String? = nil, currentProgram: Any? = nil) { - self.name = name - self.originalTitle = originalTitle - self.serverId = serverId - self._id = _id - self.etag = etag - self.sourceType = sourceType - self.playlistItemId = playlistItemId - self.dateCreated = dateCreated - self.dateLastMediaAdded = dateLastMediaAdded - self.extraType = extraType - self.airsBeforeSeasonNumber = airsBeforeSeasonNumber - self.airsAfterSeasonNumber = airsAfterSeasonNumber - self.airsBeforeEpisodeNumber = airsBeforeEpisodeNumber - self.canDelete = canDelete - self.canDownload = canDownload - self.hasSubtitles = hasSubtitles - self.preferredMetadataLanguage = preferredMetadataLanguage - self.preferredMetadataCountryCode = preferredMetadataCountryCode - self.supportsSync = supportsSync - self.container = container - self.sortName = sortName - self.forcedSortName = forcedSortName - self.video3DFormat = video3DFormat - self.premiereDate = premiereDate - self.externalUrls = externalUrls - self.mediaSources = mediaSources - self.criticRating = criticRating - self.productionLocations = productionLocations - self.path = path - self.enableMediaSourceDisplay = enableMediaSourceDisplay - self.officialRating = officialRating - self.customRating = customRating - self.channelId = channelId - self.channelName = channelName - self.overview = overview - self.taglines = taglines - self.genres = genres - self.communityRating = communityRating - self.cumulativeRunTimeTicks = cumulativeRunTimeTicks - self.runTimeTicks = runTimeTicks - self.playAccess = playAccess - self.aspectRatio = aspectRatio - self.productionYear = productionYear - self.isPlaceHolder = isPlaceHolder - self.number = number - self.channelNumber = channelNumber - self.indexNumber = indexNumber - self.indexNumberEnd = indexNumberEnd - self.parentIndexNumber = parentIndexNumber - self.remoteTrailers = remoteTrailers - self.providerIds = providerIds - self.isHD = isHD - self.isFolder = isFolder - self.parentId = parentId - self.type = type - self.people = people - self.studios = studios - self.genreItems = genreItems - self.parentLogoItemId = parentLogoItemId - self.parentBackdropItemId = parentBackdropItemId - self.parentBackdropImageTags = parentBackdropImageTags - self.localTrailerCount = localTrailerCount - self.userData = userData - self.recursiveItemCount = recursiveItemCount - self.childCount = childCount - self.seriesName = seriesName - self.seriesId = seriesId - self.seasonId = seasonId - self.specialFeatureCount = specialFeatureCount - self.displayPreferencesId = displayPreferencesId - self.status = status - self.airTime = airTime - self.airDays = airDays - self.tags = tags - self.primaryImageAspectRatio = primaryImageAspectRatio - self.artists = artists - self.artistItems = artistItems - self.album = album - self.collectionType = collectionType - self.displayOrder = displayOrder - self.albumId = albumId - self.albumPrimaryImageTag = albumPrimaryImageTag - self.seriesPrimaryImageTag = seriesPrimaryImageTag - self.albumArtist = albumArtist - self.albumArtists = albumArtists - self.seasonName = seasonName - self.mediaStreams = mediaStreams - self.videoType = videoType - self.partCount = partCount - self.mediaSourceCount = mediaSourceCount - self.imageTags = imageTags - self.backdropImageTags = backdropImageTags - self.screenshotImageTags = screenshotImageTags - self.parentLogoImageTag = parentLogoImageTag - self.parentArtItemId = parentArtItemId - self.parentArtImageTag = parentArtImageTag - self.seriesThumbImageTag = seriesThumbImageTag - self.imageBlurHashes = imageBlurHashes - self.seriesStudio = seriesStudio - self.parentThumbItemId = parentThumbItemId - self.parentThumbImageTag = parentThumbImageTag - self.parentPrimaryImageItemId = parentPrimaryImageItemId - self.parentPrimaryImageTag = parentPrimaryImageTag - self.chapters = chapters - self.locationType = locationType - self.isoType = isoType - self.mediaType = mediaType - self.endDate = endDate - self.lockedFields = lockedFields - self.trailerCount = trailerCount - self.movieCount = movieCount - self.seriesCount = seriesCount - self.programCount = programCount - self.episodeCount = episodeCount - self.songCount = songCount - self.albumCount = albumCount - self.artistCount = artistCount - self.musicVideoCount = musicVideoCount - self.lockData = lockData - self.width = width - self.height = height - self.cameraMake = cameraMake - self.cameraModel = cameraModel - self.software = software - self.exposureTime = exposureTime - self.focalLength = focalLength - self.imageOrientation = imageOrientation - self.aperture = aperture - self.shutterSpeed = shutterSpeed - self.latitude = latitude - self.longitude = longitude - self.altitude = altitude - self.isoSpeedRating = isoSpeedRating - self.seriesTimerId = seriesTimerId - self.programId = programId - self.channelPrimaryImageTag = channelPrimaryImageTag - self.startDate = startDate - self.completionPercentage = completionPercentage - self.isRepeat = isRepeat - self.episodeTitle = episodeTitle - self.channelType = channelType - self.audio = audio - self.isMovie = isMovie - self.isSports = isSports - self.isSeries = isSeries - self.isLive = isLive - self.isNews = isNews - self.isKids = isKids - self.isPremiere = isPremiere - self.timerId = timerId - self.currentProgram = currentProgram - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case originalTitle = "OriginalTitle" - case serverId = "ServerId" - case _id = "Id" - case etag = "Etag" - case sourceType = "SourceType" - case playlistItemId = "PlaylistItemId" - case dateCreated = "DateCreated" - case dateLastMediaAdded = "DateLastMediaAdded" - case extraType = "ExtraType" - case airsBeforeSeasonNumber = "AirsBeforeSeasonNumber" - case airsAfterSeasonNumber = "AirsAfterSeasonNumber" - case airsBeforeEpisodeNumber = "AirsBeforeEpisodeNumber" - case canDelete = "CanDelete" - case canDownload = "CanDownload" - case hasSubtitles = "HasSubtitles" - case preferredMetadataLanguage = "PreferredMetadataLanguage" - case preferredMetadataCountryCode = "PreferredMetadataCountryCode" - case supportsSync = "SupportsSync" - case container = "Container" - case sortName = "SortName" - case forcedSortName = "ForcedSortName" - case video3DFormat = "Video3DFormat" - case premiereDate = "PremiereDate" - case externalUrls = "ExternalUrls" - case mediaSources = "MediaSources" - case criticRating = "CriticRating" - case productionLocations = "ProductionLocations" - case path = "Path" - case enableMediaSourceDisplay = "EnableMediaSourceDisplay" - case officialRating = "OfficialRating" - case customRating = "CustomRating" - case channelId = "ChannelId" - case channelName = "ChannelName" - case overview = "Overview" - case taglines = "Taglines" - case genres = "Genres" - case communityRating = "CommunityRating" - case cumulativeRunTimeTicks = "CumulativeRunTimeTicks" - case runTimeTicks = "RunTimeTicks" - case playAccess = "PlayAccess" - case aspectRatio = "AspectRatio" - case productionYear = "ProductionYear" - case isPlaceHolder = "IsPlaceHolder" - case number = "Number" - case channelNumber = "ChannelNumber" - case indexNumber = "IndexNumber" - case indexNumberEnd = "IndexNumberEnd" - case parentIndexNumber = "ParentIndexNumber" - case remoteTrailers = "RemoteTrailers" - case providerIds = "ProviderIds" - case isHD = "IsHD" - case isFolder = "IsFolder" - case parentId = "ParentId" - case type = "Type" - case people = "People" - case studios = "Studios" - case genreItems = "GenreItems" - case parentLogoItemId = "ParentLogoItemId" - case parentBackdropItemId = "ParentBackdropItemId" - case parentBackdropImageTags = "ParentBackdropImageTags" - case localTrailerCount = "LocalTrailerCount" - case userData = "UserData" - case recursiveItemCount = "RecursiveItemCount" - case childCount = "ChildCount" - case seriesName = "SeriesName" - case seriesId = "SeriesId" - case seasonId = "SeasonId" - case specialFeatureCount = "SpecialFeatureCount" - case displayPreferencesId = "DisplayPreferencesId" - case status = "Status" - case airTime = "AirTime" - case airDays = "AirDays" - case tags = "Tags" - case primaryImageAspectRatio = "PrimaryImageAspectRatio" - case artists = "Artists" - case artistItems = "ArtistItems" - case album = "Album" - case collectionType = "CollectionType" - case displayOrder = "DisplayOrder" - case albumId = "AlbumId" - case albumPrimaryImageTag = "AlbumPrimaryImageTag" - case seriesPrimaryImageTag = "SeriesPrimaryImageTag" - case albumArtist = "AlbumArtist" - case albumArtists = "AlbumArtists" - case seasonName = "SeasonName" - case mediaStreams = "MediaStreams" - case videoType = "VideoType" - case partCount = "PartCount" - case mediaSourceCount = "MediaSourceCount" - case imageTags = "ImageTags" - case backdropImageTags = "BackdropImageTags" - case screenshotImageTags = "ScreenshotImageTags" - case parentLogoImageTag = "ParentLogoImageTag" - case parentArtItemId = "ParentArtItemId" - case parentArtImageTag = "ParentArtImageTag" - case seriesThumbImageTag = "SeriesThumbImageTag" - case imageBlurHashes = "ImageBlurHashes" - case seriesStudio = "SeriesStudio" - case parentThumbItemId = "ParentThumbItemId" - case parentThumbImageTag = "ParentThumbImageTag" - case parentPrimaryImageItemId = "ParentPrimaryImageItemId" - case parentPrimaryImageTag = "ParentPrimaryImageTag" - case chapters = "Chapters" - case locationType = "LocationType" - case isoType = "IsoType" - case mediaType = "MediaType" - case endDate = "EndDate" - case lockedFields = "LockedFields" - case trailerCount = "TrailerCount" - case movieCount = "MovieCount" - case seriesCount = "SeriesCount" - case programCount = "ProgramCount" - case episodeCount = "EpisodeCount" - case songCount = "SongCount" - case albumCount = "AlbumCount" - case artistCount = "ArtistCount" - case musicVideoCount = "MusicVideoCount" - case lockData = "LockData" - case width = "Width" - case height = "Height" - case cameraMake = "CameraMake" - case cameraModel = "CameraModel" - case software = "Software" - case exposureTime = "ExposureTime" - case focalLength = "FocalLength" - case imageOrientation = "ImageOrientation" - case aperture = "Aperture" - case shutterSpeed = "ShutterSpeed" - case latitude = "Latitude" - case longitude = "Longitude" - case altitude = "Altitude" - case isoSpeedRating = "IsoSpeedRating" - case seriesTimerId = "SeriesTimerId" - case programId = "ProgramId" - case channelPrimaryImageTag = "ChannelPrimaryImageTag" - case startDate = "StartDate" - case completionPercentage = "CompletionPercentage" - case isRepeat = "IsRepeat" - case episodeTitle = "EpisodeTitle" - case channelType = "ChannelType" - case audio = "Audio" - case isMovie = "IsMovie" - case isSports = "IsSports" - case isSeries = "IsSeries" - case isLive = "IsLive" - case isNews = "IsNews" - case isKids = "IsKids" - case isPremiere = "IsPremiere" - case timerId = "TimerId" - case currentProgram = "CurrentProgram" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfPlayerStateInfoPlayMethod.swift b/JellyfinPlayer/Swaggers/Models/AllOfPlayerStateInfoPlayMethod.swift deleted file mode 100644 index 43aa691f..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfPlayerStateInfoPlayMethod.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfPlayerStateInfoPlayMethod.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the play method. */ - -public struct AllOfPlayerStateInfoPlayMethod: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfPlayerStateInfoRepeatMode.swift b/JellyfinPlayer/Swaggers/Models/AllOfPlayerStateInfoRepeatMode.swift deleted file mode 100644 index 702073ad..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfPlayerStateInfoRepeatMode.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfPlayerStateInfoRepeatMode.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the repeat mode. */ - -public struct AllOfPlayerStateInfoRepeatMode: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfPlaystateRequestCommand.swift b/JellyfinPlayer/Swaggers/Models/AllOfPlaystateRequestCommand.swift deleted file mode 100644 index fd2a04be..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfPlaystateRequestCommand.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfPlaystateRequestCommand.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Enum PlaystateCommand. */ - -public struct AllOfPlaystateRequestCommand: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfPluginInfoStatus.swift b/JellyfinPlayer/Swaggers/Models/AllOfPluginInfoStatus.swift deleted file mode 100644 index 87ddfd9a..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfPluginInfoStatus.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfPluginInfoStatus.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets a value indicating the status of the plugin. */ - -public struct AllOfPluginInfoStatus: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfPluginInfoVersion.swift b/JellyfinPlayer/Swaggers/Models/AllOfPluginInfoVersion.swift deleted file mode 100644 index ff336a3a..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfPluginInfoVersion.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// AllOfPluginInfoVersion.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the version. */ - -public struct AllOfPluginInfoVersion: Codable { - - public var major: Int? - public var minor: Int? - public var build: Int? - public var revision: Int? - public var majorRevision: Int? - public var minorRevision: Int? - - public init(major: Int? = nil, minor: Int? = nil, build: Int? = nil, revision: Int? = nil, majorRevision: Int? = nil, minorRevision: Int? = nil) { - self.major = major - self.minor = minor - self.build = build - self.revision = revision - self.majorRevision = majorRevision - self.minorRevision = minorRevision - } - - public enum CodingKeys: String, CodingKey { - case major = "Major" - case minor = "Minor" - case build = "Build" - case revision = "Revision" - case majorRevision = "MajorRevision" - case minorRevision = "MinorRevision" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfProfileConditionCondition.swift b/JellyfinPlayer/Swaggers/Models/AllOfProfileConditionCondition.swift deleted file mode 100644 index 40d27641..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfProfileConditionCondition.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// AllOfProfileConditionCondition.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfProfileConditionCondition: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfProfileConditionProperty.swift b/JellyfinPlayer/Swaggers/Models/AllOfProfileConditionProperty.swift deleted file mode 100644 index 9b9ecf9e..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfProfileConditionProperty.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// AllOfProfileConditionProperty.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfProfileConditionProperty: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfQueueRequestDtoMode.swift b/JellyfinPlayer/Swaggers/Models/AllOfQueueRequestDtoMode.swift deleted file mode 100644 index da522917..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfQueueRequestDtoMode.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfQueueRequestDtoMode.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the mode in which to add the new items. */ - -public struct AllOfQueueRequestDtoMode: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfRecommendationDtoRecommendationType.swift b/JellyfinPlayer/Swaggers/Models/AllOfRecommendationDtoRecommendationType.swift deleted file mode 100644 index 2650b99f..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfRecommendationDtoRecommendationType.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// AllOfRecommendationDtoRecommendationType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfRecommendationDtoRecommendationType: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfRemoteImageInfoModelType.swift b/JellyfinPlayer/Swaggers/Models/AllOfRemoteImageInfoModelType.swift deleted file mode 100644 index d706e1c2..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfRemoteImageInfoModelType.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfRemoteImageInfoModelType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the type. */ - -public struct AllOfRemoteImageInfoModelType: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfRemoteImageInfoRatingType.swift b/JellyfinPlayer/Swaggers/Models/AllOfRemoteImageInfoRatingType.swift deleted file mode 100644 index 67987f2b..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfRemoteImageInfoRatingType.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfRemoteImageInfoRatingType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the type of the rating. */ - -public struct AllOfRemoteImageInfoRatingType: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfRemoteSearchResultAlbumArtist.swift b/JellyfinPlayer/Swaggers/Models/AllOfRemoteSearchResultAlbumArtist.swift deleted file mode 100644 index 20aa5354..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfRemoteSearchResultAlbumArtist.swift +++ /dev/null @@ -1,60 +0,0 @@ -// -// AllOfRemoteSearchResultAlbumArtist.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfRemoteSearchResultAlbumArtist: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets the year. */ - public var productionYear: Int? - public var indexNumber: Int? - public var indexNumberEnd: Int? - public var parentIndexNumber: Int? - public var premiereDate: Date? - public var imageUrl: String? - public var searchProviderName: String? - public var overview: String? - public var albumArtist: Any? - public var artists: [RemoteSearchResult]? - - public init(name: String? = nil, providerIds: [String:String]? = nil, productionYear: Int? = nil, indexNumber: Int? = nil, indexNumberEnd: Int? = nil, parentIndexNumber: Int? = nil, premiereDate: Date? = nil, imageUrl: String? = nil, searchProviderName: String? = nil, overview: String? = nil, albumArtist: Any? = nil, artists: [RemoteSearchResult]? = nil) { - self.name = name - self.providerIds = providerIds - self.productionYear = productionYear - self.indexNumber = indexNumber - self.indexNumberEnd = indexNumberEnd - self.parentIndexNumber = parentIndexNumber - self.premiereDate = premiereDate - self.imageUrl = imageUrl - self.searchProviderName = searchProviderName - self.overview = overview - self.albumArtist = albumArtist - self.artists = artists - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case providerIds = "ProviderIds" - case productionYear = "ProductionYear" - case indexNumber = "IndexNumber" - case indexNumberEnd = "IndexNumberEnd" - case parentIndexNumber = "ParentIndexNumber" - case premiereDate = "PremiereDate" - case imageUrl = "ImageUrl" - case searchProviderName = "SearchProviderName" - case overview = "Overview" - case albumArtist = "AlbumArtist" - case artists = "Artists" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfResponseProfileModelType.swift b/JellyfinPlayer/Swaggers/Models/AllOfResponseProfileModelType.swift deleted file mode 100644 index 8e5f5b1e..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfResponseProfileModelType.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// AllOfResponseProfileModelType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfResponseProfileModelType: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfSendCommandCommand.swift b/JellyfinPlayer/Swaggers/Models/AllOfSendCommandCommand.swift deleted file mode 100644 index e9e642d7..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfSendCommandCommand.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfSendCommandCommand.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets the command. */ - -public struct AllOfSendCommandCommand: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfSeriesInfoRemoteSearchQuerySearchInfo.swift b/JellyfinPlayer/Swaggers/Models/AllOfSeriesInfoRemoteSearchQuerySearchInfo.swift deleted file mode 100644 index 472d1447..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfSeriesInfoRemoteSearchQuerySearchInfo.swift +++ /dev/null @@ -1,57 +0,0 @@ -// -// AllOfSeriesInfoRemoteSearchQuerySearchInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfSeriesInfoRemoteSearchQuerySearchInfo: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the path. */ - public var path: String? - /** Gets or sets the metadata language. */ - public var metadataLanguage: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets the year. */ - public var year: Int? - public var indexNumber: Int? - public var parentIndexNumber: Int? - public var premiereDate: Date? - public var isAutomated: Bool? - - public init(name: String? = nil, path: String? = nil, metadataLanguage: String? = nil, metadataCountryCode: String? = nil, providerIds: [String:String]? = nil, year: Int? = nil, indexNumber: Int? = nil, parentIndexNumber: Int? = nil, premiereDate: Date? = nil, isAutomated: Bool? = nil) { - self.name = name - self.path = path - self.metadataLanguage = metadataLanguage - self.metadataCountryCode = metadataCountryCode - self.providerIds = providerIds - self.year = year - self.indexNumber = indexNumber - self.parentIndexNumber = parentIndexNumber - self.premiereDate = premiereDate - self.isAutomated = isAutomated - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case path = "Path" - case metadataLanguage = "MetadataLanguage" - case metadataCountryCode = "MetadataCountryCode" - case providerIds = "ProviderIds" - case year = "Year" - case indexNumber = "IndexNumber" - case parentIndexNumber = "ParentIndexNumber" - case premiereDate = "PremiereDate" - case isAutomated = "IsAutomated" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfSeriesTimerInfoDtoDayPattern.swift b/JellyfinPlayer/Swaggers/Models/AllOfSeriesTimerInfoDtoDayPattern.swift deleted file mode 100644 index 768ee1d8..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfSeriesTimerInfoDtoDayPattern.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfSeriesTimerInfoDtoDayPattern.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the day pattern. */ - -public struct AllOfSeriesTimerInfoDtoDayPattern: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfSeriesTimerInfoDtoKeepUntil.swift b/JellyfinPlayer/Swaggers/Models/AllOfSeriesTimerInfoDtoKeepUntil.swift deleted file mode 100644 index d6a46ec7..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfSeriesTimerInfoDtoKeepUntil.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// AllOfSeriesTimerInfoDtoKeepUntil.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfSeriesTimerInfoDtoKeepUntil: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfServerConfigurationImageSavingConvention.swift b/JellyfinPlayer/Swaggers/Models/AllOfServerConfigurationImageSavingConvention.swift deleted file mode 100644 index 936a0079..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfServerConfigurationImageSavingConvention.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfServerConfigurationImageSavingConvention.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the image saving convention. */ - -public struct AllOfServerConfigurationImageSavingConvention: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfServerConfigurationPreviousVersion.swift b/JellyfinPlayer/Swaggers/Models/AllOfServerConfigurationPreviousVersion.swift deleted file mode 100644 index 23a0d403..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfServerConfigurationPreviousVersion.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// AllOfServerConfigurationPreviousVersion.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the last known version that was ran using the configuration. */ - -public struct AllOfServerConfigurationPreviousVersion: Codable { - - public var major: Int? - public var minor: Int? - public var build: Int? - public var revision: Int? - public var majorRevision: Int? - public var minorRevision: Int? - - public init(major: Int? = nil, minor: Int? = nil, build: Int? = nil, revision: Int? = nil, majorRevision: Int? = nil, minorRevision: Int? = nil) { - self.major = major - self.minor = minor - self.build = build - self.revision = revision - self.majorRevision = majorRevision - self.minorRevision = minorRevision - } - - public enum CodingKeys: String, CodingKey { - case major = "Major" - case minor = "Minor" - case build = "Build" - case revision = "Revision" - case majorRevision = "MajorRevision" - case minorRevision = "MinorRevision" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfSessionInfoCapabilities.swift b/JellyfinPlayer/Swaggers/Models/AllOfSessionInfoCapabilities.swift deleted file mode 100644 index 203aa0fe..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfSessionInfoCapabilities.swift +++ /dev/null @@ -1,52 +0,0 @@ -// -// AllOfSessionInfoCapabilities.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfSessionInfoCapabilities: Codable { - - public var playableMediaTypes: [String]? - public var supportedCommands: [GeneralCommandType]? - public var supportsMediaControl: Bool? - public var supportsContentUploading: Bool? - public var messageCallbackUrl: String? - public var supportsPersistentIdentifier: Bool? - public var supportsSync: Bool? - /** Defines the MediaBrowser.Model.Dlna.DeviceProfile. */ - public var deviceProfile: Any? - public var appStoreUrl: String? - public var iconUrl: String? - - public init(playableMediaTypes: [String]? = nil, supportedCommands: [GeneralCommandType]? = nil, supportsMediaControl: Bool? = nil, supportsContentUploading: Bool? = nil, messageCallbackUrl: String? = nil, supportsPersistentIdentifier: Bool? = nil, supportsSync: Bool? = nil, deviceProfile: Any? = nil, appStoreUrl: String? = nil, iconUrl: String? = nil) { - self.playableMediaTypes = playableMediaTypes - self.supportedCommands = supportedCommands - self.supportsMediaControl = supportsMediaControl - self.supportsContentUploading = supportsContentUploading - self.messageCallbackUrl = messageCallbackUrl - self.supportsPersistentIdentifier = supportsPersistentIdentifier - self.supportsSync = supportsSync - self.deviceProfile = deviceProfile - self.appStoreUrl = appStoreUrl - self.iconUrl = iconUrl - } - - public enum CodingKeys: String, CodingKey { - case playableMediaTypes = "PlayableMediaTypes" - case supportedCommands = "SupportedCommands" - case supportsMediaControl = "SupportsMediaControl" - case supportsContentUploading = "SupportsContentUploading" - case messageCallbackUrl = "MessageCallbackUrl" - case supportsPersistentIdentifier = "SupportsPersistentIdentifier" - case supportsSync = "SupportsSync" - case deviceProfile = "DeviceProfile" - case appStoreUrl = "AppStoreUrl" - case iconUrl = "IconUrl" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfSessionInfoFullNowPlayingItem.swift b/JellyfinPlayer/Swaggers/Models/AllOfSessionInfoFullNowPlayingItem.swift deleted file mode 100644 index 59de0185..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfSessionInfoFullNowPlayingItem.swift +++ /dev/null @@ -1,56 +0,0 @@ -// -// AllOfSessionInfoFullNowPlayingItem.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class BaseItem. */ - -public struct AllOfSessionInfoFullNowPlayingItem: Codable { - - public var size: Int64? - public var container: String? - public var dateLastSaved: Date? - /** Gets or sets the remote trailers. */ - public var remoteTrailers: [MediaUrl]? - public var isHD: Bool? - public var isShortcut: Bool? - public var shortcutPath: String? - public var width: Int? - public var height: Int? - public var extraIds: [UUID]? - public var supportsExternalTransfer: Bool? - - public init(size: Int64? = nil, container: String? = nil, dateLastSaved: Date? = nil, remoteTrailers: [MediaUrl]? = nil, isHD: Bool? = nil, isShortcut: Bool? = nil, shortcutPath: String? = nil, width: Int? = nil, height: Int? = nil, extraIds: [UUID]? = nil, supportsExternalTransfer: Bool? = nil) { - self.size = size - self.container = container - self.dateLastSaved = dateLastSaved - self.remoteTrailers = remoteTrailers - self.isHD = isHD - self.isShortcut = isShortcut - self.shortcutPath = shortcutPath - self.width = width - self.height = height - self.extraIds = extraIds - self.supportsExternalTransfer = supportsExternalTransfer - } - - public enum CodingKeys: String, CodingKey { - case size = "Size" - case container = "Container" - case dateLastSaved = "DateLastSaved" - case remoteTrailers = "RemoteTrailers" - case isHD = "IsHD" - case isShortcut = "IsShortcut" - case shortcutPath = "ShortcutPath" - case width = "Width" - case height = "Height" - case extraIds = "ExtraIds" - case supportsExternalTransfer = "SupportsExternalTransfer" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfSessionInfoNowPlayingItem.swift b/JellyfinPlayer/Swaggers/Models/AllOfSessionInfoNowPlayingItem.swift deleted file mode 100644 index 7a63c4b0..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfSessionInfoNowPlayingItem.swift +++ /dev/null @@ -1,590 +0,0 @@ -// -// AllOfSessionInfoNowPlayingItem.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the now playing item. */ - -public struct AllOfSessionInfoNowPlayingItem: Codable { - - /** Gets or sets the name. */ - public var name: String? - public var originalTitle: String? - /** Gets or sets the server identifier. */ - public var serverId: String? - /** Gets or sets the id. */ - public var _id: UUID? - /** Gets or sets the etag. */ - public var etag: String? - /** Gets or sets the type of the source. */ - public var sourceType: String? - /** Gets or sets the playlist item identifier. */ - public var playlistItemId: String? - /** Gets or sets the date created. */ - public var dateCreated: Date? - public var dateLastMediaAdded: Date? - public var extraType: String? - public var airsBeforeSeasonNumber: Int? - public var airsAfterSeasonNumber: Int? - public var airsBeforeEpisodeNumber: Int? - public var canDelete: Bool? - public var canDownload: Bool? - public var hasSubtitles: Bool? - public var preferredMetadataLanguage: String? - public var preferredMetadataCountryCode: String? - /** Gets or sets a value indicating whether [supports synchronize]. */ - public var supportsSync: Bool? - public var container: String? - /** Gets or sets the name of the sort. */ - public var sortName: String? - public var forcedSortName: String? - /** Gets or sets the video3 D format. */ - public var video3DFormat: Any? - /** Gets or sets the premiere date. */ - public var premiereDate: Date? - /** Gets or sets the external urls. */ - public var externalUrls: [ExternalUrl]? - /** Gets or sets the media versions. */ - public var mediaSources: [MediaSourceInfo]? - /** Gets or sets the critic rating. */ - public var criticRating: Float? - public var productionLocations: [String]? - /** Gets or sets the path. */ - public var path: String? - public var enableMediaSourceDisplay: Bool? - /** Gets or sets the official rating. */ - public var officialRating: String? - /** Gets or sets the custom rating. */ - public var customRating: String? - /** Gets or sets the channel identifier. */ - public var channelId: UUID? - public var channelName: String? - /** Gets or sets the overview. */ - public var overview: String? - /** Gets or sets the taglines. */ - public var taglines: [String]? - /** Gets or sets the genres. */ - public var genres: [String]? - /** Gets or sets the community rating. */ - public var communityRating: Float? - /** Gets or sets the cumulative run time ticks. */ - public var cumulativeRunTimeTicks: Int64? - /** Gets or sets the run time ticks. */ - public var runTimeTicks: Int64? - /** Gets or sets the play access. */ - public var playAccess: Any? - /** Gets or sets the aspect ratio. */ - public var aspectRatio: String? - /** Gets or sets the production year. */ - public var productionYear: Int? - /** Gets or sets a value indicating whether this instance is place holder. */ - public var isPlaceHolder: Bool? - /** Gets or sets the number. */ - public var number: String? - public var channelNumber: String? - /** Gets or sets the index number. */ - public var indexNumber: Int? - /** Gets or sets the index number end. */ - public var indexNumberEnd: Int? - /** Gets or sets the parent index number. */ - public var parentIndexNumber: Int? - /** Gets or sets the trailer urls. */ - public var remoteTrailers: [MediaUrl]? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets a value indicating whether this instance is HD. */ - public var isHD: Bool? - /** Gets or sets a value indicating whether this instance is folder. */ - public var isFolder: Bool? - /** Gets or sets the parent id. */ - public var parentId: UUID? - /** Gets or sets the type. */ - public var type: String? - /** Gets or sets the people. */ - public var people: [BaseItemPerson]? - /** Gets or sets the studios. */ - public var studios: [NameGuidPair]? - public var genreItems: [NameGuidPair]? - /** If the item does not have a logo, this will hold the Id of the Parent that has one. */ - public var parentLogoItemId: String? - /** If the item does not have any backdrops, this will hold the Id of the Parent that has one. */ - public var parentBackdropItemId: String? - /** Gets or sets the parent backdrop image tags. */ - public var parentBackdropImageTags: [String]? - /** Gets or sets the local trailer count. */ - public var localTrailerCount: Int? - /** User data for this item based on the user it's being requested for. */ - public var userData: Any? - /** Gets or sets the recursive item count. */ - public var recursiveItemCount: Int? - /** Gets or sets the child count. */ - public var childCount: Int? - /** Gets or sets the name of the series. */ - public var seriesName: String? - /** Gets or sets the series id. */ - public var seriesId: UUID? - /** Gets or sets the season identifier. */ - public var seasonId: UUID? - /** Gets or sets the special feature count. */ - public var specialFeatureCount: Int? - /** Gets or sets the display preferences id. */ - public var displayPreferencesId: String? - /** Gets or sets the status. */ - public var status: String? - /** Gets or sets the air time. */ - public var airTime: String? - /** Gets or sets the air days. */ - public var airDays: [DayOfWeek]? - /** Gets or sets the tags. */ - public var tags: [String]? - /** Gets or sets the primary image aspect ratio, after image enhancements. */ - public var primaryImageAspectRatio: Double? - /** Gets or sets the artists. */ - public var artists: [String]? - /** Gets or sets the artist items. */ - public var artistItems: [NameGuidPair]? - /** Gets or sets the album. */ - public var album: String? - /** Gets or sets the type of the collection. */ - public var collectionType: String? - /** Gets or sets the display order. */ - public var displayOrder: String? - /** Gets or sets the album id. */ - public var albumId: UUID? - /** Gets or sets the album image tag. */ - public var albumPrimaryImageTag: String? - /** Gets or sets the series primary image tag. */ - public var seriesPrimaryImageTag: String? - /** Gets or sets the album artist. */ - public var albumArtist: String? - /** Gets or sets the album artists. */ - public var albumArtists: [NameGuidPair]? - /** Gets or sets the name of the season. */ - public var seasonName: String? - /** Gets or sets the media streams. */ - public var mediaStreams: [MediaStream]? - /** Gets or sets the type of the video. */ - public var videoType: Any? - /** Gets or sets the part count. */ - public var partCount: Int? - public var mediaSourceCount: Int? - /** Gets or sets the image tags. */ - public var imageTags: [String:String]? - /** Gets or sets the backdrop image tags. */ - public var backdropImageTags: [String]? - /** Gets or sets the screenshot image tags. */ - public var screenshotImageTags: [String]? - /** Gets or sets the parent logo image tag. */ - public var parentLogoImageTag: String? - /** If the item does not have a art, this will hold the Id of the Parent that has one. */ - public var parentArtItemId: String? - /** Gets or sets the parent art image tag. */ - public var parentArtImageTag: String? - /** Gets or sets the series thumb image tag. */ - public var seriesThumbImageTag: String? - public var imageBlurHashes: BaseItemDtoImageBlurHashes? - /** Gets or sets the series studio. */ - public var seriesStudio: String? - /** Gets or sets the parent thumb item id. */ - public var parentThumbItemId: String? - /** Gets or sets the parent thumb image tag. */ - public var parentThumbImageTag: String? - /** Gets or sets the parent primary image item identifier. */ - public var parentPrimaryImageItemId: String? - /** Gets or sets the parent primary image tag. */ - public var parentPrimaryImageTag: String? - /** Gets or sets the chapters. */ - public var chapters: [ChapterInfo]? - /** Gets or sets the type of the location. */ - public var locationType: Any? - /** Gets or sets the type of the iso. */ - public var isoType: Any? - /** Gets or sets the type of the media. */ - public var mediaType: String? - /** Gets or sets the end date. */ - public var endDate: Date? - /** Gets or sets the locked fields. */ - public var lockedFields: [MetadataField]? - /** Gets or sets the trailer count. */ - public var trailerCount: Int? - /** Gets or sets the movie count. */ - public var movieCount: Int? - /** Gets or sets the series count. */ - public var seriesCount: Int? - public var programCount: Int? - /** Gets or sets the episode count. */ - public var episodeCount: Int? - /** Gets or sets the song count. */ - public var songCount: Int? - /** Gets or sets the album count. */ - public var albumCount: Int? - public var artistCount: Int? - /** Gets or sets the music video count. */ - public var musicVideoCount: Int? - /** Gets or sets a value indicating whether [enable internet providers]. */ - public var lockData: Bool? - public var width: Int? - public var height: Int? - public var cameraMake: String? - public var cameraModel: String? - public var software: String? - public var exposureTime: Double? - public var focalLength: Double? - public var imageOrientation: Any? - public var aperture: Double? - public var shutterSpeed: Double? - public var latitude: Double? - public var longitude: Double? - public var altitude: Double? - public var isoSpeedRating: Int? - /** Gets or sets the series timer identifier. */ - public var seriesTimerId: String? - /** Gets or sets the program identifier. */ - public var programId: String? - /** Gets or sets the channel primary image tag. */ - public var channelPrimaryImageTag: String? - /** The start date of the recording, in UTC. */ - public var startDate: Date? - /** Gets or sets the completion percentage. */ - public var completionPercentage: Double? - /** Gets or sets a value indicating whether this instance is repeat. */ - public var isRepeat: Bool? - /** Gets or sets the episode title. */ - public var episodeTitle: String? - /** Gets or sets the type of the channel. */ - public var channelType: Any? - /** Gets or sets the audio. */ - public var audio: Any? - /** Gets or sets a value indicating whether this instance is movie. */ - public var isMovie: Bool? - /** Gets or sets a value indicating whether this instance is sports. */ - public var isSports: Bool? - /** Gets or sets a value indicating whether this instance is series. */ - public var isSeries: Bool? - /** Gets or sets a value indicating whether this instance is live. */ - public var isLive: Bool? - /** Gets or sets a value indicating whether this instance is news. */ - public var isNews: Bool? - /** Gets or sets a value indicating whether this instance is kids. */ - public var isKids: Bool? - /** Gets or sets a value indicating whether this instance is premiere. */ - public var isPremiere: Bool? - /** Gets or sets the timer identifier. */ - public var timerId: String? - /** Gets or sets the current program. */ - public var currentProgram: Any? - - public init(name: String? = nil, originalTitle: String? = nil, serverId: String? = nil, _id: UUID? = nil, etag: String? = nil, sourceType: String? = nil, playlistItemId: String? = nil, dateCreated: Date? = nil, dateLastMediaAdded: Date? = nil, extraType: String? = nil, airsBeforeSeasonNumber: Int? = nil, airsAfterSeasonNumber: Int? = nil, airsBeforeEpisodeNumber: Int? = nil, canDelete: Bool? = nil, canDownload: Bool? = nil, hasSubtitles: Bool? = nil, preferredMetadataLanguage: String? = nil, preferredMetadataCountryCode: String? = nil, supportsSync: Bool? = nil, container: String? = nil, sortName: String? = nil, forcedSortName: String? = nil, video3DFormat: Any? = nil, premiereDate: Date? = nil, externalUrls: [ExternalUrl]? = nil, mediaSources: [MediaSourceInfo]? = nil, criticRating: Float? = nil, productionLocations: [String]? = nil, path: String? = nil, enableMediaSourceDisplay: Bool? = nil, officialRating: String? = nil, customRating: String? = nil, channelId: UUID? = nil, channelName: String? = nil, overview: String? = nil, taglines: [String]? = nil, genres: [String]? = nil, communityRating: Float? = nil, cumulativeRunTimeTicks: Int64? = nil, runTimeTicks: Int64? = nil, playAccess: Any? = nil, aspectRatio: String? = nil, productionYear: Int? = nil, isPlaceHolder: Bool? = nil, number: String? = nil, channelNumber: String? = nil, indexNumber: Int? = nil, indexNumberEnd: Int? = nil, parentIndexNumber: Int? = nil, remoteTrailers: [MediaUrl]? = nil, providerIds: [String:String]? = nil, isHD: Bool? = nil, isFolder: Bool? = nil, parentId: UUID? = nil, type: String? = nil, people: [BaseItemPerson]? = nil, studios: [NameGuidPair]? = nil, genreItems: [NameGuidPair]? = nil, parentLogoItemId: String? = nil, parentBackdropItemId: String? = nil, parentBackdropImageTags: [String]? = nil, localTrailerCount: Int? = nil, userData: Any? = nil, recursiveItemCount: Int? = nil, childCount: Int? = nil, seriesName: String? = nil, seriesId: UUID? = nil, seasonId: UUID? = nil, specialFeatureCount: Int? = nil, displayPreferencesId: String? = nil, status: String? = nil, airTime: String? = nil, airDays: [DayOfWeek]? = nil, tags: [String]? = nil, primaryImageAspectRatio: Double? = nil, artists: [String]? = nil, artistItems: [NameGuidPair]? = nil, album: String? = nil, collectionType: String? = nil, displayOrder: String? = nil, albumId: UUID? = nil, albumPrimaryImageTag: String? = nil, seriesPrimaryImageTag: String? = nil, albumArtist: String? = nil, albumArtists: [NameGuidPair]? = nil, seasonName: String? = nil, mediaStreams: [MediaStream]? = nil, videoType: Any? = nil, partCount: Int? = nil, mediaSourceCount: Int? = nil, imageTags: [String:String]? = nil, backdropImageTags: [String]? = nil, screenshotImageTags: [String]? = nil, parentLogoImageTag: String? = nil, parentArtItemId: String? = nil, parentArtImageTag: String? = nil, seriesThumbImageTag: String? = nil, imageBlurHashes: BaseItemDtoImageBlurHashes? = nil, seriesStudio: String? = nil, parentThumbItemId: String? = nil, parentThumbImageTag: String? = nil, parentPrimaryImageItemId: String? = nil, parentPrimaryImageTag: String? = nil, chapters: [ChapterInfo]? = nil, locationType: Any? = nil, isoType: Any? = nil, mediaType: String? = nil, endDate: Date? = nil, lockedFields: [MetadataField]? = nil, trailerCount: Int? = nil, movieCount: Int? = nil, seriesCount: Int? = nil, programCount: Int? = nil, episodeCount: Int? = nil, songCount: Int? = nil, albumCount: Int? = nil, artistCount: Int? = nil, musicVideoCount: Int? = nil, lockData: Bool? = nil, width: Int? = nil, height: Int? = nil, cameraMake: String? = nil, cameraModel: String? = nil, software: String? = nil, exposureTime: Double? = nil, focalLength: Double? = nil, imageOrientation: Any? = nil, aperture: Double? = nil, shutterSpeed: Double? = nil, latitude: Double? = nil, longitude: Double? = nil, altitude: Double? = nil, isoSpeedRating: Int? = nil, seriesTimerId: String? = nil, programId: String? = nil, channelPrimaryImageTag: String? = nil, startDate: Date? = nil, completionPercentage: Double? = nil, isRepeat: Bool? = nil, episodeTitle: String? = nil, channelType: Any? = nil, audio: Any? = nil, isMovie: Bool? = nil, isSports: Bool? = nil, isSeries: Bool? = nil, isLive: Bool? = nil, isNews: Bool? = nil, isKids: Bool? = nil, isPremiere: Bool? = nil, timerId: String? = nil, currentProgram: Any? = nil) { - self.name = name - self.originalTitle = originalTitle - self.serverId = serverId - self._id = _id - self.etag = etag - self.sourceType = sourceType - self.playlistItemId = playlistItemId - self.dateCreated = dateCreated - self.dateLastMediaAdded = dateLastMediaAdded - self.extraType = extraType - self.airsBeforeSeasonNumber = airsBeforeSeasonNumber - self.airsAfterSeasonNumber = airsAfterSeasonNumber - self.airsBeforeEpisodeNumber = airsBeforeEpisodeNumber - self.canDelete = canDelete - self.canDownload = canDownload - self.hasSubtitles = hasSubtitles - self.preferredMetadataLanguage = preferredMetadataLanguage - self.preferredMetadataCountryCode = preferredMetadataCountryCode - self.supportsSync = supportsSync - self.container = container - self.sortName = sortName - self.forcedSortName = forcedSortName - self.video3DFormat = video3DFormat - self.premiereDate = premiereDate - self.externalUrls = externalUrls - self.mediaSources = mediaSources - self.criticRating = criticRating - self.productionLocations = productionLocations - self.path = path - self.enableMediaSourceDisplay = enableMediaSourceDisplay - self.officialRating = officialRating - self.customRating = customRating - self.channelId = channelId - self.channelName = channelName - self.overview = overview - self.taglines = taglines - self.genres = genres - self.communityRating = communityRating - self.cumulativeRunTimeTicks = cumulativeRunTimeTicks - self.runTimeTicks = runTimeTicks - self.playAccess = playAccess - self.aspectRatio = aspectRatio - self.productionYear = productionYear - self.isPlaceHolder = isPlaceHolder - self.number = number - self.channelNumber = channelNumber - self.indexNumber = indexNumber - self.indexNumberEnd = indexNumberEnd - self.parentIndexNumber = parentIndexNumber - self.remoteTrailers = remoteTrailers - self.providerIds = providerIds - self.isHD = isHD - self.isFolder = isFolder - self.parentId = parentId - self.type = type - self.people = people - self.studios = studios - self.genreItems = genreItems - self.parentLogoItemId = parentLogoItemId - self.parentBackdropItemId = parentBackdropItemId - self.parentBackdropImageTags = parentBackdropImageTags - self.localTrailerCount = localTrailerCount - self.userData = userData - self.recursiveItemCount = recursiveItemCount - self.childCount = childCount - self.seriesName = seriesName - self.seriesId = seriesId - self.seasonId = seasonId - self.specialFeatureCount = specialFeatureCount - self.displayPreferencesId = displayPreferencesId - self.status = status - self.airTime = airTime - self.airDays = airDays - self.tags = tags - self.primaryImageAspectRatio = primaryImageAspectRatio - self.artists = artists - self.artistItems = artistItems - self.album = album - self.collectionType = collectionType - self.displayOrder = displayOrder - self.albumId = albumId - self.albumPrimaryImageTag = albumPrimaryImageTag - self.seriesPrimaryImageTag = seriesPrimaryImageTag - self.albumArtist = albumArtist - self.albumArtists = albumArtists - self.seasonName = seasonName - self.mediaStreams = mediaStreams - self.videoType = videoType - self.partCount = partCount - self.mediaSourceCount = mediaSourceCount - self.imageTags = imageTags - self.backdropImageTags = backdropImageTags - self.screenshotImageTags = screenshotImageTags - self.parentLogoImageTag = parentLogoImageTag - self.parentArtItemId = parentArtItemId - self.parentArtImageTag = parentArtImageTag - self.seriesThumbImageTag = seriesThumbImageTag - self.imageBlurHashes = imageBlurHashes - self.seriesStudio = seriesStudio - self.parentThumbItemId = parentThumbItemId - self.parentThumbImageTag = parentThumbImageTag - self.parentPrimaryImageItemId = parentPrimaryImageItemId - self.parentPrimaryImageTag = parentPrimaryImageTag - self.chapters = chapters - self.locationType = locationType - self.isoType = isoType - self.mediaType = mediaType - self.endDate = endDate - self.lockedFields = lockedFields - self.trailerCount = trailerCount - self.movieCount = movieCount - self.seriesCount = seriesCount - self.programCount = programCount - self.episodeCount = episodeCount - self.songCount = songCount - self.albumCount = albumCount - self.artistCount = artistCount - self.musicVideoCount = musicVideoCount - self.lockData = lockData - self.width = width - self.height = height - self.cameraMake = cameraMake - self.cameraModel = cameraModel - self.software = software - self.exposureTime = exposureTime - self.focalLength = focalLength - self.imageOrientation = imageOrientation - self.aperture = aperture - self.shutterSpeed = shutterSpeed - self.latitude = latitude - self.longitude = longitude - self.altitude = altitude - self.isoSpeedRating = isoSpeedRating - self.seriesTimerId = seriesTimerId - self.programId = programId - self.channelPrimaryImageTag = channelPrimaryImageTag - self.startDate = startDate - self.completionPercentage = completionPercentage - self.isRepeat = isRepeat - self.episodeTitle = episodeTitle - self.channelType = channelType - self.audio = audio - self.isMovie = isMovie - self.isSports = isSports - self.isSeries = isSeries - self.isLive = isLive - self.isNews = isNews - self.isKids = isKids - self.isPremiere = isPremiere - self.timerId = timerId - self.currentProgram = currentProgram - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case originalTitle = "OriginalTitle" - case serverId = "ServerId" - case _id = "Id" - case etag = "Etag" - case sourceType = "SourceType" - case playlistItemId = "PlaylistItemId" - case dateCreated = "DateCreated" - case dateLastMediaAdded = "DateLastMediaAdded" - case extraType = "ExtraType" - case airsBeforeSeasonNumber = "AirsBeforeSeasonNumber" - case airsAfterSeasonNumber = "AirsAfterSeasonNumber" - case airsBeforeEpisodeNumber = "AirsBeforeEpisodeNumber" - case canDelete = "CanDelete" - case canDownload = "CanDownload" - case hasSubtitles = "HasSubtitles" - case preferredMetadataLanguage = "PreferredMetadataLanguage" - case preferredMetadataCountryCode = "PreferredMetadataCountryCode" - case supportsSync = "SupportsSync" - case container = "Container" - case sortName = "SortName" - case forcedSortName = "ForcedSortName" - case video3DFormat = "Video3DFormat" - case premiereDate = "PremiereDate" - case externalUrls = "ExternalUrls" - case mediaSources = "MediaSources" - case criticRating = "CriticRating" - case productionLocations = "ProductionLocations" - case path = "Path" - case enableMediaSourceDisplay = "EnableMediaSourceDisplay" - case officialRating = "OfficialRating" - case customRating = "CustomRating" - case channelId = "ChannelId" - case channelName = "ChannelName" - case overview = "Overview" - case taglines = "Taglines" - case genres = "Genres" - case communityRating = "CommunityRating" - case cumulativeRunTimeTicks = "CumulativeRunTimeTicks" - case runTimeTicks = "RunTimeTicks" - case playAccess = "PlayAccess" - case aspectRatio = "AspectRatio" - case productionYear = "ProductionYear" - case isPlaceHolder = "IsPlaceHolder" - case number = "Number" - case channelNumber = "ChannelNumber" - case indexNumber = "IndexNumber" - case indexNumberEnd = "IndexNumberEnd" - case parentIndexNumber = "ParentIndexNumber" - case remoteTrailers = "RemoteTrailers" - case providerIds = "ProviderIds" - case isHD = "IsHD" - case isFolder = "IsFolder" - case parentId = "ParentId" - case type = "Type" - case people = "People" - case studios = "Studios" - case genreItems = "GenreItems" - case parentLogoItemId = "ParentLogoItemId" - case parentBackdropItemId = "ParentBackdropItemId" - case parentBackdropImageTags = "ParentBackdropImageTags" - case localTrailerCount = "LocalTrailerCount" - case userData = "UserData" - case recursiveItemCount = "RecursiveItemCount" - case childCount = "ChildCount" - case seriesName = "SeriesName" - case seriesId = "SeriesId" - case seasonId = "SeasonId" - case specialFeatureCount = "SpecialFeatureCount" - case displayPreferencesId = "DisplayPreferencesId" - case status = "Status" - case airTime = "AirTime" - case airDays = "AirDays" - case tags = "Tags" - case primaryImageAspectRatio = "PrimaryImageAspectRatio" - case artists = "Artists" - case artistItems = "ArtistItems" - case album = "Album" - case collectionType = "CollectionType" - case displayOrder = "DisplayOrder" - case albumId = "AlbumId" - case albumPrimaryImageTag = "AlbumPrimaryImageTag" - case seriesPrimaryImageTag = "SeriesPrimaryImageTag" - case albumArtist = "AlbumArtist" - case albumArtists = "AlbumArtists" - case seasonName = "SeasonName" - case mediaStreams = "MediaStreams" - case videoType = "VideoType" - case partCount = "PartCount" - case mediaSourceCount = "MediaSourceCount" - case imageTags = "ImageTags" - case backdropImageTags = "BackdropImageTags" - case screenshotImageTags = "ScreenshotImageTags" - case parentLogoImageTag = "ParentLogoImageTag" - case parentArtItemId = "ParentArtItemId" - case parentArtImageTag = "ParentArtImageTag" - case seriesThumbImageTag = "SeriesThumbImageTag" - case imageBlurHashes = "ImageBlurHashes" - case seriesStudio = "SeriesStudio" - case parentThumbItemId = "ParentThumbItemId" - case parentThumbImageTag = "ParentThumbImageTag" - case parentPrimaryImageItemId = "ParentPrimaryImageItemId" - case parentPrimaryImageTag = "ParentPrimaryImageTag" - case chapters = "Chapters" - case locationType = "LocationType" - case isoType = "IsoType" - case mediaType = "MediaType" - case endDate = "EndDate" - case lockedFields = "LockedFields" - case trailerCount = "TrailerCount" - case movieCount = "MovieCount" - case seriesCount = "SeriesCount" - case programCount = "ProgramCount" - case episodeCount = "EpisodeCount" - case songCount = "SongCount" - case albumCount = "AlbumCount" - case artistCount = "ArtistCount" - case musicVideoCount = "MusicVideoCount" - case lockData = "LockData" - case width = "Width" - case height = "Height" - case cameraMake = "CameraMake" - case cameraModel = "CameraModel" - case software = "Software" - case exposureTime = "ExposureTime" - case focalLength = "FocalLength" - case imageOrientation = "ImageOrientation" - case aperture = "Aperture" - case shutterSpeed = "ShutterSpeed" - case latitude = "Latitude" - case longitude = "Longitude" - case altitude = "Altitude" - case isoSpeedRating = "IsoSpeedRating" - case seriesTimerId = "SeriesTimerId" - case programId = "ProgramId" - case channelPrimaryImageTag = "ChannelPrimaryImageTag" - case startDate = "StartDate" - case completionPercentage = "CompletionPercentage" - case isRepeat = "IsRepeat" - case episodeTitle = "EpisodeTitle" - case channelType = "ChannelType" - case audio = "Audio" - case isMovie = "IsMovie" - case isSports = "IsSports" - case isSeries = "IsSeries" - case isLive = "IsLive" - case isNews = "IsNews" - case isKids = "IsKids" - case isPremiere = "IsPremiere" - case timerId = "TimerId" - case currentProgram = "CurrentProgram" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfSessionInfoNowViewingItem.swift b/JellyfinPlayer/Swaggers/Models/AllOfSessionInfoNowViewingItem.swift deleted file mode 100644 index 6dbfbac4..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfSessionInfoNowViewingItem.swift +++ /dev/null @@ -1,590 +0,0 @@ -// -// AllOfSessionInfoNowViewingItem.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** This is strictly used as a data transfer object from the api layer. This holds information about a BaseItem in a format that is convenient for the client. */ - -public struct AllOfSessionInfoNowViewingItem: Codable { - - /** Gets or sets the name. */ - public var name: String? - public var originalTitle: String? - /** Gets or sets the server identifier. */ - public var serverId: String? - /** Gets or sets the id. */ - public var _id: UUID? - /** Gets or sets the etag. */ - public var etag: String? - /** Gets or sets the type of the source. */ - public var sourceType: String? - /** Gets or sets the playlist item identifier. */ - public var playlistItemId: String? - /** Gets or sets the date created. */ - public var dateCreated: Date? - public var dateLastMediaAdded: Date? - public var extraType: String? - public var airsBeforeSeasonNumber: Int? - public var airsAfterSeasonNumber: Int? - public var airsBeforeEpisodeNumber: Int? - public var canDelete: Bool? - public var canDownload: Bool? - public var hasSubtitles: Bool? - public var preferredMetadataLanguage: String? - public var preferredMetadataCountryCode: String? - /** Gets or sets a value indicating whether [supports synchronize]. */ - public var supportsSync: Bool? - public var container: String? - /** Gets or sets the name of the sort. */ - public var sortName: String? - public var forcedSortName: String? - /** Gets or sets the video3 D format. */ - public var video3DFormat: Any? - /** Gets or sets the premiere date. */ - public var premiereDate: Date? - /** Gets or sets the external urls. */ - public var externalUrls: [ExternalUrl]? - /** Gets or sets the media versions. */ - public var mediaSources: [MediaSourceInfo]? - /** Gets or sets the critic rating. */ - public var criticRating: Float? - public var productionLocations: [String]? - /** Gets or sets the path. */ - public var path: String? - public var enableMediaSourceDisplay: Bool? - /** Gets or sets the official rating. */ - public var officialRating: String? - /** Gets or sets the custom rating. */ - public var customRating: String? - /** Gets or sets the channel identifier. */ - public var channelId: UUID? - public var channelName: String? - /** Gets or sets the overview. */ - public var overview: String? - /** Gets or sets the taglines. */ - public var taglines: [String]? - /** Gets or sets the genres. */ - public var genres: [String]? - /** Gets or sets the community rating. */ - public var communityRating: Float? - /** Gets or sets the cumulative run time ticks. */ - public var cumulativeRunTimeTicks: Int64? - /** Gets or sets the run time ticks. */ - public var runTimeTicks: Int64? - /** Gets or sets the play access. */ - public var playAccess: Any? - /** Gets or sets the aspect ratio. */ - public var aspectRatio: String? - /** Gets or sets the production year. */ - public var productionYear: Int? - /** Gets or sets a value indicating whether this instance is place holder. */ - public var isPlaceHolder: Bool? - /** Gets or sets the number. */ - public var number: String? - public var channelNumber: String? - /** Gets or sets the index number. */ - public var indexNumber: Int? - /** Gets or sets the index number end. */ - public var indexNumberEnd: Int? - /** Gets or sets the parent index number. */ - public var parentIndexNumber: Int? - /** Gets or sets the trailer urls. */ - public var remoteTrailers: [MediaUrl]? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets a value indicating whether this instance is HD. */ - public var isHD: Bool? - /** Gets or sets a value indicating whether this instance is folder. */ - public var isFolder: Bool? - /** Gets or sets the parent id. */ - public var parentId: UUID? - /** Gets or sets the type. */ - public var type: String? - /** Gets or sets the people. */ - public var people: [BaseItemPerson]? - /** Gets or sets the studios. */ - public var studios: [NameGuidPair]? - public var genreItems: [NameGuidPair]? - /** If the item does not have a logo, this will hold the Id of the Parent that has one. */ - public var parentLogoItemId: String? - /** If the item does not have any backdrops, this will hold the Id of the Parent that has one. */ - public var parentBackdropItemId: String? - /** Gets or sets the parent backdrop image tags. */ - public var parentBackdropImageTags: [String]? - /** Gets or sets the local trailer count. */ - public var localTrailerCount: Int? - /** User data for this item based on the user it's being requested for. */ - public var userData: Any? - /** Gets or sets the recursive item count. */ - public var recursiveItemCount: Int? - /** Gets or sets the child count. */ - public var childCount: Int? - /** Gets or sets the name of the series. */ - public var seriesName: String? - /** Gets or sets the series id. */ - public var seriesId: UUID? - /** Gets or sets the season identifier. */ - public var seasonId: UUID? - /** Gets or sets the special feature count. */ - public var specialFeatureCount: Int? - /** Gets or sets the display preferences id. */ - public var displayPreferencesId: String? - /** Gets or sets the status. */ - public var status: String? - /** Gets or sets the air time. */ - public var airTime: String? - /** Gets or sets the air days. */ - public var airDays: [DayOfWeek]? - /** Gets or sets the tags. */ - public var tags: [String]? - /** Gets or sets the primary image aspect ratio, after image enhancements. */ - public var primaryImageAspectRatio: Double? - /** Gets or sets the artists. */ - public var artists: [String]? - /** Gets or sets the artist items. */ - public var artistItems: [NameGuidPair]? - /** Gets or sets the album. */ - public var album: String? - /** Gets or sets the type of the collection. */ - public var collectionType: String? - /** Gets or sets the display order. */ - public var displayOrder: String? - /** Gets or sets the album id. */ - public var albumId: UUID? - /** Gets or sets the album image tag. */ - public var albumPrimaryImageTag: String? - /** Gets or sets the series primary image tag. */ - public var seriesPrimaryImageTag: String? - /** Gets or sets the album artist. */ - public var albumArtist: String? - /** Gets or sets the album artists. */ - public var albumArtists: [NameGuidPair]? - /** Gets or sets the name of the season. */ - public var seasonName: String? - /** Gets or sets the media streams. */ - public var mediaStreams: [MediaStream]? - /** Gets or sets the type of the video. */ - public var videoType: Any? - /** Gets or sets the part count. */ - public var partCount: Int? - public var mediaSourceCount: Int? - /** Gets or sets the image tags. */ - public var imageTags: [String:String]? - /** Gets or sets the backdrop image tags. */ - public var backdropImageTags: [String]? - /** Gets or sets the screenshot image tags. */ - public var screenshotImageTags: [String]? - /** Gets or sets the parent logo image tag. */ - public var parentLogoImageTag: String? - /** If the item does not have a art, this will hold the Id of the Parent that has one. */ - public var parentArtItemId: String? - /** Gets or sets the parent art image tag. */ - public var parentArtImageTag: String? - /** Gets or sets the series thumb image tag. */ - public var seriesThumbImageTag: String? - public var imageBlurHashes: BaseItemDtoImageBlurHashes? - /** Gets or sets the series studio. */ - public var seriesStudio: String? - /** Gets or sets the parent thumb item id. */ - public var parentThumbItemId: String? - /** Gets or sets the parent thumb image tag. */ - public var parentThumbImageTag: String? - /** Gets or sets the parent primary image item identifier. */ - public var parentPrimaryImageItemId: String? - /** Gets or sets the parent primary image tag. */ - public var parentPrimaryImageTag: String? - /** Gets or sets the chapters. */ - public var chapters: [ChapterInfo]? - /** Gets or sets the type of the location. */ - public var locationType: Any? - /** Gets or sets the type of the iso. */ - public var isoType: Any? - /** Gets or sets the type of the media. */ - public var mediaType: String? - /** Gets or sets the end date. */ - public var endDate: Date? - /** Gets or sets the locked fields. */ - public var lockedFields: [MetadataField]? - /** Gets or sets the trailer count. */ - public var trailerCount: Int? - /** Gets or sets the movie count. */ - public var movieCount: Int? - /** Gets or sets the series count. */ - public var seriesCount: Int? - public var programCount: Int? - /** Gets or sets the episode count. */ - public var episodeCount: Int? - /** Gets or sets the song count. */ - public var songCount: Int? - /** Gets or sets the album count. */ - public var albumCount: Int? - public var artistCount: Int? - /** Gets or sets the music video count. */ - public var musicVideoCount: Int? - /** Gets or sets a value indicating whether [enable internet providers]. */ - public var lockData: Bool? - public var width: Int? - public var height: Int? - public var cameraMake: String? - public var cameraModel: String? - public var software: String? - public var exposureTime: Double? - public var focalLength: Double? - public var imageOrientation: Any? - public var aperture: Double? - public var shutterSpeed: Double? - public var latitude: Double? - public var longitude: Double? - public var altitude: Double? - public var isoSpeedRating: Int? - /** Gets or sets the series timer identifier. */ - public var seriesTimerId: String? - /** Gets or sets the program identifier. */ - public var programId: String? - /** Gets or sets the channel primary image tag. */ - public var channelPrimaryImageTag: String? - /** The start date of the recording, in UTC. */ - public var startDate: Date? - /** Gets or sets the completion percentage. */ - public var completionPercentage: Double? - /** Gets or sets a value indicating whether this instance is repeat. */ - public var isRepeat: Bool? - /** Gets or sets the episode title. */ - public var episodeTitle: String? - /** Gets or sets the type of the channel. */ - public var channelType: Any? - /** Gets or sets the audio. */ - public var audio: Any? - /** Gets or sets a value indicating whether this instance is movie. */ - public var isMovie: Bool? - /** Gets or sets a value indicating whether this instance is sports. */ - public var isSports: Bool? - /** Gets or sets a value indicating whether this instance is series. */ - public var isSeries: Bool? - /** Gets or sets a value indicating whether this instance is live. */ - public var isLive: Bool? - /** Gets or sets a value indicating whether this instance is news. */ - public var isNews: Bool? - /** Gets or sets a value indicating whether this instance is kids. */ - public var isKids: Bool? - /** Gets or sets a value indicating whether this instance is premiere. */ - public var isPremiere: Bool? - /** Gets or sets the timer identifier. */ - public var timerId: String? - /** Gets or sets the current program. */ - public var currentProgram: Any? - - public init(name: String? = nil, originalTitle: String? = nil, serverId: String? = nil, _id: UUID? = nil, etag: String? = nil, sourceType: String? = nil, playlistItemId: String? = nil, dateCreated: Date? = nil, dateLastMediaAdded: Date? = nil, extraType: String? = nil, airsBeforeSeasonNumber: Int? = nil, airsAfterSeasonNumber: Int? = nil, airsBeforeEpisodeNumber: Int? = nil, canDelete: Bool? = nil, canDownload: Bool? = nil, hasSubtitles: Bool? = nil, preferredMetadataLanguage: String? = nil, preferredMetadataCountryCode: String? = nil, supportsSync: Bool? = nil, container: String? = nil, sortName: String? = nil, forcedSortName: String? = nil, video3DFormat: Any? = nil, premiereDate: Date? = nil, externalUrls: [ExternalUrl]? = nil, mediaSources: [MediaSourceInfo]? = nil, criticRating: Float? = nil, productionLocations: [String]? = nil, path: String? = nil, enableMediaSourceDisplay: Bool? = nil, officialRating: String? = nil, customRating: String? = nil, channelId: UUID? = nil, channelName: String? = nil, overview: String? = nil, taglines: [String]? = nil, genres: [String]? = nil, communityRating: Float? = nil, cumulativeRunTimeTicks: Int64? = nil, runTimeTicks: Int64? = nil, playAccess: Any? = nil, aspectRatio: String? = nil, productionYear: Int? = nil, isPlaceHolder: Bool? = nil, number: String? = nil, channelNumber: String? = nil, indexNumber: Int? = nil, indexNumberEnd: Int? = nil, parentIndexNumber: Int? = nil, remoteTrailers: [MediaUrl]? = nil, providerIds: [String:String]? = nil, isHD: Bool? = nil, isFolder: Bool? = nil, parentId: UUID? = nil, type: String? = nil, people: [BaseItemPerson]? = nil, studios: [NameGuidPair]? = nil, genreItems: [NameGuidPair]? = nil, parentLogoItemId: String? = nil, parentBackdropItemId: String? = nil, parentBackdropImageTags: [String]? = nil, localTrailerCount: Int? = nil, userData: Any? = nil, recursiveItemCount: Int? = nil, childCount: Int? = nil, seriesName: String? = nil, seriesId: UUID? = nil, seasonId: UUID? = nil, specialFeatureCount: Int? = nil, displayPreferencesId: String? = nil, status: String? = nil, airTime: String? = nil, airDays: [DayOfWeek]? = nil, tags: [String]? = nil, primaryImageAspectRatio: Double? = nil, artists: [String]? = nil, artistItems: [NameGuidPair]? = nil, album: String? = nil, collectionType: String? = nil, displayOrder: String? = nil, albumId: UUID? = nil, albumPrimaryImageTag: String? = nil, seriesPrimaryImageTag: String? = nil, albumArtist: String? = nil, albumArtists: [NameGuidPair]? = nil, seasonName: String? = nil, mediaStreams: [MediaStream]? = nil, videoType: Any? = nil, partCount: Int? = nil, mediaSourceCount: Int? = nil, imageTags: [String:String]? = nil, backdropImageTags: [String]? = nil, screenshotImageTags: [String]? = nil, parentLogoImageTag: String? = nil, parentArtItemId: String? = nil, parentArtImageTag: String? = nil, seriesThumbImageTag: String? = nil, imageBlurHashes: BaseItemDtoImageBlurHashes? = nil, seriesStudio: String? = nil, parentThumbItemId: String? = nil, parentThumbImageTag: String? = nil, parentPrimaryImageItemId: String? = nil, parentPrimaryImageTag: String? = nil, chapters: [ChapterInfo]? = nil, locationType: Any? = nil, isoType: Any? = nil, mediaType: String? = nil, endDate: Date? = nil, lockedFields: [MetadataField]? = nil, trailerCount: Int? = nil, movieCount: Int? = nil, seriesCount: Int? = nil, programCount: Int? = nil, episodeCount: Int? = nil, songCount: Int? = nil, albumCount: Int? = nil, artistCount: Int? = nil, musicVideoCount: Int? = nil, lockData: Bool? = nil, width: Int? = nil, height: Int? = nil, cameraMake: String? = nil, cameraModel: String? = nil, software: String? = nil, exposureTime: Double? = nil, focalLength: Double? = nil, imageOrientation: Any? = nil, aperture: Double? = nil, shutterSpeed: Double? = nil, latitude: Double? = nil, longitude: Double? = nil, altitude: Double? = nil, isoSpeedRating: Int? = nil, seriesTimerId: String? = nil, programId: String? = nil, channelPrimaryImageTag: String? = nil, startDate: Date? = nil, completionPercentage: Double? = nil, isRepeat: Bool? = nil, episodeTitle: String? = nil, channelType: Any? = nil, audio: Any? = nil, isMovie: Bool? = nil, isSports: Bool? = nil, isSeries: Bool? = nil, isLive: Bool? = nil, isNews: Bool? = nil, isKids: Bool? = nil, isPremiere: Bool? = nil, timerId: String? = nil, currentProgram: Any? = nil) { - self.name = name - self.originalTitle = originalTitle - self.serverId = serverId - self._id = _id - self.etag = etag - self.sourceType = sourceType - self.playlistItemId = playlistItemId - self.dateCreated = dateCreated - self.dateLastMediaAdded = dateLastMediaAdded - self.extraType = extraType - self.airsBeforeSeasonNumber = airsBeforeSeasonNumber - self.airsAfterSeasonNumber = airsAfterSeasonNumber - self.airsBeforeEpisodeNumber = airsBeforeEpisodeNumber - self.canDelete = canDelete - self.canDownload = canDownload - self.hasSubtitles = hasSubtitles - self.preferredMetadataLanguage = preferredMetadataLanguage - self.preferredMetadataCountryCode = preferredMetadataCountryCode - self.supportsSync = supportsSync - self.container = container - self.sortName = sortName - self.forcedSortName = forcedSortName - self.video3DFormat = video3DFormat - self.premiereDate = premiereDate - self.externalUrls = externalUrls - self.mediaSources = mediaSources - self.criticRating = criticRating - self.productionLocations = productionLocations - self.path = path - self.enableMediaSourceDisplay = enableMediaSourceDisplay - self.officialRating = officialRating - self.customRating = customRating - self.channelId = channelId - self.channelName = channelName - self.overview = overview - self.taglines = taglines - self.genres = genres - self.communityRating = communityRating - self.cumulativeRunTimeTicks = cumulativeRunTimeTicks - self.runTimeTicks = runTimeTicks - self.playAccess = playAccess - self.aspectRatio = aspectRatio - self.productionYear = productionYear - self.isPlaceHolder = isPlaceHolder - self.number = number - self.channelNumber = channelNumber - self.indexNumber = indexNumber - self.indexNumberEnd = indexNumberEnd - self.parentIndexNumber = parentIndexNumber - self.remoteTrailers = remoteTrailers - self.providerIds = providerIds - self.isHD = isHD - self.isFolder = isFolder - self.parentId = parentId - self.type = type - self.people = people - self.studios = studios - self.genreItems = genreItems - self.parentLogoItemId = parentLogoItemId - self.parentBackdropItemId = parentBackdropItemId - self.parentBackdropImageTags = parentBackdropImageTags - self.localTrailerCount = localTrailerCount - self.userData = userData - self.recursiveItemCount = recursiveItemCount - self.childCount = childCount - self.seriesName = seriesName - self.seriesId = seriesId - self.seasonId = seasonId - self.specialFeatureCount = specialFeatureCount - self.displayPreferencesId = displayPreferencesId - self.status = status - self.airTime = airTime - self.airDays = airDays - self.tags = tags - self.primaryImageAspectRatio = primaryImageAspectRatio - self.artists = artists - self.artistItems = artistItems - self.album = album - self.collectionType = collectionType - self.displayOrder = displayOrder - self.albumId = albumId - self.albumPrimaryImageTag = albumPrimaryImageTag - self.seriesPrimaryImageTag = seriesPrimaryImageTag - self.albumArtist = albumArtist - self.albumArtists = albumArtists - self.seasonName = seasonName - self.mediaStreams = mediaStreams - self.videoType = videoType - self.partCount = partCount - self.mediaSourceCount = mediaSourceCount - self.imageTags = imageTags - self.backdropImageTags = backdropImageTags - self.screenshotImageTags = screenshotImageTags - self.parentLogoImageTag = parentLogoImageTag - self.parentArtItemId = parentArtItemId - self.parentArtImageTag = parentArtImageTag - self.seriesThumbImageTag = seriesThumbImageTag - self.imageBlurHashes = imageBlurHashes - self.seriesStudio = seriesStudio - self.parentThumbItemId = parentThumbItemId - self.parentThumbImageTag = parentThumbImageTag - self.parentPrimaryImageItemId = parentPrimaryImageItemId - self.parentPrimaryImageTag = parentPrimaryImageTag - self.chapters = chapters - self.locationType = locationType - self.isoType = isoType - self.mediaType = mediaType - self.endDate = endDate - self.lockedFields = lockedFields - self.trailerCount = trailerCount - self.movieCount = movieCount - self.seriesCount = seriesCount - self.programCount = programCount - self.episodeCount = episodeCount - self.songCount = songCount - self.albumCount = albumCount - self.artistCount = artistCount - self.musicVideoCount = musicVideoCount - self.lockData = lockData - self.width = width - self.height = height - self.cameraMake = cameraMake - self.cameraModel = cameraModel - self.software = software - self.exposureTime = exposureTime - self.focalLength = focalLength - self.imageOrientation = imageOrientation - self.aperture = aperture - self.shutterSpeed = shutterSpeed - self.latitude = latitude - self.longitude = longitude - self.altitude = altitude - self.isoSpeedRating = isoSpeedRating - self.seriesTimerId = seriesTimerId - self.programId = programId - self.channelPrimaryImageTag = channelPrimaryImageTag - self.startDate = startDate - self.completionPercentage = completionPercentage - self.isRepeat = isRepeat - self.episodeTitle = episodeTitle - self.channelType = channelType - self.audio = audio - self.isMovie = isMovie - self.isSports = isSports - self.isSeries = isSeries - self.isLive = isLive - self.isNews = isNews - self.isKids = isKids - self.isPremiere = isPremiere - self.timerId = timerId - self.currentProgram = currentProgram - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case originalTitle = "OriginalTitle" - case serverId = "ServerId" - case _id = "Id" - case etag = "Etag" - case sourceType = "SourceType" - case playlistItemId = "PlaylistItemId" - case dateCreated = "DateCreated" - case dateLastMediaAdded = "DateLastMediaAdded" - case extraType = "ExtraType" - case airsBeforeSeasonNumber = "AirsBeforeSeasonNumber" - case airsAfterSeasonNumber = "AirsAfterSeasonNumber" - case airsBeforeEpisodeNumber = "AirsBeforeEpisodeNumber" - case canDelete = "CanDelete" - case canDownload = "CanDownload" - case hasSubtitles = "HasSubtitles" - case preferredMetadataLanguage = "PreferredMetadataLanguage" - case preferredMetadataCountryCode = "PreferredMetadataCountryCode" - case supportsSync = "SupportsSync" - case container = "Container" - case sortName = "SortName" - case forcedSortName = "ForcedSortName" - case video3DFormat = "Video3DFormat" - case premiereDate = "PremiereDate" - case externalUrls = "ExternalUrls" - case mediaSources = "MediaSources" - case criticRating = "CriticRating" - case productionLocations = "ProductionLocations" - case path = "Path" - case enableMediaSourceDisplay = "EnableMediaSourceDisplay" - case officialRating = "OfficialRating" - case customRating = "CustomRating" - case channelId = "ChannelId" - case channelName = "ChannelName" - case overview = "Overview" - case taglines = "Taglines" - case genres = "Genres" - case communityRating = "CommunityRating" - case cumulativeRunTimeTicks = "CumulativeRunTimeTicks" - case runTimeTicks = "RunTimeTicks" - case playAccess = "PlayAccess" - case aspectRatio = "AspectRatio" - case productionYear = "ProductionYear" - case isPlaceHolder = "IsPlaceHolder" - case number = "Number" - case channelNumber = "ChannelNumber" - case indexNumber = "IndexNumber" - case indexNumberEnd = "IndexNumberEnd" - case parentIndexNumber = "ParentIndexNumber" - case remoteTrailers = "RemoteTrailers" - case providerIds = "ProviderIds" - case isHD = "IsHD" - case isFolder = "IsFolder" - case parentId = "ParentId" - case type = "Type" - case people = "People" - case studios = "Studios" - case genreItems = "GenreItems" - case parentLogoItemId = "ParentLogoItemId" - case parentBackdropItemId = "ParentBackdropItemId" - case parentBackdropImageTags = "ParentBackdropImageTags" - case localTrailerCount = "LocalTrailerCount" - case userData = "UserData" - case recursiveItemCount = "RecursiveItemCount" - case childCount = "ChildCount" - case seriesName = "SeriesName" - case seriesId = "SeriesId" - case seasonId = "SeasonId" - case specialFeatureCount = "SpecialFeatureCount" - case displayPreferencesId = "DisplayPreferencesId" - case status = "Status" - case airTime = "AirTime" - case airDays = "AirDays" - case tags = "Tags" - case primaryImageAspectRatio = "PrimaryImageAspectRatio" - case artists = "Artists" - case artistItems = "ArtistItems" - case album = "Album" - case collectionType = "CollectionType" - case displayOrder = "DisplayOrder" - case albumId = "AlbumId" - case albumPrimaryImageTag = "AlbumPrimaryImageTag" - case seriesPrimaryImageTag = "SeriesPrimaryImageTag" - case albumArtist = "AlbumArtist" - case albumArtists = "AlbumArtists" - case seasonName = "SeasonName" - case mediaStreams = "MediaStreams" - case videoType = "VideoType" - case partCount = "PartCount" - case mediaSourceCount = "MediaSourceCount" - case imageTags = "ImageTags" - case backdropImageTags = "BackdropImageTags" - case screenshotImageTags = "ScreenshotImageTags" - case parentLogoImageTag = "ParentLogoImageTag" - case parentArtItemId = "ParentArtItemId" - case parentArtImageTag = "ParentArtImageTag" - case seriesThumbImageTag = "SeriesThumbImageTag" - case imageBlurHashes = "ImageBlurHashes" - case seriesStudio = "SeriesStudio" - case parentThumbItemId = "ParentThumbItemId" - case parentThumbImageTag = "ParentThumbImageTag" - case parentPrimaryImageItemId = "ParentPrimaryImageItemId" - case parentPrimaryImageTag = "ParentPrimaryImageTag" - case chapters = "Chapters" - case locationType = "LocationType" - case isoType = "IsoType" - case mediaType = "MediaType" - case endDate = "EndDate" - case lockedFields = "LockedFields" - case trailerCount = "TrailerCount" - case movieCount = "MovieCount" - case seriesCount = "SeriesCount" - case programCount = "ProgramCount" - case episodeCount = "EpisodeCount" - case songCount = "SongCount" - case albumCount = "AlbumCount" - case artistCount = "ArtistCount" - case musicVideoCount = "MusicVideoCount" - case lockData = "LockData" - case width = "Width" - case height = "Height" - case cameraMake = "CameraMake" - case cameraModel = "CameraModel" - case software = "Software" - case exposureTime = "ExposureTime" - case focalLength = "FocalLength" - case imageOrientation = "ImageOrientation" - case aperture = "Aperture" - case shutterSpeed = "ShutterSpeed" - case latitude = "Latitude" - case longitude = "Longitude" - case altitude = "Altitude" - case isoSpeedRating = "IsoSpeedRating" - case seriesTimerId = "SeriesTimerId" - case programId = "ProgramId" - case channelPrimaryImageTag = "ChannelPrimaryImageTag" - case startDate = "StartDate" - case completionPercentage = "CompletionPercentage" - case isRepeat = "IsRepeat" - case episodeTitle = "EpisodeTitle" - case channelType = "ChannelType" - case audio = "Audio" - case isMovie = "IsMovie" - case isSports = "IsSports" - case isSeries = "IsSeries" - case isLive = "IsLive" - case isNews = "IsNews" - case isKids = "IsKids" - case isPremiere = "IsPremiere" - case timerId = "TimerId" - case currentProgram = "CurrentProgram" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfSessionInfoPlayState.swift b/JellyfinPlayer/Swaggers/Models/AllOfSessionInfoPlayState.swift deleted file mode 100644 index 59adb004..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfSessionInfoPlayState.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// AllOfSessionInfoPlayState.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfSessionInfoPlayState: Codable { - - /** Gets or sets the now playing position ticks. */ - public var positionTicks: Int64? - /** Gets or sets a value indicating whether this instance can seek. */ - public var canSeek: Bool? - /** Gets or sets a value indicating whether this instance is paused. */ - public var isPaused: Bool? - /** Gets or sets a value indicating whether this instance is muted. */ - public var isMuted: Bool? - /** Gets or sets the volume level. */ - public var volumeLevel: Int? - /** Gets or sets the index of the now playing audio stream. */ - public var audioStreamIndex: Int? - /** Gets or sets the index of the now playing subtitle stream. */ - public var subtitleStreamIndex: Int? - /** Gets or sets the now playing media version identifier. */ - public var mediaSourceId: String? - /** Gets or sets the play method. */ - public var playMethod: Any? - /** Gets or sets the repeat mode. */ - public var repeatMode: Any? - - public init(positionTicks: Int64? = nil, canSeek: Bool? = nil, isPaused: Bool? = nil, isMuted: Bool? = nil, volumeLevel: Int? = nil, audioStreamIndex: Int? = nil, subtitleStreamIndex: Int? = nil, mediaSourceId: String? = nil, playMethod: Any? = nil, repeatMode: Any? = nil) { - self.positionTicks = positionTicks - self.canSeek = canSeek - self.isPaused = isPaused - self.isMuted = isMuted - self.volumeLevel = volumeLevel - self.audioStreamIndex = audioStreamIndex - self.subtitleStreamIndex = subtitleStreamIndex - self.mediaSourceId = mediaSourceId - self.playMethod = playMethod - self.repeatMode = repeatMode - } - - public enum CodingKeys: String, CodingKey { - case positionTicks = "PositionTicks" - case canSeek = "CanSeek" - case isPaused = "IsPaused" - case isMuted = "IsMuted" - case volumeLevel = "VolumeLevel" - case audioStreamIndex = "AudioStreamIndex" - case subtitleStreamIndex = "SubtitleStreamIndex" - case mediaSourceId = "MediaSourceId" - case playMethod = "PlayMethod" - case repeatMode = "RepeatMode" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfSessionInfoTranscodingInfo.swift b/JellyfinPlayer/Swaggers/Models/AllOfSessionInfoTranscodingInfo.swift deleted file mode 100644 index 1bfdd043..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfSessionInfoTranscodingInfo.swift +++ /dev/null @@ -1,57 +0,0 @@ -// -// AllOfSessionInfoTranscodingInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfSessionInfoTranscodingInfo: Codable { - - public var audioCodec: String? - public var videoCodec: String? - public var container: String? - public var isVideoDirect: Bool? - public var isAudioDirect: Bool? - public var bitrate: Int? - public var framerate: Float? - public var completionPercentage: Double? - public var width: Int? - public var height: Int? - public var audioChannels: Int? - public var transcodeReasons: [TranscodeReason]? - - public init(audioCodec: String? = nil, videoCodec: String? = nil, container: String? = nil, isVideoDirect: Bool? = nil, isAudioDirect: Bool? = nil, bitrate: Int? = nil, framerate: Float? = nil, completionPercentage: Double? = nil, width: Int? = nil, height: Int? = nil, audioChannels: Int? = nil, transcodeReasons: [TranscodeReason]? = nil) { - self.audioCodec = audioCodec - self.videoCodec = videoCodec - self.container = container - self.isVideoDirect = isVideoDirect - self.isAudioDirect = isAudioDirect - self.bitrate = bitrate - self.framerate = framerate - self.completionPercentage = completionPercentage - self.width = width - self.height = height - self.audioChannels = audioChannels - self.transcodeReasons = transcodeReasons - } - - public enum CodingKeys: String, CodingKey { - case audioCodec = "AudioCodec" - case videoCodec = "VideoCodec" - case container = "Container" - case isVideoDirect = "IsVideoDirect" - case isAudioDirect = "IsAudioDirect" - case bitrate = "Bitrate" - case framerate = "Framerate" - case completionPercentage = "CompletionPercentage" - case width = "Width" - case height = "Height" - case audioChannels = "AudioChannels" - case transcodeReasons = "TranscodeReasons" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfSetRepeatModeRequestDtoMode.swift b/JellyfinPlayer/Swaggers/Models/AllOfSetRepeatModeRequestDtoMode.swift deleted file mode 100644 index 82076157..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfSetRepeatModeRequestDtoMode.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfSetRepeatModeRequestDtoMode.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the repeat mode. */ - -public struct AllOfSetRepeatModeRequestDtoMode: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfSetShuffleModeRequestDtoMode.swift b/JellyfinPlayer/Swaggers/Models/AllOfSetShuffleModeRequestDtoMode.swift deleted file mode 100644 index 07f03964..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfSetShuffleModeRequestDtoMode.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfSetShuffleModeRequestDtoMode.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the shuffle mode. */ - -public struct AllOfSetShuffleModeRequestDtoMode: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfSubtitleProfileMethod.swift b/JellyfinPlayer/Swaggers/Models/AllOfSubtitleProfileMethod.swift deleted file mode 100644 index d1d4bd3c..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfSubtitleProfileMethod.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// AllOfSubtitleProfileMethod.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfSubtitleProfileMethod: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfSystemInfoEncoderLocation.swift b/JellyfinPlayer/Swaggers/Models/AllOfSystemInfoEncoderLocation.swift deleted file mode 100644 index 44a20839..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfSystemInfoEncoderLocation.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfSystemInfoEncoderLocation.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Enum describing the location of the FFmpeg tool. */ - -public struct AllOfSystemInfoEncoderLocation: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfSystemInfoSystemArchitecture.swift b/JellyfinPlayer/Swaggers/Models/AllOfSystemInfoSystemArchitecture.swift deleted file mode 100644 index d1b417c4..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfSystemInfoSystemArchitecture.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// AllOfSystemInfoSystemArchitecture.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfSystemInfoSystemArchitecture: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfTaskInfoLastExecutionResult.swift b/JellyfinPlayer/Swaggers/Models/AllOfTaskInfoLastExecutionResult.swift deleted file mode 100644 index 1d0a9695..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfTaskInfoLastExecutionResult.swift +++ /dev/null @@ -1,54 +0,0 @@ -// -// AllOfTaskInfoLastExecutionResult.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the last execution result. */ - -public struct AllOfTaskInfoLastExecutionResult: Codable { - - /** Gets or sets the start time UTC. */ - public var startTimeUtc: Date? - /** Gets or sets the end time UTC. */ - public var endTimeUtc: Date? - /** Gets or sets the status. */ - public var status: Any? - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the key. */ - public var key: String? - /** Gets or sets the id. */ - public var _id: String? - /** Gets or sets the error message. */ - public var errorMessage: String? - /** Gets or sets the long error message. */ - public var longErrorMessage: String? - - public init(startTimeUtc: Date? = nil, endTimeUtc: Date? = nil, status: Any? = nil, name: String? = nil, key: String? = nil, _id: String? = nil, errorMessage: String? = nil, longErrorMessage: String? = nil) { - self.startTimeUtc = startTimeUtc - self.endTimeUtc = endTimeUtc - self.status = status - self.name = name - self.key = key - self._id = _id - self.errorMessage = errorMessage - self.longErrorMessage = longErrorMessage - } - - public enum CodingKeys: String, CodingKey { - case startTimeUtc = "StartTimeUtc" - case endTimeUtc = "EndTimeUtc" - case status = "Status" - case name = "Name" - case key = "Key" - case _id = "Id" - case errorMessage = "ErrorMessage" - case longErrorMessage = "LongErrorMessage" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfTaskInfoState.swift b/JellyfinPlayer/Swaggers/Models/AllOfTaskInfoState.swift deleted file mode 100644 index 53a6ae32..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfTaskInfoState.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfTaskInfoState.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the state of the task. */ - -public struct AllOfTaskInfoState: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfTaskResultStatus.swift b/JellyfinPlayer/Swaggers/Models/AllOfTaskResultStatus.swift deleted file mode 100644 index 22dc7ef3..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfTaskResultStatus.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfTaskResultStatus.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the status. */ - -public struct AllOfTaskResultStatus: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfTaskTriggerInfoDayOfWeek.swift b/JellyfinPlayer/Swaggers/Models/AllOfTaskTriggerInfoDayOfWeek.swift deleted file mode 100644 index bffd8b99..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfTaskTriggerInfoDayOfWeek.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfTaskTriggerInfoDayOfWeek.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the day of week. */ - -public struct AllOfTaskTriggerInfoDayOfWeek: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfTimerInfoDtoKeepUntil.swift b/JellyfinPlayer/Swaggers/Models/AllOfTimerInfoDtoKeepUntil.swift deleted file mode 100644 index 1c92045d..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfTimerInfoDtoKeepUntil.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// AllOfTimerInfoDtoKeepUntil.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfTimerInfoDtoKeepUntil: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfTimerInfoDtoProgramInfo.swift b/JellyfinPlayer/Swaggers/Models/AllOfTimerInfoDtoProgramInfo.swift deleted file mode 100644 index a54f30c2..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfTimerInfoDtoProgramInfo.swift +++ /dev/null @@ -1,590 +0,0 @@ -// -// AllOfTimerInfoDtoProgramInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the program information. */ - -public struct AllOfTimerInfoDtoProgramInfo: Codable { - - /** Gets or sets the name. */ - public var name: String? - public var originalTitle: String? - /** Gets or sets the server identifier. */ - public var serverId: String? - /** Gets or sets the id. */ - public var _id: UUID? - /** Gets or sets the etag. */ - public var etag: String? - /** Gets or sets the type of the source. */ - public var sourceType: String? - /** Gets or sets the playlist item identifier. */ - public var playlistItemId: String? - /** Gets or sets the date created. */ - public var dateCreated: Date? - public var dateLastMediaAdded: Date? - public var extraType: String? - public var airsBeforeSeasonNumber: Int? - public var airsAfterSeasonNumber: Int? - public var airsBeforeEpisodeNumber: Int? - public var canDelete: Bool? - public var canDownload: Bool? - public var hasSubtitles: Bool? - public var preferredMetadataLanguage: String? - public var preferredMetadataCountryCode: String? - /** Gets or sets a value indicating whether [supports synchronize]. */ - public var supportsSync: Bool? - public var container: String? - /** Gets or sets the name of the sort. */ - public var sortName: String? - public var forcedSortName: String? - /** Gets or sets the video3 D format. */ - public var video3DFormat: Any? - /** Gets or sets the premiere date. */ - public var premiereDate: Date? - /** Gets or sets the external urls. */ - public var externalUrls: [ExternalUrl]? - /** Gets or sets the media versions. */ - public var mediaSources: [MediaSourceInfo]? - /** Gets or sets the critic rating. */ - public var criticRating: Float? - public var productionLocations: [String]? - /** Gets or sets the path. */ - public var path: String? - public var enableMediaSourceDisplay: Bool? - /** Gets or sets the official rating. */ - public var officialRating: String? - /** Gets or sets the custom rating. */ - public var customRating: String? - /** Gets or sets the channel identifier. */ - public var channelId: UUID? - public var channelName: String? - /** Gets or sets the overview. */ - public var overview: String? - /** Gets or sets the taglines. */ - public var taglines: [String]? - /** Gets or sets the genres. */ - public var genres: [String]? - /** Gets or sets the community rating. */ - public var communityRating: Float? - /** Gets or sets the cumulative run time ticks. */ - public var cumulativeRunTimeTicks: Int64? - /** Gets or sets the run time ticks. */ - public var runTimeTicks: Int64? - /** Gets or sets the play access. */ - public var playAccess: Any? - /** Gets or sets the aspect ratio. */ - public var aspectRatio: String? - /** Gets or sets the production year. */ - public var productionYear: Int? - /** Gets or sets a value indicating whether this instance is place holder. */ - public var isPlaceHolder: Bool? - /** Gets or sets the number. */ - public var number: String? - public var channelNumber: String? - /** Gets or sets the index number. */ - public var indexNumber: Int? - /** Gets or sets the index number end. */ - public var indexNumberEnd: Int? - /** Gets or sets the parent index number. */ - public var parentIndexNumber: Int? - /** Gets or sets the trailer urls. */ - public var remoteTrailers: [MediaUrl]? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets a value indicating whether this instance is HD. */ - public var isHD: Bool? - /** Gets or sets a value indicating whether this instance is folder. */ - public var isFolder: Bool? - /** Gets or sets the parent id. */ - public var parentId: UUID? - /** Gets or sets the type. */ - public var type: String? - /** Gets or sets the people. */ - public var people: [BaseItemPerson]? - /** Gets or sets the studios. */ - public var studios: [NameGuidPair]? - public var genreItems: [NameGuidPair]? - /** If the item does not have a logo, this will hold the Id of the Parent that has one. */ - public var parentLogoItemId: String? - /** If the item does not have any backdrops, this will hold the Id of the Parent that has one. */ - public var parentBackdropItemId: String? - /** Gets or sets the parent backdrop image tags. */ - public var parentBackdropImageTags: [String]? - /** Gets or sets the local trailer count. */ - public var localTrailerCount: Int? - /** User data for this item based on the user it's being requested for. */ - public var userData: Any? - /** Gets or sets the recursive item count. */ - public var recursiveItemCount: Int? - /** Gets or sets the child count. */ - public var childCount: Int? - /** Gets or sets the name of the series. */ - public var seriesName: String? - /** Gets or sets the series id. */ - public var seriesId: UUID? - /** Gets or sets the season identifier. */ - public var seasonId: UUID? - /** Gets or sets the special feature count. */ - public var specialFeatureCount: Int? - /** Gets or sets the display preferences id. */ - public var displayPreferencesId: String? - /** Gets or sets the status. */ - public var status: String? - /** Gets or sets the air time. */ - public var airTime: String? - /** Gets or sets the air days. */ - public var airDays: [DayOfWeek]? - /** Gets or sets the tags. */ - public var tags: [String]? - /** Gets or sets the primary image aspect ratio, after image enhancements. */ - public var primaryImageAspectRatio: Double? - /** Gets or sets the artists. */ - public var artists: [String]? - /** Gets or sets the artist items. */ - public var artistItems: [NameGuidPair]? - /** Gets or sets the album. */ - public var album: String? - /** Gets or sets the type of the collection. */ - public var collectionType: String? - /** Gets or sets the display order. */ - public var displayOrder: String? - /** Gets or sets the album id. */ - public var albumId: UUID? - /** Gets or sets the album image tag. */ - public var albumPrimaryImageTag: String? - /** Gets or sets the series primary image tag. */ - public var seriesPrimaryImageTag: String? - /** Gets or sets the album artist. */ - public var albumArtist: String? - /** Gets or sets the album artists. */ - public var albumArtists: [NameGuidPair]? - /** Gets or sets the name of the season. */ - public var seasonName: String? - /** Gets or sets the media streams. */ - public var mediaStreams: [MediaStream]? - /** Gets or sets the type of the video. */ - public var videoType: Any? - /** Gets or sets the part count. */ - public var partCount: Int? - public var mediaSourceCount: Int? - /** Gets or sets the image tags. */ - public var imageTags: [String:String]? - /** Gets or sets the backdrop image tags. */ - public var backdropImageTags: [String]? - /** Gets or sets the screenshot image tags. */ - public var screenshotImageTags: [String]? - /** Gets or sets the parent logo image tag. */ - public var parentLogoImageTag: String? - /** If the item does not have a art, this will hold the Id of the Parent that has one. */ - public var parentArtItemId: String? - /** Gets or sets the parent art image tag. */ - public var parentArtImageTag: String? - /** Gets or sets the series thumb image tag. */ - public var seriesThumbImageTag: String? - public var imageBlurHashes: BaseItemDtoImageBlurHashes? - /** Gets or sets the series studio. */ - public var seriesStudio: String? - /** Gets or sets the parent thumb item id. */ - public var parentThumbItemId: String? - /** Gets or sets the parent thumb image tag. */ - public var parentThumbImageTag: String? - /** Gets or sets the parent primary image item identifier. */ - public var parentPrimaryImageItemId: String? - /** Gets or sets the parent primary image tag. */ - public var parentPrimaryImageTag: String? - /** Gets or sets the chapters. */ - public var chapters: [ChapterInfo]? - /** Gets or sets the type of the location. */ - public var locationType: Any? - /** Gets or sets the type of the iso. */ - public var isoType: Any? - /** Gets or sets the type of the media. */ - public var mediaType: String? - /** Gets or sets the end date. */ - public var endDate: Date? - /** Gets or sets the locked fields. */ - public var lockedFields: [MetadataField]? - /** Gets or sets the trailer count. */ - public var trailerCount: Int? - /** Gets or sets the movie count. */ - public var movieCount: Int? - /** Gets or sets the series count. */ - public var seriesCount: Int? - public var programCount: Int? - /** Gets or sets the episode count. */ - public var episodeCount: Int? - /** Gets or sets the song count. */ - public var songCount: Int? - /** Gets or sets the album count. */ - public var albumCount: Int? - public var artistCount: Int? - /** Gets or sets the music video count. */ - public var musicVideoCount: Int? - /** Gets or sets a value indicating whether [enable internet providers]. */ - public var lockData: Bool? - public var width: Int? - public var height: Int? - public var cameraMake: String? - public var cameraModel: String? - public var software: String? - public var exposureTime: Double? - public var focalLength: Double? - public var imageOrientation: Any? - public var aperture: Double? - public var shutterSpeed: Double? - public var latitude: Double? - public var longitude: Double? - public var altitude: Double? - public var isoSpeedRating: Int? - /** Gets or sets the series timer identifier. */ - public var seriesTimerId: String? - /** Gets or sets the program identifier. */ - public var programId: String? - /** Gets or sets the channel primary image tag. */ - public var channelPrimaryImageTag: String? - /** The start date of the recording, in UTC. */ - public var startDate: Date? - /** Gets or sets the completion percentage. */ - public var completionPercentage: Double? - /** Gets or sets a value indicating whether this instance is repeat. */ - public var isRepeat: Bool? - /** Gets or sets the episode title. */ - public var episodeTitle: String? - /** Gets or sets the type of the channel. */ - public var channelType: Any? - /** Gets or sets the audio. */ - public var audio: Any? - /** Gets or sets a value indicating whether this instance is movie. */ - public var isMovie: Bool? - /** Gets or sets a value indicating whether this instance is sports. */ - public var isSports: Bool? - /** Gets or sets a value indicating whether this instance is series. */ - public var isSeries: Bool? - /** Gets or sets a value indicating whether this instance is live. */ - public var isLive: Bool? - /** Gets or sets a value indicating whether this instance is news. */ - public var isNews: Bool? - /** Gets or sets a value indicating whether this instance is kids. */ - public var isKids: Bool? - /** Gets or sets a value indicating whether this instance is premiere. */ - public var isPremiere: Bool? - /** Gets or sets the timer identifier. */ - public var timerId: String? - /** Gets or sets the current program. */ - public var currentProgram: Any? - - public init(name: String? = nil, originalTitle: String? = nil, serverId: String? = nil, _id: UUID? = nil, etag: String? = nil, sourceType: String? = nil, playlistItemId: String? = nil, dateCreated: Date? = nil, dateLastMediaAdded: Date? = nil, extraType: String? = nil, airsBeforeSeasonNumber: Int? = nil, airsAfterSeasonNumber: Int? = nil, airsBeforeEpisodeNumber: Int? = nil, canDelete: Bool? = nil, canDownload: Bool? = nil, hasSubtitles: Bool? = nil, preferredMetadataLanguage: String? = nil, preferredMetadataCountryCode: String? = nil, supportsSync: Bool? = nil, container: String? = nil, sortName: String? = nil, forcedSortName: String? = nil, video3DFormat: Any? = nil, premiereDate: Date? = nil, externalUrls: [ExternalUrl]? = nil, mediaSources: [MediaSourceInfo]? = nil, criticRating: Float? = nil, productionLocations: [String]? = nil, path: String? = nil, enableMediaSourceDisplay: Bool? = nil, officialRating: String? = nil, customRating: String? = nil, channelId: UUID? = nil, channelName: String? = nil, overview: String? = nil, taglines: [String]? = nil, genres: [String]? = nil, communityRating: Float? = nil, cumulativeRunTimeTicks: Int64? = nil, runTimeTicks: Int64? = nil, playAccess: Any? = nil, aspectRatio: String? = nil, productionYear: Int? = nil, isPlaceHolder: Bool? = nil, number: String? = nil, channelNumber: String? = nil, indexNumber: Int? = nil, indexNumberEnd: Int? = nil, parentIndexNumber: Int? = nil, remoteTrailers: [MediaUrl]? = nil, providerIds: [String:String]? = nil, isHD: Bool? = nil, isFolder: Bool? = nil, parentId: UUID? = nil, type: String? = nil, people: [BaseItemPerson]? = nil, studios: [NameGuidPair]? = nil, genreItems: [NameGuidPair]? = nil, parentLogoItemId: String? = nil, parentBackdropItemId: String? = nil, parentBackdropImageTags: [String]? = nil, localTrailerCount: Int? = nil, userData: Any? = nil, recursiveItemCount: Int? = nil, childCount: Int? = nil, seriesName: String? = nil, seriesId: UUID? = nil, seasonId: UUID? = nil, specialFeatureCount: Int? = nil, displayPreferencesId: String? = nil, status: String? = nil, airTime: String? = nil, airDays: [DayOfWeek]? = nil, tags: [String]? = nil, primaryImageAspectRatio: Double? = nil, artists: [String]? = nil, artistItems: [NameGuidPair]? = nil, album: String? = nil, collectionType: String? = nil, displayOrder: String? = nil, albumId: UUID? = nil, albumPrimaryImageTag: String? = nil, seriesPrimaryImageTag: String? = nil, albumArtist: String? = nil, albumArtists: [NameGuidPair]? = nil, seasonName: String? = nil, mediaStreams: [MediaStream]? = nil, videoType: Any? = nil, partCount: Int? = nil, mediaSourceCount: Int? = nil, imageTags: [String:String]? = nil, backdropImageTags: [String]? = nil, screenshotImageTags: [String]? = nil, parentLogoImageTag: String? = nil, parentArtItemId: String? = nil, parentArtImageTag: String? = nil, seriesThumbImageTag: String? = nil, imageBlurHashes: BaseItemDtoImageBlurHashes? = nil, seriesStudio: String? = nil, parentThumbItemId: String? = nil, parentThumbImageTag: String? = nil, parentPrimaryImageItemId: String? = nil, parentPrimaryImageTag: String? = nil, chapters: [ChapterInfo]? = nil, locationType: Any? = nil, isoType: Any? = nil, mediaType: String? = nil, endDate: Date? = nil, lockedFields: [MetadataField]? = nil, trailerCount: Int? = nil, movieCount: Int? = nil, seriesCount: Int? = nil, programCount: Int? = nil, episodeCount: Int? = nil, songCount: Int? = nil, albumCount: Int? = nil, artistCount: Int? = nil, musicVideoCount: Int? = nil, lockData: Bool? = nil, width: Int? = nil, height: Int? = nil, cameraMake: String? = nil, cameraModel: String? = nil, software: String? = nil, exposureTime: Double? = nil, focalLength: Double? = nil, imageOrientation: Any? = nil, aperture: Double? = nil, shutterSpeed: Double? = nil, latitude: Double? = nil, longitude: Double? = nil, altitude: Double? = nil, isoSpeedRating: Int? = nil, seriesTimerId: String? = nil, programId: String? = nil, channelPrimaryImageTag: String? = nil, startDate: Date? = nil, completionPercentage: Double? = nil, isRepeat: Bool? = nil, episodeTitle: String? = nil, channelType: Any? = nil, audio: Any? = nil, isMovie: Bool? = nil, isSports: Bool? = nil, isSeries: Bool? = nil, isLive: Bool? = nil, isNews: Bool? = nil, isKids: Bool? = nil, isPremiere: Bool? = nil, timerId: String? = nil, currentProgram: Any? = nil) { - self.name = name - self.originalTitle = originalTitle - self.serverId = serverId - self._id = _id - self.etag = etag - self.sourceType = sourceType - self.playlistItemId = playlistItemId - self.dateCreated = dateCreated - self.dateLastMediaAdded = dateLastMediaAdded - self.extraType = extraType - self.airsBeforeSeasonNumber = airsBeforeSeasonNumber - self.airsAfterSeasonNumber = airsAfterSeasonNumber - self.airsBeforeEpisodeNumber = airsBeforeEpisodeNumber - self.canDelete = canDelete - self.canDownload = canDownload - self.hasSubtitles = hasSubtitles - self.preferredMetadataLanguage = preferredMetadataLanguage - self.preferredMetadataCountryCode = preferredMetadataCountryCode - self.supportsSync = supportsSync - self.container = container - self.sortName = sortName - self.forcedSortName = forcedSortName - self.video3DFormat = video3DFormat - self.premiereDate = premiereDate - self.externalUrls = externalUrls - self.mediaSources = mediaSources - self.criticRating = criticRating - self.productionLocations = productionLocations - self.path = path - self.enableMediaSourceDisplay = enableMediaSourceDisplay - self.officialRating = officialRating - self.customRating = customRating - self.channelId = channelId - self.channelName = channelName - self.overview = overview - self.taglines = taglines - self.genres = genres - self.communityRating = communityRating - self.cumulativeRunTimeTicks = cumulativeRunTimeTicks - self.runTimeTicks = runTimeTicks - self.playAccess = playAccess - self.aspectRatio = aspectRatio - self.productionYear = productionYear - self.isPlaceHolder = isPlaceHolder - self.number = number - self.channelNumber = channelNumber - self.indexNumber = indexNumber - self.indexNumberEnd = indexNumberEnd - self.parentIndexNumber = parentIndexNumber - self.remoteTrailers = remoteTrailers - self.providerIds = providerIds - self.isHD = isHD - self.isFolder = isFolder - self.parentId = parentId - self.type = type - self.people = people - self.studios = studios - self.genreItems = genreItems - self.parentLogoItemId = parentLogoItemId - self.parentBackdropItemId = parentBackdropItemId - self.parentBackdropImageTags = parentBackdropImageTags - self.localTrailerCount = localTrailerCount - self.userData = userData - self.recursiveItemCount = recursiveItemCount - self.childCount = childCount - self.seriesName = seriesName - self.seriesId = seriesId - self.seasonId = seasonId - self.specialFeatureCount = specialFeatureCount - self.displayPreferencesId = displayPreferencesId - self.status = status - self.airTime = airTime - self.airDays = airDays - self.tags = tags - self.primaryImageAspectRatio = primaryImageAspectRatio - self.artists = artists - self.artistItems = artistItems - self.album = album - self.collectionType = collectionType - self.displayOrder = displayOrder - self.albumId = albumId - self.albumPrimaryImageTag = albumPrimaryImageTag - self.seriesPrimaryImageTag = seriesPrimaryImageTag - self.albumArtist = albumArtist - self.albumArtists = albumArtists - self.seasonName = seasonName - self.mediaStreams = mediaStreams - self.videoType = videoType - self.partCount = partCount - self.mediaSourceCount = mediaSourceCount - self.imageTags = imageTags - self.backdropImageTags = backdropImageTags - self.screenshotImageTags = screenshotImageTags - self.parentLogoImageTag = parentLogoImageTag - self.parentArtItemId = parentArtItemId - self.parentArtImageTag = parentArtImageTag - self.seriesThumbImageTag = seriesThumbImageTag - self.imageBlurHashes = imageBlurHashes - self.seriesStudio = seriesStudio - self.parentThumbItemId = parentThumbItemId - self.parentThumbImageTag = parentThumbImageTag - self.parentPrimaryImageItemId = parentPrimaryImageItemId - self.parentPrimaryImageTag = parentPrimaryImageTag - self.chapters = chapters - self.locationType = locationType - self.isoType = isoType - self.mediaType = mediaType - self.endDate = endDate - self.lockedFields = lockedFields - self.trailerCount = trailerCount - self.movieCount = movieCount - self.seriesCount = seriesCount - self.programCount = programCount - self.episodeCount = episodeCount - self.songCount = songCount - self.albumCount = albumCount - self.artistCount = artistCount - self.musicVideoCount = musicVideoCount - self.lockData = lockData - self.width = width - self.height = height - self.cameraMake = cameraMake - self.cameraModel = cameraModel - self.software = software - self.exposureTime = exposureTime - self.focalLength = focalLength - self.imageOrientation = imageOrientation - self.aperture = aperture - self.shutterSpeed = shutterSpeed - self.latitude = latitude - self.longitude = longitude - self.altitude = altitude - self.isoSpeedRating = isoSpeedRating - self.seriesTimerId = seriesTimerId - self.programId = programId - self.channelPrimaryImageTag = channelPrimaryImageTag - self.startDate = startDate - self.completionPercentage = completionPercentage - self.isRepeat = isRepeat - self.episodeTitle = episodeTitle - self.channelType = channelType - self.audio = audio - self.isMovie = isMovie - self.isSports = isSports - self.isSeries = isSeries - self.isLive = isLive - self.isNews = isNews - self.isKids = isKids - self.isPremiere = isPremiere - self.timerId = timerId - self.currentProgram = currentProgram - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case originalTitle = "OriginalTitle" - case serverId = "ServerId" - case _id = "Id" - case etag = "Etag" - case sourceType = "SourceType" - case playlistItemId = "PlaylistItemId" - case dateCreated = "DateCreated" - case dateLastMediaAdded = "DateLastMediaAdded" - case extraType = "ExtraType" - case airsBeforeSeasonNumber = "AirsBeforeSeasonNumber" - case airsAfterSeasonNumber = "AirsAfterSeasonNumber" - case airsBeforeEpisodeNumber = "AirsBeforeEpisodeNumber" - case canDelete = "CanDelete" - case canDownload = "CanDownload" - case hasSubtitles = "HasSubtitles" - case preferredMetadataLanguage = "PreferredMetadataLanguage" - case preferredMetadataCountryCode = "PreferredMetadataCountryCode" - case supportsSync = "SupportsSync" - case container = "Container" - case sortName = "SortName" - case forcedSortName = "ForcedSortName" - case video3DFormat = "Video3DFormat" - case premiereDate = "PremiereDate" - case externalUrls = "ExternalUrls" - case mediaSources = "MediaSources" - case criticRating = "CriticRating" - case productionLocations = "ProductionLocations" - case path = "Path" - case enableMediaSourceDisplay = "EnableMediaSourceDisplay" - case officialRating = "OfficialRating" - case customRating = "CustomRating" - case channelId = "ChannelId" - case channelName = "ChannelName" - case overview = "Overview" - case taglines = "Taglines" - case genres = "Genres" - case communityRating = "CommunityRating" - case cumulativeRunTimeTicks = "CumulativeRunTimeTicks" - case runTimeTicks = "RunTimeTicks" - case playAccess = "PlayAccess" - case aspectRatio = "AspectRatio" - case productionYear = "ProductionYear" - case isPlaceHolder = "IsPlaceHolder" - case number = "Number" - case channelNumber = "ChannelNumber" - case indexNumber = "IndexNumber" - case indexNumberEnd = "IndexNumberEnd" - case parentIndexNumber = "ParentIndexNumber" - case remoteTrailers = "RemoteTrailers" - case providerIds = "ProviderIds" - case isHD = "IsHD" - case isFolder = "IsFolder" - case parentId = "ParentId" - case type = "Type" - case people = "People" - case studios = "Studios" - case genreItems = "GenreItems" - case parentLogoItemId = "ParentLogoItemId" - case parentBackdropItemId = "ParentBackdropItemId" - case parentBackdropImageTags = "ParentBackdropImageTags" - case localTrailerCount = "LocalTrailerCount" - case userData = "UserData" - case recursiveItemCount = "RecursiveItemCount" - case childCount = "ChildCount" - case seriesName = "SeriesName" - case seriesId = "SeriesId" - case seasonId = "SeasonId" - case specialFeatureCount = "SpecialFeatureCount" - case displayPreferencesId = "DisplayPreferencesId" - case status = "Status" - case airTime = "AirTime" - case airDays = "AirDays" - case tags = "Tags" - case primaryImageAspectRatio = "PrimaryImageAspectRatio" - case artists = "Artists" - case artistItems = "ArtistItems" - case album = "Album" - case collectionType = "CollectionType" - case displayOrder = "DisplayOrder" - case albumId = "AlbumId" - case albumPrimaryImageTag = "AlbumPrimaryImageTag" - case seriesPrimaryImageTag = "SeriesPrimaryImageTag" - case albumArtist = "AlbumArtist" - case albumArtists = "AlbumArtists" - case seasonName = "SeasonName" - case mediaStreams = "MediaStreams" - case videoType = "VideoType" - case partCount = "PartCount" - case mediaSourceCount = "MediaSourceCount" - case imageTags = "ImageTags" - case backdropImageTags = "BackdropImageTags" - case screenshotImageTags = "ScreenshotImageTags" - case parentLogoImageTag = "ParentLogoImageTag" - case parentArtItemId = "ParentArtItemId" - case parentArtImageTag = "ParentArtImageTag" - case seriesThumbImageTag = "SeriesThumbImageTag" - case imageBlurHashes = "ImageBlurHashes" - case seriesStudio = "SeriesStudio" - case parentThumbItemId = "ParentThumbItemId" - case parentThumbImageTag = "ParentThumbImageTag" - case parentPrimaryImageItemId = "ParentPrimaryImageItemId" - case parentPrimaryImageTag = "ParentPrimaryImageTag" - case chapters = "Chapters" - case locationType = "LocationType" - case isoType = "IsoType" - case mediaType = "MediaType" - case endDate = "EndDate" - case lockedFields = "LockedFields" - case trailerCount = "TrailerCount" - case movieCount = "MovieCount" - case seriesCount = "SeriesCount" - case programCount = "ProgramCount" - case episodeCount = "EpisodeCount" - case songCount = "SongCount" - case albumCount = "AlbumCount" - case artistCount = "ArtistCount" - case musicVideoCount = "MusicVideoCount" - case lockData = "LockData" - case width = "Width" - case height = "Height" - case cameraMake = "CameraMake" - case cameraModel = "CameraModel" - case software = "Software" - case exposureTime = "ExposureTime" - case focalLength = "FocalLength" - case imageOrientation = "ImageOrientation" - case aperture = "Aperture" - case shutterSpeed = "ShutterSpeed" - case latitude = "Latitude" - case longitude = "Longitude" - case altitude = "Altitude" - case isoSpeedRating = "IsoSpeedRating" - case seriesTimerId = "SeriesTimerId" - case programId = "ProgramId" - case channelPrimaryImageTag = "ChannelPrimaryImageTag" - case startDate = "StartDate" - case completionPercentage = "CompletionPercentage" - case isRepeat = "IsRepeat" - case episodeTitle = "EpisodeTitle" - case channelType = "ChannelType" - case audio = "Audio" - case isMovie = "IsMovie" - case isSports = "IsSports" - case isSeries = "IsSeries" - case isLive = "IsLive" - case isNews = "IsNews" - case isKids = "IsKids" - case isPremiere = "IsPremiere" - case timerId = "TimerId" - case currentProgram = "CurrentProgram" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfTimerInfoDtoStatus.swift b/JellyfinPlayer/Swaggers/Models/AllOfTimerInfoDtoStatus.swift deleted file mode 100644 index 3a7030fe..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfTimerInfoDtoStatus.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfTimerInfoDtoStatus.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the status. */ - -public struct AllOfTimerInfoDtoStatus: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfTrailerInfoRemoteSearchQuerySearchInfo.swift b/JellyfinPlayer/Swaggers/Models/AllOfTrailerInfoRemoteSearchQuerySearchInfo.swift deleted file mode 100644 index e2b1e9d4..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfTrailerInfoRemoteSearchQuerySearchInfo.swift +++ /dev/null @@ -1,57 +0,0 @@ -// -// AllOfTrailerInfoRemoteSearchQuerySearchInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfTrailerInfoRemoteSearchQuerySearchInfo: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the path. */ - public var path: String? - /** Gets or sets the metadata language. */ - public var metadataLanguage: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets the year. */ - public var year: Int? - public var indexNumber: Int? - public var parentIndexNumber: Int? - public var premiereDate: Date? - public var isAutomated: Bool? - - public init(name: String? = nil, path: String? = nil, metadataLanguage: String? = nil, metadataCountryCode: String? = nil, providerIds: [String:String]? = nil, year: Int? = nil, indexNumber: Int? = nil, parentIndexNumber: Int? = nil, premiereDate: Date? = nil, isAutomated: Bool? = nil) { - self.name = name - self.path = path - self.metadataLanguage = metadataLanguage - self.metadataCountryCode = metadataCountryCode - self.providerIds = providerIds - self.year = year - self.indexNumber = indexNumber - self.parentIndexNumber = parentIndexNumber - self.premiereDate = premiereDate - self.isAutomated = isAutomated - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case path = "Path" - case metadataLanguage = "MetadataLanguage" - case metadataCountryCode = "MetadataCountryCode" - case providerIds = "ProviderIds" - case year = "Year" - case indexNumber = "IndexNumber" - case parentIndexNumber = "ParentIndexNumber" - case premiereDate = "PremiereDate" - case isAutomated = "IsAutomated" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfTranscodingProfileContext.swift b/JellyfinPlayer/Swaggers/Models/AllOfTranscodingProfileContext.swift deleted file mode 100644 index b7a54963..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfTranscodingProfileContext.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// AllOfTranscodingProfileContext.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfTranscodingProfileContext: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfTranscodingProfileModelType.swift b/JellyfinPlayer/Swaggers/Models/AllOfTranscodingProfileModelType.swift deleted file mode 100644 index bb518e80..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfTranscodingProfileModelType.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// AllOfTranscodingProfileModelType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfTranscodingProfileModelType: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfTranscodingProfileTranscodeSeekInfo.swift b/JellyfinPlayer/Swaggers/Models/AllOfTranscodingProfileTranscodeSeekInfo.swift deleted file mode 100644 index c39a3827..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfTranscodingProfileTranscodeSeekInfo.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// AllOfTranscodingProfileTranscodeSeekInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfTranscodingProfileTranscodeSeekInfo: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfUpdateLibraryOptionsDtoLibraryOptions.swift b/JellyfinPlayer/Swaggers/Models/AllOfUpdateLibraryOptionsDtoLibraryOptions.swift deleted file mode 100644 index 5d5e8d21..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfUpdateLibraryOptionsDtoLibraryOptions.swift +++ /dev/null @@ -1,99 +0,0 @@ -// -// AllOfUpdateLibraryOptionsDtoLibraryOptions.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets library options. */ - -public struct AllOfUpdateLibraryOptionsDtoLibraryOptions: Codable { - - public var enablePhotos: Bool? - public var enableRealtimeMonitor: Bool? - public var enableChapterImageExtraction: Bool? - public var extractChapterImagesDuringLibraryScan: Bool? - public var pathInfos: [MediaPathInfo]? - public var saveLocalMetadata: Bool? - public var enableInternetProviders: Bool? - public var enableAutomaticSeriesGrouping: Bool? - public var enableEmbeddedTitles: Bool? - public var enableEmbeddedEpisodeInfos: Bool? - public var automaticRefreshIntervalDays: Int? - /** Gets or sets the preferred metadata language. */ - public var preferredMetadataLanguage: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - public var seasonZeroDisplayName: String? - public var metadataSavers: [String]? - public var disabledLocalMetadataReaders: [String]? - public var localMetadataReaderOrder: [String]? - public var disabledSubtitleFetchers: [String]? - public var subtitleFetcherOrder: [String]? - public var skipSubtitlesIfEmbeddedSubtitlesPresent: Bool? - public var skipSubtitlesIfAudioTrackMatches: Bool? - public var subtitleDownloadLanguages: [String]? - public var requirePerfectSubtitleMatch: Bool? - public var saveSubtitlesWithMedia: Bool? - public var typeOptions: [TypeOptions]? - - public init(enablePhotos: Bool? = nil, enableRealtimeMonitor: Bool? = nil, enableChapterImageExtraction: Bool? = nil, extractChapterImagesDuringLibraryScan: Bool? = nil, pathInfos: [MediaPathInfo]? = nil, saveLocalMetadata: Bool? = nil, enableInternetProviders: Bool? = nil, enableAutomaticSeriesGrouping: Bool? = nil, enableEmbeddedTitles: Bool? = nil, enableEmbeddedEpisodeInfos: Bool? = nil, automaticRefreshIntervalDays: Int? = nil, preferredMetadataLanguage: String? = nil, metadataCountryCode: String? = nil, seasonZeroDisplayName: String? = nil, metadataSavers: [String]? = nil, disabledLocalMetadataReaders: [String]? = nil, localMetadataReaderOrder: [String]? = nil, disabledSubtitleFetchers: [String]? = nil, subtitleFetcherOrder: [String]? = nil, skipSubtitlesIfEmbeddedSubtitlesPresent: Bool? = nil, skipSubtitlesIfAudioTrackMatches: Bool? = nil, subtitleDownloadLanguages: [String]? = nil, requirePerfectSubtitleMatch: Bool? = nil, saveSubtitlesWithMedia: Bool? = nil, typeOptions: [TypeOptions]? = nil) { - self.enablePhotos = enablePhotos - self.enableRealtimeMonitor = enableRealtimeMonitor - self.enableChapterImageExtraction = enableChapterImageExtraction - self.extractChapterImagesDuringLibraryScan = extractChapterImagesDuringLibraryScan - self.pathInfos = pathInfos - self.saveLocalMetadata = saveLocalMetadata - self.enableInternetProviders = enableInternetProviders - self.enableAutomaticSeriesGrouping = enableAutomaticSeriesGrouping - self.enableEmbeddedTitles = enableEmbeddedTitles - self.enableEmbeddedEpisodeInfos = enableEmbeddedEpisodeInfos - self.automaticRefreshIntervalDays = automaticRefreshIntervalDays - self.preferredMetadataLanguage = preferredMetadataLanguage - self.metadataCountryCode = metadataCountryCode - self.seasonZeroDisplayName = seasonZeroDisplayName - self.metadataSavers = metadataSavers - self.disabledLocalMetadataReaders = disabledLocalMetadataReaders - self.localMetadataReaderOrder = localMetadataReaderOrder - self.disabledSubtitleFetchers = disabledSubtitleFetchers - self.subtitleFetcherOrder = subtitleFetcherOrder - self.skipSubtitlesIfEmbeddedSubtitlesPresent = skipSubtitlesIfEmbeddedSubtitlesPresent - self.skipSubtitlesIfAudioTrackMatches = skipSubtitlesIfAudioTrackMatches - self.subtitleDownloadLanguages = subtitleDownloadLanguages - self.requirePerfectSubtitleMatch = requirePerfectSubtitleMatch - self.saveSubtitlesWithMedia = saveSubtitlesWithMedia - self.typeOptions = typeOptions - } - - public enum CodingKeys: String, CodingKey { - case enablePhotos = "EnablePhotos" - case enableRealtimeMonitor = "EnableRealtimeMonitor" - case enableChapterImageExtraction = "EnableChapterImageExtraction" - case extractChapterImagesDuringLibraryScan = "ExtractChapterImagesDuringLibraryScan" - case pathInfos = "PathInfos" - case saveLocalMetadata = "SaveLocalMetadata" - case enableInternetProviders = "EnableInternetProviders" - case enableAutomaticSeriesGrouping = "EnableAutomaticSeriesGrouping" - case enableEmbeddedTitles = "EnableEmbeddedTitles" - case enableEmbeddedEpisodeInfos = "EnableEmbeddedEpisodeInfos" - case automaticRefreshIntervalDays = "AutomaticRefreshIntervalDays" - case preferredMetadataLanguage = "PreferredMetadataLanguage" - case metadataCountryCode = "MetadataCountryCode" - case seasonZeroDisplayName = "SeasonZeroDisplayName" - case metadataSavers = "MetadataSavers" - case disabledLocalMetadataReaders = "DisabledLocalMetadataReaders" - case localMetadataReaderOrder = "LocalMetadataReaderOrder" - case disabledSubtitleFetchers = "DisabledSubtitleFetchers" - case subtitleFetcherOrder = "SubtitleFetcherOrder" - case skipSubtitlesIfEmbeddedSubtitlesPresent = "SkipSubtitlesIfEmbeddedSubtitlesPresent" - case skipSubtitlesIfAudioTrackMatches = "SkipSubtitlesIfAudioTrackMatches" - case subtitleDownloadLanguages = "SubtitleDownloadLanguages" - case requirePerfectSubtitleMatch = "RequirePerfectSubtitleMatch" - case saveSubtitlesWithMedia = "SaveSubtitlesWithMedia" - case typeOptions = "TypeOptions" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfUpdateMediaPathRequestDtoPathInfo.swift b/JellyfinPlayer/Swaggers/Models/AllOfUpdateMediaPathRequestDtoPathInfo.swift deleted file mode 100644 index 5b3dff44..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfUpdateMediaPathRequestDtoPathInfo.swift +++ /dev/null @@ -1,28 +0,0 @@ -// -// AllOfUpdateMediaPathRequestDtoPathInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets library folder path information. */ - -public struct AllOfUpdateMediaPathRequestDtoPathInfo: Codable { - - public var path: String? - public var networkPath: String? - - public init(path: String? = nil, networkPath: String? = nil) { - self.path = path - self.networkPath = networkPath - } - - public enum CodingKeys: String, CodingKey { - case path = "Path" - case networkPath = "NetworkPath" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfUserConfigurationSubtitleMode.swift b/JellyfinPlayer/Swaggers/Models/AllOfUserConfigurationSubtitleMode.swift deleted file mode 100644 index fb255316..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfUserConfigurationSubtitleMode.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfUserConfigurationSubtitleMode.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** An enum representing a subtitle playback mode. */ - -public struct AllOfUserConfigurationSubtitleMode: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfUserDtoConfiguration.swift b/JellyfinPlayer/Swaggers/Models/AllOfUserDtoConfiguration.swift deleted file mode 100644 index 617e113f..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfUserDtoConfiguration.swift +++ /dev/null @@ -1,71 +0,0 @@ -// -// AllOfUserDtoConfiguration.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the configuration. */ - -public struct AllOfUserDtoConfiguration: Codable { - - /** Gets or sets the audio language preference. */ - public var audioLanguagePreference: String? - /** Gets or sets a value indicating whether [play default audio track]. */ - public var playDefaultAudioTrack: Bool? - /** Gets or sets the subtitle language preference. */ - public var subtitleLanguagePreference: String? - public var displayMissingEpisodes: Bool? - public var groupedFolders: [String]? - /** An enum representing a subtitle playback mode. */ - public var subtitleMode: Any? - public var displayCollectionsView: Bool? - public var enableLocalPassword: Bool? - public var orderedViews: [String]? - public var latestItemsExcludes: [String]? - public var myMediaExcludes: [String]? - public var hidePlayedInLatest: Bool? - public var rememberAudioSelections: Bool? - public var rememberSubtitleSelections: Bool? - public var enableNextEpisodeAutoPlay: Bool? - - public init(audioLanguagePreference: String? = nil, playDefaultAudioTrack: Bool? = nil, subtitleLanguagePreference: String? = nil, displayMissingEpisodes: Bool? = nil, groupedFolders: [String]? = nil, subtitleMode: Any? = nil, displayCollectionsView: Bool? = nil, enableLocalPassword: Bool? = nil, orderedViews: [String]? = nil, latestItemsExcludes: [String]? = nil, myMediaExcludes: [String]? = nil, hidePlayedInLatest: Bool? = nil, rememberAudioSelections: Bool? = nil, rememberSubtitleSelections: Bool? = nil, enableNextEpisodeAutoPlay: Bool? = nil) { - self.audioLanguagePreference = audioLanguagePreference - self.playDefaultAudioTrack = playDefaultAudioTrack - self.subtitleLanguagePreference = subtitleLanguagePreference - self.displayMissingEpisodes = displayMissingEpisodes - self.groupedFolders = groupedFolders - self.subtitleMode = subtitleMode - self.displayCollectionsView = displayCollectionsView - self.enableLocalPassword = enableLocalPassword - self.orderedViews = orderedViews - self.latestItemsExcludes = latestItemsExcludes - self.myMediaExcludes = myMediaExcludes - self.hidePlayedInLatest = hidePlayedInLatest - self.rememberAudioSelections = rememberAudioSelections - self.rememberSubtitleSelections = rememberSubtitleSelections - self.enableNextEpisodeAutoPlay = enableNextEpisodeAutoPlay - } - - public enum CodingKeys: String, CodingKey { - case audioLanguagePreference = "AudioLanguagePreference" - case playDefaultAudioTrack = "PlayDefaultAudioTrack" - case subtitleLanguagePreference = "SubtitleLanguagePreference" - case displayMissingEpisodes = "DisplayMissingEpisodes" - case groupedFolders = "GroupedFolders" - case subtitleMode = "SubtitleMode" - case displayCollectionsView = "DisplayCollectionsView" - case enableLocalPassword = "EnableLocalPassword" - case orderedViews = "OrderedViews" - case latestItemsExcludes = "LatestItemsExcludes" - case myMediaExcludes = "MyMediaExcludes" - case hidePlayedInLatest = "HidePlayedInLatest" - case rememberAudioSelections = "RememberAudioSelections" - case rememberSubtitleSelections = "RememberSubtitleSelections" - case enableNextEpisodeAutoPlay = "EnableNextEpisodeAutoPlay" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfUserDtoPolicy.swift b/JellyfinPlayer/Swaggers/Models/AllOfUserDtoPolicy.swift deleted file mode 100644 index afa5a16d..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfUserDtoPolicy.swift +++ /dev/null @@ -1,145 +0,0 @@ -// -// AllOfUserDtoPolicy.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the policy. */ - -public struct AllOfUserDtoPolicy: Codable { - - /** Gets or sets a value indicating whether this instance is administrator. */ - public var isAdministrator: Bool? - /** Gets or sets a value indicating whether this instance is hidden. */ - public var isHidden: Bool? - /** Gets or sets a value indicating whether this instance is disabled. */ - public var isDisabled: Bool? - /** Gets or sets the max parental rating. */ - public var maxParentalRating: Int? - public var blockedTags: [String]? - public var enableUserPreferenceAccess: Bool? - public var accessSchedules: [AccessSchedule]? - public var blockUnratedItems: [UnratedItem]? - public var enableRemoteControlOfOtherUsers: Bool? - public var enableSharedDeviceControl: Bool? - public var enableRemoteAccess: Bool? - public var enableLiveTvManagement: Bool? - public var enableLiveTvAccess: Bool? - public var enableMediaPlayback: Bool? - public var enableAudioPlaybackTranscoding: Bool? - public var enableVideoPlaybackTranscoding: Bool? - public var enablePlaybackRemuxing: Bool? - public var forceRemoteSourceTranscoding: Bool? - public var enableContentDeletion: Bool? - public var enableContentDeletionFromFolders: [String]? - public var enableContentDownloading: Bool? - /** Gets or sets a value indicating whether [enable synchronize]. */ - public var enableSyncTranscoding: Bool? - public var enableMediaConversion: Bool? - public var enabledDevices: [String]? - public var enableAllDevices: Bool? - public var enabledChannels: [UUID]? - public var enableAllChannels: Bool? - public var enabledFolders: [UUID]? - public var enableAllFolders: Bool? - public var invalidLoginAttemptCount: Int? - public var loginAttemptsBeforeLockout: Int? - public var maxActiveSessions: Int? - public var enablePublicSharing: Bool? - public var blockedMediaFolders: [UUID]? - public var blockedChannels: [UUID]? - public var remoteClientBitrateLimit: Int? - public var authenticationProviderId: String? - public var passwordResetProviderId: String? - /** Enum SyncPlayUserAccessType. */ - public var syncPlayAccess: Any? - - public init(isAdministrator: Bool? = nil, isHidden: Bool? = nil, isDisabled: Bool? = nil, maxParentalRating: Int? = nil, blockedTags: [String]? = nil, enableUserPreferenceAccess: Bool? = nil, accessSchedules: [AccessSchedule]? = nil, blockUnratedItems: [UnratedItem]? = nil, enableRemoteControlOfOtherUsers: Bool? = nil, enableSharedDeviceControl: Bool? = nil, enableRemoteAccess: Bool? = nil, enableLiveTvManagement: Bool? = nil, enableLiveTvAccess: Bool? = nil, enableMediaPlayback: Bool? = nil, enableAudioPlaybackTranscoding: Bool? = nil, enableVideoPlaybackTranscoding: Bool? = nil, enablePlaybackRemuxing: Bool? = nil, forceRemoteSourceTranscoding: Bool? = nil, enableContentDeletion: Bool? = nil, enableContentDeletionFromFolders: [String]? = nil, enableContentDownloading: Bool? = nil, enableSyncTranscoding: Bool? = nil, enableMediaConversion: Bool? = nil, enabledDevices: [String]? = nil, enableAllDevices: Bool? = nil, enabledChannels: [UUID]? = nil, enableAllChannels: Bool? = nil, enabledFolders: [UUID]? = nil, enableAllFolders: Bool? = nil, invalidLoginAttemptCount: Int? = nil, loginAttemptsBeforeLockout: Int? = nil, maxActiveSessions: Int? = nil, enablePublicSharing: Bool? = nil, blockedMediaFolders: [UUID]? = nil, blockedChannels: [UUID]? = nil, remoteClientBitrateLimit: Int? = nil, authenticationProviderId: String? = nil, passwordResetProviderId: String? = nil, syncPlayAccess: Any? = nil) { - self.isAdministrator = isAdministrator - self.isHidden = isHidden - self.isDisabled = isDisabled - self.maxParentalRating = maxParentalRating - self.blockedTags = blockedTags - self.enableUserPreferenceAccess = enableUserPreferenceAccess - self.accessSchedules = accessSchedules - self.blockUnratedItems = blockUnratedItems - self.enableRemoteControlOfOtherUsers = enableRemoteControlOfOtherUsers - self.enableSharedDeviceControl = enableSharedDeviceControl - self.enableRemoteAccess = enableRemoteAccess - self.enableLiveTvManagement = enableLiveTvManagement - self.enableLiveTvAccess = enableLiveTvAccess - self.enableMediaPlayback = enableMediaPlayback - self.enableAudioPlaybackTranscoding = enableAudioPlaybackTranscoding - self.enableVideoPlaybackTranscoding = enableVideoPlaybackTranscoding - self.enablePlaybackRemuxing = enablePlaybackRemuxing - self.forceRemoteSourceTranscoding = forceRemoteSourceTranscoding - self.enableContentDeletion = enableContentDeletion - self.enableContentDeletionFromFolders = enableContentDeletionFromFolders - self.enableContentDownloading = enableContentDownloading - self.enableSyncTranscoding = enableSyncTranscoding - self.enableMediaConversion = enableMediaConversion - self.enabledDevices = enabledDevices - self.enableAllDevices = enableAllDevices - self.enabledChannels = enabledChannels - self.enableAllChannels = enableAllChannels - self.enabledFolders = enabledFolders - self.enableAllFolders = enableAllFolders - self.invalidLoginAttemptCount = invalidLoginAttemptCount - self.loginAttemptsBeforeLockout = loginAttemptsBeforeLockout - self.maxActiveSessions = maxActiveSessions - self.enablePublicSharing = enablePublicSharing - self.blockedMediaFolders = blockedMediaFolders - self.blockedChannels = blockedChannels - self.remoteClientBitrateLimit = remoteClientBitrateLimit - self.authenticationProviderId = authenticationProviderId - self.passwordResetProviderId = passwordResetProviderId - self.syncPlayAccess = syncPlayAccess - } - - public enum CodingKeys: String, CodingKey { - case isAdministrator = "IsAdministrator" - case isHidden = "IsHidden" - case isDisabled = "IsDisabled" - case maxParentalRating = "MaxParentalRating" - case blockedTags = "BlockedTags" - case enableUserPreferenceAccess = "EnableUserPreferenceAccess" - case accessSchedules = "AccessSchedules" - case blockUnratedItems = "BlockUnratedItems" - case enableRemoteControlOfOtherUsers = "EnableRemoteControlOfOtherUsers" - case enableSharedDeviceControl = "EnableSharedDeviceControl" - case enableRemoteAccess = "EnableRemoteAccess" - case enableLiveTvManagement = "EnableLiveTvManagement" - case enableLiveTvAccess = "EnableLiveTvAccess" - case enableMediaPlayback = "EnableMediaPlayback" - case enableAudioPlaybackTranscoding = "EnableAudioPlaybackTranscoding" - case enableVideoPlaybackTranscoding = "EnableVideoPlaybackTranscoding" - case enablePlaybackRemuxing = "EnablePlaybackRemuxing" - case forceRemoteSourceTranscoding = "ForceRemoteSourceTranscoding" - case enableContentDeletion = "EnableContentDeletion" - case enableContentDeletionFromFolders = "EnableContentDeletionFromFolders" - case enableContentDownloading = "EnableContentDownloading" - case enableSyncTranscoding = "EnableSyncTranscoding" - case enableMediaConversion = "EnableMediaConversion" - case enabledDevices = "EnabledDevices" - case enableAllDevices = "EnableAllDevices" - case enabledChannels = "EnabledChannels" - case enableAllChannels = "EnableAllChannels" - case enabledFolders = "EnabledFolders" - case enableAllFolders = "EnableAllFolders" - case invalidLoginAttemptCount = "InvalidLoginAttemptCount" - case loginAttemptsBeforeLockout = "LoginAttemptsBeforeLockout" - case maxActiveSessions = "MaxActiveSessions" - case enablePublicSharing = "EnablePublicSharing" - case blockedMediaFolders = "BlockedMediaFolders" - case blockedChannels = "BlockedChannels" - case remoteClientBitrateLimit = "RemoteClientBitrateLimit" - case authenticationProviderId = "AuthenticationProviderId" - case passwordResetProviderId = "PasswordResetProviderId" - case syncPlayAccess = "SyncPlayAccess" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfUserPolicySyncPlayAccess.swift b/JellyfinPlayer/Swaggers/Models/AllOfUserPolicySyncPlayAccess.swift deleted file mode 100644 index 86c44bca..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfUserPolicySyncPlayAccess.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfUserPolicySyncPlayAccess.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Enum SyncPlayUserAccessType. */ - -public struct AllOfUserPolicySyncPlayAccess: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfVersionInfoVersionNumber.swift b/JellyfinPlayer/Swaggers/Models/AllOfVersionInfoVersionNumber.swift deleted file mode 100644 index 8f1b0717..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfVersionInfoVersionNumber.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// AllOfVersionInfoVersionNumber.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets the version as a System.Version. */ - -public struct AllOfVersionInfoVersionNumber: Codable { - - public var major: Int? - public var minor: Int? - public var build: Int? - public var revision: Int? - public var majorRevision: Int? - public var minorRevision: Int? - - public init(major: Int? = nil, minor: Int? = nil, build: Int? = nil, revision: Int? = nil, majorRevision: Int? = nil, minorRevision: Int? = nil) { - self.major = major - self.minor = minor - self.build = build - self.revision = revision - self.majorRevision = majorRevision - self.minorRevision = minorRevision - } - - public enum CodingKeys: String, CodingKey { - case major = "Major" - case minor = "Minor" - case build = "Build" - case revision = "Revision" - case majorRevision = "MajorRevision" - case minorRevision = "MinorRevision" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfVirtualFolderInfoCollectionType.swift b/JellyfinPlayer/Swaggers/Models/AllOfVirtualFolderInfoCollectionType.swift deleted file mode 100644 index 2f96d665..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfVirtualFolderInfoCollectionType.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AllOfVirtualFolderInfoCollectionType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the type of the collection. */ - -public struct AllOfVirtualFolderInfoCollectionType: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllOfVirtualFolderInfoLibraryOptions.swift b/JellyfinPlayer/Swaggers/Models/AllOfVirtualFolderInfoLibraryOptions.swift deleted file mode 100644 index 5f461754..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllOfVirtualFolderInfoLibraryOptions.swift +++ /dev/null @@ -1,98 +0,0 @@ -// -// AllOfVirtualFolderInfoLibraryOptions.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllOfVirtualFolderInfoLibraryOptions: Codable { - - public var enablePhotos: Bool? - public var enableRealtimeMonitor: Bool? - public var enableChapterImageExtraction: Bool? - public var extractChapterImagesDuringLibraryScan: Bool? - public var pathInfos: [MediaPathInfo]? - public var saveLocalMetadata: Bool? - public var enableInternetProviders: Bool? - public var enableAutomaticSeriesGrouping: Bool? - public var enableEmbeddedTitles: Bool? - public var enableEmbeddedEpisodeInfos: Bool? - public var automaticRefreshIntervalDays: Int? - /** Gets or sets the preferred metadata language. */ - public var preferredMetadataLanguage: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - public var seasonZeroDisplayName: String? - public var metadataSavers: [String]? - public var disabledLocalMetadataReaders: [String]? - public var localMetadataReaderOrder: [String]? - public var disabledSubtitleFetchers: [String]? - public var subtitleFetcherOrder: [String]? - public var skipSubtitlesIfEmbeddedSubtitlesPresent: Bool? - public var skipSubtitlesIfAudioTrackMatches: Bool? - public var subtitleDownloadLanguages: [String]? - public var requirePerfectSubtitleMatch: Bool? - public var saveSubtitlesWithMedia: Bool? - public var typeOptions: [TypeOptions]? - - public init(enablePhotos: Bool? = nil, enableRealtimeMonitor: Bool? = nil, enableChapterImageExtraction: Bool? = nil, extractChapterImagesDuringLibraryScan: Bool? = nil, pathInfos: [MediaPathInfo]? = nil, saveLocalMetadata: Bool? = nil, enableInternetProviders: Bool? = nil, enableAutomaticSeriesGrouping: Bool? = nil, enableEmbeddedTitles: Bool? = nil, enableEmbeddedEpisodeInfos: Bool? = nil, automaticRefreshIntervalDays: Int? = nil, preferredMetadataLanguage: String? = nil, metadataCountryCode: String? = nil, seasonZeroDisplayName: String? = nil, metadataSavers: [String]? = nil, disabledLocalMetadataReaders: [String]? = nil, localMetadataReaderOrder: [String]? = nil, disabledSubtitleFetchers: [String]? = nil, subtitleFetcherOrder: [String]? = nil, skipSubtitlesIfEmbeddedSubtitlesPresent: Bool? = nil, skipSubtitlesIfAudioTrackMatches: Bool? = nil, subtitleDownloadLanguages: [String]? = nil, requirePerfectSubtitleMatch: Bool? = nil, saveSubtitlesWithMedia: Bool? = nil, typeOptions: [TypeOptions]? = nil) { - self.enablePhotos = enablePhotos - self.enableRealtimeMonitor = enableRealtimeMonitor - self.enableChapterImageExtraction = enableChapterImageExtraction - self.extractChapterImagesDuringLibraryScan = extractChapterImagesDuringLibraryScan - self.pathInfos = pathInfos - self.saveLocalMetadata = saveLocalMetadata - self.enableInternetProviders = enableInternetProviders - self.enableAutomaticSeriesGrouping = enableAutomaticSeriesGrouping - self.enableEmbeddedTitles = enableEmbeddedTitles - self.enableEmbeddedEpisodeInfos = enableEmbeddedEpisodeInfos - self.automaticRefreshIntervalDays = automaticRefreshIntervalDays - self.preferredMetadataLanguage = preferredMetadataLanguage - self.metadataCountryCode = metadataCountryCode - self.seasonZeroDisplayName = seasonZeroDisplayName - self.metadataSavers = metadataSavers - self.disabledLocalMetadataReaders = disabledLocalMetadataReaders - self.localMetadataReaderOrder = localMetadataReaderOrder - self.disabledSubtitleFetchers = disabledSubtitleFetchers - self.subtitleFetcherOrder = subtitleFetcherOrder - self.skipSubtitlesIfEmbeddedSubtitlesPresent = skipSubtitlesIfEmbeddedSubtitlesPresent - self.skipSubtitlesIfAudioTrackMatches = skipSubtitlesIfAudioTrackMatches - self.subtitleDownloadLanguages = subtitleDownloadLanguages - self.requirePerfectSubtitleMatch = requirePerfectSubtitleMatch - self.saveSubtitlesWithMedia = saveSubtitlesWithMedia - self.typeOptions = typeOptions - } - - public enum CodingKeys: String, CodingKey { - case enablePhotos = "EnablePhotos" - case enableRealtimeMonitor = "EnableRealtimeMonitor" - case enableChapterImageExtraction = "EnableChapterImageExtraction" - case extractChapterImagesDuringLibraryScan = "ExtractChapterImagesDuringLibraryScan" - case pathInfos = "PathInfos" - case saveLocalMetadata = "SaveLocalMetadata" - case enableInternetProviders = "EnableInternetProviders" - case enableAutomaticSeriesGrouping = "EnableAutomaticSeriesGrouping" - case enableEmbeddedTitles = "EnableEmbeddedTitles" - case enableEmbeddedEpisodeInfos = "EnableEmbeddedEpisodeInfos" - case automaticRefreshIntervalDays = "AutomaticRefreshIntervalDays" - case preferredMetadataLanguage = "PreferredMetadataLanguage" - case metadataCountryCode = "MetadataCountryCode" - case seasonZeroDisplayName = "SeasonZeroDisplayName" - case metadataSavers = "MetadataSavers" - case disabledLocalMetadataReaders = "DisabledLocalMetadataReaders" - case localMetadataReaderOrder = "LocalMetadataReaderOrder" - case disabledSubtitleFetchers = "DisabledSubtitleFetchers" - case subtitleFetcherOrder = "SubtitleFetcherOrder" - case skipSubtitlesIfEmbeddedSubtitlesPresent = "SkipSubtitlesIfEmbeddedSubtitlesPresent" - case skipSubtitlesIfAudioTrackMatches = "SkipSubtitlesIfAudioTrackMatches" - case subtitleDownloadLanguages = "SubtitleDownloadLanguages" - case requirePerfectSubtitleMatch = "RequirePerfectSubtitleMatch" - case saveSubtitlesWithMedia = "SaveSubtitlesWithMedia" - case typeOptions = "TypeOptions" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AllThemeMediaResult.swift b/JellyfinPlayer/Swaggers/Models/AllThemeMediaResult.swift deleted file mode 100644 index 813cd353..00000000 --- a/JellyfinPlayer/Swaggers/Models/AllThemeMediaResult.swift +++ /dev/null @@ -1,33 +0,0 @@ -// -// AllThemeMediaResult.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AllThemeMediaResult: Codable { - - /** Class ThemeMediaResult. */ - public var themeVideosResult: AllOfAllThemeMediaResultThemeVideosResult? - /** Class ThemeMediaResult. */ - public var themeSongsResult: AllOfAllThemeMediaResultThemeSongsResult? - /** Class ThemeMediaResult. */ - public var soundtrackSongsResult: AllOfAllThemeMediaResultSoundtrackSongsResult? - - public init(themeVideosResult: AllOfAllThemeMediaResultThemeVideosResult? = nil, themeSongsResult: AllOfAllThemeMediaResultThemeSongsResult? = nil, soundtrackSongsResult: AllOfAllThemeMediaResultSoundtrackSongsResult? = nil) { - self.themeVideosResult = themeVideosResult - self.themeSongsResult = themeSongsResult - self.soundtrackSongsResult = soundtrackSongsResult - } - - public enum CodingKeys: String, CodingKey { - case themeVideosResult = "ThemeVideosResult" - case themeSongsResult = "ThemeSongsResult" - case soundtrackSongsResult = "SoundtrackSongsResult" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ApplyItemIdBody.swift b/JellyfinPlayer/Swaggers/Models/ApplyItemIdBody.swift deleted file mode 100644 index 623a7923..00000000 --- a/JellyfinPlayer/Swaggers/Models/ApplyItemIdBody.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// ApplyItemIdBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The remote search result. */ - -public struct ApplyItemIdBody: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets the year. */ - public var productionYear: Int? - public var indexNumber: Int? - public var indexNumberEnd: Int? - public var parentIndexNumber: Int? - public var premiereDate: Date? - public var imageUrl: String? - public var searchProviderName: String? - public var overview: String? - public var albumArtist: Any? - public var artists: [RemoteSearchResult]? - - public init(name: String? = nil, providerIds: [String:String]? = nil, productionYear: Int? = nil, indexNumber: Int? = nil, indexNumberEnd: Int? = nil, parentIndexNumber: Int? = nil, premiereDate: Date? = nil, imageUrl: String? = nil, searchProviderName: String? = nil, overview: String? = nil, albumArtist: Any? = nil, artists: [RemoteSearchResult]? = nil) { - self.name = name - self.providerIds = providerIds - self.productionYear = productionYear - self.indexNumber = indexNumber - self.indexNumberEnd = indexNumberEnd - self.parentIndexNumber = parentIndexNumber - self.premiereDate = premiereDate - self.imageUrl = imageUrl - self.searchProviderName = searchProviderName - self.overview = overview - self.albumArtist = albumArtist - self.artists = artists - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case providerIds = "ProviderIds" - case productionYear = "ProductionYear" - case indexNumber = "IndexNumber" - case indexNumberEnd = "IndexNumberEnd" - case parentIndexNumber = "ParentIndexNumber" - case premiereDate = "PremiereDate" - case imageUrl = "ImageUrl" - case searchProviderName = "SearchProviderName" - case overview = "Overview" - case albumArtist = "AlbumArtist" - case artists = "Artists" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ApplyItemIdBody1.swift b/JellyfinPlayer/Swaggers/Models/ApplyItemIdBody1.swift deleted file mode 100644 index 655e3107..00000000 --- a/JellyfinPlayer/Swaggers/Models/ApplyItemIdBody1.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// ApplyItemIdBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The remote search result. */ - -public struct ApplyItemIdBody1: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets the year. */ - public var productionYear: Int? - public var indexNumber: Int? - public var indexNumberEnd: Int? - public var parentIndexNumber: Int? - public var premiereDate: Date? - public var imageUrl: String? - public var searchProviderName: String? - public var overview: String? - public var albumArtist: Any? - public var artists: [RemoteSearchResult]? - - public init(name: String? = nil, providerIds: [String:String]? = nil, productionYear: Int? = nil, indexNumber: Int? = nil, indexNumberEnd: Int? = nil, parentIndexNumber: Int? = nil, premiereDate: Date? = nil, imageUrl: String? = nil, searchProviderName: String? = nil, overview: String? = nil, albumArtist: Any? = nil, artists: [RemoteSearchResult]? = nil) { - self.name = name - self.providerIds = providerIds - self.productionYear = productionYear - self.indexNumber = indexNumber - self.indexNumberEnd = indexNumberEnd - self.parentIndexNumber = parentIndexNumber - self.premiereDate = premiereDate - self.imageUrl = imageUrl - self.searchProviderName = searchProviderName - self.overview = overview - self.albumArtist = albumArtist - self.artists = artists - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case providerIds = "ProviderIds" - case productionYear = "ProductionYear" - case indexNumber = "IndexNumber" - case indexNumberEnd = "IndexNumberEnd" - case parentIndexNumber = "ParentIndexNumber" - case premiereDate = "PremiereDate" - case imageUrl = "ImageUrl" - case searchProviderName = "SearchProviderName" - case overview = "Overview" - case albumArtist = "AlbumArtist" - case artists = "Artists" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ApplyItemIdBody2.swift b/JellyfinPlayer/Swaggers/Models/ApplyItemIdBody2.swift deleted file mode 100644 index 9038a3d9..00000000 --- a/JellyfinPlayer/Swaggers/Models/ApplyItemIdBody2.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// ApplyItemIdBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The remote search result. */ - -public struct ApplyItemIdBody2: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets the year. */ - public var productionYear: Int? - public var indexNumber: Int? - public var indexNumberEnd: Int? - public var parentIndexNumber: Int? - public var premiereDate: Date? - public var imageUrl: String? - public var searchProviderName: String? - public var overview: String? - public var albumArtist: Any? - public var artists: [RemoteSearchResult]? - - public init(name: String? = nil, providerIds: [String:String]? = nil, productionYear: Int? = nil, indexNumber: Int? = nil, indexNumberEnd: Int? = nil, parentIndexNumber: Int? = nil, premiereDate: Date? = nil, imageUrl: String? = nil, searchProviderName: String? = nil, overview: String? = nil, albumArtist: Any? = nil, artists: [RemoteSearchResult]? = nil) { - self.name = name - self.providerIds = providerIds - self.productionYear = productionYear - self.indexNumber = indexNumber - self.indexNumberEnd = indexNumberEnd - self.parentIndexNumber = parentIndexNumber - self.premiereDate = premiereDate - self.imageUrl = imageUrl - self.searchProviderName = searchProviderName - self.overview = overview - self.albumArtist = albumArtist - self.artists = artists - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case providerIds = "ProviderIds" - case productionYear = "ProductionYear" - case indexNumber = "IndexNumber" - case indexNumberEnd = "IndexNumberEnd" - case parentIndexNumber = "ParentIndexNumber" - case premiereDate = "PremiereDate" - case imageUrl = "ImageUrl" - case searchProviderName = "SearchProviderName" - case overview = "Overview" - case albumArtist = "AlbumArtist" - case artists = "Artists" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/Architecture.swift b/JellyfinPlayer/Swaggers/Models/Architecture.swift deleted file mode 100644 index 3084157d..00000000 --- a/JellyfinPlayer/Swaggers/Models/Architecture.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// Architecture.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum Architecture: String, Codable { - case x86 = "X86" - case x64 = "X64" - case arm = "Arm" - case arm64 = "Arm64" - case wasm = "Wasm" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/ArtistInfo.swift b/JellyfinPlayer/Swaggers/Models/ArtistInfo.swift deleted file mode 100644 index cc83f0ed..00000000 --- a/JellyfinPlayer/Swaggers/Models/ArtistInfo.swift +++ /dev/null @@ -1,60 +0,0 @@ -// -// ArtistInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct ArtistInfo: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the path. */ - public var path: String? - /** Gets or sets the metadata language. */ - public var metadataLanguage: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets the year. */ - public var year: Int? - public var indexNumber: Int? - public var parentIndexNumber: Int? - public var premiereDate: Date? - public var isAutomated: Bool? - public var songInfos: [SongInfo]? - - public init(name: String? = nil, path: String? = nil, metadataLanguage: String? = nil, metadataCountryCode: String? = nil, providerIds: [String:String]? = nil, year: Int? = nil, indexNumber: Int? = nil, parentIndexNumber: Int? = nil, premiereDate: Date? = nil, isAutomated: Bool? = nil, songInfos: [SongInfo]? = nil) { - self.name = name - self.path = path - self.metadataLanguage = metadataLanguage - self.metadataCountryCode = metadataCountryCode - self.providerIds = providerIds - self.year = year - self.indexNumber = indexNumber - self.parentIndexNumber = parentIndexNumber - self.premiereDate = premiereDate - self.isAutomated = isAutomated - self.songInfos = songInfos - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case path = "Path" - case metadataLanguage = "MetadataLanguage" - case metadataCountryCode = "MetadataCountryCode" - case providerIds = "ProviderIds" - case year = "Year" - case indexNumber = "IndexNumber" - case parentIndexNumber = "ParentIndexNumber" - case premiereDate = "PremiereDate" - case isAutomated = "IsAutomated" - case songInfos = "SongInfos" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ArtistInfoRemoteSearchQuery.swift b/JellyfinPlayer/Swaggers/Models/ArtistInfoRemoteSearchQuery.swift deleted file mode 100644 index ee81b6a6..00000000 --- a/JellyfinPlayer/Swaggers/Models/ArtistInfoRemoteSearchQuery.swift +++ /dev/null @@ -1,35 +0,0 @@ -// -// ArtistInfoRemoteSearchQuery.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct ArtistInfoRemoteSearchQuery: Codable { - - public var searchInfo: AllOfArtistInfoRemoteSearchQuerySearchInfo? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: AllOfArtistInfoRemoteSearchQuerySearchInfo? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AuthenticateUserByName.swift b/JellyfinPlayer/Swaggers/Models/AuthenticateUserByName.swift deleted file mode 100644 index bd62ba82..00000000 --- a/JellyfinPlayer/Swaggers/Models/AuthenticateUserByName.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// AuthenticateUserByName.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The authenticate user by name request body. */ - -public struct AuthenticateUserByName: Codable { - - /** Gets or sets the username. */ - public var username: String? - /** Gets or sets the plain text password. */ - public var pw: String? - /** Gets or sets the sha1-hashed password. */ - public var password: String? - - public init(username: String? = nil, pw: String? = nil, password: String? = nil) { - self.username = username - self.pw = pw - self.password = password - } - - public enum CodingKeys: String, CodingKey { - case username = "Username" - case pw = "Pw" - case password = "Password" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AuthenticationInfo.swift b/JellyfinPlayer/Swaggers/Models/AuthenticationInfo.swift deleted file mode 100644 index eb2adf3d..00000000 --- a/JellyfinPlayer/Swaggers/Models/AuthenticationInfo.swift +++ /dev/null @@ -1,67 +0,0 @@ -// -// AuthenticationInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AuthenticationInfo: Codable { - - /** Gets or sets the identifier. */ - public var _id: Int64? - /** Gets or sets the access token. */ - public var accessToken: String? - /** Gets or sets the device identifier. */ - public var deviceId: String? - /** Gets or sets the name of the application. */ - public var appName: String? - /** Gets or sets the application version. */ - public var appVersion: String? - /** Gets or sets the name of the device. */ - public var deviceName: String? - /** Gets or sets the user identifier. */ - public var userId: UUID? - /** Gets or sets a value indicating whether this instance is active. */ - public var isActive: Bool? - /** Gets or sets the date created. */ - public var dateCreated: Date? - /** Gets or sets the date revoked. */ - public var dateRevoked: Date? - public var dateLastActivity: Date? - public var userName: String? - - public init(_id: Int64? = nil, accessToken: String? = nil, deviceId: String? = nil, appName: String? = nil, appVersion: String? = nil, deviceName: String? = nil, userId: UUID? = nil, isActive: Bool? = nil, dateCreated: Date? = nil, dateRevoked: Date? = nil, dateLastActivity: Date? = nil, userName: String? = nil) { - self._id = _id - self.accessToken = accessToken - self.deviceId = deviceId - self.appName = appName - self.appVersion = appVersion - self.deviceName = deviceName - self.userId = userId - self.isActive = isActive - self.dateCreated = dateCreated - self.dateRevoked = dateRevoked - self.dateLastActivity = dateLastActivity - self.userName = userName - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case accessToken = "AccessToken" - case deviceId = "DeviceId" - case appName = "AppName" - case appVersion = "AppVersion" - case deviceName = "DeviceName" - case userId = "UserId" - case isActive = "IsActive" - case dateCreated = "DateCreated" - case dateRevoked = "DateRevoked" - case dateLastActivity = "DateLastActivity" - case userName = "UserName" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AuthenticationInfoQueryResult.swift b/JellyfinPlayer/Swaggers/Models/AuthenticationInfoQueryResult.swift deleted file mode 100644 index 299d9176..00000000 --- a/JellyfinPlayer/Swaggers/Models/AuthenticationInfoQueryResult.swift +++ /dev/null @@ -1,33 +0,0 @@ -// -// AuthenticationInfoQueryResult.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AuthenticationInfoQueryResult: Codable { - - /** Gets or sets the items. */ - public var items: [AuthenticationInfo]? - /** The total number of records available. */ - public var totalRecordCount: Int? - /** The index of the first record in Items. */ - public var startIndex: Int? - - public init(items: [AuthenticationInfo]? = nil, totalRecordCount: Int? = nil, startIndex: Int? = nil) { - self.items = items - self.totalRecordCount = totalRecordCount - self.startIndex = startIndex - } - - public enum CodingKeys: String, CodingKey { - case items = "Items" - case totalRecordCount = "TotalRecordCount" - case startIndex = "StartIndex" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/AuthenticationResult.swift b/JellyfinPlayer/Swaggers/Models/AuthenticationResult.swift deleted file mode 100644 index 1e98388c..00000000 --- a/JellyfinPlayer/Swaggers/Models/AuthenticationResult.swift +++ /dev/null @@ -1,35 +0,0 @@ -// -// AuthenticationResult.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct AuthenticationResult: Codable { - - /** Class UserDto. */ - public var user: AllOfAuthenticationResultUser? - /** Class SessionInfo. */ - public var sessionInfo: AllOfAuthenticationResultSessionInfo? - public var accessToken: String? - public var serverId: String? - - public init(user: AllOfAuthenticationResultUser? = nil, sessionInfo: AllOfAuthenticationResultSessionInfo? = nil, accessToken: String? = nil, serverId: String? = nil) { - self.user = user - self.sessionInfo = sessionInfo - self.accessToken = accessToken - self.serverId = serverId - } - - public enum CodingKeys: String, CodingKey { - case user = "User" - case sessionInfo = "SessionInfo" - case accessToken = "AccessToken" - case serverId = "ServerId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/BaseItem.swift b/JellyfinPlayer/Swaggers/Models/BaseItem.swift deleted file mode 100644 index e37d553c..00000000 --- a/JellyfinPlayer/Swaggers/Models/BaseItem.swift +++ /dev/null @@ -1,56 +0,0 @@ -// -// BaseItem.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class BaseItem. */ - -public struct BaseItem: Codable { - - public var size: Int64? - public var container: String? - public var dateLastSaved: Date? - /** Gets or sets the remote trailers. */ - public var remoteTrailers: [MediaUrl]? - public var isHD: Bool? - public var isShortcut: Bool? - public var shortcutPath: String? - public var width: Int? - public var height: Int? - public var extraIds: [UUID]? - public var supportsExternalTransfer: Bool? - - public init(size: Int64? = nil, container: String? = nil, dateLastSaved: Date? = nil, remoteTrailers: [MediaUrl]? = nil, isHD: Bool? = nil, isShortcut: Bool? = nil, shortcutPath: String? = nil, width: Int? = nil, height: Int? = nil, extraIds: [UUID]? = nil, supportsExternalTransfer: Bool? = nil) { - self.size = size - self.container = container - self.dateLastSaved = dateLastSaved - self.remoteTrailers = remoteTrailers - self.isHD = isHD - self.isShortcut = isShortcut - self.shortcutPath = shortcutPath - self.width = width - self.height = height - self.extraIds = extraIds - self.supportsExternalTransfer = supportsExternalTransfer - } - - public enum CodingKeys: String, CodingKey { - case size = "Size" - case container = "Container" - case dateLastSaved = "DateLastSaved" - case remoteTrailers = "RemoteTrailers" - case isHD = "IsHD" - case isShortcut = "IsShortcut" - case shortcutPath = "ShortcutPath" - case width = "Width" - case height = "Height" - case extraIds = "ExtraIds" - case supportsExternalTransfer = "SupportsExternalTransfer" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/BaseItemDto.swift b/JellyfinPlayer/Swaggers/Models/BaseItemDto.swift deleted file mode 100644 index 1e08cccd..00000000 --- a/JellyfinPlayer/Swaggers/Models/BaseItemDto.swift +++ /dev/null @@ -1,590 +0,0 @@ -// -// BaseItemDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** This is strictly used as a data transfer object from the api layer. This holds information about a BaseItem in a format that is convenient for the client. */ - -public struct BaseItemDto: Codable { - - /** Gets or sets the name. */ - public var name: String? - public var originalTitle: String? - /** Gets or sets the server identifier. */ - public var serverId: String? - /** Gets or sets the id. */ - public var _id: UUID? - /** Gets or sets the etag. */ - public var etag: String? - /** Gets or sets the type of the source. */ - public var sourceType: String? - /** Gets or sets the playlist item identifier. */ - public var playlistItemId: String? - /** Gets or sets the date created. */ - public var dateCreated: Date? - public var dateLastMediaAdded: Date? - public var extraType: String? - public var airsBeforeSeasonNumber: Int? - public var airsAfterSeasonNumber: Int? - public var airsBeforeEpisodeNumber: Int? - public var canDelete: Bool? - public var canDownload: Bool? - public var hasSubtitles: Bool? - public var preferredMetadataLanguage: String? - public var preferredMetadataCountryCode: String? - /** Gets or sets a value indicating whether [supports synchronize]. */ - public var supportsSync: Bool? - public var container: String? - /** Gets or sets the name of the sort. */ - public var sortName: String? - public var forcedSortName: String? - /** Gets or sets the video3 D format. */ - public var video3DFormat: AllOfBaseItemDtoVideo3DFormat? - /** Gets or sets the premiere date. */ - public var premiereDate: Date? - /** Gets or sets the external urls. */ - public var externalUrls: [ExternalUrl]? - /** Gets or sets the media versions. */ - public var mediaSources: [MediaSourceInfo]? - /** Gets or sets the critic rating. */ - public var criticRating: Float? - public var productionLocations: [String]? - /** Gets or sets the path. */ - public var path: String? - public var enableMediaSourceDisplay: Bool? - /** Gets or sets the official rating. */ - public var officialRating: String? - /** Gets or sets the custom rating. */ - public var customRating: String? - /** Gets or sets the channel identifier. */ - public var channelId: UUID? - public var channelName: String? - /** Gets or sets the overview. */ - public var overview: String? - /** Gets or sets the taglines. */ - public var taglines: [String]? - /** Gets or sets the genres. */ - public var genres: [String]? - /** Gets or sets the community rating. */ - public var communityRating: Float? - /** Gets or sets the cumulative run time ticks. */ - public var cumulativeRunTimeTicks: Int64? - /** Gets or sets the run time ticks. */ - public var runTimeTicks: Int64? - /** Gets or sets the play access. */ - public var playAccess: AllOfBaseItemDtoPlayAccess? - /** Gets or sets the aspect ratio. */ - public var aspectRatio: String? - /** Gets or sets the production year. */ - public var productionYear: Int? - /** Gets or sets a value indicating whether this instance is place holder. */ - public var isPlaceHolder: Bool? - /** Gets or sets the number. */ - public var number: String? - public var channelNumber: String? - /** Gets or sets the index number. */ - public var indexNumber: Int? - /** Gets or sets the index number end. */ - public var indexNumberEnd: Int? - /** Gets or sets the parent index number. */ - public var parentIndexNumber: Int? - /** Gets or sets the trailer urls. */ - public var remoteTrailers: [MediaUrl]? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets a value indicating whether this instance is HD. */ - public var isHD: Bool? - /** Gets or sets a value indicating whether this instance is folder. */ - public var isFolder: Bool? - /** Gets or sets the parent id. */ - public var parentId: UUID? - /** Gets or sets the type. */ - public var type: String? - /** Gets or sets the people. */ - public var people: [BaseItemPerson]? - /** Gets or sets the studios. */ - public var studios: [NameGuidPair]? - public var genreItems: [NameGuidPair]? - /** If the item does not have a logo, this will hold the Id of the Parent that has one. */ - public var parentLogoItemId: String? - /** If the item does not have any backdrops, this will hold the Id of the Parent that has one. */ - public var parentBackdropItemId: String? - /** Gets or sets the parent backdrop image tags. */ - public var parentBackdropImageTags: [String]? - /** Gets or sets the local trailer count. */ - public var localTrailerCount: Int? - /** User data for this item based on the user it's being requested for. */ - public var userData: AllOfBaseItemDtoUserData? - /** Gets or sets the recursive item count. */ - public var recursiveItemCount: Int? - /** Gets or sets the child count. */ - public var childCount: Int? - /** Gets or sets the name of the series. */ - public var seriesName: String? - /** Gets or sets the series id. */ - public var seriesId: UUID? - /** Gets or sets the season identifier. */ - public var seasonId: UUID? - /** Gets or sets the special feature count. */ - public var specialFeatureCount: Int? - /** Gets or sets the display preferences id. */ - public var displayPreferencesId: String? - /** Gets or sets the status. */ - public var status: String? - /** Gets or sets the air time. */ - public var airTime: String? - /** Gets or sets the air days. */ - public var airDays: [DayOfWeek]? - /** Gets or sets the tags. */ - public var tags: [String]? - /** Gets or sets the primary image aspect ratio, after image enhancements. */ - public var primaryImageAspectRatio: Double? - /** Gets or sets the artists. */ - public var artists: [String]? - /** Gets or sets the artist items. */ - public var artistItems: [NameGuidPair]? - /** Gets or sets the album. */ - public var album: String? - /** Gets or sets the type of the collection. */ - public var collectionType: String? - /** Gets or sets the display order. */ - public var displayOrder: String? - /** Gets or sets the album id. */ - public var albumId: UUID? - /** Gets or sets the album image tag. */ - public var albumPrimaryImageTag: String? - /** Gets or sets the series primary image tag. */ - public var seriesPrimaryImageTag: String? - /** Gets or sets the album artist. */ - public var albumArtist: String? - /** Gets or sets the album artists. */ - public var albumArtists: [NameGuidPair]? - /** Gets or sets the name of the season. */ - public var seasonName: String? - /** Gets or sets the media streams. */ - public var mediaStreams: [MediaStream]? - /** Gets or sets the type of the video. */ - public var videoType: AllOfBaseItemDtoVideoType? - /** Gets or sets the part count. */ - public var partCount: Int? - public var mediaSourceCount: Int? - /** Gets or sets the image tags. */ - public var imageTags: [String:String]? - /** Gets or sets the backdrop image tags. */ - public var backdropImageTags: [String]? - /** Gets or sets the screenshot image tags. */ - public var screenshotImageTags: [String]? - /** Gets or sets the parent logo image tag. */ - public var parentLogoImageTag: String? - /** If the item does not have a art, this will hold the Id of the Parent that has one. */ - public var parentArtItemId: String? - /** Gets or sets the parent art image tag. */ - public var parentArtImageTag: String? - /** Gets or sets the series thumb image tag. */ - public var seriesThumbImageTag: String? - public var imageBlurHashes: BaseItemDtoImageBlurHashes? - /** Gets or sets the series studio. */ - public var seriesStudio: String? - /** Gets or sets the parent thumb item id. */ - public var parentThumbItemId: String? - /** Gets or sets the parent thumb image tag. */ - public var parentThumbImageTag: String? - /** Gets or sets the parent primary image item identifier. */ - public var parentPrimaryImageItemId: String? - /** Gets or sets the parent primary image tag. */ - public var parentPrimaryImageTag: String? - /** Gets or sets the chapters. */ - public var chapters: [ChapterInfo]? - /** Gets or sets the type of the location. */ - public var locationType: AllOfBaseItemDtoLocationType? - /** Gets or sets the type of the iso. */ - public var isoType: AllOfBaseItemDtoIsoType? - /** Gets or sets the type of the media. */ - public var mediaType: String? - /** Gets or sets the end date. */ - public var endDate: Date? - /** Gets or sets the locked fields. */ - public var lockedFields: [MetadataField]? - /** Gets or sets the trailer count. */ - public var trailerCount: Int? - /** Gets or sets the movie count. */ - public var movieCount: Int? - /** Gets or sets the series count. */ - public var seriesCount: Int? - public var programCount: Int? - /** Gets or sets the episode count. */ - public var episodeCount: Int? - /** Gets or sets the song count. */ - public var songCount: Int? - /** Gets or sets the album count. */ - public var albumCount: Int? - public var artistCount: Int? - /** Gets or sets the music video count. */ - public var musicVideoCount: Int? - /** Gets or sets a value indicating whether [enable internet providers]. */ - public var lockData: Bool? - public var width: Int? - public var height: Int? - public var cameraMake: String? - public var cameraModel: String? - public var software: String? - public var exposureTime: Double? - public var focalLength: Double? - public var imageOrientation: AllOfBaseItemDtoImageOrientation? - public var aperture: Double? - public var shutterSpeed: Double? - public var latitude: Double? - public var longitude: Double? - public var altitude: Double? - public var isoSpeedRating: Int? - /** Gets or sets the series timer identifier. */ - public var seriesTimerId: String? - /** Gets or sets the program identifier. */ - public var programId: String? - /** Gets or sets the channel primary image tag. */ - public var channelPrimaryImageTag: String? - /** The start date of the recording, in UTC. */ - public var startDate: Date? - /** Gets or sets the completion percentage. */ - public var completionPercentage: Double? - /** Gets or sets a value indicating whether this instance is repeat. */ - public var isRepeat: Bool? - /** Gets or sets the episode title. */ - public var episodeTitle: String? - /** Gets or sets the type of the channel. */ - public var channelType: AllOfBaseItemDtoChannelType? - /** Gets or sets the audio. */ - public var audio: AllOfBaseItemDtoAudio? - /** Gets or sets a value indicating whether this instance is movie. */ - public var isMovie: Bool? - /** Gets or sets a value indicating whether this instance is sports. */ - public var isSports: Bool? - /** Gets or sets a value indicating whether this instance is series. */ - public var isSeries: Bool? - /** Gets or sets a value indicating whether this instance is live. */ - public var isLive: Bool? - /** Gets or sets a value indicating whether this instance is news. */ - public var isNews: Bool? - /** Gets or sets a value indicating whether this instance is kids. */ - public var isKids: Bool? - /** Gets or sets a value indicating whether this instance is premiere. */ - public var isPremiere: Bool? - /** Gets or sets the timer identifier. */ - public var timerId: String? - /** Gets or sets the current program. */ - public var currentProgram: AllOfBaseItemDtoCurrentProgram? - - public init(name: String? = nil, originalTitle: String? = nil, serverId: String? = nil, _id: UUID? = nil, etag: String? = nil, sourceType: String? = nil, playlistItemId: String? = nil, dateCreated: Date? = nil, dateLastMediaAdded: Date? = nil, extraType: String? = nil, airsBeforeSeasonNumber: Int? = nil, airsAfterSeasonNumber: Int? = nil, airsBeforeEpisodeNumber: Int? = nil, canDelete: Bool? = nil, canDownload: Bool? = nil, hasSubtitles: Bool? = nil, preferredMetadataLanguage: String? = nil, preferredMetadataCountryCode: String? = nil, supportsSync: Bool? = nil, container: String? = nil, sortName: String? = nil, forcedSortName: String? = nil, video3DFormat: AllOfBaseItemDtoVideo3DFormat? = nil, premiereDate: Date? = nil, externalUrls: [ExternalUrl]? = nil, mediaSources: [MediaSourceInfo]? = nil, criticRating: Float? = nil, productionLocations: [String]? = nil, path: String? = nil, enableMediaSourceDisplay: Bool? = nil, officialRating: String? = nil, customRating: String? = nil, channelId: UUID? = nil, channelName: String? = nil, overview: String? = nil, taglines: [String]? = nil, genres: [String]? = nil, communityRating: Float? = nil, cumulativeRunTimeTicks: Int64? = nil, runTimeTicks: Int64? = nil, playAccess: AllOfBaseItemDtoPlayAccess? = nil, aspectRatio: String? = nil, productionYear: Int? = nil, isPlaceHolder: Bool? = nil, number: String? = nil, channelNumber: String? = nil, indexNumber: Int? = nil, indexNumberEnd: Int? = nil, parentIndexNumber: Int? = nil, remoteTrailers: [MediaUrl]? = nil, providerIds: [String:String]? = nil, isHD: Bool? = nil, isFolder: Bool? = nil, parentId: UUID? = nil, type: String? = nil, people: [BaseItemPerson]? = nil, studios: [NameGuidPair]? = nil, genreItems: [NameGuidPair]? = nil, parentLogoItemId: String? = nil, parentBackdropItemId: String? = nil, parentBackdropImageTags: [String]? = nil, localTrailerCount: Int? = nil, userData: AllOfBaseItemDtoUserData? = nil, recursiveItemCount: Int? = nil, childCount: Int? = nil, seriesName: String? = nil, seriesId: UUID? = nil, seasonId: UUID? = nil, specialFeatureCount: Int? = nil, displayPreferencesId: String? = nil, status: String? = nil, airTime: String? = nil, airDays: [DayOfWeek]? = nil, tags: [String]? = nil, primaryImageAspectRatio: Double? = nil, artists: [String]? = nil, artistItems: [NameGuidPair]? = nil, album: String? = nil, collectionType: String? = nil, displayOrder: String? = nil, albumId: UUID? = nil, albumPrimaryImageTag: String? = nil, seriesPrimaryImageTag: String? = nil, albumArtist: String? = nil, albumArtists: [NameGuidPair]? = nil, seasonName: String? = nil, mediaStreams: [MediaStream]? = nil, videoType: AllOfBaseItemDtoVideoType? = nil, partCount: Int? = nil, mediaSourceCount: Int? = nil, imageTags: [String:String]? = nil, backdropImageTags: [String]? = nil, screenshotImageTags: [String]? = nil, parentLogoImageTag: String? = nil, parentArtItemId: String? = nil, parentArtImageTag: String? = nil, seriesThumbImageTag: String? = nil, imageBlurHashes: BaseItemDtoImageBlurHashes? = nil, seriesStudio: String? = nil, parentThumbItemId: String? = nil, parentThumbImageTag: String? = nil, parentPrimaryImageItemId: String? = nil, parentPrimaryImageTag: String? = nil, chapters: [ChapterInfo]? = nil, locationType: AllOfBaseItemDtoLocationType? = nil, isoType: AllOfBaseItemDtoIsoType? = nil, mediaType: String? = nil, endDate: Date? = nil, lockedFields: [MetadataField]? = nil, trailerCount: Int? = nil, movieCount: Int? = nil, seriesCount: Int? = nil, programCount: Int? = nil, episodeCount: Int? = nil, songCount: Int? = nil, albumCount: Int? = nil, artistCount: Int? = nil, musicVideoCount: Int? = nil, lockData: Bool? = nil, width: Int? = nil, height: Int? = nil, cameraMake: String? = nil, cameraModel: String? = nil, software: String? = nil, exposureTime: Double? = nil, focalLength: Double? = nil, imageOrientation: AllOfBaseItemDtoImageOrientation? = nil, aperture: Double? = nil, shutterSpeed: Double? = nil, latitude: Double? = nil, longitude: Double? = nil, altitude: Double? = nil, isoSpeedRating: Int? = nil, seriesTimerId: String? = nil, programId: String? = nil, channelPrimaryImageTag: String? = nil, startDate: Date? = nil, completionPercentage: Double? = nil, isRepeat: Bool? = nil, episodeTitle: String? = nil, channelType: AllOfBaseItemDtoChannelType? = nil, audio: AllOfBaseItemDtoAudio? = nil, isMovie: Bool? = nil, isSports: Bool? = nil, isSeries: Bool? = nil, isLive: Bool? = nil, isNews: Bool? = nil, isKids: Bool? = nil, isPremiere: Bool? = nil, timerId: String? = nil, currentProgram: AllOfBaseItemDtoCurrentProgram? = nil) { - self.name = name - self.originalTitle = originalTitle - self.serverId = serverId - self._id = _id - self.etag = etag - self.sourceType = sourceType - self.playlistItemId = playlistItemId - self.dateCreated = dateCreated - self.dateLastMediaAdded = dateLastMediaAdded - self.extraType = extraType - self.airsBeforeSeasonNumber = airsBeforeSeasonNumber - self.airsAfterSeasonNumber = airsAfterSeasonNumber - self.airsBeforeEpisodeNumber = airsBeforeEpisodeNumber - self.canDelete = canDelete - self.canDownload = canDownload - self.hasSubtitles = hasSubtitles - self.preferredMetadataLanguage = preferredMetadataLanguage - self.preferredMetadataCountryCode = preferredMetadataCountryCode - self.supportsSync = supportsSync - self.container = container - self.sortName = sortName - self.forcedSortName = forcedSortName - self.video3DFormat = video3DFormat - self.premiereDate = premiereDate - self.externalUrls = externalUrls - self.mediaSources = mediaSources - self.criticRating = criticRating - self.productionLocations = productionLocations - self.path = path - self.enableMediaSourceDisplay = enableMediaSourceDisplay - self.officialRating = officialRating - self.customRating = customRating - self.channelId = channelId - self.channelName = channelName - self.overview = overview - self.taglines = taglines - self.genres = genres - self.communityRating = communityRating - self.cumulativeRunTimeTicks = cumulativeRunTimeTicks - self.runTimeTicks = runTimeTicks - self.playAccess = playAccess - self.aspectRatio = aspectRatio - self.productionYear = productionYear - self.isPlaceHolder = isPlaceHolder - self.number = number - self.channelNumber = channelNumber - self.indexNumber = indexNumber - self.indexNumberEnd = indexNumberEnd - self.parentIndexNumber = parentIndexNumber - self.remoteTrailers = remoteTrailers - self.providerIds = providerIds - self.isHD = isHD - self.isFolder = isFolder - self.parentId = parentId - self.type = type - self.people = people - self.studios = studios - self.genreItems = genreItems - self.parentLogoItemId = parentLogoItemId - self.parentBackdropItemId = parentBackdropItemId - self.parentBackdropImageTags = parentBackdropImageTags - self.localTrailerCount = localTrailerCount - self.userData = userData - self.recursiveItemCount = recursiveItemCount - self.childCount = childCount - self.seriesName = seriesName - self.seriesId = seriesId - self.seasonId = seasonId - self.specialFeatureCount = specialFeatureCount - self.displayPreferencesId = displayPreferencesId - self.status = status - self.airTime = airTime - self.airDays = airDays - self.tags = tags - self.primaryImageAspectRatio = primaryImageAspectRatio - self.artists = artists - self.artistItems = artistItems - self.album = album - self.collectionType = collectionType - self.displayOrder = displayOrder - self.albumId = albumId - self.albumPrimaryImageTag = albumPrimaryImageTag - self.seriesPrimaryImageTag = seriesPrimaryImageTag - self.albumArtist = albumArtist - self.albumArtists = albumArtists - self.seasonName = seasonName - self.mediaStreams = mediaStreams - self.videoType = videoType - self.partCount = partCount - self.mediaSourceCount = mediaSourceCount - self.imageTags = imageTags - self.backdropImageTags = backdropImageTags - self.screenshotImageTags = screenshotImageTags - self.parentLogoImageTag = parentLogoImageTag - self.parentArtItemId = parentArtItemId - self.parentArtImageTag = parentArtImageTag - self.seriesThumbImageTag = seriesThumbImageTag - self.imageBlurHashes = imageBlurHashes - self.seriesStudio = seriesStudio - self.parentThumbItemId = parentThumbItemId - self.parentThumbImageTag = parentThumbImageTag - self.parentPrimaryImageItemId = parentPrimaryImageItemId - self.parentPrimaryImageTag = parentPrimaryImageTag - self.chapters = chapters - self.locationType = locationType - self.isoType = isoType - self.mediaType = mediaType - self.endDate = endDate - self.lockedFields = lockedFields - self.trailerCount = trailerCount - self.movieCount = movieCount - self.seriesCount = seriesCount - self.programCount = programCount - self.episodeCount = episodeCount - self.songCount = songCount - self.albumCount = albumCount - self.artistCount = artistCount - self.musicVideoCount = musicVideoCount - self.lockData = lockData - self.width = width - self.height = height - self.cameraMake = cameraMake - self.cameraModel = cameraModel - self.software = software - self.exposureTime = exposureTime - self.focalLength = focalLength - self.imageOrientation = imageOrientation - self.aperture = aperture - self.shutterSpeed = shutterSpeed - self.latitude = latitude - self.longitude = longitude - self.altitude = altitude - self.isoSpeedRating = isoSpeedRating - self.seriesTimerId = seriesTimerId - self.programId = programId - self.channelPrimaryImageTag = channelPrimaryImageTag - self.startDate = startDate - self.completionPercentage = completionPercentage - self.isRepeat = isRepeat - self.episodeTitle = episodeTitle - self.channelType = channelType - self.audio = audio - self.isMovie = isMovie - self.isSports = isSports - self.isSeries = isSeries - self.isLive = isLive - self.isNews = isNews - self.isKids = isKids - self.isPremiere = isPremiere - self.timerId = timerId - self.currentProgram = currentProgram - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case originalTitle = "OriginalTitle" - case serverId = "ServerId" - case _id = "Id" - case etag = "Etag" - case sourceType = "SourceType" - case playlistItemId = "PlaylistItemId" - case dateCreated = "DateCreated" - case dateLastMediaAdded = "DateLastMediaAdded" - case extraType = "ExtraType" - case airsBeforeSeasonNumber = "AirsBeforeSeasonNumber" - case airsAfterSeasonNumber = "AirsAfterSeasonNumber" - case airsBeforeEpisodeNumber = "AirsBeforeEpisodeNumber" - case canDelete = "CanDelete" - case canDownload = "CanDownload" - case hasSubtitles = "HasSubtitles" - case preferredMetadataLanguage = "PreferredMetadataLanguage" - case preferredMetadataCountryCode = "PreferredMetadataCountryCode" - case supportsSync = "SupportsSync" - case container = "Container" - case sortName = "SortName" - case forcedSortName = "ForcedSortName" - case video3DFormat = "Video3DFormat" - case premiereDate = "PremiereDate" - case externalUrls = "ExternalUrls" - case mediaSources = "MediaSources" - case criticRating = "CriticRating" - case productionLocations = "ProductionLocations" - case path = "Path" - case enableMediaSourceDisplay = "EnableMediaSourceDisplay" - case officialRating = "OfficialRating" - case customRating = "CustomRating" - case channelId = "ChannelId" - case channelName = "ChannelName" - case overview = "Overview" - case taglines = "Taglines" - case genres = "Genres" - case communityRating = "CommunityRating" - case cumulativeRunTimeTicks = "CumulativeRunTimeTicks" - case runTimeTicks = "RunTimeTicks" - case playAccess = "PlayAccess" - case aspectRatio = "AspectRatio" - case productionYear = "ProductionYear" - case isPlaceHolder = "IsPlaceHolder" - case number = "Number" - case channelNumber = "ChannelNumber" - case indexNumber = "IndexNumber" - case indexNumberEnd = "IndexNumberEnd" - case parentIndexNumber = "ParentIndexNumber" - case remoteTrailers = "RemoteTrailers" - case providerIds = "ProviderIds" - case isHD = "IsHD" - case isFolder = "IsFolder" - case parentId = "ParentId" - case type = "Type" - case people = "People" - case studios = "Studios" - case genreItems = "GenreItems" - case parentLogoItemId = "ParentLogoItemId" - case parentBackdropItemId = "ParentBackdropItemId" - case parentBackdropImageTags = "ParentBackdropImageTags" - case localTrailerCount = "LocalTrailerCount" - case userData = "UserData" - case recursiveItemCount = "RecursiveItemCount" - case childCount = "ChildCount" - case seriesName = "SeriesName" - case seriesId = "SeriesId" - case seasonId = "SeasonId" - case specialFeatureCount = "SpecialFeatureCount" - case displayPreferencesId = "DisplayPreferencesId" - case status = "Status" - case airTime = "AirTime" - case airDays = "AirDays" - case tags = "Tags" - case primaryImageAspectRatio = "PrimaryImageAspectRatio" - case artists = "Artists" - case artistItems = "ArtistItems" - case album = "Album" - case collectionType = "CollectionType" - case displayOrder = "DisplayOrder" - case albumId = "AlbumId" - case albumPrimaryImageTag = "AlbumPrimaryImageTag" - case seriesPrimaryImageTag = "SeriesPrimaryImageTag" - case albumArtist = "AlbumArtist" - case albumArtists = "AlbumArtists" - case seasonName = "SeasonName" - case mediaStreams = "MediaStreams" - case videoType = "VideoType" - case partCount = "PartCount" - case mediaSourceCount = "MediaSourceCount" - case imageTags = "ImageTags" - case backdropImageTags = "BackdropImageTags" - case screenshotImageTags = "ScreenshotImageTags" - case parentLogoImageTag = "ParentLogoImageTag" - case parentArtItemId = "ParentArtItemId" - case parentArtImageTag = "ParentArtImageTag" - case seriesThumbImageTag = "SeriesThumbImageTag" - case imageBlurHashes = "ImageBlurHashes" - case seriesStudio = "SeriesStudio" - case parentThumbItemId = "ParentThumbItemId" - case parentThumbImageTag = "ParentThumbImageTag" - case parentPrimaryImageItemId = "ParentPrimaryImageItemId" - case parentPrimaryImageTag = "ParentPrimaryImageTag" - case chapters = "Chapters" - case locationType = "LocationType" - case isoType = "IsoType" - case mediaType = "MediaType" - case endDate = "EndDate" - case lockedFields = "LockedFields" - case trailerCount = "TrailerCount" - case movieCount = "MovieCount" - case seriesCount = "SeriesCount" - case programCount = "ProgramCount" - case episodeCount = "EpisodeCount" - case songCount = "SongCount" - case albumCount = "AlbumCount" - case artistCount = "ArtistCount" - case musicVideoCount = "MusicVideoCount" - case lockData = "LockData" - case width = "Width" - case height = "Height" - case cameraMake = "CameraMake" - case cameraModel = "CameraModel" - case software = "Software" - case exposureTime = "ExposureTime" - case focalLength = "FocalLength" - case imageOrientation = "ImageOrientation" - case aperture = "Aperture" - case shutterSpeed = "ShutterSpeed" - case latitude = "Latitude" - case longitude = "Longitude" - case altitude = "Altitude" - case isoSpeedRating = "IsoSpeedRating" - case seriesTimerId = "SeriesTimerId" - case programId = "ProgramId" - case channelPrimaryImageTag = "ChannelPrimaryImageTag" - case startDate = "StartDate" - case completionPercentage = "CompletionPercentage" - case isRepeat = "IsRepeat" - case episodeTitle = "EpisodeTitle" - case channelType = "ChannelType" - case audio = "Audio" - case isMovie = "IsMovie" - case isSports = "IsSports" - case isSeries = "IsSeries" - case isLive = "IsLive" - case isNews = "IsNews" - case isKids = "IsKids" - case isPremiere = "IsPremiere" - case timerId = "TimerId" - case currentProgram = "CurrentProgram" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/BaseItemDtoImageBlurHashes.swift b/JellyfinPlayer/Swaggers/Models/BaseItemDtoImageBlurHashes.swift deleted file mode 100644 index 96ebf742..00000000 --- a/JellyfinPlayer/Swaggers/Models/BaseItemDtoImageBlurHashes.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// BaseItemDtoImageBlurHashes.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the blurhashes for the image tags. Maps image type to dictionary mapping image tag to blurhash value. */ - -public struct BaseItemDtoImageBlurHashes: Codable { - - public var primary: [String:String]? - public var art: [String:String]? - public var backdrop: [String:String]? - public var banner: [String:String]? - public var logo: [String:String]? - public var thumb: [String:String]? - public var disc: [String:String]? - public var box: [String:String]? - public var screenshot: [String:String]? - public var menu: [String:String]? - public var chapter: [String:String]? - public var boxRear: [String:String]? - public var profile: [String:String]? - - public init(primary: [String:String]? = nil, art: [String:String]? = nil, backdrop: [String:String]? = nil, banner: [String:String]? = nil, logo: [String:String]? = nil, thumb: [String:String]? = nil, disc: [String:String]? = nil, box: [String:String]? = nil, screenshot: [String:String]? = nil, menu: [String:String]? = nil, chapter: [String:String]? = nil, boxRear: [String:String]? = nil, profile: [String:String]? = nil) { - self.primary = primary - self.art = art - self.backdrop = backdrop - self.banner = banner - self.logo = logo - self.thumb = thumb - self.disc = disc - self.box = box - self.screenshot = screenshot - self.menu = menu - self.chapter = chapter - self.boxRear = boxRear - self.profile = profile - } - - public enum CodingKeys: String, CodingKey { - case primary = "Primary" - case art = "Art" - case backdrop = "Backdrop" - case banner = "Banner" - case logo = "Logo" - case thumb = "Thumb" - case disc = "Disc" - case box = "Box" - case screenshot = "Screenshot" - case menu = "Menu" - case chapter = "Chapter" - case boxRear = "BoxRear" - case profile = "Profile" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/BaseItemDtoQueryResult.swift b/JellyfinPlayer/Swaggers/Models/BaseItemDtoQueryResult.swift deleted file mode 100644 index 0f77c18f..00000000 --- a/JellyfinPlayer/Swaggers/Models/BaseItemDtoQueryResult.swift +++ /dev/null @@ -1,33 +0,0 @@ -// -// BaseItemDtoQueryResult.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct BaseItemDtoQueryResult: Codable { - - /** Gets or sets the items. */ - public var items: [BaseItemDto]? - /** The total number of records available. */ - public var totalRecordCount: Int? - /** The index of the first record in Items. */ - public var startIndex: Int? - - public init(items: [BaseItemDto]? = nil, totalRecordCount: Int? = nil, startIndex: Int? = nil) { - self.items = items - self.totalRecordCount = totalRecordCount - self.startIndex = startIndex - } - - public enum CodingKeys: String, CodingKey { - case items = "Items" - case totalRecordCount = "TotalRecordCount" - case startIndex = "StartIndex" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/BaseItemPerson.swift b/JellyfinPlayer/Swaggers/Models/BaseItemPerson.swift deleted file mode 100644 index 14126f5a..00000000 --- a/JellyfinPlayer/Swaggers/Models/BaseItemPerson.swift +++ /dev/null @@ -1,45 +0,0 @@ -// -// BaseItemPerson.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** This is used by the api to get information about a Person within a BaseItem. */ - -public struct BaseItemPerson: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the identifier. */ - public var _id: String? - /** Gets or sets the role. */ - public var role: String? - /** Gets or sets the type. */ - public var type: String? - /** Gets or sets the primary image tag. */ - public var primaryImageTag: String? - public var imageBlurHashes: BaseItemPersonImageBlurHashes? - - public init(name: String? = nil, _id: String? = nil, role: String? = nil, type: String? = nil, primaryImageTag: String? = nil, imageBlurHashes: BaseItemPersonImageBlurHashes? = nil) { - self.name = name - self._id = _id - self.role = role - self.type = type - self.primaryImageTag = primaryImageTag - self.imageBlurHashes = imageBlurHashes - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case _id = "Id" - case role = "Role" - case type = "Type" - case primaryImageTag = "PrimaryImageTag" - case imageBlurHashes = "ImageBlurHashes" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/BaseItemPersonImageBlurHashes.swift b/JellyfinPlayer/Swaggers/Models/BaseItemPersonImageBlurHashes.swift deleted file mode 100644 index 9f82e5f0..00000000 --- a/JellyfinPlayer/Swaggers/Models/BaseItemPersonImageBlurHashes.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// BaseItemPersonImageBlurHashes.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Gets or sets the primary image blurhash. */ - -public struct BaseItemPersonImageBlurHashes: Codable { - - public var primary: [String:String]? - public var art: [String:String]? - public var backdrop: [String:String]? - public var banner: [String:String]? - public var logo: [String:String]? - public var thumb: [String:String]? - public var disc: [String:String]? - public var box: [String:String]? - public var screenshot: [String:String]? - public var menu: [String:String]? - public var chapter: [String:String]? - public var boxRear: [String:String]? - public var profile: [String:String]? - - public init(primary: [String:String]? = nil, art: [String:String]? = nil, backdrop: [String:String]? = nil, banner: [String:String]? = nil, logo: [String:String]? = nil, thumb: [String:String]? = nil, disc: [String:String]? = nil, box: [String:String]? = nil, screenshot: [String:String]? = nil, menu: [String:String]? = nil, chapter: [String:String]? = nil, boxRear: [String:String]? = nil, profile: [String:String]? = nil) { - self.primary = primary - self.art = art - self.backdrop = backdrop - self.banner = banner - self.logo = logo - self.thumb = thumb - self.disc = disc - self.box = box - self.screenshot = screenshot - self.menu = menu - self.chapter = chapter - self.boxRear = boxRear - self.profile = profile - } - - public enum CodingKeys: String, CodingKey { - case primary = "Primary" - case art = "Art" - case backdrop = "Backdrop" - case banner = "Banner" - case logo = "Logo" - case thumb = "Thumb" - case disc = "Disc" - case box = "Box" - case screenshot = "Screenshot" - case menu = "Menu" - case chapter = "Chapter" - case boxRear = "BoxRear" - case profile = "Profile" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/BasePluginConfiguration.swift b/JellyfinPlayer/Swaggers/Models/BasePluginConfiguration.swift deleted file mode 100644 index 7d919cbc..00000000 --- a/JellyfinPlayer/Swaggers/Models/BasePluginConfiguration.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// BasePluginConfiguration.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class BasePluginConfiguration. */ - -public struct BasePluginConfiguration: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/BookInfo.swift b/JellyfinPlayer/Swaggers/Models/BookInfo.swift deleted file mode 100644 index a64c19dd..00000000 --- a/JellyfinPlayer/Swaggers/Models/BookInfo.swift +++ /dev/null @@ -1,60 +0,0 @@ -// -// BookInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct BookInfo: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the path. */ - public var path: String? - /** Gets or sets the metadata language. */ - public var metadataLanguage: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets the year. */ - public var year: Int? - public var indexNumber: Int? - public var parentIndexNumber: Int? - public var premiereDate: Date? - public var isAutomated: Bool? - public var seriesName: String? - - public init(name: String? = nil, path: String? = nil, metadataLanguage: String? = nil, metadataCountryCode: String? = nil, providerIds: [String:String]? = nil, year: Int? = nil, indexNumber: Int? = nil, parentIndexNumber: Int? = nil, premiereDate: Date? = nil, isAutomated: Bool? = nil, seriesName: String? = nil) { - self.name = name - self.path = path - self.metadataLanguage = metadataLanguage - self.metadataCountryCode = metadataCountryCode - self.providerIds = providerIds - self.year = year - self.indexNumber = indexNumber - self.parentIndexNumber = parentIndexNumber - self.premiereDate = premiereDate - self.isAutomated = isAutomated - self.seriesName = seriesName - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case path = "Path" - case metadataLanguage = "MetadataLanguage" - case metadataCountryCode = "MetadataCountryCode" - case providerIds = "ProviderIds" - case year = "Year" - case indexNumber = "IndexNumber" - case parentIndexNumber = "ParentIndexNumber" - case premiereDate = "PremiereDate" - case isAutomated = "IsAutomated" - case seriesName = "SeriesName" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/BookInfoRemoteSearchQuery.swift b/JellyfinPlayer/Swaggers/Models/BookInfoRemoteSearchQuery.swift deleted file mode 100644 index 58a4afac..00000000 --- a/JellyfinPlayer/Swaggers/Models/BookInfoRemoteSearchQuery.swift +++ /dev/null @@ -1,35 +0,0 @@ -// -// BookInfoRemoteSearchQuery.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct BookInfoRemoteSearchQuery: Codable { - - public var searchInfo: AllOfBookInfoRemoteSearchQuerySearchInfo? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: AllOfBookInfoRemoteSearchQuerySearchInfo? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/BoxSetInfo.swift b/JellyfinPlayer/Swaggers/Models/BoxSetInfo.swift deleted file mode 100644 index e0f1b940..00000000 --- a/JellyfinPlayer/Swaggers/Models/BoxSetInfo.swift +++ /dev/null @@ -1,57 +0,0 @@ -// -// BoxSetInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct BoxSetInfo: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the path. */ - public var path: String? - /** Gets or sets the metadata language. */ - public var metadataLanguage: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets the year. */ - public var year: Int? - public var indexNumber: Int? - public var parentIndexNumber: Int? - public var premiereDate: Date? - public var isAutomated: Bool? - - public init(name: String? = nil, path: String? = nil, metadataLanguage: String? = nil, metadataCountryCode: String? = nil, providerIds: [String:String]? = nil, year: Int? = nil, indexNumber: Int? = nil, parentIndexNumber: Int? = nil, premiereDate: Date? = nil, isAutomated: Bool? = nil) { - self.name = name - self.path = path - self.metadataLanguage = metadataLanguage - self.metadataCountryCode = metadataCountryCode - self.providerIds = providerIds - self.year = year - self.indexNumber = indexNumber - self.parentIndexNumber = parentIndexNumber - self.premiereDate = premiereDate - self.isAutomated = isAutomated - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case path = "Path" - case metadataLanguage = "MetadataLanguage" - case metadataCountryCode = "MetadataCountryCode" - case providerIds = "ProviderIds" - case year = "Year" - case indexNumber = "IndexNumber" - case parentIndexNumber = "ParentIndexNumber" - case premiereDate = "PremiereDate" - case isAutomated = "IsAutomated" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/BoxSetInfoRemoteSearchQuery.swift b/JellyfinPlayer/Swaggers/Models/BoxSetInfoRemoteSearchQuery.swift deleted file mode 100644 index a6007ee0..00000000 --- a/JellyfinPlayer/Swaggers/Models/BoxSetInfoRemoteSearchQuery.swift +++ /dev/null @@ -1,35 +0,0 @@ -// -// BoxSetInfoRemoteSearchQuery.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct BoxSetInfoRemoteSearchQuery: Codable { - - public var searchInfo: AllOfBoxSetInfoRemoteSearchQuerySearchInfo? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: AllOfBoxSetInfoRemoteSearchQuerySearchInfo? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/BrandingOptions.swift b/JellyfinPlayer/Swaggers/Models/BrandingOptions.swift deleted file mode 100644 index fa0d4160..00000000 --- a/JellyfinPlayer/Swaggers/Models/BrandingOptions.swift +++ /dev/null @@ -1,29 +0,0 @@ -// -// BrandingOptions.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct BrandingOptions: Codable { - - /** Gets or sets the login disclaimer. */ - public var loginDisclaimer: String? - /** Gets or sets the custom CSS. */ - public var customCss: String? - - public init(loginDisclaimer: String? = nil, customCss: String? = nil) { - self.loginDisclaimer = loginDisclaimer - self.customCss = customCss - } - - public enum CodingKeys: String, CodingKey { - case loginDisclaimer = "LoginDisclaimer" - case customCss = "CustomCss" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/BufferRequestDto.swift b/JellyfinPlayer/Swaggers/Models/BufferRequestDto.swift deleted file mode 100644 index 27744a80..00000000 --- a/JellyfinPlayer/Swaggers/Models/BufferRequestDto.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// BufferRequestDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class BufferRequestDto. */ - -public struct BufferRequestDto: Codable { - - /** Gets or sets when the request has been made by the client. */ - public var when: Date? - /** Gets or sets the position ticks. */ - public var positionTicks: Int64? - /** Gets or sets a value indicating whether the client playback is unpaused. */ - public var isPlaying: Bool? - /** Gets or sets the playlist item identifier of the playing item. */ - public var playlistItemId: UUID? - - public init(when: Date? = nil, positionTicks: Int64? = nil, isPlaying: Bool? = nil, playlistItemId: UUID? = nil) { - self.when = when - self.positionTicks = positionTicks - self.isPlaying = isPlaying - self.playlistItemId = playlistItemId - } - - public enum CodingKeys: String, CodingKey { - case when = "When" - case positionTicks = "PositionTicks" - case isPlaying = "IsPlaying" - case playlistItemId = "PlaylistItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/CapabilitiesFullBody.swift b/JellyfinPlayer/Swaggers/Models/CapabilitiesFullBody.swift deleted file mode 100644 index 6648050e..00000000 --- a/JellyfinPlayer/Swaggers/Models/CapabilitiesFullBody.swift +++ /dev/null @@ -1,62 +0,0 @@ -// -// CapabilitiesFullBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The MediaBrowser.Model.Session.ClientCapabilities. */ - -public struct CapabilitiesFullBody: Codable { - - /** Gets or sets the list of playable media types. */ - public var playableMediaTypes: [String]? - /** Gets or sets the list of supported commands. */ - public var supportedCommands: [GeneralCommandType]? - /** Gets or sets a value indicating whether session supports media control. */ - public var supportsMediaControl: Bool? - /** Gets or sets a value indicating whether session supports content uploading. */ - public var supportsContentUploading: Bool? - /** Gets or sets the message callback url. */ - public var messageCallbackUrl: String? - /** Gets or sets a value indicating whether session supports a persistent identifier. */ - public var supportsPersistentIdentifier: Bool? - /** Gets or sets a value indicating whether session supports sync. */ - public var supportsSync: Bool? - /** Gets or sets the device profile. */ - public var deviceProfile: Any? - /** Gets or sets the app store url. */ - public var appStoreUrl: String? - /** Gets or sets the icon url. */ - public var iconUrl: String? - - public init(playableMediaTypes: [String]? = nil, supportedCommands: [GeneralCommandType]? = nil, supportsMediaControl: Bool? = nil, supportsContentUploading: Bool? = nil, messageCallbackUrl: String? = nil, supportsPersistentIdentifier: Bool? = nil, supportsSync: Bool? = nil, deviceProfile: Any? = nil, appStoreUrl: String? = nil, iconUrl: String? = nil) { - self.playableMediaTypes = playableMediaTypes - self.supportedCommands = supportedCommands - self.supportsMediaControl = supportsMediaControl - self.supportsContentUploading = supportsContentUploading - self.messageCallbackUrl = messageCallbackUrl - self.supportsPersistentIdentifier = supportsPersistentIdentifier - self.supportsSync = supportsSync - self.deviceProfile = deviceProfile - self.appStoreUrl = appStoreUrl - self.iconUrl = iconUrl - } - - public enum CodingKeys: String, CodingKey { - case playableMediaTypes = "PlayableMediaTypes" - case supportedCommands = "SupportedCommands" - case supportsMediaControl = "SupportsMediaControl" - case supportsContentUploading = "SupportsContentUploading" - case messageCallbackUrl = "MessageCallbackUrl" - case supportsPersistentIdentifier = "SupportsPersistentIdentifier" - case supportsSync = "SupportsSync" - case deviceProfile = "DeviceProfile" - case appStoreUrl = "AppStoreUrl" - case iconUrl = "IconUrl" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/CapabilitiesFullBody1.swift b/JellyfinPlayer/Swaggers/Models/CapabilitiesFullBody1.swift deleted file mode 100644 index fbf4bff8..00000000 --- a/JellyfinPlayer/Swaggers/Models/CapabilitiesFullBody1.swift +++ /dev/null @@ -1,62 +0,0 @@ -// -// CapabilitiesFullBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The MediaBrowser.Model.Session.ClientCapabilities. */ - -public struct CapabilitiesFullBody1: Codable { - - /** Gets or sets the list of playable media types. */ - public var playableMediaTypes: [String]? - /** Gets or sets the list of supported commands. */ - public var supportedCommands: [GeneralCommandType]? - /** Gets or sets a value indicating whether session supports media control. */ - public var supportsMediaControl: Bool? - /** Gets or sets a value indicating whether session supports content uploading. */ - public var supportsContentUploading: Bool? - /** Gets or sets the message callback url. */ - public var messageCallbackUrl: String? - /** Gets or sets a value indicating whether session supports a persistent identifier. */ - public var supportsPersistentIdentifier: Bool? - /** Gets or sets a value indicating whether session supports sync. */ - public var supportsSync: Bool? - /** Gets or sets the device profile. */ - public var deviceProfile: Any? - /** Gets or sets the app store url. */ - public var appStoreUrl: String? - /** Gets or sets the icon url. */ - public var iconUrl: String? - - public init(playableMediaTypes: [String]? = nil, supportedCommands: [GeneralCommandType]? = nil, supportsMediaControl: Bool? = nil, supportsContentUploading: Bool? = nil, messageCallbackUrl: String? = nil, supportsPersistentIdentifier: Bool? = nil, supportsSync: Bool? = nil, deviceProfile: Any? = nil, appStoreUrl: String? = nil, iconUrl: String? = nil) { - self.playableMediaTypes = playableMediaTypes - self.supportedCommands = supportedCommands - self.supportsMediaControl = supportsMediaControl - self.supportsContentUploading = supportsContentUploading - self.messageCallbackUrl = messageCallbackUrl - self.supportsPersistentIdentifier = supportsPersistentIdentifier - self.supportsSync = supportsSync - self.deviceProfile = deviceProfile - self.appStoreUrl = appStoreUrl - self.iconUrl = iconUrl - } - - public enum CodingKeys: String, CodingKey { - case playableMediaTypes = "PlayableMediaTypes" - case supportedCommands = "SupportedCommands" - case supportsMediaControl = "SupportsMediaControl" - case supportsContentUploading = "SupportsContentUploading" - case messageCallbackUrl = "MessageCallbackUrl" - case supportsPersistentIdentifier = "SupportsPersistentIdentifier" - case supportsSync = "SupportsSync" - case deviceProfile = "DeviceProfile" - case appStoreUrl = "AppStoreUrl" - case iconUrl = "IconUrl" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/CapabilitiesFullBody2.swift b/JellyfinPlayer/Swaggers/Models/CapabilitiesFullBody2.swift deleted file mode 100644 index efeb6590..00000000 --- a/JellyfinPlayer/Swaggers/Models/CapabilitiesFullBody2.swift +++ /dev/null @@ -1,62 +0,0 @@ -// -// CapabilitiesFullBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The MediaBrowser.Model.Session.ClientCapabilities. */ - -public struct CapabilitiesFullBody2: Codable { - - /** Gets or sets the list of playable media types. */ - public var playableMediaTypes: [String]? - /** Gets or sets the list of supported commands. */ - public var supportedCommands: [GeneralCommandType]? - /** Gets or sets a value indicating whether session supports media control. */ - public var supportsMediaControl: Bool? - /** Gets or sets a value indicating whether session supports content uploading. */ - public var supportsContentUploading: Bool? - /** Gets or sets the message callback url. */ - public var messageCallbackUrl: String? - /** Gets or sets a value indicating whether session supports a persistent identifier. */ - public var supportsPersistentIdentifier: Bool? - /** Gets or sets a value indicating whether session supports sync. */ - public var supportsSync: Bool? - /** Gets or sets the device profile. */ - public var deviceProfile: Any? - /** Gets or sets the app store url. */ - public var appStoreUrl: String? - /** Gets or sets the icon url. */ - public var iconUrl: String? - - public init(playableMediaTypes: [String]? = nil, supportedCommands: [GeneralCommandType]? = nil, supportsMediaControl: Bool? = nil, supportsContentUploading: Bool? = nil, messageCallbackUrl: String? = nil, supportsPersistentIdentifier: Bool? = nil, supportsSync: Bool? = nil, deviceProfile: Any? = nil, appStoreUrl: String? = nil, iconUrl: String? = nil) { - self.playableMediaTypes = playableMediaTypes - self.supportedCommands = supportedCommands - self.supportsMediaControl = supportsMediaControl - self.supportsContentUploading = supportsContentUploading - self.messageCallbackUrl = messageCallbackUrl - self.supportsPersistentIdentifier = supportsPersistentIdentifier - self.supportsSync = supportsSync - self.deviceProfile = deviceProfile - self.appStoreUrl = appStoreUrl - self.iconUrl = iconUrl - } - - public enum CodingKeys: String, CodingKey { - case playableMediaTypes = "PlayableMediaTypes" - case supportedCommands = "SupportedCommands" - case supportsMediaControl = "SupportsMediaControl" - case supportsContentUploading = "SupportsContentUploading" - case messageCallbackUrl = "MessageCallbackUrl" - case supportsPersistentIdentifier = "SupportsPersistentIdentifier" - case supportsSync = "SupportsSync" - case deviceProfile = "DeviceProfile" - case appStoreUrl = "AppStoreUrl" - case iconUrl = "IconUrl" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ChannelFeatures.swift b/JellyfinPlayer/Swaggers/Models/ChannelFeatures.swift deleted file mode 100644 index ccb4f2cb..00000000 --- a/JellyfinPlayer/Swaggers/Models/ChannelFeatures.swift +++ /dev/null @@ -1,69 +0,0 @@ -// -// ChannelFeatures.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct ChannelFeatures: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the identifier. */ - public var _id: String? - /** Gets or sets a value indicating whether this instance can search. */ - public var canSearch: Bool? - /** Gets or sets the media types. */ - public var mediaTypes: [ChannelMediaType]? - /** Gets or sets the content types. */ - public var contentTypes: [ChannelMediaContentType]? - /** Represents the maximum number of records the channel allows retrieving at a time. */ - public var maxPageSize: Int? - /** Gets or sets the automatic refresh levels. */ - public var autoRefreshLevels: Int? - /** Gets or sets the default sort orders. */ - public var defaultSortFields: [ChannelItemSortField]? - /** Indicates if a sort ascending/descending toggle is supported or not. */ - public var supportsSortOrderToggle: Bool? - /** Gets or sets a value indicating whether [supports latest media]. */ - public var supportsLatestMedia: Bool? - /** Gets or sets a value indicating whether this instance can filter. */ - public var canFilter: Bool? - /** Gets or sets a value indicating whether [supports content downloading]. */ - public var supportsContentDownloading: Bool? - - public init(name: String? = nil, _id: String? = nil, canSearch: Bool? = nil, mediaTypes: [ChannelMediaType]? = nil, contentTypes: [ChannelMediaContentType]? = nil, maxPageSize: Int? = nil, autoRefreshLevels: Int? = nil, defaultSortFields: [ChannelItemSortField]? = nil, supportsSortOrderToggle: Bool? = nil, supportsLatestMedia: Bool? = nil, canFilter: Bool? = nil, supportsContentDownloading: Bool? = nil) { - self.name = name - self._id = _id - self.canSearch = canSearch - self.mediaTypes = mediaTypes - self.contentTypes = contentTypes - self.maxPageSize = maxPageSize - self.autoRefreshLevels = autoRefreshLevels - self.defaultSortFields = defaultSortFields - self.supportsSortOrderToggle = supportsSortOrderToggle - self.supportsLatestMedia = supportsLatestMedia - self.canFilter = canFilter - self.supportsContentDownloading = supportsContentDownloading - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case _id = "Id" - case canSearch = "CanSearch" - case mediaTypes = "MediaTypes" - case contentTypes = "ContentTypes" - case maxPageSize = "MaxPageSize" - case autoRefreshLevels = "AutoRefreshLevels" - case defaultSortFields = "DefaultSortFields" - case supportsSortOrderToggle = "SupportsSortOrderToggle" - case supportsLatestMedia = "SupportsLatestMedia" - case canFilter = "CanFilter" - case supportsContentDownloading = "SupportsContentDownloading" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ChannelItemSortField.swift b/JellyfinPlayer/Swaggers/Models/ChannelItemSortField.swift deleted file mode 100644 index 0625cd23..00000000 --- a/JellyfinPlayer/Swaggers/Models/ChannelItemSortField.swift +++ /dev/null @@ -1,19 +0,0 @@ -// -// ChannelItemSortField.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum ChannelItemSortField: String, Codable { - case name = "Name" - case communityRating = "CommunityRating" - case premiereDate = "PremiereDate" - case dateCreated = "DateCreated" - case runtime = "Runtime" - case playCount = "PlayCount" - case communityPlayCount = "CommunityPlayCount" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/ChannelMappingOptionsDto.swift b/JellyfinPlayer/Swaggers/Models/ChannelMappingOptionsDto.swift deleted file mode 100644 index 801d7b50..00000000 --- a/JellyfinPlayer/Swaggers/Models/ChannelMappingOptionsDto.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// ChannelMappingOptionsDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Channel mapping options dto. */ - -public struct ChannelMappingOptionsDto: Codable { - - /** Gets or sets list of tuner channels. */ - public var tunerChannels: [TunerChannelMapping]? - /** Gets or sets list of provider channels. */ - public var providerChannels: [NameIdPair]? - /** Gets or sets list of mappings. */ - public var mappings: [NameValuePair]? - /** Gets or sets provider name. */ - public var providerName: String? - - public init(tunerChannels: [TunerChannelMapping]? = nil, providerChannels: [NameIdPair]? = nil, mappings: [NameValuePair]? = nil, providerName: String? = nil) { - self.tunerChannels = tunerChannels - self.providerChannels = providerChannels - self.mappings = mappings - self.providerName = providerName - } - - public enum CodingKeys: String, CodingKey { - case tunerChannels = "TunerChannels" - case providerChannels = "ProviderChannels" - case mappings = "Mappings" - case providerName = "ProviderName" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ChannelMediaContentType.swift b/JellyfinPlayer/Swaggers/Models/ChannelMediaContentType.swift deleted file mode 100644 index 1b738a5f..00000000 --- a/JellyfinPlayer/Swaggers/Models/ChannelMediaContentType.swift +++ /dev/null @@ -1,20 +0,0 @@ -// -// ChannelMediaContentType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum ChannelMediaContentType: String, Codable { - case clip = "Clip" - case podcast = "Podcast" - case trailer = "Trailer" - case movie = "Movie" - case episode = "Episode" - case song = "Song" - case movieExtra = "MovieExtra" - case tvExtra = "TvExtra" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/ChannelMediaType.swift b/JellyfinPlayer/Swaggers/Models/ChannelMediaType.swift deleted file mode 100644 index 536756ba..00000000 --- a/JellyfinPlayer/Swaggers/Models/ChannelMediaType.swift +++ /dev/null @@ -1,15 +0,0 @@ -// -// ChannelMediaType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum ChannelMediaType: String, Codable { - case audio = "Audio" - case video = "Video" - case photo = "Photo" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/ChannelType.swift b/JellyfinPlayer/Swaggers/Models/ChannelType.swift deleted file mode 100644 index a60414e9..00000000 --- a/JellyfinPlayer/Swaggers/Models/ChannelType.swift +++ /dev/null @@ -1,15 +0,0 @@ -// -// ChannelType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Enum ChannelType. */ -public enum ChannelType: String, Codable { - case tv = "TV" - case radio = "Radio" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/ChapterInfo.swift b/JellyfinPlayer/Swaggers/Models/ChapterInfo.swift deleted file mode 100644 index c483a015..00000000 --- a/JellyfinPlayer/Swaggers/Models/ChapterInfo.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// ChapterInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class ChapterInfo. */ - -public struct ChapterInfo: Codable { - - /** Gets or sets the start position ticks. */ - public var startPositionTicks: Int64? - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the image path. */ - public var imagePath: String? - public var imageDateModified: Date? - public var imageTag: String? - - public init(startPositionTicks: Int64? = nil, name: String? = nil, imagePath: String? = nil, imageDateModified: Date? = nil, imageTag: String? = nil) { - self.startPositionTicks = startPositionTicks - self.name = name - self.imagePath = imagePath - self.imageDateModified = imageDateModified - self.imageTag = imageTag - } - - public enum CodingKeys: String, CodingKey { - case startPositionTicks = "StartPositionTicks" - case name = "Name" - case imagePath = "ImagePath" - case imageDateModified = "ImageDateModified" - case imageTag = "ImageTag" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ClientCapabilities.swift b/JellyfinPlayer/Swaggers/Models/ClientCapabilities.swift deleted file mode 100644 index 22528a43..00000000 --- a/JellyfinPlayer/Swaggers/Models/ClientCapabilities.swift +++ /dev/null @@ -1,52 +0,0 @@ -// -// ClientCapabilities.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct ClientCapabilities: Codable { - - public var playableMediaTypes: [String]? - public var supportedCommands: [GeneralCommandType]? - public var supportsMediaControl: Bool? - public var supportsContentUploading: Bool? - public var messageCallbackUrl: String? - public var supportsPersistentIdentifier: Bool? - public var supportsSync: Bool? - /** Defines the MediaBrowser.Model.Dlna.DeviceProfile. */ - public var deviceProfile: AllOfClientCapabilitiesDeviceProfile? - public var appStoreUrl: String? - public var iconUrl: String? - - public init(playableMediaTypes: [String]? = nil, supportedCommands: [GeneralCommandType]? = nil, supportsMediaControl: Bool? = nil, supportsContentUploading: Bool? = nil, messageCallbackUrl: String? = nil, supportsPersistentIdentifier: Bool? = nil, supportsSync: Bool? = nil, deviceProfile: AllOfClientCapabilitiesDeviceProfile? = nil, appStoreUrl: String? = nil, iconUrl: String? = nil) { - self.playableMediaTypes = playableMediaTypes - self.supportedCommands = supportedCommands - self.supportsMediaControl = supportsMediaControl - self.supportsContentUploading = supportsContentUploading - self.messageCallbackUrl = messageCallbackUrl - self.supportsPersistentIdentifier = supportsPersistentIdentifier - self.supportsSync = supportsSync - self.deviceProfile = deviceProfile - self.appStoreUrl = appStoreUrl - self.iconUrl = iconUrl - } - - public enum CodingKeys: String, CodingKey { - case playableMediaTypes = "PlayableMediaTypes" - case supportedCommands = "SupportedCommands" - case supportsMediaControl = "SupportsMediaControl" - case supportsContentUploading = "SupportsContentUploading" - case messageCallbackUrl = "MessageCallbackUrl" - case supportsPersistentIdentifier = "SupportsPersistentIdentifier" - case supportsSync = "SupportsSync" - case deviceProfile = "DeviceProfile" - case appStoreUrl = "AppStoreUrl" - case iconUrl = "IconUrl" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ClientCapabilitiesDto.swift b/JellyfinPlayer/Swaggers/Models/ClientCapabilitiesDto.swift deleted file mode 100644 index 966696e8..00000000 --- a/JellyfinPlayer/Swaggers/Models/ClientCapabilitiesDto.swift +++ /dev/null @@ -1,62 +0,0 @@ -// -// ClientCapabilitiesDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Client capabilities dto. */ - -public struct ClientCapabilitiesDto: Codable { - - /** Gets or sets the list of playable media types. */ - public var playableMediaTypes: [String]? - /** Gets or sets the list of supported commands. */ - public var supportedCommands: [GeneralCommandType]? - /** Gets or sets a value indicating whether session supports media control. */ - public var supportsMediaControl: Bool? - /** Gets or sets a value indicating whether session supports content uploading. */ - public var supportsContentUploading: Bool? - /** Gets or sets the message callback url. */ - public var messageCallbackUrl: String? - /** Gets or sets a value indicating whether session supports a persistent identifier. */ - public var supportsPersistentIdentifier: Bool? - /** Gets or sets a value indicating whether session supports sync. */ - public var supportsSync: Bool? - /** Gets or sets the device profile. */ - public var deviceProfile: AllOfClientCapabilitiesDtoDeviceProfile? - /** Gets or sets the app store url. */ - public var appStoreUrl: String? - /** Gets or sets the icon url. */ - public var iconUrl: String? - - public init(playableMediaTypes: [String]? = nil, supportedCommands: [GeneralCommandType]? = nil, supportsMediaControl: Bool? = nil, supportsContentUploading: Bool? = nil, messageCallbackUrl: String? = nil, supportsPersistentIdentifier: Bool? = nil, supportsSync: Bool? = nil, deviceProfile: AllOfClientCapabilitiesDtoDeviceProfile? = nil, appStoreUrl: String? = nil, iconUrl: String? = nil) { - self.playableMediaTypes = playableMediaTypes - self.supportedCommands = supportedCommands - self.supportsMediaControl = supportsMediaControl - self.supportsContentUploading = supportsContentUploading - self.messageCallbackUrl = messageCallbackUrl - self.supportsPersistentIdentifier = supportsPersistentIdentifier - self.supportsSync = supportsSync - self.deviceProfile = deviceProfile - self.appStoreUrl = appStoreUrl - self.iconUrl = iconUrl - } - - public enum CodingKeys: String, CodingKey { - case playableMediaTypes = "PlayableMediaTypes" - case supportedCommands = "SupportedCommands" - case supportsMediaControl = "SupportsMediaControl" - case supportsContentUploading = "SupportsContentUploading" - case messageCallbackUrl = "MessageCallbackUrl" - case supportsPersistentIdentifier = "SupportsPersistentIdentifier" - case supportsSync = "SupportsSync" - case deviceProfile = "DeviceProfile" - case appStoreUrl = "AppStoreUrl" - case iconUrl = "IconUrl" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/CodecProfile.swift b/JellyfinPlayer/Swaggers/Models/CodecProfile.swift deleted file mode 100644 index f4327849..00000000 --- a/JellyfinPlayer/Swaggers/Models/CodecProfile.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// CodecProfile.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct CodecProfile: Codable { - - public var type: AllOfCodecProfileModelType? - public var conditions: [ProfileCondition]? - public var applyConditions: [ProfileCondition]? - public var codec: String? - public var container: String? - - public init(type: AllOfCodecProfileModelType? = nil, conditions: [ProfileCondition]? = nil, applyConditions: [ProfileCondition]? = nil, codec: String? = nil, container: String? = nil) { - self.type = type - self.conditions = conditions - self.applyConditions = applyConditions - self.codec = codec - self.container = container - } - - public enum CodingKeys: String, CodingKey { - case type = "Type" - case conditions = "Conditions" - case applyConditions = "ApplyConditions" - case codec = "Codec" - case container = "Container" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/CodecType.swift b/JellyfinPlayer/Swaggers/Models/CodecType.swift deleted file mode 100644 index 37af23f7..00000000 --- a/JellyfinPlayer/Swaggers/Models/CodecType.swift +++ /dev/null @@ -1,15 +0,0 @@ -// -// CodecType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum CodecType: String, Codable { - case video = "Video" - case videoAudio = "VideoAudio" - case audio = "Audio" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/CollectionCreationResult.swift b/JellyfinPlayer/Swaggers/Models/CollectionCreationResult.swift deleted file mode 100644 index 67d03027..00000000 --- a/JellyfinPlayer/Swaggers/Models/CollectionCreationResult.swift +++ /dev/null @@ -1,24 +0,0 @@ -// -// CollectionCreationResult.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct CollectionCreationResult: Codable { - - public var _id: UUID? - - public init(_id: UUID? = nil) { - self._id = _id - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/CollectionType.swift b/JellyfinPlayer/Swaggers/Models/CollectionType.swift deleted file mode 100644 index 9d96cbe0..00000000 --- a/JellyfinPlayer/Swaggers/Models/CollectionType.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// CollectionType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The type of the collection. */ - -public struct CollectionType: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/CollectionTypeOptions.swift b/JellyfinPlayer/Swaggers/Models/CollectionTypeOptions.swift deleted file mode 100644 index 4f8c5bf4..00000000 --- a/JellyfinPlayer/Swaggers/Models/CollectionTypeOptions.swift +++ /dev/null @@ -1,20 +0,0 @@ -// -// CollectionTypeOptions.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum CollectionTypeOptions: String, Codable { - case movies = "Movies" - case tvShows = "TvShows" - case music = "Music" - case musicVideos = "MusicVideos" - case homeVideos = "HomeVideos" - case boxSets = "BoxSets" - case books = "Books" - case mixed = "Mixed" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/Command.swift b/JellyfinPlayer/Swaggers/Models/Command.swift deleted file mode 100644 index d3643be6..00000000 --- a/JellyfinPlayer/Swaggers/Models/Command.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Command.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The command to send. */ - -public struct Command: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Command1.swift b/JellyfinPlayer/Swaggers/Models/Command1.swift deleted file mode 100644 index 18993ba4..00000000 --- a/JellyfinPlayer/Swaggers/Models/Command1.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Command1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The MediaBrowser.Model.Session.PlaystateCommand. */ - -public struct Command1: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Command2.swift b/JellyfinPlayer/Swaggers/Models/Command2.swift deleted file mode 100644 index bd5430e3..00000000 --- a/JellyfinPlayer/Swaggers/Models/Command2.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Command2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The command to send. */ - -public struct Command2: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ConfigurationPageInfo.swift b/JellyfinPlayer/Swaggers/Models/ConfigurationPageInfo.swift deleted file mode 100644 index 936cb3c3..00000000 --- a/JellyfinPlayer/Swaggers/Models/ConfigurationPageInfo.swift +++ /dev/null @@ -1,50 +0,0 @@ -// -// ConfigurationPageInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The configuration page info. */ - -public struct ConfigurationPageInfo: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets a value indicating whether the configurations page is enabled in the main menu. */ - public var enableInMainMenu: Bool? - /** Gets or sets the menu section. */ - public var menuSection: String? - /** Gets or sets the menu icon. */ - public var menuIcon: String? - /** Gets or sets the display name. */ - public var displayName: String? - /** Gets or sets the type of the configuration page. */ - public var configurationPageType: AllOfConfigurationPageInfoConfigurationPageType? - /** Gets or sets the plugin id. */ - public var pluginId: UUID? - - public init(name: String? = nil, enableInMainMenu: Bool? = nil, menuSection: String? = nil, menuIcon: String? = nil, displayName: String? = nil, configurationPageType: AllOfConfigurationPageInfoConfigurationPageType? = nil, pluginId: UUID? = nil) { - self.name = name - self.enableInMainMenu = enableInMainMenu - self.menuSection = menuSection - self.menuIcon = menuIcon - self.displayName = displayName - self.configurationPageType = configurationPageType - self.pluginId = pluginId - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case enableInMainMenu = "EnableInMainMenu" - case menuSection = "MenuSection" - case menuIcon = "MenuIcon" - case displayName = "DisplayName" - case configurationPageType = "ConfigurationPageType" - case pluginId = "PluginId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ConfigurationPageType.swift b/JellyfinPlayer/Swaggers/Models/ConfigurationPageType.swift deleted file mode 100644 index 0bb3a852..00000000 --- a/JellyfinPlayer/Swaggers/Models/ConfigurationPageType.swift +++ /dev/null @@ -1,15 +0,0 @@ -// -// ConfigurationPageType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Enum ConfigurationPageType. */ -public enum ConfigurationPageType: String, Codable { - case pluginConfiguration = "PluginConfiguration" - case _none = "None" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/ContainerProfile.swift b/JellyfinPlayer/Swaggers/Models/ContainerProfile.swift deleted file mode 100644 index 3158b171..00000000 --- a/JellyfinPlayer/Swaggers/Models/ContainerProfile.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// ContainerProfile.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct ContainerProfile: Codable { - - public var type: AllOfContainerProfileModelType? - public var conditions: [ProfileCondition]? - public var container: String? - - public init(type: AllOfContainerProfileModelType? = nil, conditions: [ProfileCondition]? = nil, container: String? = nil) { - self.type = type - self.conditions = conditions - self.container = container - } - - public enum CodingKeys: String, CodingKey { - case type = "Type" - case conditions = "Conditions" - case container = "Container" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/Context.swift b/JellyfinPlayer/Swaggers/Models/Context.swift deleted file mode 100644 index 421e5094..00000000 --- a/JellyfinPlayer/Swaggers/Models/Context.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Context.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. The MediaBrowser.Model.Dlna.EncodingContext. */ - -public struct Context: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Context1.swift b/JellyfinPlayer/Swaggers/Models/Context1.swift deleted file mode 100644 index c18f283f..00000000 --- a/JellyfinPlayer/Swaggers/Models/Context1.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Context1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. The MediaBrowser.Model.Dlna.EncodingContext. */ - -public struct Context1: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Context10.swift b/JellyfinPlayer/Swaggers/Models/Context10.swift deleted file mode 100644 index deb5c577..00000000 --- a/JellyfinPlayer/Swaggers/Models/Context10.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Context10.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. The MediaBrowser.Model.Dlna.EncodingContext. */ - -public struct Context10: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Context11.swift b/JellyfinPlayer/Swaggers/Models/Context11.swift deleted file mode 100644 index bed3291d..00000000 --- a/JellyfinPlayer/Swaggers/Models/Context11.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Context11.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. The MediaBrowser.Model.Dlna.EncodingContext. */ - -public struct Context11: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Context12.swift b/JellyfinPlayer/Swaggers/Models/Context12.swift deleted file mode 100644 index f09ec798..00000000 --- a/JellyfinPlayer/Swaggers/Models/Context12.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Context12.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. The MediaBrowser.Model.Dlna.EncodingContext. */ - -public struct Context12: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Context13.swift b/JellyfinPlayer/Swaggers/Models/Context13.swift deleted file mode 100644 index 5f20e1d7..00000000 --- a/JellyfinPlayer/Swaggers/Models/Context13.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Context13.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. The MediaBrowser.Model.Dlna.EncodingContext. */ - -public struct Context13: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Context14.swift b/JellyfinPlayer/Swaggers/Models/Context14.swift deleted file mode 100644 index ba35c0c8..00000000 --- a/JellyfinPlayer/Swaggers/Models/Context14.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Context14.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. The MediaBrowser.Model.Dlna.EncodingContext. */ - -public struct Context14: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Context15.swift b/JellyfinPlayer/Swaggers/Models/Context15.swift deleted file mode 100644 index 248970d0..00000000 --- a/JellyfinPlayer/Swaggers/Models/Context15.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Context15.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. The MediaBrowser.Model.Dlna.EncodingContext. */ - -public struct Context15: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Context16.swift b/JellyfinPlayer/Swaggers/Models/Context16.swift deleted file mode 100644 index b9e21297..00000000 --- a/JellyfinPlayer/Swaggers/Models/Context16.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Context16.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. The MediaBrowser.Model.Dlna.EncodingContext. */ - -public struct Context16: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Context2.swift b/JellyfinPlayer/Swaggers/Models/Context2.swift deleted file mode 100644 index 76808bb9..00000000 --- a/JellyfinPlayer/Swaggers/Models/Context2.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Context2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. The MediaBrowser.Model.Dlna.EncodingContext. */ - -public struct Context2: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Context3.swift b/JellyfinPlayer/Swaggers/Models/Context3.swift deleted file mode 100644 index 05763c3b..00000000 --- a/JellyfinPlayer/Swaggers/Models/Context3.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Context3.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. The MediaBrowser.Model.Dlna.EncodingContext. */ - -public struct Context3: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Context4.swift b/JellyfinPlayer/Swaggers/Models/Context4.swift deleted file mode 100644 index b7d7f4c7..00000000 --- a/JellyfinPlayer/Swaggers/Models/Context4.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Context4.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. The MediaBrowser.Model.Dlna.EncodingContext. */ - -public struct Context4: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Context5.swift b/JellyfinPlayer/Swaggers/Models/Context5.swift deleted file mode 100644 index e1fb90e3..00000000 --- a/JellyfinPlayer/Swaggers/Models/Context5.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Context5.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. The MediaBrowser.Model.Dlna.EncodingContext. */ - -public struct Context5: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Context6.swift b/JellyfinPlayer/Swaggers/Models/Context6.swift deleted file mode 100644 index ee1f1398..00000000 --- a/JellyfinPlayer/Swaggers/Models/Context6.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Context6.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. The MediaBrowser.Model.Dlna.EncodingContext. */ - -public struct Context6: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Context7.swift b/JellyfinPlayer/Swaggers/Models/Context7.swift deleted file mode 100644 index 75d8efea..00000000 --- a/JellyfinPlayer/Swaggers/Models/Context7.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Context7.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. The MediaBrowser.Model.Dlna.EncodingContext. */ - -public struct Context7: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Context8.swift b/JellyfinPlayer/Swaggers/Models/Context8.swift deleted file mode 100644 index 5cc9bb87..00000000 --- a/JellyfinPlayer/Swaggers/Models/Context8.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Context8.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. The MediaBrowser.Model.Dlna.EncodingContext. */ - -public struct Context8: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Context9.swift b/JellyfinPlayer/Swaggers/Models/Context9.swift deleted file mode 100644 index 0a8a700d..00000000 --- a/JellyfinPlayer/Swaggers/Models/Context9.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Context9.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. The MediaBrowser.Model.Dlna.EncodingContext. */ - -public struct Context9: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ControlResponse.swift b/JellyfinPlayer/Swaggers/Models/ControlResponse.swift deleted file mode 100644 index 7aeb6a7e..00000000 --- a/JellyfinPlayer/Swaggers/Models/ControlResponse.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// ControlResponse.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct ControlResponse: Codable { - - public var headers: [String:String]? - public var xml: String? - public var isSuccessful: Bool? - - public init(headers: [String:String]? = nil, xml: String? = nil, isSuccessful: Bool? = nil) { - self.headers = headers - self.xml = xml - self.isSuccessful = isSuccessful - } - - public enum CodingKeys: String, CodingKey { - case headers = "Headers" - case xml = "Xml" - case isSuccessful = "IsSuccessful" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/CountryInfo.swift b/JellyfinPlayer/Swaggers/Models/CountryInfo.swift deleted file mode 100644 index cc4744d2..00000000 --- a/JellyfinPlayer/Swaggers/Models/CountryInfo.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// CountryInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class CountryInfo. */ - -public struct CountryInfo: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the display name. */ - public var displayName: String? - /** Gets or sets the name of the two letter ISO region. */ - public var twoLetterISORegionName: String? - /** Gets or sets the name of the three letter ISO region. */ - public var threeLetterISORegionName: String? - - public init(name: String? = nil, displayName: String? = nil, twoLetterISORegionName: String? = nil, threeLetterISORegionName: String? = nil) { - self.name = name - self.displayName = displayName - self.twoLetterISORegionName = twoLetterISORegionName - self.threeLetterISORegionName = threeLetterISORegionName - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case displayName = "DisplayName" - case twoLetterISORegionName = "TwoLetterISORegionName" - case threeLetterISORegionName = "ThreeLetterISORegionName" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/CreatePlaylistDto.swift b/JellyfinPlayer/Swaggers/Models/CreatePlaylistDto.swift deleted file mode 100644 index a225dd63..00000000 --- a/JellyfinPlayer/Swaggers/Models/CreatePlaylistDto.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// CreatePlaylistDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Create new playlist dto. */ - -public struct CreatePlaylistDto: Codable { - - /** Gets or sets the name of the new playlist. */ - public var name: String? - /** Gets or sets item ids to add to the playlist. */ - public var ids: [UUID]? - /** Gets or sets the user id. */ - public var userId: UUID? - /** Gets or sets the media type. */ - public var mediaType: String? - - public init(name: String? = nil, ids: [UUID]? = nil, userId: UUID? = nil, mediaType: String? = nil) { - self.name = name - self.ids = ids - self.userId = userId - self.mediaType = mediaType - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case ids = "Ids" - case userId = "UserId" - case mediaType = "MediaType" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/CreateUserByName.swift b/JellyfinPlayer/Swaggers/Models/CreateUserByName.swift deleted file mode 100644 index 3e326f48..00000000 --- a/JellyfinPlayer/Swaggers/Models/CreateUserByName.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// CreateUserByName.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The create user by name request body. */ - -public struct CreateUserByName: Codable { - - /** Gets or sets the username. */ - public var name: String? - /** Gets or sets the password. */ - public var password: String? - - public init(name: String? = nil, password: String? = nil) { - self.name = name - self.password = password - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case password = "Password" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/CultureDto.swift b/JellyfinPlayer/Swaggers/Models/CultureDto.swift deleted file mode 100644 index 80d48acd..00000000 --- a/JellyfinPlayer/Swaggers/Models/CultureDto.swift +++ /dev/null @@ -1,41 +0,0 @@ -// -// CultureDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class CultureDto. */ - -public struct CultureDto: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the display name. */ - public var displayName: String? - /** Gets or sets the name of the two letter ISO language. */ - public var twoLetterISOLanguageName: String? - /** Gets or sets the name of the three letter ISO language. */ - public var threeLetterISOLanguageName: String? - public var threeLetterISOLanguageNames: [String]? - - public init(name: String? = nil, displayName: String? = nil, twoLetterISOLanguageName: String? = nil, threeLetterISOLanguageName: String? = nil, threeLetterISOLanguageNames: [String]? = nil) { - self.name = name - self.displayName = displayName - self.twoLetterISOLanguageName = twoLetterISOLanguageName - self.threeLetterISOLanguageName = threeLetterISOLanguageName - self.threeLetterISOLanguageNames = threeLetterISOLanguageNames - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case displayName = "DisplayName" - case twoLetterISOLanguageName = "TwoLetterISOLanguageName" - case threeLetterISOLanguageName = "ThreeLetterISOLanguageName" - case threeLetterISOLanguageNames = "ThreeLetterISOLanguageNames" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/DayOfWeek.swift b/JellyfinPlayer/Swaggers/Models/DayOfWeek.swift deleted file mode 100644 index 1f1e0f45..00000000 --- a/JellyfinPlayer/Swaggers/Models/DayOfWeek.swift +++ /dev/null @@ -1,19 +0,0 @@ -// -// DayOfWeek.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum DayOfWeek: String, Codable { - case sunday = "Sunday" - case monday = "Monday" - case tuesday = "Tuesday" - case wednesday = "Wednesday" - case thursday = "Thursday" - case friday = "Friday" - case saturday = "Saturday" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/DayPattern.swift b/JellyfinPlayer/Swaggers/Models/DayPattern.swift deleted file mode 100644 index 5ce547d7..00000000 --- a/JellyfinPlayer/Swaggers/Models/DayPattern.swift +++ /dev/null @@ -1,15 +0,0 @@ -// -// DayPattern.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum DayPattern: String, Codable { - case daily = "Daily" - case weekdays = "Weekdays" - case weekends = "Weekends" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/DefaultDirectoryBrowserInfoDto.swift b/JellyfinPlayer/Swaggers/Models/DefaultDirectoryBrowserInfoDto.swift deleted file mode 100644 index 6d0eb759..00000000 --- a/JellyfinPlayer/Swaggers/Models/DefaultDirectoryBrowserInfoDto.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// DefaultDirectoryBrowserInfoDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Default directory browser info. */ - -public struct DefaultDirectoryBrowserInfoDto: Codable { - - /** Gets or sets the path. */ - public var path: String? - - public init(path: String? = nil) { - self.path = path - } - - public enum CodingKeys: String, CodingKey { - case path = "Path" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/DeviceIdentification.swift b/JellyfinPlayer/Swaggers/Models/DeviceIdentification.swift deleted file mode 100644 index a1b39d3b..00000000 --- a/JellyfinPlayer/Swaggers/Models/DeviceIdentification.swift +++ /dev/null @@ -1,57 +0,0 @@ -// -// DeviceIdentification.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct DeviceIdentification: Codable { - - /** Gets or sets the name of the friendly. */ - public var friendlyName: String? - /** Gets or sets the model number. */ - public var modelNumber: String? - /** Gets or sets the serial number. */ - public var serialNumber: String? - /** Gets or sets the name of the model. */ - public var modelName: String? - /** Gets or sets the model description. */ - public var modelDescription: String? - /** Gets or sets the model URL. */ - public var modelUrl: String? - /** Gets or sets the manufacturer. */ - public var manufacturer: String? - /** Gets or sets the manufacturer URL. */ - public var manufacturerUrl: String? - /** Gets or sets the headers. */ - public var headers: [HttpHeaderInfo]? - - public init(friendlyName: String? = nil, modelNumber: String? = nil, serialNumber: String? = nil, modelName: String? = nil, modelDescription: String? = nil, modelUrl: String? = nil, manufacturer: String? = nil, manufacturerUrl: String? = nil, headers: [HttpHeaderInfo]? = nil) { - self.friendlyName = friendlyName - self.modelNumber = modelNumber - self.serialNumber = serialNumber - self.modelName = modelName - self.modelDescription = modelDescription - self.modelUrl = modelUrl - self.manufacturer = manufacturer - self.manufacturerUrl = manufacturerUrl - self.headers = headers - } - - public enum CodingKeys: String, CodingKey { - case friendlyName = "FriendlyName" - case modelNumber = "ModelNumber" - case serialNumber = "SerialNumber" - case modelName = "ModelName" - case modelDescription = "ModelDescription" - case modelUrl = "ModelUrl" - case manufacturer = "Manufacturer" - case manufacturerUrl = "ManufacturerUrl" - case headers = "Headers" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/DeviceInfo.swift b/JellyfinPlayer/Swaggers/Models/DeviceInfo.swift deleted file mode 100644 index d5401ceb..00000000 --- a/JellyfinPlayer/Swaggers/Models/DeviceInfo.swift +++ /dev/null @@ -1,55 +0,0 @@ -// -// DeviceInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct DeviceInfo: Codable { - - public var name: String? - /** Gets or sets the identifier. */ - public var _id: String? - /** Gets or sets the last name of the user. */ - public var lastUserName: String? - /** Gets or sets the name of the application. */ - public var appName: String? - /** Gets or sets the application version. */ - public var appVersion: String? - /** Gets or sets the last user identifier. */ - public var lastUserId: UUID? - /** Gets or sets the date last modified. */ - public var dateLastActivity: Date? - /** Gets or sets the capabilities. */ - public var capabilities: AllOfDeviceInfoCapabilities? - public var iconUrl: String? - - public init(name: String? = nil, _id: String? = nil, lastUserName: String? = nil, appName: String? = nil, appVersion: String? = nil, lastUserId: UUID? = nil, dateLastActivity: Date? = nil, capabilities: AllOfDeviceInfoCapabilities? = nil, iconUrl: String? = nil) { - self.name = name - self._id = _id - self.lastUserName = lastUserName - self.appName = appName - self.appVersion = appVersion - self.lastUserId = lastUserId - self.dateLastActivity = dateLastActivity - self.capabilities = capabilities - self.iconUrl = iconUrl - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case _id = "Id" - case lastUserName = "LastUserName" - case appName = "AppName" - case appVersion = "AppVersion" - case lastUserId = "LastUserId" - case dateLastActivity = "DateLastActivity" - case capabilities = "Capabilities" - case iconUrl = "IconUrl" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/DeviceInfoQueryResult.swift b/JellyfinPlayer/Swaggers/Models/DeviceInfoQueryResult.swift deleted file mode 100644 index 7238d9ac..00000000 --- a/JellyfinPlayer/Swaggers/Models/DeviceInfoQueryResult.swift +++ /dev/null @@ -1,33 +0,0 @@ -// -// DeviceInfoQueryResult.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct DeviceInfoQueryResult: Codable { - - /** Gets or sets the items. */ - public var items: [DeviceInfo]? - /** The total number of records available. */ - public var totalRecordCount: Int? - /** The index of the first record in Items. */ - public var startIndex: Int? - - public init(items: [DeviceInfo]? = nil, totalRecordCount: Int? = nil, startIndex: Int? = nil) { - self.items = items - self.totalRecordCount = totalRecordCount - self.startIndex = startIndex - } - - public enum CodingKeys: String, CodingKey { - case items = "Items" - case totalRecordCount = "TotalRecordCount" - case startIndex = "StartIndex" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/DeviceOptions.swift b/JellyfinPlayer/Swaggers/Models/DeviceOptions.swift deleted file mode 100644 index b722aa89..00000000 --- a/JellyfinPlayer/Swaggers/Models/DeviceOptions.swift +++ /dev/null @@ -1,24 +0,0 @@ -// -// DeviceOptions.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct DeviceOptions: Codable { - - public var customName: String? - - public init(customName: String? = nil) { - self.customName = customName - } - - public enum CodingKeys: String, CodingKey { - case customName = "CustomName" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/DeviceProfile.swift b/JellyfinPlayer/Swaggers/Models/DeviceProfile.swift deleted file mode 100644 index 6b1dfd8e..00000000 --- a/JellyfinPlayer/Swaggers/Models/DeviceProfile.swift +++ /dev/null @@ -1,178 +0,0 @@ -// -// DeviceProfile.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Defines the MediaBrowser.Model.Dlna.DeviceProfile. */ - -public struct DeviceProfile: Codable { - - /** Gets or sets the Name. */ - public var name: String? - /** Gets or sets the Id. */ - public var _id: String? - /** Gets or sets the Identification. */ - public var identification: AllOfDeviceProfileIdentification? - /** Gets or sets the FriendlyName. */ - public var friendlyName: String? - /** Gets or sets the Manufacturer. */ - public var manufacturer: String? - /** Gets or sets the ManufacturerUrl. */ - public var manufacturerUrl: String? - /** Gets or sets the ModelName. */ - public var modelName: String? - /** Gets or sets the ModelDescription. */ - public var modelDescription: String? - /** Gets or sets the ModelNumber. */ - public var modelNumber: String? - /** Gets or sets the ModelUrl. */ - public var modelUrl: String? - /** Gets or sets the SerialNumber. */ - public var serialNumber: String? - /** Gets or sets a value indicating whether EnableAlbumArtInDidl. */ - public var enableAlbumArtInDidl: Bool? - /** Gets or sets a value indicating whether EnableSingleAlbumArtLimit. */ - public var enableSingleAlbumArtLimit: Bool? - /** Gets or sets a value indicating whether EnableSingleSubtitleLimit. */ - public var enableSingleSubtitleLimit: Bool? - /** Gets or sets the SupportedMediaTypes. */ - public var supportedMediaTypes: String? - /** Gets or sets the UserId. */ - public var userId: String? - /** Gets or sets the AlbumArtPn. */ - public var albumArtPn: String? - /** Gets or sets the MaxAlbumArtWidth. */ - public var maxAlbumArtWidth: Int? - /** Gets or sets the MaxAlbumArtHeight. */ - public var maxAlbumArtHeight: Int? - /** Gets or sets the MaxIconWidth. */ - public var maxIconWidth: Int? - /** Gets or sets the MaxIconHeight. */ - public var maxIconHeight: Int? - /** Gets or sets the MaxStreamingBitrate. */ - public var maxStreamingBitrate: Int? - /** Gets or sets the MaxStaticBitrate. */ - public var maxStaticBitrate: Int? - /** Gets or sets the MusicStreamingTranscodingBitrate. */ - public var musicStreamingTranscodingBitrate: Int? - /** Gets or sets the MaxStaticMusicBitrate. */ - public var maxStaticMusicBitrate: Int? - /** Gets or sets the content of the aggregationFlags element in the urn:schemas-sonycom:av namespace. */ - public var sonyAggregationFlags: String? - /** Gets or sets the ProtocolInfo. */ - public var protocolInfo: String? - /** Gets or sets the TimelineOffsetSeconds. */ - public var timelineOffsetSeconds: Int? - /** Gets or sets a value indicating whether RequiresPlainVideoItems. */ - public var requiresPlainVideoItems: Bool? - /** Gets or sets a value indicating whether RequiresPlainFolders. */ - public var requiresPlainFolders: Bool? - /** Gets or sets a value indicating whether EnableMSMediaReceiverRegistrar. */ - public var enableMSMediaReceiverRegistrar: Bool? - /** Gets or sets a value indicating whether IgnoreTranscodeByteRangeRequests. */ - public var ignoreTranscodeByteRangeRequests: Bool? - /** Gets or sets the XmlRootAttributes. */ - public var xmlRootAttributes: [XmlAttribute]? - /** Gets or sets the direct play profiles. */ - public var directPlayProfiles: [DirectPlayProfile]? - /** Gets or sets the transcoding profiles. */ - public var transcodingProfiles: [TranscodingProfile]? - /** Gets or sets the ContainerProfiles. */ - public var containerProfiles: [ContainerProfile]? - /** Gets or sets the CodecProfiles. */ - public var codecProfiles: [CodecProfile]? - /** Gets or sets the ResponseProfiles. */ - public var responseProfiles: [ResponseProfile]? - /** Gets or sets the SubtitleProfiles. */ - public var subtitleProfiles: [SubtitleProfile]? - - public init(name: String? = nil, _id: String? = nil, identification: AllOfDeviceProfileIdentification? = nil, friendlyName: String? = nil, manufacturer: String? = nil, manufacturerUrl: String? = nil, modelName: String? = nil, modelDescription: String? = nil, modelNumber: String? = nil, modelUrl: String? = nil, serialNumber: String? = nil, enableAlbumArtInDidl: Bool? = nil, enableSingleAlbumArtLimit: Bool? = nil, enableSingleSubtitleLimit: Bool? = nil, supportedMediaTypes: String? = nil, userId: String? = nil, albumArtPn: String? = nil, maxAlbumArtWidth: Int? = nil, maxAlbumArtHeight: Int? = nil, maxIconWidth: Int? = nil, maxIconHeight: Int? = nil, maxStreamingBitrate: Int? = nil, maxStaticBitrate: Int? = nil, musicStreamingTranscodingBitrate: Int? = nil, maxStaticMusicBitrate: Int? = nil, sonyAggregationFlags: String? = nil, protocolInfo: String? = nil, timelineOffsetSeconds: Int? = nil, requiresPlainVideoItems: Bool? = nil, requiresPlainFolders: Bool? = nil, enableMSMediaReceiverRegistrar: Bool? = nil, ignoreTranscodeByteRangeRequests: Bool? = nil, xmlRootAttributes: [XmlAttribute]? = nil, directPlayProfiles: [DirectPlayProfile]? = nil, transcodingProfiles: [TranscodingProfile]? = nil, containerProfiles: [ContainerProfile]? = nil, codecProfiles: [CodecProfile]? = nil, responseProfiles: [ResponseProfile]? = nil, subtitleProfiles: [SubtitleProfile]? = nil) { - self.name = name - self._id = _id - self.identification = identification - self.friendlyName = friendlyName - self.manufacturer = manufacturer - self.manufacturerUrl = manufacturerUrl - self.modelName = modelName - self.modelDescription = modelDescription - self.modelNumber = modelNumber - self.modelUrl = modelUrl - self.serialNumber = serialNumber - self.enableAlbumArtInDidl = enableAlbumArtInDidl - self.enableSingleAlbumArtLimit = enableSingleAlbumArtLimit - self.enableSingleSubtitleLimit = enableSingleSubtitleLimit - self.supportedMediaTypes = supportedMediaTypes - self.userId = userId - self.albumArtPn = albumArtPn - self.maxAlbumArtWidth = maxAlbumArtWidth - self.maxAlbumArtHeight = maxAlbumArtHeight - self.maxIconWidth = maxIconWidth - self.maxIconHeight = maxIconHeight - self.maxStreamingBitrate = maxStreamingBitrate - self.maxStaticBitrate = maxStaticBitrate - self.musicStreamingTranscodingBitrate = musicStreamingTranscodingBitrate - self.maxStaticMusicBitrate = maxStaticMusicBitrate - self.sonyAggregationFlags = sonyAggregationFlags - self.protocolInfo = protocolInfo - self.timelineOffsetSeconds = timelineOffsetSeconds - self.requiresPlainVideoItems = requiresPlainVideoItems - self.requiresPlainFolders = requiresPlainFolders - self.enableMSMediaReceiverRegistrar = enableMSMediaReceiverRegistrar - self.ignoreTranscodeByteRangeRequests = ignoreTranscodeByteRangeRequests - self.xmlRootAttributes = xmlRootAttributes - self.directPlayProfiles = directPlayProfiles - self.transcodingProfiles = transcodingProfiles - self.containerProfiles = containerProfiles - self.codecProfiles = codecProfiles - self.responseProfiles = responseProfiles - self.subtitleProfiles = subtitleProfiles - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case _id = "Id" - case identification = "Identification" - case friendlyName = "FriendlyName" - case manufacturer = "Manufacturer" - case manufacturerUrl = "ManufacturerUrl" - case modelName = "ModelName" - case modelDescription = "ModelDescription" - case modelNumber = "ModelNumber" - case modelUrl = "ModelUrl" - case serialNumber = "SerialNumber" - case enableAlbumArtInDidl = "EnableAlbumArtInDidl" - case enableSingleAlbumArtLimit = "EnableSingleAlbumArtLimit" - case enableSingleSubtitleLimit = "EnableSingleSubtitleLimit" - case supportedMediaTypes = "SupportedMediaTypes" - case userId = "UserId" - case albumArtPn = "AlbumArtPn" - case maxAlbumArtWidth = "MaxAlbumArtWidth" - case maxAlbumArtHeight = "MaxAlbumArtHeight" - case maxIconWidth = "MaxIconWidth" - case maxIconHeight = "MaxIconHeight" - case maxStreamingBitrate = "MaxStreamingBitrate" - case maxStaticBitrate = "MaxStaticBitrate" - case musicStreamingTranscodingBitrate = "MusicStreamingTranscodingBitrate" - case maxStaticMusicBitrate = "MaxStaticMusicBitrate" - case sonyAggregationFlags = "SonyAggregationFlags" - case protocolInfo = "ProtocolInfo" - case timelineOffsetSeconds = "TimelineOffsetSeconds" - case requiresPlainVideoItems = "RequiresPlainVideoItems" - case requiresPlainFolders = "RequiresPlainFolders" - case enableMSMediaReceiverRegistrar = "EnableMSMediaReceiverRegistrar" - case ignoreTranscodeByteRangeRequests = "IgnoreTranscodeByteRangeRequests" - case xmlRootAttributes = "XmlRootAttributes" - case directPlayProfiles = "DirectPlayProfiles" - case transcodingProfiles = "TranscodingProfiles" - case containerProfiles = "ContainerProfiles" - case codecProfiles = "CodecProfiles" - case responseProfiles = "ResponseProfiles" - case subtitleProfiles = "SubtitleProfiles" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/DeviceProfileInfo.swift b/JellyfinPlayer/Swaggers/Models/DeviceProfileInfo.swift deleted file mode 100644 index fae0f91a..00000000 --- a/JellyfinPlayer/Swaggers/Models/DeviceProfileInfo.swift +++ /dev/null @@ -1,33 +0,0 @@ -// -// DeviceProfileInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct DeviceProfileInfo: Codable { - - /** Gets or sets the identifier. */ - public var _id: String? - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the type. */ - public var type: AllOfDeviceProfileInfoModelType? - - public init(_id: String? = nil, name: String? = nil, type: AllOfDeviceProfileInfoModelType? = nil) { - self._id = _id - self.name = name - self.type = type - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case name = "Name" - case type = "Type" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/DeviceProfileType.swift b/JellyfinPlayer/Swaggers/Models/DeviceProfileType.swift deleted file mode 100644 index dc24bdd4..00000000 --- a/JellyfinPlayer/Swaggers/Models/DeviceProfileType.swift +++ /dev/null @@ -1,14 +0,0 @@ -// -// DeviceProfileType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum DeviceProfileType: String, Codable { - case system = "System" - case user = "User" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/DevicesOptionsBody.swift b/JellyfinPlayer/Swaggers/Models/DevicesOptionsBody.swift deleted file mode 100644 index 5f1a26ee..00000000 --- a/JellyfinPlayer/Swaggers/Models/DevicesOptionsBody.swift +++ /dev/null @@ -1,25 +0,0 @@ -// -// DevicesOptionsBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Device Options. */ - -public struct DevicesOptionsBody: Codable { - - public var customName: String? - - public init(customName: String? = nil) { - self.customName = customName - } - - public enum CodingKeys: String, CodingKey { - case customName = "CustomName" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/DevicesOptionsBody1.swift b/JellyfinPlayer/Swaggers/Models/DevicesOptionsBody1.swift deleted file mode 100644 index f4ffea92..00000000 --- a/JellyfinPlayer/Swaggers/Models/DevicesOptionsBody1.swift +++ /dev/null @@ -1,25 +0,0 @@ -// -// DevicesOptionsBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Device Options. */ - -public struct DevicesOptionsBody1: Codable { - - public var customName: String? - - public init(customName: String? = nil) { - self.customName = customName - } - - public enum CodingKeys: String, CodingKey { - case customName = "CustomName" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/DevicesOptionsBody2.swift b/JellyfinPlayer/Swaggers/Models/DevicesOptionsBody2.swift deleted file mode 100644 index 1c1519b0..00000000 --- a/JellyfinPlayer/Swaggers/Models/DevicesOptionsBody2.swift +++ /dev/null @@ -1,25 +0,0 @@ -// -// DevicesOptionsBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Device Options. */ - -public struct DevicesOptionsBody2: Codable { - - public var customName: String? - - public init(customName: String? = nil) { - self.customName = customName - } - - public enum CodingKeys: String, CodingKey { - case customName = "CustomName" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/DirectPlayProfile.swift b/JellyfinPlayer/Swaggers/Models/DirectPlayProfile.swift deleted file mode 100644 index 088e028f..00000000 --- a/JellyfinPlayer/Swaggers/Models/DirectPlayProfile.swift +++ /dev/null @@ -1,33 +0,0 @@ -// -// DirectPlayProfile.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct DirectPlayProfile: Codable { - - public var container: String? - public var audioCodec: String? - public var videoCodec: String? - public var type: AllOfDirectPlayProfileModelType? - - public init(container: String? = nil, audioCodec: String? = nil, videoCodec: String? = nil, type: AllOfDirectPlayProfileModelType? = nil) { - self.container = container - self.audioCodec = audioCodec - self.videoCodec = videoCodec - self.type = type - } - - public enum CodingKeys: String, CodingKey { - case container = "Container" - case audioCodec = "AudioCodec" - case videoCodec = "VideoCodec" - case type = "Type" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/DisplayPreferencesDisplayPreferencesIdBody.swift b/JellyfinPlayer/Swaggers/Models/DisplayPreferencesDisplayPreferencesIdBody.swift deleted file mode 100644 index d1cdc769..00000000 --- a/JellyfinPlayer/Swaggers/Models/DisplayPreferencesDisplayPreferencesIdBody.swift +++ /dev/null @@ -1,78 +0,0 @@ -// -// DisplayPreferencesDisplayPreferencesIdBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** New Display Preferences object. */ - -public struct DisplayPreferencesDisplayPreferencesIdBody: Codable { - - /** Gets or sets the user id. */ - public var _id: String? - /** Gets or sets the type of the view. */ - public var viewType: String? - /** Gets or sets the sort by. */ - public var sortBy: String? - /** Gets or sets the index by. */ - public var indexBy: String? - /** Gets or sets a value indicating whether [remember indexing]. */ - public var rememberIndexing: Bool? - /** Gets or sets the height of the primary image. */ - public var primaryImageHeight: Int? - /** Gets or sets the width of the primary image. */ - public var primaryImageWidth: Int? - /** Gets or sets the custom prefs. */ - public var customPrefs: [String:String]? - /** An enum representing the axis that should be scrolled. */ - public var scrollDirection: Any? - /** Gets or sets a value indicating whether to show backdrops on this item. */ - public var showBackdrop: Bool? - /** Gets or sets a value indicating whether [remember sorting]. */ - public var rememberSorting: Bool? - /** An enum representing the sorting order. */ - public var sortOrder: Any? - /** Gets or sets a value indicating whether [show sidebar]. */ - public var showSidebar: Bool? - /** Gets or sets the client. */ - public var client: String? - - public init(_id: String? = nil, viewType: String? = nil, sortBy: String? = nil, indexBy: String? = nil, rememberIndexing: Bool? = nil, primaryImageHeight: Int? = nil, primaryImageWidth: Int? = nil, customPrefs: [String:String]? = nil, scrollDirection: Any? = nil, showBackdrop: Bool? = nil, rememberSorting: Bool? = nil, sortOrder: Any? = nil, showSidebar: Bool? = nil, client: String? = nil) { - self._id = _id - self.viewType = viewType - self.sortBy = sortBy - self.indexBy = indexBy - self.rememberIndexing = rememberIndexing - self.primaryImageHeight = primaryImageHeight - self.primaryImageWidth = primaryImageWidth - self.customPrefs = customPrefs - self.scrollDirection = scrollDirection - self.showBackdrop = showBackdrop - self.rememberSorting = rememberSorting - self.sortOrder = sortOrder - self.showSidebar = showSidebar - self.client = client - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case viewType = "ViewType" - case sortBy = "SortBy" - case indexBy = "IndexBy" - case rememberIndexing = "RememberIndexing" - case primaryImageHeight = "PrimaryImageHeight" - case primaryImageWidth = "PrimaryImageWidth" - case customPrefs = "CustomPrefs" - case scrollDirection = "ScrollDirection" - case showBackdrop = "ShowBackdrop" - case rememberSorting = "RememberSorting" - case sortOrder = "SortOrder" - case showSidebar = "ShowSidebar" - case client = "Client" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/DisplayPreferencesDisplayPreferencesIdBody1.swift b/JellyfinPlayer/Swaggers/Models/DisplayPreferencesDisplayPreferencesIdBody1.swift deleted file mode 100644 index e27fdb10..00000000 --- a/JellyfinPlayer/Swaggers/Models/DisplayPreferencesDisplayPreferencesIdBody1.swift +++ /dev/null @@ -1,78 +0,0 @@ -// -// DisplayPreferencesDisplayPreferencesIdBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** New Display Preferences object. */ - -public struct DisplayPreferencesDisplayPreferencesIdBody1: Codable { - - /** Gets or sets the user id. */ - public var _id: String? - /** Gets or sets the type of the view. */ - public var viewType: String? - /** Gets or sets the sort by. */ - public var sortBy: String? - /** Gets or sets the index by. */ - public var indexBy: String? - /** Gets or sets a value indicating whether [remember indexing]. */ - public var rememberIndexing: Bool? - /** Gets or sets the height of the primary image. */ - public var primaryImageHeight: Int? - /** Gets or sets the width of the primary image. */ - public var primaryImageWidth: Int? - /** Gets or sets the custom prefs. */ - public var customPrefs: [String:String]? - /** An enum representing the axis that should be scrolled. */ - public var scrollDirection: Any? - /** Gets or sets a value indicating whether to show backdrops on this item. */ - public var showBackdrop: Bool? - /** Gets or sets a value indicating whether [remember sorting]. */ - public var rememberSorting: Bool? - /** An enum representing the sorting order. */ - public var sortOrder: Any? - /** Gets or sets a value indicating whether [show sidebar]. */ - public var showSidebar: Bool? - /** Gets or sets the client. */ - public var client: String? - - public init(_id: String? = nil, viewType: String? = nil, sortBy: String? = nil, indexBy: String? = nil, rememberIndexing: Bool? = nil, primaryImageHeight: Int? = nil, primaryImageWidth: Int? = nil, customPrefs: [String:String]? = nil, scrollDirection: Any? = nil, showBackdrop: Bool? = nil, rememberSorting: Bool? = nil, sortOrder: Any? = nil, showSidebar: Bool? = nil, client: String? = nil) { - self._id = _id - self.viewType = viewType - self.sortBy = sortBy - self.indexBy = indexBy - self.rememberIndexing = rememberIndexing - self.primaryImageHeight = primaryImageHeight - self.primaryImageWidth = primaryImageWidth - self.customPrefs = customPrefs - self.scrollDirection = scrollDirection - self.showBackdrop = showBackdrop - self.rememberSorting = rememberSorting - self.sortOrder = sortOrder - self.showSidebar = showSidebar - self.client = client - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case viewType = "ViewType" - case sortBy = "SortBy" - case indexBy = "IndexBy" - case rememberIndexing = "RememberIndexing" - case primaryImageHeight = "PrimaryImageHeight" - case primaryImageWidth = "PrimaryImageWidth" - case customPrefs = "CustomPrefs" - case scrollDirection = "ScrollDirection" - case showBackdrop = "ShowBackdrop" - case rememberSorting = "RememberSorting" - case sortOrder = "SortOrder" - case showSidebar = "ShowSidebar" - case client = "Client" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/DisplayPreferencesDisplayPreferencesIdBody2.swift b/JellyfinPlayer/Swaggers/Models/DisplayPreferencesDisplayPreferencesIdBody2.swift deleted file mode 100644 index 3d25af5c..00000000 --- a/JellyfinPlayer/Swaggers/Models/DisplayPreferencesDisplayPreferencesIdBody2.swift +++ /dev/null @@ -1,78 +0,0 @@ -// -// DisplayPreferencesDisplayPreferencesIdBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** New Display Preferences object. */ - -public struct DisplayPreferencesDisplayPreferencesIdBody2: Codable { - - /** Gets or sets the user id. */ - public var _id: String? - /** Gets or sets the type of the view. */ - public var viewType: String? - /** Gets or sets the sort by. */ - public var sortBy: String? - /** Gets or sets the index by. */ - public var indexBy: String? - /** Gets or sets a value indicating whether [remember indexing]. */ - public var rememberIndexing: Bool? - /** Gets or sets the height of the primary image. */ - public var primaryImageHeight: Int? - /** Gets or sets the width of the primary image. */ - public var primaryImageWidth: Int? - /** Gets or sets the custom prefs. */ - public var customPrefs: [String:String]? - /** An enum representing the axis that should be scrolled. */ - public var scrollDirection: Any? - /** Gets or sets a value indicating whether to show backdrops on this item. */ - public var showBackdrop: Bool? - /** Gets or sets a value indicating whether [remember sorting]. */ - public var rememberSorting: Bool? - /** An enum representing the sorting order. */ - public var sortOrder: Any? - /** Gets or sets a value indicating whether [show sidebar]. */ - public var showSidebar: Bool? - /** Gets or sets the client. */ - public var client: String? - - public init(_id: String? = nil, viewType: String? = nil, sortBy: String? = nil, indexBy: String? = nil, rememberIndexing: Bool? = nil, primaryImageHeight: Int? = nil, primaryImageWidth: Int? = nil, customPrefs: [String:String]? = nil, scrollDirection: Any? = nil, showBackdrop: Bool? = nil, rememberSorting: Bool? = nil, sortOrder: Any? = nil, showSidebar: Bool? = nil, client: String? = nil) { - self._id = _id - self.viewType = viewType - self.sortBy = sortBy - self.indexBy = indexBy - self.rememberIndexing = rememberIndexing - self.primaryImageHeight = primaryImageHeight - self.primaryImageWidth = primaryImageWidth - self.customPrefs = customPrefs - self.scrollDirection = scrollDirection - self.showBackdrop = showBackdrop - self.rememberSorting = rememberSorting - self.sortOrder = sortOrder - self.showSidebar = showSidebar - self.client = client - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case viewType = "ViewType" - case sortBy = "SortBy" - case indexBy = "IndexBy" - case rememberIndexing = "RememberIndexing" - case primaryImageHeight = "PrimaryImageHeight" - case primaryImageWidth = "PrimaryImageWidth" - case customPrefs = "CustomPrefs" - case scrollDirection = "ScrollDirection" - case showBackdrop = "ShowBackdrop" - case rememberSorting = "RememberSorting" - case sortOrder = "SortOrder" - case showSidebar = "ShowSidebar" - case client = "Client" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/DisplayPreferencesDto.swift b/JellyfinPlayer/Swaggers/Models/DisplayPreferencesDto.swift deleted file mode 100644 index 0ca936be..00000000 --- a/JellyfinPlayer/Swaggers/Models/DisplayPreferencesDto.swift +++ /dev/null @@ -1,78 +0,0 @@ -// -// DisplayPreferencesDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Defines the display preferences for any item that supports them (usually Folders). */ - -public struct DisplayPreferencesDto: Codable { - - /** Gets or sets the user id. */ - public var _id: String? - /** Gets or sets the type of the view. */ - public var viewType: String? - /** Gets or sets the sort by. */ - public var sortBy: String? - /** Gets or sets the index by. */ - public var indexBy: String? - /** Gets or sets a value indicating whether [remember indexing]. */ - public var rememberIndexing: Bool? - /** Gets or sets the height of the primary image. */ - public var primaryImageHeight: Int? - /** Gets or sets the width of the primary image. */ - public var primaryImageWidth: Int? - /** Gets or sets the custom prefs. */ - public var customPrefs: [String:String]? - /** An enum representing the axis that should be scrolled. */ - public var scrollDirection: AllOfDisplayPreferencesDtoScrollDirection? - /** Gets or sets a value indicating whether to show backdrops on this item. */ - public var showBackdrop: Bool? - /** Gets or sets a value indicating whether [remember sorting]. */ - public var rememberSorting: Bool? - /** An enum representing the sorting order. */ - public var sortOrder: AllOfDisplayPreferencesDtoSortOrder? - /** Gets or sets a value indicating whether [show sidebar]. */ - public var showSidebar: Bool? - /** Gets or sets the client. */ - public var client: String? - - public init(_id: String? = nil, viewType: String? = nil, sortBy: String? = nil, indexBy: String? = nil, rememberIndexing: Bool? = nil, primaryImageHeight: Int? = nil, primaryImageWidth: Int? = nil, customPrefs: [String:String]? = nil, scrollDirection: AllOfDisplayPreferencesDtoScrollDirection? = nil, showBackdrop: Bool? = nil, rememberSorting: Bool? = nil, sortOrder: AllOfDisplayPreferencesDtoSortOrder? = nil, showSidebar: Bool? = nil, client: String? = nil) { - self._id = _id - self.viewType = viewType - self.sortBy = sortBy - self.indexBy = indexBy - self.rememberIndexing = rememberIndexing - self.primaryImageHeight = primaryImageHeight - self.primaryImageWidth = primaryImageWidth - self.customPrefs = customPrefs - self.scrollDirection = scrollDirection - self.showBackdrop = showBackdrop - self.rememberSorting = rememberSorting - self.sortOrder = sortOrder - self.showSidebar = showSidebar - self.client = client - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case viewType = "ViewType" - case sortBy = "SortBy" - case indexBy = "IndexBy" - case rememberIndexing = "RememberIndexing" - case primaryImageHeight = "PrimaryImageHeight" - case primaryImageWidth = "PrimaryImageWidth" - case customPrefs = "CustomPrefs" - case scrollDirection = "ScrollDirection" - case showBackdrop = "ShowBackdrop" - case rememberSorting = "RememberSorting" - case sortOrder = "SortOrder" - case showSidebar = "ShowSidebar" - case client = "Client" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/DlnaProfileType.swift b/JellyfinPlayer/Swaggers/Models/DlnaProfileType.swift deleted file mode 100644 index 98cd72ac..00000000 --- a/JellyfinPlayer/Swaggers/Models/DlnaProfileType.swift +++ /dev/null @@ -1,15 +0,0 @@ -// -// DlnaProfileType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum DlnaProfileType: String, Codable { - case audio = "Audio" - case video = "Video" - case photo = "Photo" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/DlnaProfilesBody.swift b/JellyfinPlayer/Swaggers/Models/DlnaProfilesBody.swift deleted file mode 100644 index 2a8acf05..00000000 --- a/JellyfinPlayer/Swaggers/Models/DlnaProfilesBody.swift +++ /dev/null @@ -1,178 +0,0 @@ -// -// DlnaProfilesBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Device profile. */ - -public struct DlnaProfilesBody: Codable { - - /** Gets or sets the Name. */ - public var name: String? - /** Gets or sets the Id. */ - public var _id: String? - /** Gets or sets the Identification. */ - public var identification: Any? - /** Gets or sets the FriendlyName. */ - public var friendlyName: String? - /** Gets or sets the Manufacturer. */ - public var manufacturer: String? - /** Gets or sets the ManufacturerUrl. */ - public var manufacturerUrl: String? - /** Gets or sets the ModelName. */ - public var modelName: String? - /** Gets or sets the ModelDescription. */ - public var modelDescription: String? - /** Gets or sets the ModelNumber. */ - public var modelNumber: String? - /** Gets or sets the ModelUrl. */ - public var modelUrl: String? - /** Gets or sets the SerialNumber. */ - public var serialNumber: String? - /** Gets or sets a value indicating whether EnableAlbumArtInDidl. */ - public var enableAlbumArtInDidl: Bool? - /** Gets or sets a value indicating whether EnableSingleAlbumArtLimit. */ - public var enableSingleAlbumArtLimit: Bool? - /** Gets or sets a value indicating whether EnableSingleSubtitleLimit. */ - public var enableSingleSubtitleLimit: Bool? - /** Gets or sets the SupportedMediaTypes. */ - public var supportedMediaTypes: String? - /** Gets or sets the UserId. */ - public var userId: String? - /** Gets or sets the AlbumArtPn. */ - public var albumArtPn: String? - /** Gets or sets the MaxAlbumArtWidth. */ - public var maxAlbumArtWidth: Int? - /** Gets or sets the MaxAlbumArtHeight. */ - public var maxAlbumArtHeight: Int? - /** Gets or sets the MaxIconWidth. */ - public var maxIconWidth: Int? - /** Gets or sets the MaxIconHeight. */ - public var maxIconHeight: Int? - /** Gets or sets the MaxStreamingBitrate. */ - public var maxStreamingBitrate: Int? - /** Gets or sets the MaxStaticBitrate. */ - public var maxStaticBitrate: Int? - /** Gets or sets the MusicStreamingTranscodingBitrate. */ - public var musicStreamingTranscodingBitrate: Int? - /** Gets or sets the MaxStaticMusicBitrate. */ - public var maxStaticMusicBitrate: Int? - /** Gets or sets the content of the aggregationFlags element in the urn:schemas-sonycom:av namespace. */ - public var sonyAggregationFlags: String? - /** Gets or sets the ProtocolInfo. */ - public var protocolInfo: String? - /** Gets or sets the TimelineOffsetSeconds. */ - public var timelineOffsetSeconds: Int? - /** Gets or sets a value indicating whether RequiresPlainVideoItems. */ - public var requiresPlainVideoItems: Bool? - /** Gets or sets a value indicating whether RequiresPlainFolders. */ - public var requiresPlainFolders: Bool? - /** Gets or sets a value indicating whether EnableMSMediaReceiverRegistrar. */ - public var enableMSMediaReceiverRegistrar: Bool? - /** Gets or sets a value indicating whether IgnoreTranscodeByteRangeRequests. */ - public var ignoreTranscodeByteRangeRequests: Bool? - /** Gets or sets the XmlRootAttributes. */ - public var xmlRootAttributes: [XmlAttribute]? - /** Gets or sets the direct play profiles. */ - public var directPlayProfiles: [DirectPlayProfile]? - /** Gets or sets the transcoding profiles. */ - public var transcodingProfiles: [TranscodingProfile]? - /** Gets or sets the ContainerProfiles. */ - public var containerProfiles: [ContainerProfile]? - /** Gets or sets the CodecProfiles. */ - public var codecProfiles: [CodecProfile]? - /** Gets or sets the ResponseProfiles. */ - public var responseProfiles: [ResponseProfile]? - /** Gets or sets the SubtitleProfiles. */ - public var subtitleProfiles: [SubtitleProfile]? - - public init(name: String? = nil, _id: String? = nil, identification: Any? = nil, friendlyName: String? = nil, manufacturer: String? = nil, manufacturerUrl: String? = nil, modelName: String? = nil, modelDescription: String? = nil, modelNumber: String? = nil, modelUrl: String? = nil, serialNumber: String? = nil, enableAlbumArtInDidl: Bool? = nil, enableSingleAlbumArtLimit: Bool? = nil, enableSingleSubtitleLimit: Bool? = nil, supportedMediaTypes: String? = nil, userId: String? = nil, albumArtPn: String? = nil, maxAlbumArtWidth: Int? = nil, maxAlbumArtHeight: Int? = nil, maxIconWidth: Int? = nil, maxIconHeight: Int? = nil, maxStreamingBitrate: Int? = nil, maxStaticBitrate: Int? = nil, musicStreamingTranscodingBitrate: Int? = nil, maxStaticMusicBitrate: Int? = nil, sonyAggregationFlags: String? = nil, protocolInfo: String? = nil, timelineOffsetSeconds: Int? = nil, requiresPlainVideoItems: Bool? = nil, requiresPlainFolders: Bool? = nil, enableMSMediaReceiverRegistrar: Bool? = nil, ignoreTranscodeByteRangeRequests: Bool? = nil, xmlRootAttributes: [XmlAttribute]? = nil, directPlayProfiles: [DirectPlayProfile]? = nil, transcodingProfiles: [TranscodingProfile]? = nil, containerProfiles: [ContainerProfile]? = nil, codecProfiles: [CodecProfile]? = nil, responseProfiles: [ResponseProfile]? = nil, subtitleProfiles: [SubtitleProfile]? = nil) { - self.name = name - self._id = _id - self.identification = identification - self.friendlyName = friendlyName - self.manufacturer = manufacturer - self.manufacturerUrl = manufacturerUrl - self.modelName = modelName - self.modelDescription = modelDescription - self.modelNumber = modelNumber - self.modelUrl = modelUrl - self.serialNumber = serialNumber - self.enableAlbumArtInDidl = enableAlbumArtInDidl - self.enableSingleAlbumArtLimit = enableSingleAlbumArtLimit - self.enableSingleSubtitleLimit = enableSingleSubtitleLimit - self.supportedMediaTypes = supportedMediaTypes - self.userId = userId - self.albumArtPn = albumArtPn - self.maxAlbumArtWidth = maxAlbumArtWidth - self.maxAlbumArtHeight = maxAlbumArtHeight - self.maxIconWidth = maxIconWidth - self.maxIconHeight = maxIconHeight - self.maxStreamingBitrate = maxStreamingBitrate - self.maxStaticBitrate = maxStaticBitrate - self.musicStreamingTranscodingBitrate = musicStreamingTranscodingBitrate - self.maxStaticMusicBitrate = maxStaticMusicBitrate - self.sonyAggregationFlags = sonyAggregationFlags - self.protocolInfo = protocolInfo - self.timelineOffsetSeconds = timelineOffsetSeconds - self.requiresPlainVideoItems = requiresPlainVideoItems - self.requiresPlainFolders = requiresPlainFolders - self.enableMSMediaReceiverRegistrar = enableMSMediaReceiverRegistrar - self.ignoreTranscodeByteRangeRequests = ignoreTranscodeByteRangeRequests - self.xmlRootAttributes = xmlRootAttributes - self.directPlayProfiles = directPlayProfiles - self.transcodingProfiles = transcodingProfiles - self.containerProfiles = containerProfiles - self.codecProfiles = codecProfiles - self.responseProfiles = responseProfiles - self.subtitleProfiles = subtitleProfiles - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case _id = "Id" - case identification = "Identification" - case friendlyName = "FriendlyName" - case manufacturer = "Manufacturer" - case manufacturerUrl = "ManufacturerUrl" - case modelName = "ModelName" - case modelDescription = "ModelDescription" - case modelNumber = "ModelNumber" - case modelUrl = "ModelUrl" - case serialNumber = "SerialNumber" - case enableAlbumArtInDidl = "EnableAlbumArtInDidl" - case enableSingleAlbumArtLimit = "EnableSingleAlbumArtLimit" - case enableSingleSubtitleLimit = "EnableSingleSubtitleLimit" - case supportedMediaTypes = "SupportedMediaTypes" - case userId = "UserId" - case albumArtPn = "AlbumArtPn" - case maxAlbumArtWidth = "MaxAlbumArtWidth" - case maxAlbumArtHeight = "MaxAlbumArtHeight" - case maxIconWidth = "MaxIconWidth" - case maxIconHeight = "MaxIconHeight" - case maxStreamingBitrate = "MaxStreamingBitrate" - case maxStaticBitrate = "MaxStaticBitrate" - case musicStreamingTranscodingBitrate = "MusicStreamingTranscodingBitrate" - case maxStaticMusicBitrate = "MaxStaticMusicBitrate" - case sonyAggregationFlags = "SonyAggregationFlags" - case protocolInfo = "ProtocolInfo" - case timelineOffsetSeconds = "TimelineOffsetSeconds" - case requiresPlainVideoItems = "RequiresPlainVideoItems" - case requiresPlainFolders = "RequiresPlainFolders" - case enableMSMediaReceiverRegistrar = "EnableMSMediaReceiverRegistrar" - case ignoreTranscodeByteRangeRequests = "IgnoreTranscodeByteRangeRequests" - case xmlRootAttributes = "XmlRootAttributes" - case directPlayProfiles = "DirectPlayProfiles" - case transcodingProfiles = "TranscodingProfiles" - case containerProfiles = "ContainerProfiles" - case codecProfiles = "CodecProfiles" - case responseProfiles = "ResponseProfiles" - case subtitleProfiles = "SubtitleProfiles" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/DlnaProfilesBody1.swift b/JellyfinPlayer/Swaggers/Models/DlnaProfilesBody1.swift deleted file mode 100644 index 39ae9b1c..00000000 --- a/JellyfinPlayer/Swaggers/Models/DlnaProfilesBody1.swift +++ /dev/null @@ -1,178 +0,0 @@ -// -// DlnaProfilesBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Device profile. */ - -public struct DlnaProfilesBody1: Codable { - - /** Gets or sets the Name. */ - public var name: String? - /** Gets or sets the Id. */ - public var _id: String? - /** Gets or sets the Identification. */ - public var identification: Any? - /** Gets or sets the FriendlyName. */ - public var friendlyName: String? - /** Gets or sets the Manufacturer. */ - public var manufacturer: String? - /** Gets or sets the ManufacturerUrl. */ - public var manufacturerUrl: String? - /** Gets or sets the ModelName. */ - public var modelName: String? - /** Gets or sets the ModelDescription. */ - public var modelDescription: String? - /** Gets or sets the ModelNumber. */ - public var modelNumber: String? - /** Gets or sets the ModelUrl. */ - public var modelUrl: String? - /** Gets or sets the SerialNumber. */ - public var serialNumber: String? - /** Gets or sets a value indicating whether EnableAlbumArtInDidl. */ - public var enableAlbumArtInDidl: Bool? - /** Gets or sets a value indicating whether EnableSingleAlbumArtLimit. */ - public var enableSingleAlbumArtLimit: Bool? - /** Gets or sets a value indicating whether EnableSingleSubtitleLimit. */ - public var enableSingleSubtitleLimit: Bool? - /** Gets or sets the SupportedMediaTypes. */ - public var supportedMediaTypes: String? - /** Gets or sets the UserId. */ - public var userId: String? - /** Gets or sets the AlbumArtPn. */ - public var albumArtPn: String? - /** Gets or sets the MaxAlbumArtWidth. */ - public var maxAlbumArtWidth: Int? - /** Gets or sets the MaxAlbumArtHeight. */ - public var maxAlbumArtHeight: Int? - /** Gets or sets the MaxIconWidth. */ - public var maxIconWidth: Int? - /** Gets or sets the MaxIconHeight. */ - public var maxIconHeight: Int? - /** Gets or sets the MaxStreamingBitrate. */ - public var maxStreamingBitrate: Int? - /** Gets or sets the MaxStaticBitrate. */ - public var maxStaticBitrate: Int? - /** Gets or sets the MusicStreamingTranscodingBitrate. */ - public var musicStreamingTranscodingBitrate: Int? - /** Gets or sets the MaxStaticMusicBitrate. */ - public var maxStaticMusicBitrate: Int? - /** Gets or sets the content of the aggregationFlags element in the urn:schemas-sonycom:av namespace. */ - public var sonyAggregationFlags: String? - /** Gets or sets the ProtocolInfo. */ - public var protocolInfo: String? - /** Gets or sets the TimelineOffsetSeconds. */ - public var timelineOffsetSeconds: Int? - /** Gets or sets a value indicating whether RequiresPlainVideoItems. */ - public var requiresPlainVideoItems: Bool? - /** Gets or sets a value indicating whether RequiresPlainFolders. */ - public var requiresPlainFolders: Bool? - /** Gets or sets a value indicating whether EnableMSMediaReceiverRegistrar. */ - public var enableMSMediaReceiverRegistrar: Bool? - /** Gets or sets a value indicating whether IgnoreTranscodeByteRangeRequests. */ - public var ignoreTranscodeByteRangeRequests: Bool? - /** Gets or sets the XmlRootAttributes. */ - public var xmlRootAttributes: [XmlAttribute]? - /** Gets or sets the direct play profiles. */ - public var directPlayProfiles: [DirectPlayProfile]? - /** Gets or sets the transcoding profiles. */ - public var transcodingProfiles: [TranscodingProfile]? - /** Gets or sets the ContainerProfiles. */ - public var containerProfiles: [ContainerProfile]? - /** Gets or sets the CodecProfiles. */ - public var codecProfiles: [CodecProfile]? - /** Gets or sets the ResponseProfiles. */ - public var responseProfiles: [ResponseProfile]? - /** Gets or sets the SubtitleProfiles. */ - public var subtitleProfiles: [SubtitleProfile]? - - public init(name: String? = nil, _id: String? = nil, identification: Any? = nil, friendlyName: String? = nil, manufacturer: String? = nil, manufacturerUrl: String? = nil, modelName: String? = nil, modelDescription: String? = nil, modelNumber: String? = nil, modelUrl: String? = nil, serialNumber: String? = nil, enableAlbumArtInDidl: Bool? = nil, enableSingleAlbumArtLimit: Bool? = nil, enableSingleSubtitleLimit: Bool? = nil, supportedMediaTypes: String? = nil, userId: String? = nil, albumArtPn: String? = nil, maxAlbumArtWidth: Int? = nil, maxAlbumArtHeight: Int? = nil, maxIconWidth: Int? = nil, maxIconHeight: Int? = nil, maxStreamingBitrate: Int? = nil, maxStaticBitrate: Int? = nil, musicStreamingTranscodingBitrate: Int? = nil, maxStaticMusicBitrate: Int? = nil, sonyAggregationFlags: String? = nil, protocolInfo: String? = nil, timelineOffsetSeconds: Int? = nil, requiresPlainVideoItems: Bool? = nil, requiresPlainFolders: Bool? = nil, enableMSMediaReceiverRegistrar: Bool? = nil, ignoreTranscodeByteRangeRequests: Bool? = nil, xmlRootAttributes: [XmlAttribute]? = nil, directPlayProfiles: [DirectPlayProfile]? = nil, transcodingProfiles: [TranscodingProfile]? = nil, containerProfiles: [ContainerProfile]? = nil, codecProfiles: [CodecProfile]? = nil, responseProfiles: [ResponseProfile]? = nil, subtitleProfiles: [SubtitleProfile]? = nil) { - self.name = name - self._id = _id - self.identification = identification - self.friendlyName = friendlyName - self.manufacturer = manufacturer - self.manufacturerUrl = manufacturerUrl - self.modelName = modelName - self.modelDescription = modelDescription - self.modelNumber = modelNumber - self.modelUrl = modelUrl - self.serialNumber = serialNumber - self.enableAlbumArtInDidl = enableAlbumArtInDidl - self.enableSingleAlbumArtLimit = enableSingleAlbumArtLimit - self.enableSingleSubtitleLimit = enableSingleSubtitleLimit - self.supportedMediaTypes = supportedMediaTypes - self.userId = userId - self.albumArtPn = albumArtPn - self.maxAlbumArtWidth = maxAlbumArtWidth - self.maxAlbumArtHeight = maxAlbumArtHeight - self.maxIconWidth = maxIconWidth - self.maxIconHeight = maxIconHeight - self.maxStreamingBitrate = maxStreamingBitrate - self.maxStaticBitrate = maxStaticBitrate - self.musicStreamingTranscodingBitrate = musicStreamingTranscodingBitrate - self.maxStaticMusicBitrate = maxStaticMusicBitrate - self.sonyAggregationFlags = sonyAggregationFlags - self.protocolInfo = protocolInfo - self.timelineOffsetSeconds = timelineOffsetSeconds - self.requiresPlainVideoItems = requiresPlainVideoItems - self.requiresPlainFolders = requiresPlainFolders - self.enableMSMediaReceiverRegistrar = enableMSMediaReceiverRegistrar - self.ignoreTranscodeByteRangeRequests = ignoreTranscodeByteRangeRequests - self.xmlRootAttributes = xmlRootAttributes - self.directPlayProfiles = directPlayProfiles - self.transcodingProfiles = transcodingProfiles - self.containerProfiles = containerProfiles - self.codecProfiles = codecProfiles - self.responseProfiles = responseProfiles - self.subtitleProfiles = subtitleProfiles - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case _id = "Id" - case identification = "Identification" - case friendlyName = "FriendlyName" - case manufacturer = "Manufacturer" - case manufacturerUrl = "ManufacturerUrl" - case modelName = "ModelName" - case modelDescription = "ModelDescription" - case modelNumber = "ModelNumber" - case modelUrl = "ModelUrl" - case serialNumber = "SerialNumber" - case enableAlbumArtInDidl = "EnableAlbumArtInDidl" - case enableSingleAlbumArtLimit = "EnableSingleAlbumArtLimit" - case enableSingleSubtitleLimit = "EnableSingleSubtitleLimit" - case supportedMediaTypes = "SupportedMediaTypes" - case userId = "UserId" - case albumArtPn = "AlbumArtPn" - case maxAlbumArtWidth = "MaxAlbumArtWidth" - case maxAlbumArtHeight = "MaxAlbumArtHeight" - case maxIconWidth = "MaxIconWidth" - case maxIconHeight = "MaxIconHeight" - case maxStreamingBitrate = "MaxStreamingBitrate" - case maxStaticBitrate = "MaxStaticBitrate" - case musicStreamingTranscodingBitrate = "MusicStreamingTranscodingBitrate" - case maxStaticMusicBitrate = "MaxStaticMusicBitrate" - case sonyAggregationFlags = "SonyAggregationFlags" - case protocolInfo = "ProtocolInfo" - case timelineOffsetSeconds = "TimelineOffsetSeconds" - case requiresPlainVideoItems = "RequiresPlainVideoItems" - case requiresPlainFolders = "RequiresPlainFolders" - case enableMSMediaReceiverRegistrar = "EnableMSMediaReceiverRegistrar" - case ignoreTranscodeByteRangeRequests = "IgnoreTranscodeByteRangeRequests" - case xmlRootAttributes = "XmlRootAttributes" - case directPlayProfiles = "DirectPlayProfiles" - case transcodingProfiles = "TranscodingProfiles" - case containerProfiles = "ContainerProfiles" - case codecProfiles = "CodecProfiles" - case responseProfiles = "ResponseProfiles" - case subtitleProfiles = "SubtitleProfiles" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/DlnaProfilesBody2.swift b/JellyfinPlayer/Swaggers/Models/DlnaProfilesBody2.swift deleted file mode 100644 index 4f156715..00000000 --- a/JellyfinPlayer/Swaggers/Models/DlnaProfilesBody2.swift +++ /dev/null @@ -1,178 +0,0 @@ -// -// DlnaProfilesBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Device profile. */ - -public struct DlnaProfilesBody2: Codable { - - /** Gets or sets the Name. */ - public var name: String? - /** Gets or sets the Id. */ - public var _id: String? - /** Gets or sets the Identification. */ - public var identification: Any? - /** Gets or sets the FriendlyName. */ - public var friendlyName: String? - /** Gets or sets the Manufacturer. */ - public var manufacturer: String? - /** Gets or sets the ManufacturerUrl. */ - public var manufacturerUrl: String? - /** Gets or sets the ModelName. */ - public var modelName: String? - /** Gets or sets the ModelDescription. */ - public var modelDescription: String? - /** Gets or sets the ModelNumber. */ - public var modelNumber: String? - /** Gets or sets the ModelUrl. */ - public var modelUrl: String? - /** Gets or sets the SerialNumber. */ - public var serialNumber: String? - /** Gets or sets a value indicating whether EnableAlbumArtInDidl. */ - public var enableAlbumArtInDidl: Bool? - /** Gets or sets a value indicating whether EnableSingleAlbumArtLimit. */ - public var enableSingleAlbumArtLimit: Bool? - /** Gets or sets a value indicating whether EnableSingleSubtitleLimit. */ - public var enableSingleSubtitleLimit: Bool? - /** Gets or sets the SupportedMediaTypes. */ - public var supportedMediaTypes: String? - /** Gets or sets the UserId. */ - public var userId: String? - /** Gets or sets the AlbumArtPn. */ - public var albumArtPn: String? - /** Gets or sets the MaxAlbumArtWidth. */ - public var maxAlbumArtWidth: Int? - /** Gets or sets the MaxAlbumArtHeight. */ - public var maxAlbumArtHeight: Int? - /** Gets or sets the MaxIconWidth. */ - public var maxIconWidth: Int? - /** Gets or sets the MaxIconHeight. */ - public var maxIconHeight: Int? - /** Gets or sets the MaxStreamingBitrate. */ - public var maxStreamingBitrate: Int? - /** Gets or sets the MaxStaticBitrate. */ - public var maxStaticBitrate: Int? - /** Gets or sets the MusicStreamingTranscodingBitrate. */ - public var musicStreamingTranscodingBitrate: Int? - /** Gets or sets the MaxStaticMusicBitrate. */ - public var maxStaticMusicBitrate: Int? - /** Gets or sets the content of the aggregationFlags element in the urn:schemas-sonycom:av namespace. */ - public var sonyAggregationFlags: String? - /** Gets or sets the ProtocolInfo. */ - public var protocolInfo: String? - /** Gets or sets the TimelineOffsetSeconds. */ - public var timelineOffsetSeconds: Int? - /** Gets or sets a value indicating whether RequiresPlainVideoItems. */ - public var requiresPlainVideoItems: Bool? - /** Gets or sets a value indicating whether RequiresPlainFolders. */ - public var requiresPlainFolders: Bool? - /** Gets or sets a value indicating whether EnableMSMediaReceiverRegistrar. */ - public var enableMSMediaReceiverRegistrar: Bool? - /** Gets or sets a value indicating whether IgnoreTranscodeByteRangeRequests. */ - public var ignoreTranscodeByteRangeRequests: Bool? - /** Gets or sets the XmlRootAttributes. */ - public var xmlRootAttributes: [XmlAttribute]? - /** Gets or sets the direct play profiles. */ - public var directPlayProfiles: [DirectPlayProfile]? - /** Gets or sets the transcoding profiles. */ - public var transcodingProfiles: [TranscodingProfile]? - /** Gets or sets the ContainerProfiles. */ - public var containerProfiles: [ContainerProfile]? - /** Gets or sets the CodecProfiles. */ - public var codecProfiles: [CodecProfile]? - /** Gets or sets the ResponseProfiles. */ - public var responseProfiles: [ResponseProfile]? - /** Gets or sets the SubtitleProfiles. */ - public var subtitleProfiles: [SubtitleProfile]? - - public init(name: String? = nil, _id: String? = nil, identification: Any? = nil, friendlyName: String? = nil, manufacturer: String? = nil, manufacturerUrl: String? = nil, modelName: String? = nil, modelDescription: String? = nil, modelNumber: String? = nil, modelUrl: String? = nil, serialNumber: String? = nil, enableAlbumArtInDidl: Bool? = nil, enableSingleAlbumArtLimit: Bool? = nil, enableSingleSubtitleLimit: Bool? = nil, supportedMediaTypes: String? = nil, userId: String? = nil, albumArtPn: String? = nil, maxAlbumArtWidth: Int? = nil, maxAlbumArtHeight: Int? = nil, maxIconWidth: Int? = nil, maxIconHeight: Int? = nil, maxStreamingBitrate: Int? = nil, maxStaticBitrate: Int? = nil, musicStreamingTranscodingBitrate: Int? = nil, maxStaticMusicBitrate: Int? = nil, sonyAggregationFlags: String? = nil, protocolInfo: String? = nil, timelineOffsetSeconds: Int? = nil, requiresPlainVideoItems: Bool? = nil, requiresPlainFolders: Bool? = nil, enableMSMediaReceiverRegistrar: Bool? = nil, ignoreTranscodeByteRangeRequests: Bool? = nil, xmlRootAttributes: [XmlAttribute]? = nil, directPlayProfiles: [DirectPlayProfile]? = nil, transcodingProfiles: [TranscodingProfile]? = nil, containerProfiles: [ContainerProfile]? = nil, codecProfiles: [CodecProfile]? = nil, responseProfiles: [ResponseProfile]? = nil, subtitleProfiles: [SubtitleProfile]? = nil) { - self.name = name - self._id = _id - self.identification = identification - self.friendlyName = friendlyName - self.manufacturer = manufacturer - self.manufacturerUrl = manufacturerUrl - self.modelName = modelName - self.modelDescription = modelDescription - self.modelNumber = modelNumber - self.modelUrl = modelUrl - self.serialNumber = serialNumber - self.enableAlbumArtInDidl = enableAlbumArtInDidl - self.enableSingleAlbumArtLimit = enableSingleAlbumArtLimit - self.enableSingleSubtitleLimit = enableSingleSubtitleLimit - self.supportedMediaTypes = supportedMediaTypes - self.userId = userId - self.albumArtPn = albumArtPn - self.maxAlbumArtWidth = maxAlbumArtWidth - self.maxAlbumArtHeight = maxAlbumArtHeight - self.maxIconWidth = maxIconWidth - self.maxIconHeight = maxIconHeight - self.maxStreamingBitrate = maxStreamingBitrate - self.maxStaticBitrate = maxStaticBitrate - self.musicStreamingTranscodingBitrate = musicStreamingTranscodingBitrate - self.maxStaticMusicBitrate = maxStaticMusicBitrate - self.sonyAggregationFlags = sonyAggregationFlags - self.protocolInfo = protocolInfo - self.timelineOffsetSeconds = timelineOffsetSeconds - self.requiresPlainVideoItems = requiresPlainVideoItems - self.requiresPlainFolders = requiresPlainFolders - self.enableMSMediaReceiverRegistrar = enableMSMediaReceiverRegistrar - self.ignoreTranscodeByteRangeRequests = ignoreTranscodeByteRangeRequests - self.xmlRootAttributes = xmlRootAttributes - self.directPlayProfiles = directPlayProfiles - self.transcodingProfiles = transcodingProfiles - self.containerProfiles = containerProfiles - self.codecProfiles = codecProfiles - self.responseProfiles = responseProfiles - self.subtitleProfiles = subtitleProfiles - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case _id = "Id" - case identification = "Identification" - case friendlyName = "FriendlyName" - case manufacturer = "Manufacturer" - case manufacturerUrl = "ManufacturerUrl" - case modelName = "ModelName" - case modelDescription = "ModelDescription" - case modelNumber = "ModelNumber" - case modelUrl = "ModelUrl" - case serialNumber = "SerialNumber" - case enableAlbumArtInDidl = "EnableAlbumArtInDidl" - case enableSingleAlbumArtLimit = "EnableSingleAlbumArtLimit" - case enableSingleSubtitleLimit = "EnableSingleSubtitleLimit" - case supportedMediaTypes = "SupportedMediaTypes" - case userId = "UserId" - case albumArtPn = "AlbumArtPn" - case maxAlbumArtWidth = "MaxAlbumArtWidth" - case maxAlbumArtHeight = "MaxAlbumArtHeight" - case maxIconWidth = "MaxIconWidth" - case maxIconHeight = "MaxIconHeight" - case maxStreamingBitrate = "MaxStreamingBitrate" - case maxStaticBitrate = "MaxStaticBitrate" - case musicStreamingTranscodingBitrate = "MusicStreamingTranscodingBitrate" - case maxStaticMusicBitrate = "MaxStaticMusicBitrate" - case sonyAggregationFlags = "SonyAggregationFlags" - case protocolInfo = "ProtocolInfo" - case timelineOffsetSeconds = "TimelineOffsetSeconds" - case requiresPlainVideoItems = "RequiresPlainVideoItems" - case requiresPlainFolders = "RequiresPlainFolders" - case enableMSMediaReceiverRegistrar = "EnableMSMediaReceiverRegistrar" - case ignoreTranscodeByteRangeRequests = "IgnoreTranscodeByteRangeRequests" - case xmlRootAttributes = "XmlRootAttributes" - case directPlayProfiles = "DirectPlayProfiles" - case transcodingProfiles = "TranscodingProfiles" - case containerProfiles = "ContainerProfiles" - case codecProfiles = "CodecProfiles" - case responseProfiles = "ResponseProfiles" - case subtitleProfiles = "SubtitleProfiles" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/DynamicDayOfWeek.swift b/JellyfinPlayer/Swaggers/Models/DynamicDayOfWeek.swift deleted file mode 100644 index 60e2bf65..00000000 --- a/JellyfinPlayer/Swaggers/Models/DynamicDayOfWeek.swift +++ /dev/null @@ -1,23 +0,0 @@ -// -// DynamicDayOfWeek.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** An enum that represents a day of the week, weekdays, weekends, or all days. */ -public enum DynamicDayOfWeek: String, Codable { - case sunday = "Sunday" - case monday = "Monday" - case tuesday = "Tuesday" - case wednesday = "Wednesday" - case thursday = "Thursday" - case friday = "Friday" - case saturday = "Saturday" - case everyday = "Everyday" - case weekday = "Weekday" - case weekend = "Weekend" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/EncodingContext.swift b/JellyfinPlayer/Swaggers/Models/EncodingContext.swift deleted file mode 100644 index 91432cee..00000000 --- a/JellyfinPlayer/Swaggers/Models/EncodingContext.swift +++ /dev/null @@ -1,14 +0,0 @@ -// -// EncodingContext.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum EncodingContext: String, Codable { - case streaming = "Streaming" - case _static = "Static" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/EndPointInfo.swift b/JellyfinPlayer/Swaggers/Models/EndPointInfo.swift deleted file mode 100644 index 1a41f6a0..00000000 --- a/JellyfinPlayer/Swaggers/Models/EndPointInfo.swift +++ /dev/null @@ -1,27 +0,0 @@ -// -// EndPointInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct EndPointInfo: Codable { - - public var isLocal: Bool? - public var isInNetwork: Bool? - - public init(isLocal: Bool? = nil, isInNetwork: Bool? = nil) { - self.isLocal = isLocal - self.isInNetwork = isInNetwork - } - - public enum CodingKeys: String, CodingKey { - case isLocal = "IsLocal" - case isInNetwork = "IsInNetwork" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/EnvironmentValidatePathBody.swift b/JellyfinPlayer/Swaggers/Models/EnvironmentValidatePathBody.swift deleted file mode 100644 index 1bfb48c4..00000000 --- a/JellyfinPlayer/Swaggers/Models/EnvironmentValidatePathBody.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// EnvironmentValidatePathBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Validate request object. */ - -public struct EnvironmentValidatePathBody: Codable { - - /** Gets or sets a value indicating whether validate if path is writable. */ - public var validateWritable: Bool? - /** Gets or sets the path. */ - public var path: String? - /** Gets or sets is path file. */ - public var isFile: Bool? - - public init(validateWritable: Bool? = nil, path: String? = nil, isFile: Bool? = nil) { - self.validateWritable = validateWritable - self.path = path - self.isFile = isFile - } - - public enum CodingKeys: String, CodingKey { - case validateWritable = "ValidateWritable" - case path = "Path" - case isFile = "IsFile" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/EnvironmentValidatePathBody1.swift b/JellyfinPlayer/Swaggers/Models/EnvironmentValidatePathBody1.swift deleted file mode 100644 index 2872e7de..00000000 --- a/JellyfinPlayer/Swaggers/Models/EnvironmentValidatePathBody1.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// EnvironmentValidatePathBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Validate request object. */ - -public struct EnvironmentValidatePathBody1: Codable { - - /** Gets or sets a value indicating whether validate if path is writable. */ - public var validateWritable: Bool? - /** Gets or sets the path. */ - public var path: String? - /** Gets or sets is path file. */ - public var isFile: Bool? - - public init(validateWritable: Bool? = nil, path: String? = nil, isFile: Bool? = nil) { - self.validateWritable = validateWritable - self.path = path - self.isFile = isFile - } - - public enum CodingKeys: String, CodingKey { - case validateWritable = "ValidateWritable" - case path = "Path" - case isFile = "IsFile" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/EnvironmentValidatePathBody2.swift b/JellyfinPlayer/Swaggers/Models/EnvironmentValidatePathBody2.swift deleted file mode 100644 index 11cda5dd..00000000 --- a/JellyfinPlayer/Swaggers/Models/EnvironmentValidatePathBody2.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// EnvironmentValidatePathBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Validate request object. */ - -public struct EnvironmentValidatePathBody2: Codable { - - /** Gets or sets a value indicating whether validate if path is writable. */ - public var validateWritable: Bool? - /** Gets or sets the path. */ - public var path: String? - /** Gets or sets is path file. */ - public var isFile: Bool? - - public init(validateWritable: Bool? = nil, path: String? = nil, isFile: Bool? = nil) { - self.validateWritable = validateWritable - self.path = path - self.isFile = isFile - } - - public enum CodingKeys: String, CodingKey { - case validateWritable = "ValidateWritable" - case path = "Path" - case isFile = "IsFile" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ExternalIdInfo.swift b/JellyfinPlayer/Swaggers/Models/ExternalIdInfo.swift deleted file mode 100644 index 1cd6cec4..00000000 --- a/JellyfinPlayer/Swaggers/Models/ExternalIdInfo.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// ExternalIdInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Represents the external id information for serialization to the client. */ - -public struct ExternalIdInfo: Codable { - - /** Gets or sets the display name of the external id provider (IE: IMDB, MusicBrainz, etc). */ - public var name: String? - /** Gets or sets the unique key for this id. This key should be unique across all providers. */ - public var key: String? - /** Gets or sets the specific media type for this id. This is used to distinguish between the different external id types for providers with multiple ids. A null value indicates there is no specific media type associated with the external id, or this is the default id for the external provider so there is no need to specify a type. */ - public var type: AllOfExternalIdInfoModelType? - /** Gets or sets the URL format string. */ - public var urlFormatString: String? - - public init(name: String? = nil, key: String? = nil, type: AllOfExternalIdInfoModelType? = nil, urlFormatString: String? = nil) { - self.name = name - self.key = key - self.type = type - self.urlFormatString = urlFormatString - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case key = "Key" - case type = "Type" - case urlFormatString = "UrlFormatString" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ExternalIdMediaType.swift b/JellyfinPlayer/Swaggers/Models/ExternalIdMediaType.swift deleted file mode 100644 index 74cc4e65..00000000 --- a/JellyfinPlayer/Swaggers/Models/ExternalIdMediaType.swift +++ /dev/null @@ -1,25 +0,0 @@ -// -// ExternalIdMediaType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The specific media type of an MediaBrowser.Model.Providers.ExternalIdInfo. */ -public enum ExternalIdMediaType: String, Codable { - case album = "Album" - case albumArtist = "AlbumArtist" - case artist = "Artist" - case boxSet = "BoxSet" - case episode = "Episode" - case movie = "Movie" - case otherArtist = "OtherArtist" - case person = "Person" - case releaseGroup = "ReleaseGroup" - case season = "Season" - case series = "Series" - case track = "Track" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/ExternalUrl.swift b/JellyfinPlayer/Swaggers/Models/ExternalUrl.swift deleted file mode 100644 index 846a9d04..00000000 --- a/JellyfinPlayer/Swaggers/Models/ExternalUrl.swift +++ /dev/null @@ -1,29 +0,0 @@ -// -// ExternalUrl.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct ExternalUrl: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the type of the item. */ - public var url: String? - - public init(name: String? = nil, url: String? = nil) { - self.name = name - self.url = url - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case url = "Url" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/FFmpegLocation.swift b/JellyfinPlayer/Swaggers/Models/FFmpegLocation.swift deleted file mode 100644 index bcc9e9f0..00000000 --- a/JellyfinPlayer/Swaggers/Models/FFmpegLocation.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// FFmpegLocation.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Enum describing the location of the FFmpeg tool. */ -public enum FFmpegLocation: String, Codable { - case notFound = "NotFound" - case setByArgument = "SetByArgument" - case custom = "Custom" - case system = "System" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/FileSystemEntryInfo.swift b/JellyfinPlayer/Swaggers/Models/FileSystemEntryInfo.swift deleted file mode 100644 index 4a7b1307..00000000 --- a/JellyfinPlayer/Swaggers/Models/FileSystemEntryInfo.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// FileSystemEntryInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class FileSystemEntryInfo. */ - -public struct FileSystemEntryInfo: Codable { - - /** Gets the name. */ - public var name: String? - /** Gets the path. */ - public var path: String? - /** Gets the type. */ - public var type: AllOfFileSystemEntryInfoModelType? - - public init(name: String? = nil, path: String? = nil, type: AllOfFileSystemEntryInfoModelType? = nil) { - self.name = name - self.path = path - self.type = type - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case path = "Path" - case type = "Type" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/FileSystemEntryType.swift b/JellyfinPlayer/Swaggers/Models/FileSystemEntryType.swift deleted file mode 100644 index 971b430a..00000000 --- a/JellyfinPlayer/Swaggers/Models/FileSystemEntryType.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// FileSystemEntryType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Enum FileSystemEntryType. */ -public enum FileSystemEntryType: String, Codable { - case file = "File" - case directory = "Directory" - case networkComputer = "NetworkComputer" - case networkShare = "NetworkShare" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/FontFile.swift b/JellyfinPlayer/Swaggers/Models/FontFile.swift deleted file mode 100644 index e6091d4a..00000000 --- a/JellyfinPlayer/Swaggers/Models/FontFile.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// FontFile.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class FontFile. */ - -public struct FontFile: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the size. */ - public var size: Int64? - /** Gets or sets the date created. */ - public var dateCreated: Date? - /** Gets or sets the date modified. */ - public var dateModified: Date? - - public init(name: String? = nil, size: Int64? = nil, dateCreated: Date? = nil, dateModified: Date? = nil) { - self.name = name - self.size = size - self.dateCreated = dateCreated - self.dateModified = dateModified - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case size = "Size" - case dateCreated = "DateCreated" - case dateModified = "DateModified" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ForgotPasswordAction.swift b/JellyfinPlayer/Swaggers/Models/ForgotPasswordAction.swift deleted file mode 100644 index 553365d6..00000000 --- a/JellyfinPlayer/Swaggers/Models/ForgotPasswordAction.swift +++ /dev/null @@ -1,15 +0,0 @@ -// -// ForgotPasswordAction.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum ForgotPasswordAction: String, Codable { - case contactAdmin = "ContactAdmin" - case pinCode = "PinCode" - case inNetworkRequired = "InNetworkRequired" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/ForgotPasswordDto.swift b/JellyfinPlayer/Swaggers/Models/ForgotPasswordDto.swift deleted file mode 100644 index 7f7c380e..00000000 --- a/JellyfinPlayer/Swaggers/Models/ForgotPasswordDto.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// ForgotPasswordDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Forgot Password request body DTO. */ - -public struct ForgotPasswordDto: Codable { - - /** Gets or sets the entered username to have its password reset. */ - public var enteredUsername: String - - public init(enteredUsername: String) { - self.enteredUsername = enteredUsername - } - - public enum CodingKeys: String, CodingKey { - case enteredUsername = "EnteredUsername" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ForgotPasswordPinBody.swift b/JellyfinPlayer/Swaggers/Models/ForgotPasswordPinBody.swift deleted file mode 100644 index 7537edc8..00000000 --- a/JellyfinPlayer/Swaggers/Models/ForgotPasswordPinBody.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// ForgotPasswordPinBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The forgot password pin request containing the entered pin. */ - -public struct ForgotPasswordPinBody: Codable { - - /** Gets or sets the entered pin to have the password reset. */ - public var pin: String - - public init(pin: String) { - self.pin = pin - } - - public enum CodingKeys: String, CodingKey { - case pin = "Pin" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ForgotPasswordPinBody1.swift b/JellyfinPlayer/Swaggers/Models/ForgotPasswordPinBody1.swift deleted file mode 100644 index cf73faf4..00000000 --- a/JellyfinPlayer/Swaggers/Models/ForgotPasswordPinBody1.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// ForgotPasswordPinBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The forgot password pin request containing the entered pin. */ - -public struct ForgotPasswordPinBody1: Codable { - - /** Gets or sets the entered pin to have the password reset. */ - public var pin: String - - public init(pin: String) { - self.pin = pin - } - - public enum CodingKeys: String, CodingKey { - case pin = "Pin" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ForgotPasswordPinBody2.swift b/JellyfinPlayer/Swaggers/Models/ForgotPasswordPinBody2.swift deleted file mode 100644 index e74749ad..00000000 --- a/JellyfinPlayer/Swaggers/Models/ForgotPasswordPinBody2.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// ForgotPasswordPinBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The forgot password pin request containing the entered pin. */ - -public struct ForgotPasswordPinBody2: Codable { - - /** Gets or sets the entered pin to have the password reset. */ - public var pin: String - - public init(pin: String) { - self.pin = pin - } - - public enum CodingKeys: String, CodingKey { - case pin = "Pin" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ForgotPasswordPinDto.swift b/JellyfinPlayer/Swaggers/Models/ForgotPasswordPinDto.swift deleted file mode 100644 index 80dcbb9c..00000000 --- a/JellyfinPlayer/Swaggers/Models/ForgotPasswordPinDto.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// ForgotPasswordPinDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Forgot Password Pin enter request body DTO. */ - -public struct ForgotPasswordPinDto: Codable { - - /** Gets or sets the entered pin to have the password reset. */ - public var pin: String - - public init(pin: String) { - self.pin = pin - } - - public enum CodingKeys: String, CodingKey { - case pin = "Pin" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ForgotPasswordResult.swift b/JellyfinPlayer/Swaggers/Models/ForgotPasswordResult.swift deleted file mode 100644 index 45356cec..00000000 --- a/JellyfinPlayer/Swaggers/Models/ForgotPasswordResult.swift +++ /dev/null @@ -1,33 +0,0 @@ -// -// ForgotPasswordResult.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct ForgotPasswordResult: Codable { - - /** Gets or sets the action. */ - public var action: AllOfForgotPasswordResultAction? - /** Gets or sets the pin file. */ - public var pinFile: String? - /** Gets or sets the pin expiration date. */ - public var pinExpirationDate: Date? - - public init(action: AllOfForgotPasswordResultAction? = nil, pinFile: String? = nil, pinExpirationDate: Date? = nil) { - self.action = action - self.pinFile = pinFile - self.pinExpirationDate = pinExpirationDate - } - - public enum CodingKeys: String, CodingKey { - case action = "Action" - case pinFile = "PinFile" - case pinExpirationDate = "PinExpirationDate" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/Format.swift b/JellyfinPlayer/Swaggers/Models/Format.swift deleted file mode 100644 index 447b3f6d..00000000 --- a/JellyfinPlayer/Swaggers/Models/Format.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Format.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Determines the output format of the image - original,gif,jpg,png. */ - -public struct Format: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Format1.swift b/JellyfinPlayer/Swaggers/Models/Format1.swift deleted file mode 100644 index 264b9db1..00000000 --- a/JellyfinPlayer/Swaggers/Models/Format1.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Format1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Determines the output format of the image - original,gif,jpg,png. */ - -public struct Format1: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Format10.swift b/JellyfinPlayer/Swaggers/Models/Format10.swift deleted file mode 100644 index 28c17b16..00000000 --- a/JellyfinPlayer/Swaggers/Models/Format10.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Format10.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Determines the output format of the image - original,gif,jpg,png. */ - -public struct Format10: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Format11.swift b/JellyfinPlayer/Swaggers/Models/Format11.swift deleted file mode 100644 index 38a4e123..00000000 --- a/JellyfinPlayer/Swaggers/Models/Format11.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Format11.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Determines the output format of the image - original,gif,jpg,png. */ - -public struct Format11: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Format12.swift b/JellyfinPlayer/Swaggers/Models/Format12.swift deleted file mode 100644 index e41899d6..00000000 --- a/JellyfinPlayer/Swaggers/Models/Format12.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Format12.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Determines the output format of the image - original,gif,jpg,png. */ - -public struct Format12: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Format13.swift b/JellyfinPlayer/Swaggers/Models/Format13.swift deleted file mode 100644 index 9ffea0ec..00000000 --- a/JellyfinPlayer/Swaggers/Models/Format13.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Format13.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Determines the output format of the image - original,gif,jpg,png. */ - -public struct Format13: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Format14.swift b/JellyfinPlayer/Swaggers/Models/Format14.swift deleted file mode 100644 index 54108ec0..00000000 --- a/JellyfinPlayer/Swaggers/Models/Format14.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Format14.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Determines the output format of the image - original,gif,jpg,png. */ - -public struct Format14: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Format15.swift b/JellyfinPlayer/Swaggers/Models/Format15.swift deleted file mode 100644 index 5839c92f..00000000 --- a/JellyfinPlayer/Swaggers/Models/Format15.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Format15.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Determines the output format of the image - original,gif,jpg,png. */ - -public struct Format15: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Format16.swift b/JellyfinPlayer/Swaggers/Models/Format16.swift deleted file mode 100644 index 2147cf7e..00000000 --- a/JellyfinPlayer/Swaggers/Models/Format16.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Format16.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Determines the output format of the image - original,gif,jpg,png. */ - -public struct Format16: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Format17.swift b/JellyfinPlayer/Swaggers/Models/Format17.swift deleted file mode 100644 index ba7dcc42..00000000 --- a/JellyfinPlayer/Swaggers/Models/Format17.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Format17.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Determines the output format of the image - original,gif,jpg,png. */ - -public struct Format17: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Format18.swift b/JellyfinPlayer/Swaggers/Models/Format18.swift deleted file mode 100644 index 8725a87d..00000000 --- a/JellyfinPlayer/Swaggers/Models/Format18.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Format18.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Determines the output format of the image - original,gif,jpg,png. */ - -public struct Format18: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Format19.swift b/JellyfinPlayer/Swaggers/Models/Format19.swift deleted file mode 100644 index 2d859e39..00000000 --- a/JellyfinPlayer/Swaggers/Models/Format19.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Format19.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Determines the output format of the image - original,gif,jpg,png. */ - -public struct Format19: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Format2.swift b/JellyfinPlayer/Swaggers/Models/Format2.swift deleted file mode 100644 index ee53363d..00000000 --- a/JellyfinPlayer/Swaggers/Models/Format2.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Format2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Determines the output format of the image - original,gif,jpg,png. */ - -public struct Format2: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Format20.swift b/JellyfinPlayer/Swaggers/Models/Format20.swift deleted file mode 100644 index 210fd10d..00000000 --- a/JellyfinPlayer/Swaggers/Models/Format20.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Format20.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Determines the output format of the image - original,gif,jpg,png. */ - -public struct Format20: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Format21.swift b/JellyfinPlayer/Swaggers/Models/Format21.swift deleted file mode 100644 index b4ce9825..00000000 --- a/JellyfinPlayer/Swaggers/Models/Format21.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Format21.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Determines the output format of the image - original,gif,jpg,png. */ - -public struct Format21: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Format22.swift b/JellyfinPlayer/Swaggers/Models/Format22.swift deleted file mode 100644 index e352553e..00000000 --- a/JellyfinPlayer/Swaggers/Models/Format22.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Format22.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Determines the output format of the image - original,gif,jpg,png. */ - -public struct Format22: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Format23.swift b/JellyfinPlayer/Swaggers/Models/Format23.swift deleted file mode 100644 index 6a209264..00000000 --- a/JellyfinPlayer/Swaggers/Models/Format23.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Format23.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Determines the output format of the image - original,gif,jpg,png. */ - -public struct Format23: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Format24.swift b/JellyfinPlayer/Swaggers/Models/Format24.swift deleted file mode 100644 index 9d92a649..00000000 --- a/JellyfinPlayer/Swaggers/Models/Format24.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Format24.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Determines the output format of the image - original,gif,jpg,png. */ - -public struct Format24: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Format25.swift b/JellyfinPlayer/Swaggers/Models/Format25.swift deleted file mode 100644 index bb9b3ebb..00000000 --- a/JellyfinPlayer/Swaggers/Models/Format25.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Format25.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Determines the output format of the image - original,gif,jpg,png. */ - -public struct Format25: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Format26.swift b/JellyfinPlayer/Swaggers/Models/Format26.swift deleted file mode 100644 index 2ce18ecf..00000000 --- a/JellyfinPlayer/Swaggers/Models/Format26.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Format26.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Determines the output format of the image - original,gif,jpg,png. */ - -public struct Format26: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Format27.swift b/JellyfinPlayer/Swaggers/Models/Format27.swift deleted file mode 100644 index 24140c8b..00000000 --- a/JellyfinPlayer/Swaggers/Models/Format27.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Format27.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Determines the output format of the image - original,gif,jpg,png. */ - -public struct Format27: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Format3.swift b/JellyfinPlayer/Swaggers/Models/Format3.swift deleted file mode 100644 index 24caaab3..00000000 --- a/JellyfinPlayer/Swaggers/Models/Format3.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Format3.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Determines the output format of the image - original,gif,jpg,png. */ - -public struct Format3: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Format4.swift b/JellyfinPlayer/Swaggers/Models/Format4.swift deleted file mode 100644 index ddb24fdb..00000000 --- a/JellyfinPlayer/Swaggers/Models/Format4.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Format4.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Determines the output format of the image - original,gif,jpg,png. */ - -public struct Format4: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Format5.swift b/JellyfinPlayer/Swaggers/Models/Format5.swift deleted file mode 100644 index 4067884a..00000000 --- a/JellyfinPlayer/Swaggers/Models/Format5.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Format5.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Determines the output format of the image - original,gif,jpg,png. */ - -public struct Format5: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Format6.swift b/JellyfinPlayer/Swaggers/Models/Format6.swift deleted file mode 100644 index 4abc105d..00000000 --- a/JellyfinPlayer/Swaggers/Models/Format6.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Format6.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image. */ - -public struct Format6: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Format7.swift b/JellyfinPlayer/Swaggers/Models/Format7.swift deleted file mode 100644 index e76c6ff2..00000000 --- a/JellyfinPlayer/Swaggers/Models/Format7.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Format7.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image. */ - -public struct Format7: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Format8.swift b/JellyfinPlayer/Swaggers/Models/Format8.swift deleted file mode 100644 index d71ad816..00000000 --- a/JellyfinPlayer/Swaggers/Models/Format8.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Format8.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image. */ - -public struct Format8: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Format9.swift b/JellyfinPlayer/Swaggers/Models/Format9.swift deleted file mode 100644 index bd48e8d9..00000000 --- a/JellyfinPlayer/Swaggers/Models/Format9.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Format9.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image. */ - -public struct Format9: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/GeneralCommand.swift b/JellyfinPlayer/Swaggers/Models/GeneralCommand.swift deleted file mode 100644 index 21ce6693..00000000 --- a/JellyfinPlayer/Swaggers/Models/GeneralCommand.swift +++ /dev/null @@ -1,31 +0,0 @@ -// -// GeneralCommand.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct GeneralCommand: Codable { - - /** This exists simply to identify a set of known commands. */ - public var name: AllOfGeneralCommandName? - public var controllingUserId: UUID? - public var arguments: [String:String]? - - public init(name: AllOfGeneralCommandName? = nil, controllingUserId: UUID? = nil, arguments: [String:String]? = nil) { - self.name = name - self.controllingUserId = controllingUserId - self.arguments = arguments - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case controllingUserId = "ControllingUserId" - case arguments = "Arguments" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/GeneralCommandType.swift b/JellyfinPlayer/Swaggers/Models/GeneralCommandType.swift deleted file mode 100644 index d5bf1914..00000000 --- a/JellyfinPlayer/Swaggers/Models/GeneralCommandType.swift +++ /dev/null @@ -1,54 +0,0 @@ -// -// GeneralCommandType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** This exists simply to identify a set of known commands. */ -public enum GeneralCommandType: String, Codable { - case moveUp = "MoveUp" - case moveDown = "MoveDown" - case moveLeft = "MoveLeft" - case moveRight = "MoveRight" - case pageUp = "PageUp" - case pageDown = "PageDown" - case previousLetter = "PreviousLetter" - case nextLetter = "NextLetter" - case toggleOsd = "ToggleOsd" - case toggleContextMenu = "ToggleContextMenu" - case select = "Select" - case back = "Back" - case takeScreenshot = "TakeScreenshot" - case sendKey = "SendKey" - case sendString = "SendString" - case goHome = "GoHome" - case goToSettings = "GoToSettings" - case volumeUp = "VolumeUp" - case volumeDown = "VolumeDown" - case mute = "Mute" - case unmute = "Unmute" - case toggleMute = "ToggleMute" - case setVolume = "SetVolume" - case setAudioStreamIndex = "SetAudioStreamIndex" - case setSubtitleStreamIndex = "SetSubtitleStreamIndex" - case toggleFullscreen = "ToggleFullscreen" - case displayContent = "DisplayContent" - case goToSearch = "GoToSearch" - case displayMessage = "DisplayMessage" - case setRepeatMode = "SetRepeatMode" - case channelUp = "ChannelUp" - case channelDown = "ChannelDown" - case guide = "Guide" - case toggleStats = "ToggleStats" - case playMediaSource = "PlayMediaSource" - case playTrailers = "PlayTrailers" - case setShuffleQueue = "SetShuffleQueue" - case playState = "PlayState" - case playNext = "PlayNext" - case toggleOsdMenu = "ToggleOsdMenu" - case play = "Play" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/GetProgramsDto.swift b/JellyfinPlayer/Swaggers/Models/GetProgramsDto.swift deleted file mode 100644 index 34111692..00000000 --- a/JellyfinPlayer/Swaggers/Models/GetProgramsDto.swift +++ /dev/null @@ -1,130 +0,0 @@ -// -// GetProgramsDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Get programs dto. */ - -public struct GetProgramsDto: Codable { - - /** Gets or sets the channels to return guide information for. */ - public var channelIds: [UUID]? - /** Gets or sets optional. Filter by user id. */ - public var userId: UUID? - /** Gets or sets the minimum premiere start date. Optional. */ - public var minStartDate: Date? - /** Gets or sets filter by programs that have completed airing, or not. Optional. */ - public var hasAired: Bool? - /** Gets or sets filter by programs that are currently airing, or not. Optional. */ - public var isAiring: Bool? - /** Gets or sets the maximum premiere start date. Optional. */ - public var maxStartDate: Date? - /** Gets or sets the minimum premiere end date. Optional. */ - public var minEndDate: Date? - /** Gets or sets the maximum premiere end date. Optional. */ - public var maxEndDate: Date? - /** Gets or sets filter for movies. Optional. */ - public var isMovie: Bool? - /** Gets or sets filter for series. Optional. */ - public var isSeries: Bool? - /** Gets or sets filter for news. Optional. */ - public var isNews: Bool? - /** Gets or sets filter for kids. Optional. */ - public var isKids: Bool? - /** Gets or sets filter for sports. Optional. */ - public var isSports: Bool? - /** Gets or sets the record index to start at. All items with a lower index will be dropped from the results. Optional. */ - public var startIndex: Int? - /** Gets or sets the maximum number of records to return. Optional. */ - public var limit: Int? - /** Gets or sets specify one or more sort orders, comma delimited. Options: Name, StartDate. Optional. */ - public var sortBy: [String]? - /** Gets or sets sort Order - Ascending,Descending. */ - public var sortOrder: [SortOrder]? - /** Gets or sets the genres to return guide information for. */ - public var genres: [String]? - /** Gets or sets the genre ids to return guide information for. */ - public var genreIds: [UUID]? - /** Gets or sets include image information in output. Optional. */ - public var enableImages: Bool? - /** Gets or sets a value indicating whether retrieve total record count. */ - public var enableTotalRecordCount: Bool? - /** Gets or sets the max number of images to return, per image type. Optional. */ - public var imageTypeLimit: Int? - /** Gets or sets the image types to include in the output. Optional. */ - public var enableImageTypes: [ImageType]? - /** Gets or sets include user data. Optional. */ - public var enableUserData: Bool? - /** Gets or sets filter by series timer id. Optional. */ - public var seriesTimerId: String? - /** Gets or sets filter by library series id. Optional. */ - public var librarySeriesId: UUID? - /** Gets or sets specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines. Optional. */ - public var fields: [ItemFields]? - - public init(channelIds: [UUID]? = nil, userId: UUID? = nil, minStartDate: Date? = nil, hasAired: Bool? = nil, isAiring: Bool? = nil, maxStartDate: Date? = nil, minEndDate: Date? = nil, maxEndDate: Date? = nil, isMovie: Bool? = nil, isSeries: Bool? = nil, isNews: Bool? = nil, isKids: Bool? = nil, isSports: Bool? = nil, startIndex: Int? = nil, limit: Int? = nil, sortBy: [String]? = nil, sortOrder: [SortOrder]? = nil, genres: [String]? = nil, genreIds: [UUID]? = nil, enableImages: Bool? = nil, enableTotalRecordCount: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, enableUserData: Bool? = nil, seriesTimerId: String? = nil, librarySeriesId: UUID? = nil, fields: [ItemFields]? = nil) { - self.channelIds = channelIds - self.userId = userId - self.minStartDate = minStartDate - self.hasAired = hasAired - self.isAiring = isAiring - self.maxStartDate = maxStartDate - self.minEndDate = minEndDate - self.maxEndDate = maxEndDate - self.isMovie = isMovie - self.isSeries = isSeries - self.isNews = isNews - self.isKids = isKids - self.isSports = isSports - self.startIndex = startIndex - self.limit = limit - self.sortBy = sortBy - self.sortOrder = sortOrder - self.genres = genres - self.genreIds = genreIds - self.enableImages = enableImages - self.enableTotalRecordCount = enableTotalRecordCount - self.imageTypeLimit = imageTypeLimit - self.enableImageTypes = enableImageTypes - self.enableUserData = enableUserData - self.seriesTimerId = seriesTimerId - self.librarySeriesId = librarySeriesId - self.fields = fields - } - - public enum CodingKeys: String, CodingKey { - case channelIds = "ChannelIds" - case userId = "UserId" - case minStartDate = "MinStartDate" - case hasAired = "HasAired" - case isAiring = "IsAiring" - case maxStartDate = "MaxStartDate" - case minEndDate = "MinEndDate" - case maxEndDate = "MaxEndDate" - case isMovie = "IsMovie" - case isSeries = "IsSeries" - case isNews = "IsNews" - case isKids = "IsKids" - case isSports = "IsSports" - case startIndex = "StartIndex" - case limit = "Limit" - case sortBy = "SortBy" - case sortOrder = "SortOrder" - case genres = "Genres" - case genreIds = "GenreIds" - case enableImages = "EnableImages" - case enableTotalRecordCount = "EnableTotalRecordCount" - case imageTypeLimit = "ImageTypeLimit" - case enableImageTypes = "EnableImageTypes" - case enableUserData = "EnableUserData" - case seriesTimerId = "SeriesTimerId" - case librarySeriesId = "LibrarySeriesId" - case fields = "Fields" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/GroupInfoDto.swift b/JellyfinPlayer/Swaggers/Models/GroupInfoDto.swift deleted file mode 100644 index 92404978..00000000 --- a/JellyfinPlayer/Swaggers/Models/GroupInfoDto.swift +++ /dev/null @@ -1,42 +0,0 @@ -// -// GroupInfoDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class GroupInfoDto. */ - -public struct GroupInfoDto: Codable { - - /** Gets the group identifier. */ - public var groupId: UUID? - /** Gets the group name. */ - public var groupName: String? - /** Gets the group state. */ - public var state: AllOfGroupInfoDtoState? - /** Gets the participants. */ - public var participants: [String]? - /** Gets the date when this DTO has been created. */ - public var lastUpdatedAt: Date? - - public init(groupId: UUID? = nil, groupName: String? = nil, state: AllOfGroupInfoDtoState? = nil, participants: [String]? = nil, lastUpdatedAt: Date? = nil) { - self.groupId = groupId - self.groupName = groupName - self.state = state - self.participants = participants - self.lastUpdatedAt = lastUpdatedAt - } - - public enum CodingKeys: String, CodingKey { - case groupId = "GroupId" - case groupName = "GroupName" - case state = "State" - case participants = "Participants" - case lastUpdatedAt = "LastUpdatedAt" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/GroupQueueMode.swift b/JellyfinPlayer/Swaggers/Models/GroupQueueMode.swift deleted file mode 100644 index 1f97072f..00000000 --- a/JellyfinPlayer/Swaggers/Models/GroupQueueMode.swift +++ /dev/null @@ -1,15 +0,0 @@ -// -// GroupQueueMode.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Enum GroupQueueMode. */ -public enum GroupQueueMode: String, Codable { - case queue = "Queue" - case queueNext = "QueueNext" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/GroupRepeatMode.swift b/JellyfinPlayer/Swaggers/Models/GroupRepeatMode.swift deleted file mode 100644 index a16461f4..00000000 --- a/JellyfinPlayer/Swaggers/Models/GroupRepeatMode.swift +++ /dev/null @@ -1,16 +0,0 @@ -// -// GroupRepeatMode.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Enum GroupRepeatMode. */ -public enum GroupRepeatMode: String, Codable { - case repeatOne = "RepeatOne" - case repeatAll = "RepeatAll" - case repeatNone = "RepeatNone" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/GroupShuffleMode.swift b/JellyfinPlayer/Swaggers/Models/GroupShuffleMode.swift deleted file mode 100644 index f63985b2..00000000 --- a/JellyfinPlayer/Swaggers/Models/GroupShuffleMode.swift +++ /dev/null @@ -1,15 +0,0 @@ -// -// GroupShuffleMode.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Enum GroupShuffleMode. */ -public enum GroupShuffleMode: String, Codable { - case sorted = "Sorted" - case shuffle = "Shuffle" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/GroupStateType.swift b/JellyfinPlayer/Swaggers/Models/GroupStateType.swift deleted file mode 100644 index 3f59f999..00000000 --- a/JellyfinPlayer/Swaggers/Models/GroupStateType.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// GroupStateType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Enum GroupState. */ -public enum GroupStateType: String, Codable { - case idle = "Idle" - case waiting = "Waiting" - case paused = "Paused" - case playing = "Playing" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/GroupUpdateType.swift b/JellyfinPlayer/Swaggers/Models/GroupUpdateType.swift deleted file mode 100644 index 375212b0..00000000 --- a/JellyfinPlayer/Swaggers/Models/GroupUpdateType.swift +++ /dev/null @@ -1,24 +0,0 @@ -// -// GroupUpdateType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Enum GroupUpdateType. */ -public enum GroupUpdateType: String, Codable { - case userJoined = "UserJoined" - case userLeft = "UserLeft" - case groupJoined = "GroupJoined" - case groupLeft = "GroupLeft" - case stateUpdate = "StateUpdate" - case playQueue = "PlayQueue" - case notInGroup = "NotInGroup" - case groupDoesNotExist = "GroupDoesNotExist" - case createGroupDenied = "CreateGroupDenied" - case joinGroupDenied = "JoinGroupDenied" - case libraryAccessDenied = "LibraryAccessDenied" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/GuideInfo.swift b/JellyfinPlayer/Swaggers/Models/GuideInfo.swift deleted file mode 100644 index 3277d41a..00000000 --- a/JellyfinPlayer/Swaggers/Models/GuideInfo.swift +++ /dev/null @@ -1,29 +0,0 @@ -// -// GuideInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct GuideInfo: Codable { - - /** Gets or sets the start date. */ - public var startDate: Date? - /** Gets or sets the end date. */ - public var endDate: Date? - - public init(startDate: Date? = nil, endDate: Date? = nil) { - self.startDate = startDate - self.endDate = endDate - } - - public enum CodingKeys: String, CodingKey { - case startDate = "StartDate" - case endDate = "EndDate" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/HeaderMatchType.swift b/JellyfinPlayer/Swaggers/Models/HeaderMatchType.swift deleted file mode 100644 index 873752c6..00000000 --- a/JellyfinPlayer/Swaggers/Models/HeaderMatchType.swift +++ /dev/null @@ -1,15 +0,0 @@ -// -// HeaderMatchType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum HeaderMatchType: String, Codable { - case equals = "Equals" - case regex = "Regex" - case substring = "Substring" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/HttpHeaderInfo.swift b/JellyfinPlayer/Swaggers/Models/HttpHeaderInfo.swift deleted file mode 100644 index 8f54dfa1..00000000 --- a/JellyfinPlayer/Swaggers/Models/HttpHeaderInfo.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// HttpHeaderInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct HttpHeaderInfo: Codable { - - public var name: String? - public var value: String? - public var match: AllOfHttpHeaderInfoMatch? - - public init(name: String? = nil, value: String? = nil, match: AllOfHttpHeaderInfoMatch? = nil) { - self.name = name - self.value = value - self.match = match - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case value = "Value" - case match = "Match" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/IPlugin.swift b/JellyfinPlayer/Swaggers/Models/IPlugin.swift deleted file mode 100644 index f8c6fca0..00000000 --- a/JellyfinPlayer/Swaggers/Models/IPlugin.swift +++ /dev/null @@ -1,50 +0,0 @@ -// -// IPlugin.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Defines the MediaBrowser.Common.Plugins.IPlugin. */ - -public struct IPlugin: Codable { - - /** Gets the name of the plugin. */ - public var name: String? - /** Gets the Description. */ - public var _description: String? - /** Gets the unique id. */ - public var _id: UUID? - /** Gets the plugin version. */ - public var version: AllOfIPluginVersion? - /** Gets the path to the assembly file. */ - public var assemblyFilePath: String? - /** Gets a value indicating whether the plugin can be uninstalled. */ - public var canUninstall: Bool? - /** Gets the full path to the data folder, where the plugin can store any miscellaneous files needed. */ - public var dataFolderPath: String? - - public init(name: String? = nil, _description: String? = nil, _id: UUID? = nil, version: AllOfIPluginVersion? = nil, assemblyFilePath: String? = nil, canUninstall: Bool? = nil, dataFolderPath: String? = nil) { - self.name = name - self._description = _description - self._id = _id - self.version = version - self.assemblyFilePath = assemblyFilePath - self.canUninstall = canUninstall - self.dataFolderPath = dataFolderPath - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case _description = "Description" - case _id = "Id" - case version = "Version" - case assemblyFilePath = "AssemblyFilePath" - case canUninstall = "CanUninstall" - case dataFolderPath = "DataFolderPath" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/IgnoreWaitRequestDto.swift b/JellyfinPlayer/Swaggers/Models/IgnoreWaitRequestDto.swift deleted file mode 100644 index 6bfde0df..00000000 --- a/JellyfinPlayer/Swaggers/Models/IgnoreWaitRequestDto.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// IgnoreWaitRequestDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class IgnoreWaitRequestDto. */ - -public struct IgnoreWaitRequestDto: Codable { - - /** Gets or sets a value indicating whether the client should be ignored. */ - public var ignoreWait: Bool? - - public init(ignoreWait: Bool? = nil) { - self.ignoreWait = ignoreWait - } - - public enum CodingKeys: String, CodingKey { - case ignoreWait = "IgnoreWait" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageByNameInfo.swift b/JellyfinPlayer/Swaggers/Models/ImageByNameInfo.swift deleted file mode 100644 index 61d1e24f..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageByNameInfo.swift +++ /dev/null @@ -1,41 +0,0 @@ -// -// ImageByNameInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct ImageByNameInfo: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the theme. */ - public var theme: String? - /** Gets or sets the context. */ - public var context: String? - /** Gets or sets the length of the file. */ - public var fileLength: Int64? - /** Gets or sets the format. */ - public var format: String? - - public init(name: String? = nil, theme: String? = nil, context: String? = nil, fileLength: Int64? = nil, format: String? = nil) { - self.name = name - self.theme = theme - self.context = context - self.fileLength = fileLength - self.format = format - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case theme = "Theme" - case context = "Context" - case fileLength = "FileLength" - case format = "Format" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageFormat.swift b/JellyfinPlayer/Swaggers/Models/ImageFormat.swift deleted file mode 100644 index 6ac6a777..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageFormat.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageFormat.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Enum ImageOutputFormat. */ -public enum ImageFormat: String, Codable { - case bmp = "Bmp" - case gif = "Gif" - case jpg = "Jpg" - case png = "Png" - case webp = "Webp" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/ImageInfo.swift b/JellyfinPlayer/Swaggers/Models/ImageInfo.swift deleted file mode 100644 index 5d367a05..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageInfo.swift +++ /dev/null @@ -1,54 +0,0 @@ -// -// ImageInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class ImageInfo. */ - -public struct ImageInfo: Codable { - - /** Gets or sets the type of the image. */ - public var imageType: AllOfImageInfoImageType? - /** Gets or sets the index of the image. */ - public var imageIndex: Int? - /** Gets or sets the image tag. */ - public var imageTag: String? - /** Gets or sets the path. */ - public var path: String? - /** Gets or sets the blurhash. */ - public var blurHash: String? - /** Gets or sets the height. */ - public var height: Int? - /** Gets or sets the width. */ - public var width: Int? - /** Gets or sets the size. */ - public var size: Int64? - - public init(imageType: AllOfImageInfoImageType? = nil, imageIndex: Int? = nil, imageTag: String? = nil, path: String? = nil, blurHash: String? = nil, height: Int? = nil, width: Int? = nil, size: Int64? = nil) { - self.imageType = imageType - self.imageIndex = imageIndex - self.imageTag = imageTag - self.path = path - self.blurHash = blurHash - self.height = height - self.width = width - self.size = size - } - - public enum CodingKeys: String, CodingKey { - case imageType = "ImageType" - case imageIndex = "ImageIndex" - case imageTag = "ImageTag" - case path = "Path" - case blurHash = "BlurHash" - case height = "Height" - case width = "Width" - case size = "Size" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageOption.swift b/JellyfinPlayer/Swaggers/Models/ImageOption.swift deleted file mode 100644 index 678feac5..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageOption.swift +++ /dev/null @@ -1,33 +0,0 @@ -// -// ImageOption.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct ImageOption: Codable { - - /** Gets or sets the type. */ - public var type: AllOfImageOptionModelType? - /** Gets or sets the limit. */ - public var limit: Int? - /** Gets or sets the minimum width. */ - public var minWidth: Int? - - public init(type: AllOfImageOptionModelType? = nil, limit: Int? = nil, minWidth: Int? = nil) { - self.type = type - self.limit = limit - self.minWidth = minWidth - } - - public enum CodingKeys: String, CodingKey { - case type = "Type" - case limit = "Limit" - case minWidth = "MinWidth" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageOrientation.swift b/JellyfinPlayer/Swaggers/Models/ImageOrientation.swift deleted file mode 100644 index f187b180..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageOrientation.swift +++ /dev/null @@ -1,20 +0,0 @@ -// -// ImageOrientation.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum ImageOrientation: String, Codable { - case topLeft = "TopLeft" - case topRight = "TopRight" - case bottomRight = "BottomRight" - case bottomLeft = "BottomLeft" - case leftTop = "LeftTop" - case rightTop = "RightTop" - case rightBottom = "RightBottom" - case leftBottom = "LeftBottom" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/ImageProviderInfo.swift b/JellyfinPlayer/Swaggers/Models/ImageProviderInfo.swift deleted file mode 100644 index 94baa5c8..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageProviderInfo.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// ImageProviderInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class ImageProviderInfo. */ - -public struct ImageProviderInfo: Codable { - - /** Gets the name. */ - public var name: String? - /** Gets the supported image types. */ - public var supportedImages: [ImageType]? - - public init(name: String? = nil, supportedImages: [ImageType]? = nil) { - self.name = name - self.supportedImages = supportedImages - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case supportedImages = "SupportedImages" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageRefreshMode.swift b/JellyfinPlayer/Swaggers/Models/ImageRefreshMode.swift deleted file mode 100644 index 82fe6422..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageRefreshMode.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageRefreshMode.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** (Optional) Specifies the image refresh mode. */ - -public struct ImageRefreshMode: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageSavingConvention.swift b/JellyfinPlayer/Swaggers/Models/ImageSavingConvention.swift deleted file mode 100644 index 69baa268..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageSavingConvention.swift +++ /dev/null @@ -1,14 +0,0 @@ -// -// ImageSavingConvention.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum ImageSavingConvention: String, Codable { - case legacy = "Legacy" - case compatible = "Compatible" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/ImageType.swift b/JellyfinPlayer/Swaggers/Models/ImageType.swift deleted file mode 100644 index 127f0d8b..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType1.swift b/JellyfinPlayer/Swaggers/Models/ImageType1.swift deleted file mode 100644 index cdac880e..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType1.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType1: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType10.swift b/JellyfinPlayer/Swaggers/Models/ImageType10.swift deleted file mode 100644 index e0ad232a..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType10.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType10.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType10: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType11.swift b/JellyfinPlayer/Swaggers/Models/ImageType11.swift deleted file mode 100644 index f905ffb5..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType11.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType11.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType11: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType12.swift b/JellyfinPlayer/Swaggers/Models/ImageType12.swift deleted file mode 100644 index ca056e98..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType12.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType12.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType12: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType13.swift b/JellyfinPlayer/Swaggers/Models/ImageType13.swift deleted file mode 100644 index c0a7b470..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType13.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType13.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType13: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType14.swift b/JellyfinPlayer/Swaggers/Models/ImageType14.swift deleted file mode 100644 index 0a8c493c..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType14.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType14.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType14: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType15.swift b/JellyfinPlayer/Swaggers/Models/ImageType15.swift deleted file mode 100644 index 15bc8538..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType15.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType15.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType15: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType16.swift b/JellyfinPlayer/Swaggers/Models/ImageType16.swift deleted file mode 100644 index 4e1c7d98..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType16.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType16.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType16: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType17.swift b/JellyfinPlayer/Swaggers/Models/ImageType17.swift deleted file mode 100644 index f3439291..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType17.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType17.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType17: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType18.swift b/JellyfinPlayer/Swaggers/Models/ImageType18.swift deleted file mode 100644 index e99d979d..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType18.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType18.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType18: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType19.swift b/JellyfinPlayer/Swaggers/Models/ImageType19.swift deleted file mode 100644 index fae55b4c..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType19.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType19.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType19: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType2.swift b/JellyfinPlayer/Swaggers/Models/ImageType2.swift deleted file mode 100644 index 3aed9585..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType2.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType2: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType20.swift b/JellyfinPlayer/Swaggers/Models/ImageType20.swift deleted file mode 100644 index c76672e1..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType20.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType20.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType20: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType21.swift b/JellyfinPlayer/Swaggers/Models/ImageType21.swift deleted file mode 100644 index 5a76a089..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType21.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType21.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType21: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType22.swift b/JellyfinPlayer/Swaggers/Models/ImageType22.swift deleted file mode 100644 index 475b30a4..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType22.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType22.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType22: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType23.swift b/JellyfinPlayer/Swaggers/Models/ImageType23.swift deleted file mode 100644 index f67386b9..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType23.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType23.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType23: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType24.swift b/JellyfinPlayer/Swaggers/Models/ImageType24.swift deleted file mode 100644 index e065e168..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType24.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType24.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType24: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType25.swift b/JellyfinPlayer/Swaggers/Models/ImageType25.swift deleted file mode 100644 index f39b978d..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType25.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType25.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType25: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType26.swift b/JellyfinPlayer/Swaggers/Models/ImageType26.swift deleted file mode 100644 index acdafab8..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType26.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType26.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType26: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType27.swift b/JellyfinPlayer/Swaggers/Models/ImageType27.swift deleted file mode 100644 index c270644e..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType27.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType27.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType27: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType28.swift b/JellyfinPlayer/Swaggers/Models/ImageType28.swift deleted file mode 100644 index e9b75318..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType28.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType28.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType28: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType29.swift b/JellyfinPlayer/Swaggers/Models/ImageType29.swift deleted file mode 100644 index a73d495e..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType29.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType29.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType29: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType3.swift b/JellyfinPlayer/Swaggers/Models/ImageType3.swift deleted file mode 100644 index 05690281..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType3.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType3.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType3: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType30.swift b/JellyfinPlayer/Swaggers/Models/ImageType30.swift deleted file mode 100644 index eab2505a..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType30.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType30.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType30: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType31.swift b/JellyfinPlayer/Swaggers/Models/ImageType31.swift deleted file mode 100644 index 4b0dd39e..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType31.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType31.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** (Unused) Image type. */ - -public struct ImageType31: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType32.swift b/JellyfinPlayer/Swaggers/Models/ImageType32.swift deleted file mode 100644 index 6c85ba93..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType32.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType32.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** (Unused) Image type. */ - -public struct ImageType32: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType33.swift b/JellyfinPlayer/Swaggers/Models/ImageType33.swift deleted file mode 100644 index db1318f8..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType33.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType33.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType33: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType34.swift b/JellyfinPlayer/Swaggers/Models/ImageType34.swift deleted file mode 100644 index 92c5e5cd..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType34.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType34.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType34: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType35.swift b/JellyfinPlayer/Swaggers/Models/ImageType35.swift deleted file mode 100644 index 6972d529..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType35.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType35.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** (Unused) Image type. */ - -public struct ImageType35: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType36.swift b/JellyfinPlayer/Swaggers/Models/ImageType36.swift deleted file mode 100644 index 23f6781d..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType36.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType36.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** (Unused) Image type. */ - -public struct ImageType36: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType4.swift b/JellyfinPlayer/Swaggers/Models/ImageType4.swift deleted file mode 100644 index 19aad2b1..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType4.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType4.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType4: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType5.swift b/JellyfinPlayer/Swaggers/Models/ImageType5.swift deleted file mode 100644 index 4f976764..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType5.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType5.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType5: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType6.swift b/JellyfinPlayer/Swaggers/Models/ImageType6.swift deleted file mode 100644 index a1b62a48..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType6.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType6.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType6: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType7.swift b/JellyfinPlayer/Swaggers/Models/ImageType7.swift deleted file mode 100644 index 9eabe878..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType7.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType7.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType7: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType8.swift b/JellyfinPlayer/Swaggers/Models/ImageType8.swift deleted file mode 100644 index 5e0861ad..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType8.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType8.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType8: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ImageType9.swift b/JellyfinPlayer/Swaggers/Models/ImageType9.swift deleted file mode 100644 index a8eee957..00000000 --- a/JellyfinPlayer/Swaggers/Models/ImageType9.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ImageType9.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Image type. */ - -public struct ImageType9: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/InstallationInfo.swift b/JellyfinPlayer/Swaggers/Models/InstallationInfo.swift deleted file mode 100644 index c937c001..00000000 --- a/JellyfinPlayer/Swaggers/Models/InstallationInfo.swift +++ /dev/null @@ -1,50 +0,0 @@ -// -// InstallationInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class InstallationInfo. */ - -public struct InstallationInfo: Codable { - - /** Gets or sets the Id. */ - public var guid: UUID? - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the version. */ - public var version: AllOfInstallationInfoVersion? - /** Gets or sets the changelog for this version. */ - public var changelog: String? - /** Gets or sets the source URL. */ - public var sourceUrl: String? - /** Gets or sets a checksum for the binary. */ - public var checksum: String? - /** Gets or sets package information for the installation. */ - public var packageInfo: AllOfInstallationInfoPackageInfo? - - public init(guid: UUID? = nil, name: String? = nil, version: AllOfInstallationInfoVersion? = nil, changelog: String? = nil, sourceUrl: String? = nil, checksum: String? = nil, packageInfo: AllOfInstallationInfoPackageInfo? = nil) { - self.guid = guid - self.name = name - self.version = version - self.changelog = changelog - self.sourceUrl = sourceUrl - self.checksum = checksum - self.packageInfo = packageInfo - } - - public enum CodingKeys: String, CodingKey { - case guid = "Guid" - case name = "Name" - case version = "Version" - case changelog = "Changelog" - case sourceUrl = "SourceUrl" - case checksum = "Checksum" - case packageInfo = "PackageInfo" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/IsoType.swift b/JellyfinPlayer/Swaggers/Models/IsoType.swift deleted file mode 100644 index cdd04de3..00000000 --- a/JellyfinPlayer/Swaggers/Models/IsoType.swift +++ /dev/null @@ -1,15 +0,0 @@ -// -// IsoType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Enum IsoType. */ -public enum IsoType: String, Codable { - case dvd = "Dvd" - case bluRay = "BluRay" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/ItemCounts.swift b/JellyfinPlayer/Swaggers/Models/ItemCounts.swift deleted file mode 100644 index 3e129c4a..00000000 --- a/JellyfinPlayer/Swaggers/Models/ItemCounts.swift +++ /dev/null @@ -1,70 +0,0 @@ -// -// ItemCounts.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class LibrarySummary. */ - -public struct ItemCounts: Codable { - - /** Gets or sets the movie count. */ - public var movieCount: Int? - /** Gets or sets the series count. */ - public var seriesCount: Int? - /** Gets or sets the episode count. */ - public var episodeCount: Int? - /** Gets or sets the artist count. */ - public var artistCount: Int? - /** Gets or sets the program count. */ - public var programCount: Int? - /** Gets or sets the trailer count. */ - public var trailerCount: Int? - /** Gets or sets the song count. */ - public var songCount: Int? - /** Gets or sets the album count. */ - public var albumCount: Int? - /** Gets or sets the music video count. */ - public var musicVideoCount: Int? - /** Gets or sets the box set count. */ - public var boxSetCount: Int? - /** Gets or sets the book count. */ - public var bookCount: Int? - /** Gets or sets the item count. */ - public var itemCount: Int? - - public init(movieCount: Int? = nil, seriesCount: Int? = nil, episodeCount: Int? = nil, artistCount: Int? = nil, programCount: Int? = nil, trailerCount: Int? = nil, songCount: Int? = nil, albumCount: Int? = nil, musicVideoCount: Int? = nil, boxSetCount: Int? = nil, bookCount: Int? = nil, itemCount: Int? = nil) { - self.movieCount = movieCount - self.seriesCount = seriesCount - self.episodeCount = episodeCount - self.artistCount = artistCount - self.programCount = programCount - self.trailerCount = trailerCount - self.songCount = songCount - self.albumCount = albumCount - self.musicVideoCount = musicVideoCount - self.boxSetCount = boxSetCount - self.bookCount = bookCount - self.itemCount = itemCount - } - - public enum CodingKeys: String, CodingKey { - case movieCount = "MovieCount" - case seriesCount = "SeriesCount" - case episodeCount = "EpisodeCount" - case artistCount = "ArtistCount" - case programCount = "ProgramCount" - case trailerCount = "TrailerCount" - case songCount = "SongCount" - case albumCount = "AlbumCount" - case musicVideoCount = "MusicVideoCount" - case boxSetCount = "BoxSetCount" - case bookCount = "BookCount" - case itemCount = "ItemCount" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ItemFields.swift b/JellyfinPlayer/Swaggers/Models/ItemFields.swift deleted file mode 100644 index 593d0a4a..00000000 --- a/JellyfinPlayer/Swaggers/Models/ItemFields.swift +++ /dev/null @@ -1,74 +0,0 @@ -// -// ItemFields.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Used to control the data that gets attached to DtoBaseItems. */ -public enum ItemFields: String, Codable { - case airTime = "AirTime" - case canDelete = "CanDelete" - case canDownload = "CanDownload" - case channelInfo = "ChannelInfo" - case chapters = "Chapters" - case childCount = "ChildCount" - case cumulativeRunTimeTicks = "CumulativeRunTimeTicks" - case customRating = "CustomRating" - case dateCreated = "DateCreated" - case dateLastMediaAdded = "DateLastMediaAdded" - case displayPreferencesId = "DisplayPreferencesId" - case etag = "Etag" - case externalUrls = "ExternalUrls" - case genres = "Genres" - case homePageUrl = "HomePageUrl" - case itemCounts = "ItemCounts" - case mediaSourceCount = "MediaSourceCount" - case mediaSources = "MediaSources" - case originalTitle = "OriginalTitle" - case overview = "Overview" - case parentId = "ParentId" - case path = "Path" - case people = "People" - case playAccess = "PlayAccess" - case productionLocations = "ProductionLocations" - case providerIds = "ProviderIds" - case primaryImageAspectRatio = "PrimaryImageAspectRatio" - case recursiveItemCount = "RecursiveItemCount" - case settings = "Settings" - case screenshotImageTags = "ScreenshotImageTags" - case seriesPrimaryImage = "SeriesPrimaryImage" - case seriesStudio = "SeriesStudio" - case sortName = "SortName" - case specialEpisodeNumbers = "SpecialEpisodeNumbers" - case studios = "Studios" - case basicSyncInfo = "BasicSyncInfo" - case syncInfo = "SyncInfo" - case taglines = "Taglines" - case tags = "Tags" - case remoteTrailers = "RemoteTrailers" - case mediaStreams = "MediaStreams" - case seasonUserData = "SeasonUserData" - case serviceName = "ServiceName" - case themeSongIds = "ThemeSongIds" - case themeVideoIds = "ThemeVideoIds" - case externalEtag = "ExternalEtag" - case presentationUniqueKey = "PresentationUniqueKey" - case inheritedParentalRatingValue = "InheritedParentalRatingValue" - case externalSeriesId = "ExternalSeriesId" - case seriesPresentationUniqueKey = "SeriesPresentationUniqueKey" - case dateLastRefreshed = "DateLastRefreshed" - case dateLastSaved = "DateLastSaved" - case refreshState = "RefreshState" - case channelImage = "ChannelImage" - case enableMediaSourceDisplay = "EnableMediaSourceDisplay" - case width = "Width" - case height = "Height" - case extraIds = "ExtraIds" - case localTrailerCount = "LocalTrailerCount" - case isHD = "IsHD" - case specialFeatureCount = "SpecialFeatureCount" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/ItemFilter.swift b/JellyfinPlayer/Swaggers/Models/ItemFilter.swift deleted file mode 100644 index fd0ca826..00000000 --- a/JellyfinPlayer/Swaggers/Models/ItemFilter.swift +++ /dev/null @@ -1,22 +0,0 @@ -// -// ItemFilter.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Enum ItemFilter. */ -public enum ItemFilter: String, Codable { - case isFolder = "IsFolder" - case isNotFolder = "IsNotFolder" - case isUnplayed = "IsUnplayed" - case isPlayed = "IsPlayed" - case isFavorite = "IsFavorite" - case isResumable = "IsResumable" - case likes = "Likes" - case dislikes = "Dislikes" - case isFavoriteOrLikes = "IsFavoriteOrLikes" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/ItemIdPlaybackInfoBody.swift b/JellyfinPlayer/Swaggers/Models/ItemIdPlaybackInfoBody.swift deleted file mode 100644 index 37a2be43..00000000 --- a/JellyfinPlayer/Swaggers/Models/ItemIdPlaybackInfoBody.swift +++ /dev/null @@ -1,82 +0,0 @@ -// -// ItemIdPlaybackInfoBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The playback info. */ - -public struct ItemIdPlaybackInfoBody: Codable { - - /** Gets or sets the playback userId. */ - public var userId: UUID? - /** Gets or sets the max streaming bitrate. */ - public var maxStreamingBitrate: Int? - /** Gets or sets the start time in ticks. */ - public var startTimeTicks: Int64? - /** Gets or sets the audio stream index. */ - public var audioStreamIndex: Int? - /** Gets or sets the subtitle stream index. */ - public var subtitleStreamIndex: Int? - /** Gets or sets the max audio channels. */ - public var maxAudioChannels: Int? - /** Gets or sets the media source id. */ - public var mediaSourceId: String? - /** Gets or sets the live stream id. */ - public var liveStreamId: String? - /** Gets or sets the device profile. */ - public var deviceProfile: Any? - /** Gets or sets a value indicating whether to enable direct play. */ - public var enableDirectPlay: Bool? - /** Gets or sets a value indicating whether to enable direct stream. */ - public var enableDirectStream: Bool? - /** Gets or sets a value indicating whether to enable transcoding. */ - public var enableTranscoding: Bool? - /** Gets or sets a value indicating whether to enable video stream copy. */ - public var allowVideoStreamCopy: Bool? - /** Gets or sets a value indicating whether to allow audio stream copy. */ - public var allowAudioStreamCopy: Bool? - /** Gets or sets a value indicating whether to auto open the live stream. */ - public var autoOpenLiveStream: Bool? - - public init(userId: UUID? = nil, maxStreamingBitrate: Int? = nil, startTimeTicks: Int64? = nil, audioStreamIndex: Int? = nil, subtitleStreamIndex: Int? = nil, maxAudioChannels: Int? = nil, mediaSourceId: String? = nil, liveStreamId: String? = nil, deviceProfile: Any? = nil, enableDirectPlay: Bool? = nil, enableDirectStream: Bool? = nil, enableTranscoding: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, autoOpenLiveStream: Bool? = nil) { - self.userId = userId - self.maxStreamingBitrate = maxStreamingBitrate - self.startTimeTicks = startTimeTicks - self.audioStreamIndex = audioStreamIndex - self.subtitleStreamIndex = subtitleStreamIndex - self.maxAudioChannels = maxAudioChannels - self.mediaSourceId = mediaSourceId - self.liveStreamId = liveStreamId - self.deviceProfile = deviceProfile - self.enableDirectPlay = enableDirectPlay - self.enableDirectStream = enableDirectStream - self.enableTranscoding = enableTranscoding - self.allowVideoStreamCopy = allowVideoStreamCopy - self.allowAudioStreamCopy = allowAudioStreamCopy - self.autoOpenLiveStream = autoOpenLiveStream - } - - public enum CodingKeys: String, CodingKey { - case userId = "UserId" - case maxStreamingBitrate = "MaxStreamingBitrate" - case startTimeTicks = "StartTimeTicks" - case audioStreamIndex = "AudioStreamIndex" - case subtitleStreamIndex = "SubtitleStreamIndex" - case maxAudioChannels = "MaxAudioChannels" - case mediaSourceId = "MediaSourceId" - case liveStreamId = "LiveStreamId" - case deviceProfile = "DeviceProfile" - case enableDirectPlay = "EnableDirectPlay" - case enableDirectStream = "EnableDirectStream" - case enableTranscoding = "EnableTranscoding" - case allowVideoStreamCopy = "AllowVideoStreamCopy" - case allowAudioStreamCopy = "AllowAudioStreamCopy" - case autoOpenLiveStream = "AutoOpenLiveStream" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ItemIdPlaybackInfoBody1.swift b/JellyfinPlayer/Swaggers/Models/ItemIdPlaybackInfoBody1.swift deleted file mode 100644 index feb32491..00000000 --- a/JellyfinPlayer/Swaggers/Models/ItemIdPlaybackInfoBody1.swift +++ /dev/null @@ -1,82 +0,0 @@ -// -// ItemIdPlaybackInfoBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The playback info. */ - -public struct ItemIdPlaybackInfoBody1: Codable { - - /** Gets or sets the playback userId. */ - public var userId: UUID? - /** Gets or sets the max streaming bitrate. */ - public var maxStreamingBitrate: Int? - /** Gets or sets the start time in ticks. */ - public var startTimeTicks: Int64? - /** Gets or sets the audio stream index. */ - public var audioStreamIndex: Int? - /** Gets or sets the subtitle stream index. */ - public var subtitleStreamIndex: Int? - /** Gets or sets the max audio channels. */ - public var maxAudioChannels: Int? - /** Gets or sets the media source id. */ - public var mediaSourceId: String? - /** Gets or sets the live stream id. */ - public var liveStreamId: String? - /** Gets or sets the device profile. */ - public var deviceProfile: Any? - /** Gets or sets a value indicating whether to enable direct play. */ - public var enableDirectPlay: Bool? - /** Gets or sets a value indicating whether to enable direct stream. */ - public var enableDirectStream: Bool? - /** Gets or sets a value indicating whether to enable transcoding. */ - public var enableTranscoding: Bool? - /** Gets or sets a value indicating whether to enable video stream copy. */ - public var allowVideoStreamCopy: Bool? - /** Gets or sets a value indicating whether to allow audio stream copy. */ - public var allowAudioStreamCopy: Bool? - /** Gets or sets a value indicating whether to auto open the live stream. */ - public var autoOpenLiveStream: Bool? - - public init(userId: UUID? = nil, maxStreamingBitrate: Int? = nil, startTimeTicks: Int64? = nil, audioStreamIndex: Int? = nil, subtitleStreamIndex: Int? = nil, maxAudioChannels: Int? = nil, mediaSourceId: String? = nil, liveStreamId: String? = nil, deviceProfile: Any? = nil, enableDirectPlay: Bool? = nil, enableDirectStream: Bool? = nil, enableTranscoding: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, autoOpenLiveStream: Bool? = nil) { - self.userId = userId - self.maxStreamingBitrate = maxStreamingBitrate - self.startTimeTicks = startTimeTicks - self.audioStreamIndex = audioStreamIndex - self.subtitleStreamIndex = subtitleStreamIndex - self.maxAudioChannels = maxAudioChannels - self.mediaSourceId = mediaSourceId - self.liveStreamId = liveStreamId - self.deviceProfile = deviceProfile - self.enableDirectPlay = enableDirectPlay - self.enableDirectStream = enableDirectStream - self.enableTranscoding = enableTranscoding - self.allowVideoStreamCopy = allowVideoStreamCopy - self.allowAudioStreamCopy = allowAudioStreamCopy - self.autoOpenLiveStream = autoOpenLiveStream - } - - public enum CodingKeys: String, CodingKey { - case userId = "UserId" - case maxStreamingBitrate = "MaxStreamingBitrate" - case startTimeTicks = "StartTimeTicks" - case audioStreamIndex = "AudioStreamIndex" - case subtitleStreamIndex = "SubtitleStreamIndex" - case maxAudioChannels = "MaxAudioChannels" - case mediaSourceId = "MediaSourceId" - case liveStreamId = "LiveStreamId" - case deviceProfile = "DeviceProfile" - case enableDirectPlay = "EnableDirectPlay" - case enableDirectStream = "EnableDirectStream" - case enableTranscoding = "EnableTranscoding" - case allowVideoStreamCopy = "AllowVideoStreamCopy" - case allowAudioStreamCopy = "AllowAudioStreamCopy" - case autoOpenLiveStream = "AutoOpenLiveStream" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ItemIdPlaybackInfoBody2.swift b/JellyfinPlayer/Swaggers/Models/ItemIdPlaybackInfoBody2.swift deleted file mode 100644 index 5a7c2d63..00000000 --- a/JellyfinPlayer/Swaggers/Models/ItemIdPlaybackInfoBody2.swift +++ /dev/null @@ -1,82 +0,0 @@ -// -// ItemIdPlaybackInfoBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The playback info. */ - -public struct ItemIdPlaybackInfoBody2: Codable { - - /** Gets or sets the playback userId. */ - public var userId: UUID? - /** Gets or sets the max streaming bitrate. */ - public var maxStreamingBitrate: Int? - /** Gets or sets the start time in ticks. */ - public var startTimeTicks: Int64? - /** Gets or sets the audio stream index. */ - public var audioStreamIndex: Int? - /** Gets or sets the subtitle stream index. */ - public var subtitleStreamIndex: Int? - /** Gets or sets the max audio channels. */ - public var maxAudioChannels: Int? - /** Gets or sets the media source id. */ - public var mediaSourceId: String? - /** Gets or sets the live stream id. */ - public var liveStreamId: String? - /** Gets or sets the device profile. */ - public var deviceProfile: Any? - /** Gets or sets a value indicating whether to enable direct play. */ - public var enableDirectPlay: Bool? - /** Gets or sets a value indicating whether to enable direct stream. */ - public var enableDirectStream: Bool? - /** Gets or sets a value indicating whether to enable transcoding. */ - public var enableTranscoding: Bool? - /** Gets or sets a value indicating whether to enable video stream copy. */ - public var allowVideoStreamCopy: Bool? - /** Gets or sets a value indicating whether to allow audio stream copy. */ - public var allowAudioStreamCopy: Bool? - /** Gets or sets a value indicating whether to auto open the live stream. */ - public var autoOpenLiveStream: Bool? - - public init(userId: UUID? = nil, maxStreamingBitrate: Int? = nil, startTimeTicks: Int64? = nil, audioStreamIndex: Int? = nil, subtitleStreamIndex: Int? = nil, maxAudioChannels: Int? = nil, mediaSourceId: String? = nil, liveStreamId: String? = nil, deviceProfile: Any? = nil, enableDirectPlay: Bool? = nil, enableDirectStream: Bool? = nil, enableTranscoding: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, autoOpenLiveStream: Bool? = nil) { - self.userId = userId - self.maxStreamingBitrate = maxStreamingBitrate - self.startTimeTicks = startTimeTicks - self.audioStreamIndex = audioStreamIndex - self.subtitleStreamIndex = subtitleStreamIndex - self.maxAudioChannels = maxAudioChannels - self.mediaSourceId = mediaSourceId - self.liveStreamId = liveStreamId - self.deviceProfile = deviceProfile - self.enableDirectPlay = enableDirectPlay - self.enableDirectStream = enableDirectStream - self.enableTranscoding = enableTranscoding - self.allowVideoStreamCopy = allowVideoStreamCopy - self.allowAudioStreamCopy = allowAudioStreamCopy - self.autoOpenLiveStream = autoOpenLiveStream - } - - public enum CodingKeys: String, CodingKey { - case userId = "UserId" - case maxStreamingBitrate = "MaxStreamingBitrate" - case startTimeTicks = "StartTimeTicks" - case audioStreamIndex = "AudioStreamIndex" - case subtitleStreamIndex = "SubtitleStreamIndex" - case maxAudioChannels = "MaxAudioChannels" - case mediaSourceId = "MediaSourceId" - case liveStreamId = "LiveStreamId" - case deviceProfile = "DeviceProfile" - case enableDirectPlay = "EnableDirectPlay" - case enableDirectStream = "EnableDirectStream" - case enableTranscoding = "EnableTranscoding" - case allowVideoStreamCopy = "AllowVideoStreamCopy" - case allowAudioStreamCopy = "AllowAudioStreamCopy" - case autoOpenLiveStream = "AutoOpenLiveStream" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ItemIdSubtitlesBody.swift b/JellyfinPlayer/Swaggers/Models/ItemIdSubtitlesBody.swift deleted file mode 100644 index 68597ace..00000000 --- a/JellyfinPlayer/Swaggers/Models/ItemIdSubtitlesBody.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// ItemIdSubtitlesBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The request body. */ - -public struct ItemIdSubtitlesBody: Codable { - - /** Gets or sets the subtitle language. */ - public var language: String - /** Gets or sets the subtitle format. */ - public var format: String - /** Gets or sets a value indicating whether the subtitle is forced. */ - public var isForced: Bool - /** Gets or sets the subtitle data. */ - public var data: String - - public init(language: String, format: String, isForced: Bool, data: String) { - self.language = language - self.format = format - self.isForced = isForced - self.data = data - } - - public enum CodingKeys: String, CodingKey { - case language = "Language" - case format = "Format" - case isForced = "IsForced" - case data = "Data" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ItemIdSubtitlesBody1.swift b/JellyfinPlayer/Swaggers/Models/ItemIdSubtitlesBody1.swift deleted file mode 100644 index 14eade2d..00000000 --- a/JellyfinPlayer/Swaggers/Models/ItemIdSubtitlesBody1.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// ItemIdSubtitlesBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The request body. */ - -public struct ItemIdSubtitlesBody1: Codable { - - /** Gets or sets the subtitle language. */ - public var language: String - /** Gets or sets the subtitle format. */ - public var format: String - /** Gets or sets a value indicating whether the subtitle is forced. */ - public var isForced: Bool - /** Gets or sets the subtitle data. */ - public var data: String - - public init(language: String, format: String, isForced: Bool, data: String) { - self.language = language - self.format = format - self.isForced = isForced - self.data = data - } - - public enum CodingKeys: String, CodingKey { - case language = "Language" - case format = "Format" - case isForced = "IsForced" - case data = "Data" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ItemIdSubtitlesBody2.swift b/JellyfinPlayer/Swaggers/Models/ItemIdSubtitlesBody2.swift deleted file mode 100644 index 6095f080..00000000 --- a/JellyfinPlayer/Swaggers/Models/ItemIdSubtitlesBody2.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// ItemIdSubtitlesBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The request body. */ - -public struct ItemIdSubtitlesBody2: Codable { - - /** Gets or sets the subtitle language. */ - public var language: String - /** Gets or sets the subtitle format. */ - public var format: String - /** Gets or sets a value indicating whether the subtitle is forced. */ - public var isForced: Bool - /** Gets or sets the subtitle data. */ - public var data: String - - public init(language: String, format: String, isForced: Bool, data: String) { - self.language = language - self.format = format - self.isForced = isForced - self.data = data - } - - public enum CodingKeys: String, CodingKey { - case language = "Language" - case format = "Format" - case isForced = "IsForced" - case data = "Data" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ItemsItemIdBody.swift b/JellyfinPlayer/Swaggers/Models/ItemsItemIdBody.swift deleted file mode 100644 index 22fd3287..00000000 --- a/JellyfinPlayer/Swaggers/Models/ItemsItemIdBody.swift +++ /dev/null @@ -1,590 +0,0 @@ -// -// ItemsItemIdBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The new item properties. */ - -public struct ItemsItemIdBody: Codable { - - /** Gets or sets the name. */ - public var name: String? - public var originalTitle: String? - /** Gets or sets the server identifier. */ - public var serverId: String? - /** Gets or sets the id. */ - public var _id: UUID? - /** Gets or sets the etag. */ - public var etag: String? - /** Gets or sets the type of the source. */ - public var sourceType: String? - /** Gets or sets the playlist item identifier. */ - public var playlistItemId: String? - /** Gets or sets the date created. */ - public var dateCreated: Date? - public var dateLastMediaAdded: Date? - public var extraType: String? - public var airsBeforeSeasonNumber: Int? - public var airsAfterSeasonNumber: Int? - public var airsBeforeEpisodeNumber: Int? - public var canDelete: Bool? - public var canDownload: Bool? - public var hasSubtitles: Bool? - public var preferredMetadataLanguage: String? - public var preferredMetadataCountryCode: String? - /** Gets or sets a value indicating whether [supports synchronize]. */ - public var supportsSync: Bool? - public var container: String? - /** Gets or sets the name of the sort. */ - public var sortName: String? - public var forcedSortName: String? - /** Gets or sets the video3 D format. */ - public var video3DFormat: Any? - /** Gets or sets the premiere date. */ - public var premiereDate: Date? - /** Gets or sets the external urls. */ - public var externalUrls: [ExternalUrl]? - /** Gets or sets the media versions. */ - public var mediaSources: [MediaSourceInfo]? - /** Gets or sets the critic rating. */ - public var criticRating: Float? - public var productionLocations: [String]? - /** Gets or sets the path. */ - public var path: String? - public var enableMediaSourceDisplay: Bool? - /** Gets or sets the official rating. */ - public var officialRating: String? - /** Gets or sets the custom rating. */ - public var customRating: String? - /** Gets or sets the channel identifier. */ - public var channelId: UUID? - public var channelName: String? - /** Gets or sets the overview. */ - public var overview: String? - /** Gets or sets the taglines. */ - public var taglines: [String]? - /** Gets or sets the genres. */ - public var genres: [String]? - /** Gets or sets the community rating. */ - public var communityRating: Float? - /** Gets or sets the cumulative run time ticks. */ - public var cumulativeRunTimeTicks: Int64? - /** Gets or sets the run time ticks. */ - public var runTimeTicks: Int64? - /** Gets or sets the play access. */ - public var playAccess: Any? - /** Gets or sets the aspect ratio. */ - public var aspectRatio: String? - /** Gets or sets the production year. */ - public var productionYear: Int? - /** Gets or sets a value indicating whether this instance is place holder. */ - public var isPlaceHolder: Bool? - /** Gets or sets the number. */ - public var number: String? - public var channelNumber: String? - /** Gets or sets the index number. */ - public var indexNumber: Int? - /** Gets or sets the index number end. */ - public var indexNumberEnd: Int? - /** Gets or sets the parent index number. */ - public var parentIndexNumber: Int? - /** Gets or sets the trailer urls. */ - public var remoteTrailers: [MediaUrl]? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets a value indicating whether this instance is HD. */ - public var isHD: Bool? - /** Gets or sets a value indicating whether this instance is folder. */ - public var isFolder: Bool? - /** Gets or sets the parent id. */ - public var parentId: UUID? - /** Gets or sets the type. */ - public var type: String? - /** Gets or sets the people. */ - public var people: [BaseItemPerson]? - /** Gets or sets the studios. */ - public var studios: [NameGuidPair]? - public var genreItems: [NameGuidPair]? - /** If the item does not have a logo, this will hold the Id of the Parent that has one. */ - public var parentLogoItemId: String? - /** If the item does not have any backdrops, this will hold the Id of the Parent that has one. */ - public var parentBackdropItemId: String? - /** Gets or sets the parent backdrop image tags. */ - public var parentBackdropImageTags: [String]? - /** Gets or sets the local trailer count. */ - public var localTrailerCount: Int? - /** User data for this item based on the user it's being requested for. */ - public var userData: Any? - /** Gets or sets the recursive item count. */ - public var recursiveItemCount: Int? - /** Gets or sets the child count. */ - public var childCount: Int? - /** Gets or sets the name of the series. */ - public var seriesName: String? - /** Gets or sets the series id. */ - public var seriesId: UUID? - /** Gets or sets the season identifier. */ - public var seasonId: UUID? - /** Gets or sets the special feature count. */ - public var specialFeatureCount: Int? - /** Gets or sets the display preferences id. */ - public var displayPreferencesId: String? - /** Gets or sets the status. */ - public var status: String? - /** Gets or sets the air time. */ - public var airTime: String? - /** Gets or sets the air days. */ - public var airDays: [DayOfWeek]? - /** Gets or sets the tags. */ - public var tags: [String]? - /** Gets or sets the primary image aspect ratio, after image enhancements. */ - public var primaryImageAspectRatio: Double? - /** Gets or sets the artists. */ - public var artists: [String]? - /** Gets or sets the artist items. */ - public var artistItems: [NameGuidPair]? - /** Gets or sets the album. */ - public var album: String? - /** Gets or sets the type of the collection. */ - public var collectionType: String? - /** Gets or sets the display order. */ - public var displayOrder: String? - /** Gets or sets the album id. */ - public var albumId: UUID? - /** Gets or sets the album image tag. */ - public var albumPrimaryImageTag: String? - /** Gets or sets the series primary image tag. */ - public var seriesPrimaryImageTag: String? - /** Gets or sets the album artist. */ - public var albumArtist: String? - /** Gets or sets the album artists. */ - public var albumArtists: [NameGuidPair]? - /** Gets or sets the name of the season. */ - public var seasonName: String? - /** Gets or sets the media streams. */ - public var mediaStreams: [MediaStream]? - /** Gets or sets the type of the video. */ - public var videoType: Any? - /** Gets or sets the part count. */ - public var partCount: Int? - public var mediaSourceCount: Int? - /** Gets or sets the image tags. */ - public var imageTags: [String:String]? - /** Gets or sets the backdrop image tags. */ - public var backdropImageTags: [String]? - /** Gets or sets the screenshot image tags. */ - public var screenshotImageTags: [String]? - /** Gets or sets the parent logo image tag. */ - public var parentLogoImageTag: String? - /** If the item does not have a art, this will hold the Id of the Parent that has one. */ - public var parentArtItemId: String? - /** Gets or sets the parent art image tag. */ - public var parentArtImageTag: String? - /** Gets or sets the series thumb image tag. */ - public var seriesThumbImageTag: String? - public var imageBlurHashes: BaseItemDtoImageBlurHashes? - /** Gets or sets the series studio. */ - public var seriesStudio: String? - /** Gets or sets the parent thumb item id. */ - public var parentThumbItemId: String? - /** Gets or sets the parent thumb image tag. */ - public var parentThumbImageTag: String? - /** Gets or sets the parent primary image item identifier. */ - public var parentPrimaryImageItemId: String? - /** Gets or sets the parent primary image tag. */ - public var parentPrimaryImageTag: String? - /** Gets or sets the chapters. */ - public var chapters: [ChapterInfo]? - /** Gets or sets the type of the location. */ - public var locationType: Any? - /** Gets or sets the type of the iso. */ - public var isoType: Any? - /** Gets or sets the type of the media. */ - public var mediaType: String? - /** Gets or sets the end date. */ - public var endDate: Date? - /** Gets or sets the locked fields. */ - public var lockedFields: [MetadataField]? - /** Gets or sets the trailer count. */ - public var trailerCount: Int? - /** Gets or sets the movie count. */ - public var movieCount: Int? - /** Gets or sets the series count. */ - public var seriesCount: Int? - public var programCount: Int? - /** Gets or sets the episode count. */ - public var episodeCount: Int? - /** Gets or sets the song count. */ - public var songCount: Int? - /** Gets or sets the album count. */ - public var albumCount: Int? - public var artistCount: Int? - /** Gets or sets the music video count. */ - public var musicVideoCount: Int? - /** Gets or sets a value indicating whether [enable internet providers]. */ - public var lockData: Bool? - public var width: Int? - public var height: Int? - public var cameraMake: String? - public var cameraModel: String? - public var software: String? - public var exposureTime: Double? - public var focalLength: Double? - public var imageOrientation: Any? - public var aperture: Double? - public var shutterSpeed: Double? - public var latitude: Double? - public var longitude: Double? - public var altitude: Double? - public var isoSpeedRating: Int? - /** Gets or sets the series timer identifier. */ - public var seriesTimerId: String? - /** Gets or sets the program identifier. */ - public var programId: String? - /** Gets or sets the channel primary image tag. */ - public var channelPrimaryImageTag: String? - /** The start date of the recording, in UTC. */ - public var startDate: Date? - /** Gets or sets the completion percentage. */ - public var completionPercentage: Double? - /** Gets or sets a value indicating whether this instance is repeat. */ - public var isRepeat: Bool? - /** Gets or sets the episode title. */ - public var episodeTitle: String? - /** Gets or sets the type of the channel. */ - public var channelType: Any? - /** Gets or sets the audio. */ - public var audio: Any? - /** Gets or sets a value indicating whether this instance is movie. */ - public var isMovie: Bool? - /** Gets or sets a value indicating whether this instance is sports. */ - public var isSports: Bool? - /** Gets or sets a value indicating whether this instance is series. */ - public var isSeries: Bool? - /** Gets or sets a value indicating whether this instance is live. */ - public var isLive: Bool? - /** Gets or sets a value indicating whether this instance is news. */ - public var isNews: Bool? - /** Gets or sets a value indicating whether this instance is kids. */ - public var isKids: Bool? - /** Gets or sets a value indicating whether this instance is premiere. */ - public var isPremiere: Bool? - /** Gets or sets the timer identifier. */ - public var timerId: String? - /** Gets or sets the current program. */ - public var currentProgram: Any? - - public init(name: String? = nil, originalTitle: String? = nil, serverId: String? = nil, _id: UUID? = nil, etag: String? = nil, sourceType: String? = nil, playlistItemId: String? = nil, dateCreated: Date? = nil, dateLastMediaAdded: Date? = nil, extraType: String? = nil, airsBeforeSeasonNumber: Int? = nil, airsAfterSeasonNumber: Int? = nil, airsBeforeEpisodeNumber: Int? = nil, canDelete: Bool? = nil, canDownload: Bool? = nil, hasSubtitles: Bool? = nil, preferredMetadataLanguage: String? = nil, preferredMetadataCountryCode: String? = nil, supportsSync: Bool? = nil, container: String? = nil, sortName: String? = nil, forcedSortName: String? = nil, video3DFormat: Any? = nil, premiereDate: Date? = nil, externalUrls: [ExternalUrl]? = nil, mediaSources: [MediaSourceInfo]? = nil, criticRating: Float? = nil, productionLocations: [String]? = nil, path: String? = nil, enableMediaSourceDisplay: Bool? = nil, officialRating: String? = nil, customRating: String? = nil, channelId: UUID? = nil, channelName: String? = nil, overview: String? = nil, taglines: [String]? = nil, genres: [String]? = nil, communityRating: Float? = nil, cumulativeRunTimeTicks: Int64? = nil, runTimeTicks: Int64? = nil, playAccess: Any? = nil, aspectRatio: String? = nil, productionYear: Int? = nil, isPlaceHolder: Bool? = nil, number: String? = nil, channelNumber: String? = nil, indexNumber: Int? = nil, indexNumberEnd: Int? = nil, parentIndexNumber: Int? = nil, remoteTrailers: [MediaUrl]? = nil, providerIds: [String:String]? = nil, isHD: Bool? = nil, isFolder: Bool? = nil, parentId: UUID? = nil, type: String? = nil, people: [BaseItemPerson]? = nil, studios: [NameGuidPair]? = nil, genreItems: [NameGuidPair]? = nil, parentLogoItemId: String? = nil, parentBackdropItemId: String? = nil, parentBackdropImageTags: [String]? = nil, localTrailerCount: Int? = nil, userData: Any? = nil, recursiveItemCount: Int? = nil, childCount: Int? = nil, seriesName: String? = nil, seriesId: UUID? = nil, seasonId: UUID? = nil, specialFeatureCount: Int? = nil, displayPreferencesId: String? = nil, status: String? = nil, airTime: String? = nil, airDays: [DayOfWeek]? = nil, tags: [String]? = nil, primaryImageAspectRatio: Double? = nil, artists: [String]? = nil, artistItems: [NameGuidPair]? = nil, album: String? = nil, collectionType: String? = nil, displayOrder: String? = nil, albumId: UUID? = nil, albumPrimaryImageTag: String? = nil, seriesPrimaryImageTag: String? = nil, albumArtist: String? = nil, albumArtists: [NameGuidPair]? = nil, seasonName: String? = nil, mediaStreams: [MediaStream]? = nil, videoType: Any? = nil, partCount: Int? = nil, mediaSourceCount: Int? = nil, imageTags: [String:String]? = nil, backdropImageTags: [String]? = nil, screenshotImageTags: [String]? = nil, parentLogoImageTag: String? = nil, parentArtItemId: String? = nil, parentArtImageTag: String? = nil, seriesThumbImageTag: String? = nil, imageBlurHashes: BaseItemDtoImageBlurHashes? = nil, seriesStudio: String? = nil, parentThumbItemId: String? = nil, parentThumbImageTag: String? = nil, parentPrimaryImageItemId: String? = nil, parentPrimaryImageTag: String? = nil, chapters: [ChapterInfo]? = nil, locationType: Any? = nil, isoType: Any? = nil, mediaType: String? = nil, endDate: Date? = nil, lockedFields: [MetadataField]? = nil, trailerCount: Int? = nil, movieCount: Int? = nil, seriesCount: Int? = nil, programCount: Int? = nil, episodeCount: Int? = nil, songCount: Int? = nil, albumCount: Int? = nil, artistCount: Int? = nil, musicVideoCount: Int? = nil, lockData: Bool? = nil, width: Int? = nil, height: Int? = nil, cameraMake: String? = nil, cameraModel: String? = nil, software: String? = nil, exposureTime: Double? = nil, focalLength: Double? = nil, imageOrientation: Any? = nil, aperture: Double? = nil, shutterSpeed: Double? = nil, latitude: Double? = nil, longitude: Double? = nil, altitude: Double? = nil, isoSpeedRating: Int? = nil, seriesTimerId: String? = nil, programId: String? = nil, channelPrimaryImageTag: String? = nil, startDate: Date? = nil, completionPercentage: Double? = nil, isRepeat: Bool? = nil, episodeTitle: String? = nil, channelType: Any? = nil, audio: Any? = nil, isMovie: Bool? = nil, isSports: Bool? = nil, isSeries: Bool? = nil, isLive: Bool? = nil, isNews: Bool? = nil, isKids: Bool? = nil, isPremiere: Bool? = nil, timerId: String? = nil, currentProgram: Any? = nil) { - self.name = name - self.originalTitle = originalTitle - self.serverId = serverId - self._id = _id - self.etag = etag - self.sourceType = sourceType - self.playlistItemId = playlistItemId - self.dateCreated = dateCreated - self.dateLastMediaAdded = dateLastMediaAdded - self.extraType = extraType - self.airsBeforeSeasonNumber = airsBeforeSeasonNumber - self.airsAfterSeasonNumber = airsAfterSeasonNumber - self.airsBeforeEpisodeNumber = airsBeforeEpisodeNumber - self.canDelete = canDelete - self.canDownload = canDownload - self.hasSubtitles = hasSubtitles - self.preferredMetadataLanguage = preferredMetadataLanguage - self.preferredMetadataCountryCode = preferredMetadataCountryCode - self.supportsSync = supportsSync - self.container = container - self.sortName = sortName - self.forcedSortName = forcedSortName - self.video3DFormat = video3DFormat - self.premiereDate = premiereDate - self.externalUrls = externalUrls - self.mediaSources = mediaSources - self.criticRating = criticRating - self.productionLocations = productionLocations - self.path = path - self.enableMediaSourceDisplay = enableMediaSourceDisplay - self.officialRating = officialRating - self.customRating = customRating - self.channelId = channelId - self.channelName = channelName - self.overview = overview - self.taglines = taglines - self.genres = genres - self.communityRating = communityRating - self.cumulativeRunTimeTicks = cumulativeRunTimeTicks - self.runTimeTicks = runTimeTicks - self.playAccess = playAccess - self.aspectRatio = aspectRatio - self.productionYear = productionYear - self.isPlaceHolder = isPlaceHolder - self.number = number - self.channelNumber = channelNumber - self.indexNumber = indexNumber - self.indexNumberEnd = indexNumberEnd - self.parentIndexNumber = parentIndexNumber - self.remoteTrailers = remoteTrailers - self.providerIds = providerIds - self.isHD = isHD - self.isFolder = isFolder - self.parentId = parentId - self.type = type - self.people = people - self.studios = studios - self.genreItems = genreItems - self.parentLogoItemId = parentLogoItemId - self.parentBackdropItemId = parentBackdropItemId - self.parentBackdropImageTags = parentBackdropImageTags - self.localTrailerCount = localTrailerCount - self.userData = userData - self.recursiveItemCount = recursiveItemCount - self.childCount = childCount - self.seriesName = seriesName - self.seriesId = seriesId - self.seasonId = seasonId - self.specialFeatureCount = specialFeatureCount - self.displayPreferencesId = displayPreferencesId - self.status = status - self.airTime = airTime - self.airDays = airDays - self.tags = tags - self.primaryImageAspectRatio = primaryImageAspectRatio - self.artists = artists - self.artistItems = artistItems - self.album = album - self.collectionType = collectionType - self.displayOrder = displayOrder - self.albumId = albumId - self.albumPrimaryImageTag = albumPrimaryImageTag - self.seriesPrimaryImageTag = seriesPrimaryImageTag - self.albumArtist = albumArtist - self.albumArtists = albumArtists - self.seasonName = seasonName - self.mediaStreams = mediaStreams - self.videoType = videoType - self.partCount = partCount - self.mediaSourceCount = mediaSourceCount - self.imageTags = imageTags - self.backdropImageTags = backdropImageTags - self.screenshotImageTags = screenshotImageTags - self.parentLogoImageTag = parentLogoImageTag - self.parentArtItemId = parentArtItemId - self.parentArtImageTag = parentArtImageTag - self.seriesThumbImageTag = seriesThumbImageTag - self.imageBlurHashes = imageBlurHashes - self.seriesStudio = seriesStudio - self.parentThumbItemId = parentThumbItemId - self.parentThumbImageTag = parentThumbImageTag - self.parentPrimaryImageItemId = parentPrimaryImageItemId - self.parentPrimaryImageTag = parentPrimaryImageTag - self.chapters = chapters - self.locationType = locationType - self.isoType = isoType - self.mediaType = mediaType - self.endDate = endDate - self.lockedFields = lockedFields - self.trailerCount = trailerCount - self.movieCount = movieCount - self.seriesCount = seriesCount - self.programCount = programCount - self.episodeCount = episodeCount - self.songCount = songCount - self.albumCount = albumCount - self.artistCount = artistCount - self.musicVideoCount = musicVideoCount - self.lockData = lockData - self.width = width - self.height = height - self.cameraMake = cameraMake - self.cameraModel = cameraModel - self.software = software - self.exposureTime = exposureTime - self.focalLength = focalLength - self.imageOrientation = imageOrientation - self.aperture = aperture - self.shutterSpeed = shutterSpeed - self.latitude = latitude - self.longitude = longitude - self.altitude = altitude - self.isoSpeedRating = isoSpeedRating - self.seriesTimerId = seriesTimerId - self.programId = programId - self.channelPrimaryImageTag = channelPrimaryImageTag - self.startDate = startDate - self.completionPercentage = completionPercentage - self.isRepeat = isRepeat - self.episodeTitle = episodeTitle - self.channelType = channelType - self.audio = audio - self.isMovie = isMovie - self.isSports = isSports - self.isSeries = isSeries - self.isLive = isLive - self.isNews = isNews - self.isKids = isKids - self.isPremiere = isPremiere - self.timerId = timerId - self.currentProgram = currentProgram - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case originalTitle = "OriginalTitle" - case serverId = "ServerId" - case _id = "Id" - case etag = "Etag" - case sourceType = "SourceType" - case playlistItemId = "PlaylistItemId" - case dateCreated = "DateCreated" - case dateLastMediaAdded = "DateLastMediaAdded" - case extraType = "ExtraType" - case airsBeforeSeasonNumber = "AirsBeforeSeasonNumber" - case airsAfterSeasonNumber = "AirsAfterSeasonNumber" - case airsBeforeEpisodeNumber = "AirsBeforeEpisodeNumber" - case canDelete = "CanDelete" - case canDownload = "CanDownload" - case hasSubtitles = "HasSubtitles" - case preferredMetadataLanguage = "PreferredMetadataLanguage" - case preferredMetadataCountryCode = "PreferredMetadataCountryCode" - case supportsSync = "SupportsSync" - case container = "Container" - case sortName = "SortName" - case forcedSortName = "ForcedSortName" - case video3DFormat = "Video3DFormat" - case premiereDate = "PremiereDate" - case externalUrls = "ExternalUrls" - case mediaSources = "MediaSources" - case criticRating = "CriticRating" - case productionLocations = "ProductionLocations" - case path = "Path" - case enableMediaSourceDisplay = "EnableMediaSourceDisplay" - case officialRating = "OfficialRating" - case customRating = "CustomRating" - case channelId = "ChannelId" - case channelName = "ChannelName" - case overview = "Overview" - case taglines = "Taglines" - case genres = "Genres" - case communityRating = "CommunityRating" - case cumulativeRunTimeTicks = "CumulativeRunTimeTicks" - case runTimeTicks = "RunTimeTicks" - case playAccess = "PlayAccess" - case aspectRatio = "AspectRatio" - case productionYear = "ProductionYear" - case isPlaceHolder = "IsPlaceHolder" - case number = "Number" - case channelNumber = "ChannelNumber" - case indexNumber = "IndexNumber" - case indexNumberEnd = "IndexNumberEnd" - case parentIndexNumber = "ParentIndexNumber" - case remoteTrailers = "RemoteTrailers" - case providerIds = "ProviderIds" - case isHD = "IsHD" - case isFolder = "IsFolder" - case parentId = "ParentId" - case type = "Type" - case people = "People" - case studios = "Studios" - case genreItems = "GenreItems" - case parentLogoItemId = "ParentLogoItemId" - case parentBackdropItemId = "ParentBackdropItemId" - case parentBackdropImageTags = "ParentBackdropImageTags" - case localTrailerCount = "LocalTrailerCount" - case userData = "UserData" - case recursiveItemCount = "RecursiveItemCount" - case childCount = "ChildCount" - case seriesName = "SeriesName" - case seriesId = "SeriesId" - case seasonId = "SeasonId" - case specialFeatureCount = "SpecialFeatureCount" - case displayPreferencesId = "DisplayPreferencesId" - case status = "Status" - case airTime = "AirTime" - case airDays = "AirDays" - case tags = "Tags" - case primaryImageAspectRatio = "PrimaryImageAspectRatio" - case artists = "Artists" - case artistItems = "ArtistItems" - case album = "Album" - case collectionType = "CollectionType" - case displayOrder = "DisplayOrder" - case albumId = "AlbumId" - case albumPrimaryImageTag = "AlbumPrimaryImageTag" - case seriesPrimaryImageTag = "SeriesPrimaryImageTag" - case albumArtist = "AlbumArtist" - case albumArtists = "AlbumArtists" - case seasonName = "SeasonName" - case mediaStreams = "MediaStreams" - case videoType = "VideoType" - case partCount = "PartCount" - case mediaSourceCount = "MediaSourceCount" - case imageTags = "ImageTags" - case backdropImageTags = "BackdropImageTags" - case screenshotImageTags = "ScreenshotImageTags" - case parentLogoImageTag = "ParentLogoImageTag" - case parentArtItemId = "ParentArtItemId" - case parentArtImageTag = "ParentArtImageTag" - case seriesThumbImageTag = "SeriesThumbImageTag" - case imageBlurHashes = "ImageBlurHashes" - case seriesStudio = "SeriesStudio" - case parentThumbItemId = "ParentThumbItemId" - case parentThumbImageTag = "ParentThumbImageTag" - case parentPrimaryImageItemId = "ParentPrimaryImageItemId" - case parentPrimaryImageTag = "ParentPrimaryImageTag" - case chapters = "Chapters" - case locationType = "LocationType" - case isoType = "IsoType" - case mediaType = "MediaType" - case endDate = "EndDate" - case lockedFields = "LockedFields" - case trailerCount = "TrailerCount" - case movieCount = "MovieCount" - case seriesCount = "SeriesCount" - case programCount = "ProgramCount" - case episodeCount = "EpisodeCount" - case songCount = "SongCount" - case albumCount = "AlbumCount" - case artistCount = "ArtistCount" - case musicVideoCount = "MusicVideoCount" - case lockData = "LockData" - case width = "Width" - case height = "Height" - case cameraMake = "CameraMake" - case cameraModel = "CameraModel" - case software = "Software" - case exposureTime = "ExposureTime" - case focalLength = "FocalLength" - case imageOrientation = "ImageOrientation" - case aperture = "Aperture" - case shutterSpeed = "ShutterSpeed" - case latitude = "Latitude" - case longitude = "Longitude" - case altitude = "Altitude" - case isoSpeedRating = "IsoSpeedRating" - case seriesTimerId = "SeriesTimerId" - case programId = "ProgramId" - case channelPrimaryImageTag = "ChannelPrimaryImageTag" - case startDate = "StartDate" - case completionPercentage = "CompletionPercentage" - case isRepeat = "IsRepeat" - case episodeTitle = "EpisodeTitle" - case channelType = "ChannelType" - case audio = "Audio" - case isMovie = "IsMovie" - case isSports = "IsSports" - case isSeries = "IsSeries" - case isLive = "IsLive" - case isNews = "IsNews" - case isKids = "IsKids" - case isPremiere = "IsPremiere" - case timerId = "TimerId" - case currentProgram = "CurrentProgram" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ItemsItemIdBody1.swift b/JellyfinPlayer/Swaggers/Models/ItemsItemIdBody1.swift deleted file mode 100644 index 4e73948a..00000000 --- a/JellyfinPlayer/Swaggers/Models/ItemsItemIdBody1.swift +++ /dev/null @@ -1,590 +0,0 @@ -// -// ItemsItemIdBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The new item properties. */ - -public struct ItemsItemIdBody1: Codable { - - /** Gets or sets the name. */ - public var name: String? - public var originalTitle: String? - /** Gets or sets the server identifier. */ - public var serverId: String? - /** Gets or sets the id. */ - public var _id: UUID? - /** Gets or sets the etag. */ - public var etag: String? - /** Gets or sets the type of the source. */ - public var sourceType: String? - /** Gets or sets the playlist item identifier. */ - public var playlistItemId: String? - /** Gets or sets the date created. */ - public var dateCreated: Date? - public var dateLastMediaAdded: Date? - public var extraType: String? - public var airsBeforeSeasonNumber: Int? - public var airsAfterSeasonNumber: Int? - public var airsBeforeEpisodeNumber: Int? - public var canDelete: Bool? - public var canDownload: Bool? - public var hasSubtitles: Bool? - public var preferredMetadataLanguage: String? - public var preferredMetadataCountryCode: String? - /** Gets or sets a value indicating whether [supports synchronize]. */ - public var supportsSync: Bool? - public var container: String? - /** Gets or sets the name of the sort. */ - public var sortName: String? - public var forcedSortName: String? - /** Gets or sets the video3 D format. */ - public var video3DFormat: Any? - /** Gets or sets the premiere date. */ - public var premiereDate: Date? - /** Gets or sets the external urls. */ - public var externalUrls: [ExternalUrl]? - /** Gets or sets the media versions. */ - public var mediaSources: [MediaSourceInfo]? - /** Gets or sets the critic rating. */ - public var criticRating: Float? - public var productionLocations: [String]? - /** Gets or sets the path. */ - public var path: String? - public var enableMediaSourceDisplay: Bool? - /** Gets or sets the official rating. */ - public var officialRating: String? - /** Gets or sets the custom rating. */ - public var customRating: String? - /** Gets or sets the channel identifier. */ - public var channelId: UUID? - public var channelName: String? - /** Gets or sets the overview. */ - public var overview: String? - /** Gets or sets the taglines. */ - public var taglines: [String]? - /** Gets or sets the genres. */ - public var genres: [String]? - /** Gets or sets the community rating. */ - public var communityRating: Float? - /** Gets or sets the cumulative run time ticks. */ - public var cumulativeRunTimeTicks: Int64? - /** Gets or sets the run time ticks. */ - public var runTimeTicks: Int64? - /** Gets or sets the play access. */ - public var playAccess: Any? - /** Gets or sets the aspect ratio. */ - public var aspectRatio: String? - /** Gets or sets the production year. */ - public var productionYear: Int? - /** Gets or sets a value indicating whether this instance is place holder. */ - public var isPlaceHolder: Bool? - /** Gets or sets the number. */ - public var number: String? - public var channelNumber: String? - /** Gets or sets the index number. */ - public var indexNumber: Int? - /** Gets or sets the index number end. */ - public var indexNumberEnd: Int? - /** Gets or sets the parent index number. */ - public var parentIndexNumber: Int? - /** Gets or sets the trailer urls. */ - public var remoteTrailers: [MediaUrl]? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets a value indicating whether this instance is HD. */ - public var isHD: Bool? - /** Gets or sets a value indicating whether this instance is folder. */ - public var isFolder: Bool? - /** Gets or sets the parent id. */ - public var parentId: UUID? - /** Gets or sets the type. */ - public var type: String? - /** Gets or sets the people. */ - public var people: [BaseItemPerson]? - /** Gets or sets the studios. */ - public var studios: [NameGuidPair]? - public var genreItems: [NameGuidPair]? - /** If the item does not have a logo, this will hold the Id of the Parent that has one. */ - public var parentLogoItemId: String? - /** If the item does not have any backdrops, this will hold the Id of the Parent that has one. */ - public var parentBackdropItemId: String? - /** Gets or sets the parent backdrop image tags. */ - public var parentBackdropImageTags: [String]? - /** Gets or sets the local trailer count. */ - public var localTrailerCount: Int? - /** User data for this item based on the user it's being requested for. */ - public var userData: Any? - /** Gets or sets the recursive item count. */ - public var recursiveItemCount: Int? - /** Gets or sets the child count. */ - public var childCount: Int? - /** Gets or sets the name of the series. */ - public var seriesName: String? - /** Gets or sets the series id. */ - public var seriesId: UUID? - /** Gets or sets the season identifier. */ - public var seasonId: UUID? - /** Gets or sets the special feature count. */ - public var specialFeatureCount: Int? - /** Gets or sets the display preferences id. */ - public var displayPreferencesId: String? - /** Gets or sets the status. */ - public var status: String? - /** Gets or sets the air time. */ - public var airTime: String? - /** Gets or sets the air days. */ - public var airDays: [DayOfWeek]? - /** Gets or sets the tags. */ - public var tags: [String]? - /** Gets or sets the primary image aspect ratio, after image enhancements. */ - public var primaryImageAspectRatio: Double? - /** Gets or sets the artists. */ - public var artists: [String]? - /** Gets or sets the artist items. */ - public var artistItems: [NameGuidPair]? - /** Gets or sets the album. */ - public var album: String? - /** Gets or sets the type of the collection. */ - public var collectionType: String? - /** Gets or sets the display order. */ - public var displayOrder: String? - /** Gets or sets the album id. */ - public var albumId: UUID? - /** Gets or sets the album image tag. */ - public var albumPrimaryImageTag: String? - /** Gets or sets the series primary image tag. */ - public var seriesPrimaryImageTag: String? - /** Gets or sets the album artist. */ - public var albumArtist: String? - /** Gets or sets the album artists. */ - public var albumArtists: [NameGuidPair]? - /** Gets or sets the name of the season. */ - public var seasonName: String? - /** Gets or sets the media streams. */ - public var mediaStreams: [MediaStream]? - /** Gets or sets the type of the video. */ - public var videoType: Any? - /** Gets or sets the part count. */ - public var partCount: Int? - public var mediaSourceCount: Int? - /** Gets or sets the image tags. */ - public var imageTags: [String:String]? - /** Gets or sets the backdrop image tags. */ - public var backdropImageTags: [String]? - /** Gets or sets the screenshot image tags. */ - public var screenshotImageTags: [String]? - /** Gets or sets the parent logo image tag. */ - public var parentLogoImageTag: String? - /** If the item does not have a art, this will hold the Id of the Parent that has one. */ - public var parentArtItemId: String? - /** Gets or sets the parent art image tag. */ - public var parentArtImageTag: String? - /** Gets or sets the series thumb image tag. */ - public var seriesThumbImageTag: String? - public var imageBlurHashes: BaseItemDtoImageBlurHashes? - /** Gets or sets the series studio. */ - public var seriesStudio: String? - /** Gets or sets the parent thumb item id. */ - public var parentThumbItemId: String? - /** Gets or sets the parent thumb image tag. */ - public var parentThumbImageTag: String? - /** Gets or sets the parent primary image item identifier. */ - public var parentPrimaryImageItemId: String? - /** Gets or sets the parent primary image tag. */ - public var parentPrimaryImageTag: String? - /** Gets or sets the chapters. */ - public var chapters: [ChapterInfo]? - /** Gets or sets the type of the location. */ - public var locationType: Any? - /** Gets or sets the type of the iso. */ - public var isoType: Any? - /** Gets or sets the type of the media. */ - public var mediaType: String? - /** Gets or sets the end date. */ - public var endDate: Date? - /** Gets or sets the locked fields. */ - public var lockedFields: [MetadataField]? - /** Gets or sets the trailer count. */ - public var trailerCount: Int? - /** Gets or sets the movie count. */ - public var movieCount: Int? - /** Gets or sets the series count. */ - public var seriesCount: Int? - public var programCount: Int? - /** Gets or sets the episode count. */ - public var episodeCount: Int? - /** Gets or sets the song count. */ - public var songCount: Int? - /** Gets or sets the album count. */ - public var albumCount: Int? - public var artistCount: Int? - /** Gets or sets the music video count. */ - public var musicVideoCount: Int? - /** Gets or sets a value indicating whether [enable internet providers]. */ - public var lockData: Bool? - public var width: Int? - public var height: Int? - public var cameraMake: String? - public var cameraModel: String? - public var software: String? - public var exposureTime: Double? - public var focalLength: Double? - public var imageOrientation: Any? - public var aperture: Double? - public var shutterSpeed: Double? - public var latitude: Double? - public var longitude: Double? - public var altitude: Double? - public var isoSpeedRating: Int? - /** Gets or sets the series timer identifier. */ - public var seriesTimerId: String? - /** Gets or sets the program identifier. */ - public var programId: String? - /** Gets or sets the channel primary image tag. */ - public var channelPrimaryImageTag: String? - /** The start date of the recording, in UTC. */ - public var startDate: Date? - /** Gets or sets the completion percentage. */ - public var completionPercentage: Double? - /** Gets or sets a value indicating whether this instance is repeat. */ - public var isRepeat: Bool? - /** Gets or sets the episode title. */ - public var episodeTitle: String? - /** Gets or sets the type of the channel. */ - public var channelType: Any? - /** Gets or sets the audio. */ - public var audio: Any? - /** Gets or sets a value indicating whether this instance is movie. */ - public var isMovie: Bool? - /** Gets or sets a value indicating whether this instance is sports. */ - public var isSports: Bool? - /** Gets or sets a value indicating whether this instance is series. */ - public var isSeries: Bool? - /** Gets or sets a value indicating whether this instance is live. */ - public var isLive: Bool? - /** Gets or sets a value indicating whether this instance is news. */ - public var isNews: Bool? - /** Gets or sets a value indicating whether this instance is kids. */ - public var isKids: Bool? - /** Gets or sets a value indicating whether this instance is premiere. */ - public var isPremiere: Bool? - /** Gets or sets the timer identifier. */ - public var timerId: String? - /** Gets or sets the current program. */ - public var currentProgram: Any? - - public init(name: String? = nil, originalTitle: String? = nil, serverId: String? = nil, _id: UUID? = nil, etag: String? = nil, sourceType: String? = nil, playlistItemId: String? = nil, dateCreated: Date? = nil, dateLastMediaAdded: Date? = nil, extraType: String? = nil, airsBeforeSeasonNumber: Int? = nil, airsAfterSeasonNumber: Int? = nil, airsBeforeEpisodeNumber: Int? = nil, canDelete: Bool? = nil, canDownload: Bool? = nil, hasSubtitles: Bool? = nil, preferredMetadataLanguage: String? = nil, preferredMetadataCountryCode: String? = nil, supportsSync: Bool? = nil, container: String? = nil, sortName: String? = nil, forcedSortName: String? = nil, video3DFormat: Any? = nil, premiereDate: Date? = nil, externalUrls: [ExternalUrl]? = nil, mediaSources: [MediaSourceInfo]? = nil, criticRating: Float? = nil, productionLocations: [String]? = nil, path: String? = nil, enableMediaSourceDisplay: Bool? = nil, officialRating: String? = nil, customRating: String? = nil, channelId: UUID? = nil, channelName: String? = nil, overview: String? = nil, taglines: [String]? = nil, genres: [String]? = nil, communityRating: Float? = nil, cumulativeRunTimeTicks: Int64? = nil, runTimeTicks: Int64? = nil, playAccess: Any? = nil, aspectRatio: String? = nil, productionYear: Int? = nil, isPlaceHolder: Bool? = nil, number: String? = nil, channelNumber: String? = nil, indexNumber: Int? = nil, indexNumberEnd: Int? = nil, parentIndexNumber: Int? = nil, remoteTrailers: [MediaUrl]? = nil, providerIds: [String:String]? = nil, isHD: Bool? = nil, isFolder: Bool? = nil, parentId: UUID? = nil, type: String? = nil, people: [BaseItemPerson]? = nil, studios: [NameGuidPair]? = nil, genreItems: [NameGuidPair]? = nil, parentLogoItemId: String? = nil, parentBackdropItemId: String? = nil, parentBackdropImageTags: [String]? = nil, localTrailerCount: Int? = nil, userData: Any? = nil, recursiveItemCount: Int? = nil, childCount: Int? = nil, seriesName: String? = nil, seriesId: UUID? = nil, seasonId: UUID? = nil, specialFeatureCount: Int? = nil, displayPreferencesId: String? = nil, status: String? = nil, airTime: String? = nil, airDays: [DayOfWeek]? = nil, tags: [String]? = nil, primaryImageAspectRatio: Double? = nil, artists: [String]? = nil, artistItems: [NameGuidPair]? = nil, album: String? = nil, collectionType: String? = nil, displayOrder: String? = nil, albumId: UUID? = nil, albumPrimaryImageTag: String? = nil, seriesPrimaryImageTag: String? = nil, albumArtist: String? = nil, albumArtists: [NameGuidPair]? = nil, seasonName: String? = nil, mediaStreams: [MediaStream]? = nil, videoType: Any? = nil, partCount: Int? = nil, mediaSourceCount: Int? = nil, imageTags: [String:String]? = nil, backdropImageTags: [String]? = nil, screenshotImageTags: [String]? = nil, parentLogoImageTag: String? = nil, parentArtItemId: String? = nil, parentArtImageTag: String? = nil, seriesThumbImageTag: String? = nil, imageBlurHashes: BaseItemDtoImageBlurHashes? = nil, seriesStudio: String? = nil, parentThumbItemId: String? = nil, parentThumbImageTag: String? = nil, parentPrimaryImageItemId: String? = nil, parentPrimaryImageTag: String? = nil, chapters: [ChapterInfo]? = nil, locationType: Any? = nil, isoType: Any? = nil, mediaType: String? = nil, endDate: Date? = nil, lockedFields: [MetadataField]? = nil, trailerCount: Int? = nil, movieCount: Int? = nil, seriesCount: Int? = nil, programCount: Int? = nil, episodeCount: Int? = nil, songCount: Int? = nil, albumCount: Int? = nil, artistCount: Int? = nil, musicVideoCount: Int? = nil, lockData: Bool? = nil, width: Int? = nil, height: Int? = nil, cameraMake: String? = nil, cameraModel: String? = nil, software: String? = nil, exposureTime: Double? = nil, focalLength: Double? = nil, imageOrientation: Any? = nil, aperture: Double? = nil, shutterSpeed: Double? = nil, latitude: Double? = nil, longitude: Double? = nil, altitude: Double? = nil, isoSpeedRating: Int? = nil, seriesTimerId: String? = nil, programId: String? = nil, channelPrimaryImageTag: String? = nil, startDate: Date? = nil, completionPercentage: Double? = nil, isRepeat: Bool? = nil, episodeTitle: String? = nil, channelType: Any? = nil, audio: Any? = nil, isMovie: Bool? = nil, isSports: Bool? = nil, isSeries: Bool? = nil, isLive: Bool? = nil, isNews: Bool? = nil, isKids: Bool? = nil, isPremiere: Bool? = nil, timerId: String? = nil, currentProgram: Any? = nil) { - self.name = name - self.originalTitle = originalTitle - self.serverId = serverId - self._id = _id - self.etag = etag - self.sourceType = sourceType - self.playlistItemId = playlistItemId - self.dateCreated = dateCreated - self.dateLastMediaAdded = dateLastMediaAdded - self.extraType = extraType - self.airsBeforeSeasonNumber = airsBeforeSeasonNumber - self.airsAfterSeasonNumber = airsAfterSeasonNumber - self.airsBeforeEpisodeNumber = airsBeforeEpisodeNumber - self.canDelete = canDelete - self.canDownload = canDownload - self.hasSubtitles = hasSubtitles - self.preferredMetadataLanguage = preferredMetadataLanguage - self.preferredMetadataCountryCode = preferredMetadataCountryCode - self.supportsSync = supportsSync - self.container = container - self.sortName = sortName - self.forcedSortName = forcedSortName - self.video3DFormat = video3DFormat - self.premiereDate = premiereDate - self.externalUrls = externalUrls - self.mediaSources = mediaSources - self.criticRating = criticRating - self.productionLocations = productionLocations - self.path = path - self.enableMediaSourceDisplay = enableMediaSourceDisplay - self.officialRating = officialRating - self.customRating = customRating - self.channelId = channelId - self.channelName = channelName - self.overview = overview - self.taglines = taglines - self.genres = genres - self.communityRating = communityRating - self.cumulativeRunTimeTicks = cumulativeRunTimeTicks - self.runTimeTicks = runTimeTicks - self.playAccess = playAccess - self.aspectRatio = aspectRatio - self.productionYear = productionYear - self.isPlaceHolder = isPlaceHolder - self.number = number - self.channelNumber = channelNumber - self.indexNumber = indexNumber - self.indexNumberEnd = indexNumberEnd - self.parentIndexNumber = parentIndexNumber - self.remoteTrailers = remoteTrailers - self.providerIds = providerIds - self.isHD = isHD - self.isFolder = isFolder - self.parentId = parentId - self.type = type - self.people = people - self.studios = studios - self.genreItems = genreItems - self.parentLogoItemId = parentLogoItemId - self.parentBackdropItemId = parentBackdropItemId - self.parentBackdropImageTags = parentBackdropImageTags - self.localTrailerCount = localTrailerCount - self.userData = userData - self.recursiveItemCount = recursiveItemCount - self.childCount = childCount - self.seriesName = seriesName - self.seriesId = seriesId - self.seasonId = seasonId - self.specialFeatureCount = specialFeatureCount - self.displayPreferencesId = displayPreferencesId - self.status = status - self.airTime = airTime - self.airDays = airDays - self.tags = tags - self.primaryImageAspectRatio = primaryImageAspectRatio - self.artists = artists - self.artistItems = artistItems - self.album = album - self.collectionType = collectionType - self.displayOrder = displayOrder - self.albumId = albumId - self.albumPrimaryImageTag = albumPrimaryImageTag - self.seriesPrimaryImageTag = seriesPrimaryImageTag - self.albumArtist = albumArtist - self.albumArtists = albumArtists - self.seasonName = seasonName - self.mediaStreams = mediaStreams - self.videoType = videoType - self.partCount = partCount - self.mediaSourceCount = mediaSourceCount - self.imageTags = imageTags - self.backdropImageTags = backdropImageTags - self.screenshotImageTags = screenshotImageTags - self.parentLogoImageTag = parentLogoImageTag - self.parentArtItemId = parentArtItemId - self.parentArtImageTag = parentArtImageTag - self.seriesThumbImageTag = seriesThumbImageTag - self.imageBlurHashes = imageBlurHashes - self.seriesStudio = seriesStudio - self.parentThumbItemId = parentThumbItemId - self.parentThumbImageTag = parentThumbImageTag - self.parentPrimaryImageItemId = parentPrimaryImageItemId - self.parentPrimaryImageTag = parentPrimaryImageTag - self.chapters = chapters - self.locationType = locationType - self.isoType = isoType - self.mediaType = mediaType - self.endDate = endDate - self.lockedFields = lockedFields - self.trailerCount = trailerCount - self.movieCount = movieCount - self.seriesCount = seriesCount - self.programCount = programCount - self.episodeCount = episodeCount - self.songCount = songCount - self.albumCount = albumCount - self.artistCount = artistCount - self.musicVideoCount = musicVideoCount - self.lockData = lockData - self.width = width - self.height = height - self.cameraMake = cameraMake - self.cameraModel = cameraModel - self.software = software - self.exposureTime = exposureTime - self.focalLength = focalLength - self.imageOrientation = imageOrientation - self.aperture = aperture - self.shutterSpeed = shutterSpeed - self.latitude = latitude - self.longitude = longitude - self.altitude = altitude - self.isoSpeedRating = isoSpeedRating - self.seriesTimerId = seriesTimerId - self.programId = programId - self.channelPrimaryImageTag = channelPrimaryImageTag - self.startDate = startDate - self.completionPercentage = completionPercentage - self.isRepeat = isRepeat - self.episodeTitle = episodeTitle - self.channelType = channelType - self.audio = audio - self.isMovie = isMovie - self.isSports = isSports - self.isSeries = isSeries - self.isLive = isLive - self.isNews = isNews - self.isKids = isKids - self.isPremiere = isPremiere - self.timerId = timerId - self.currentProgram = currentProgram - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case originalTitle = "OriginalTitle" - case serverId = "ServerId" - case _id = "Id" - case etag = "Etag" - case sourceType = "SourceType" - case playlistItemId = "PlaylistItemId" - case dateCreated = "DateCreated" - case dateLastMediaAdded = "DateLastMediaAdded" - case extraType = "ExtraType" - case airsBeforeSeasonNumber = "AirsBeforeSeasonNumber" - case airsAfterSeasonNumber = "AirsAfterSeasonNumber" - case airsBeforeEpisodeNumber = "AirsBeforeEpisodeNumber" - case canDelete = "CanDelete" - case canDownload = "CanDownload" - case hasSubtitles = "HasSubtitles" - case preferredMetadataLanguage = "PreferredMetadataLanguage" - case preferredMetadataCountryCode = "PreferredMetadataCountryCode" - case supportsSync = "SupportsSync" - case container = "Container" - case sortName = "SortName" - case forcedSortName = "ForcedSortName" - case video3DFormat = "Video3DFormat" - case premiereDate = "PremiereDate" - case externalUrls = "ExternalUrls" - case mediaSources = "MediaSources" - case criticRating = "CriticRating" - case productionLocations = "ProductionLocations" - case path = "Path" - case enableMediaSourceDisplay = "EnableMediaSourceDisplay" - case officialRating = "OfficialRating" - case customRating = "CustomRating" - case channelId = "ChannelId" - case channelName = "ChannelName" - case overview = "Overview" - case taglines = "Taglines" - case genres = "Genres" - case communityRating = "CommunityRating" - case cumulativeRunTimeTicks = "CumulativeRunTimeTicks" - case runTimeTicks = "RunTimeTicks" - case playAccess = "PlayAccess" - case aspectRatio = "AspectRatio" - case productionYear = "ProductionYear" - case isPlaceHolder = "IsPlaceHolder" - case number = "Number" - case channelNumber = "ChannelNumber" - case indexNumber = "IndexNumber" - case indexNumberEnd = "IndexNumberEnd" - case parentIndexNumber = "ParentIndexNumber" - case remoteTrailers = "RemoteTrailers" - case providerIds = "ProviderIds" - case isHD = "IsHD" - case isFolder = "IsFolder" - case parentId = "ParentId" - case type = "Type" - case people = "People" - case studios = "Studios" - case genreItems = "GenreItems" - case parentLogoItemId = "ParentLogoItemId" - case parentBackdropItemId = "ParentBackdropItemId" - case parentBackdropImageTags = "ParentBackdropImageTags" - case localTrailerCount = "LocalTrailerCount" - case userData = "UserData" - case recursiveItemCount = "RecursiveItemCount" - case childCount = "ChildCount" - case seriesName = "SeriesName" - case seriesId = "SeriesId" - case seasonId = "SeasonId" - case specialFeatureCount = "SpecialFeatureCount" - case displayPreferencesId = "DisplayPreferencesId" - case status = "Status" - case airTime = "AirTime" - case airDays = "AirDays" - case tags = "Tags" - case primaryImageAspectRatio = "PrimaryImageAspectRatio" - case artists = "Artists" - case artistItems = "ArtistItems" - case album = "Album" - case collectionType = "CollectionType" - case displayOrder = "DisplayOrder" - case albumId = "AlbumId" - case albumPrimaryImageTag = "AlbumPrimaryImageTag" - case seriesPrimaryImageTag = "SeriesPrimaryImageTag" - case albumArtist = "AlbumArtist" - case albumArtists = "AlbumArtists" - case seasonName = "SeasonName" - case mediaStreams = "MediaStreams" - case videoType = "VideoType" - case partCount = "PartCount" - case mediaSourceCount = "MediaSourceCount" - case imageTags = "ImageTags" - case backdropImageTags = "BackdropImageTags" - case screenshotImageTags = "ScreenshotImageTags" - case parentLogoImageTag = "ParentLogoImageTag" - case parentArtItemId = "ParentArtItemId" - case parentArtImageTag = "ParentArtImageTag" - case seriesThumbImageTag = "SeriesThumbImageTag" - case imageBlurHashes = "ImageBlurHashes" - case seriesStudio = "SeriesStudio" - case parentThumbItemId = "ParentThumbItemId" - case parentThumbImageTag = "ParentThumbImageTag" - case parentPrimaryImageItemId = "ParentPrimaryImageItemId" - case parentPrimaryImageTag = "ParentPrimaryImageTag" - case chapters = "Chapters" - case locationType = "LocationType" - case isoType = "IsoType" - case mediaType = "MediaType" - case endDate = "EndDate" - case lockedFields = "LockedFields" - case trailerCount = "TrailerCount" - case movieCount = "MovieCount" - case seriesCount = "SeriesCount" - case programCount = "ProgramCount" - case episodeCount = "EpisodeCount" - case songCount = "SongCount" - case albumCount = "AlbumCount" - case artistCount = "ArtistCount" - case musicVideoCount = "MusicVideoCount" - case lockData = "LockData" - case width = "Width" - case height = "Height" - case cameraMake = "CameraMake" - case cameraModel = "CameraModel" - case software = "Software" - case exposureTime = "ExposureTime" - case focalLength = "FocalLength" - case imageOrientation = "ImageOrientation" - case aperture = "Aperture" - case shutterSpeed = "ShutterSpeed" - case latitude = "Latitude" - case longitude = "Longitude" - case altitude = "Altitude" - case isoSpeedRating = "IsoSpeedRating" - case seriesTimerId = "SeriesTimerId" - case programId = "ProgramId" - case channelPrimaryImageTag = "ChannelPrimaryImageTag" - case startDate = "StartDate" - case completionPercentage = "CompletionPercentage" - case isRepeat = "IsRepeat" - case episodeTitle = "EpisodeTitle" - case channelType = "ChannelType" - case audio = "Audio" - case isMovie = "IsMovie" - case isSports = "IsSports" - case isSeries = "IsSeries" - case isLive = "IsLive" - case isNews = "IsNews" - case isKids = "IsKids" - case isPremiere = "IsPremiere" - case timerId = "TimerId" - case currentProgram = "CurrentProgram" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ItemsItemIdBody2.swift b/JellyfinPlayer/Swaggers/Models/ItemsItemIdBody2.swift deleted file mode 100644 index 76188147..00000000 --- a/JellyfinPlayer/Swaggers/Models/ItemsItemIdBody2.swift +++ /dev/null @@ -1,590 +0,0 @@ -// -// ItemsItemIdBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The new item properties. */ - -public struct ItemsItemIdBody2: Codable { - - /** Gets or sets the name. */ - public var name: String? - public var originalTitle: String? - /** Gets or sets the server identifier. */ - public var serverId: String? - /** Gets or sets the id. */ - public var _id: UUID? - /** Gets or sets the etag. */ - public var etag: String? - /** Gets or sets the type of the source. */ - public var sourceType: String? - /** Gets or sets the playlist item identifier. */ - public var playlistItemId: String? - /** Gets or sets the date created. */ - public var dateCreated: Date? - public var dateLastMediaAdded: Date? - public var extraType: String? - public var airsBeforeSeasonNumber: Int? - public var airsAfterSeasonNumber: Int? - public var airsBeforeEpisodeNumber: Int? - public var canDelete: Bool? - public var canDownload: Bool? - public var hasSubtitles: Bool? - public var preferredMetadataLanguage: String? - public var preferredMetadataCountryCode: String? - /** Gets or sets a value indicating whether [supports synchronize]. */ - public var supportsSync: Bool? - public var container: String? - /** Gets or sets the name of the sort. */ - public var sortName: String? - public var forcedSortName: String? - /** Gets or sets the video3 D format. */ - public var video3DFormat: Any? - /** Gets or sets the premiere date. */ - public var premiereDate: Date? - /** Gets or sets the external urls. */ - public var externalUrls: [ExternalUrl]? - /** Gets or sets the media versions. */ - public var mediaSources: [MediaSourceInfo]? - /** Gets or sets the critic rating. */ - public var criticRating: Float? - public var productionLocations: [String]? - /** Gets or sets the path. */ - public var path: String? - public var enableMediaSourceDisplay: Bool? - /** Gets or sets the official rating. */ - public var officialRating: String? - /** Gets or sets the custom rating. */ - public var customRating: String? - /** Gets or sets the channel identifier. */ - public var channelId: UUID? - public var channelName: String? - /** Gets or sets the overview. */ - public var overview: String? - /** Gets or sets the taglines. */ - public var taglines: [String]? - /** Gets or sets the genres. */ - public var genres: [String]? - /** Gets or sets the community rating. */ - public var communityRating: Float? - /** Gets or sets the cumulative run time ticks. */ - public var cumulativeRunTimeTicks: Int64? - /** Gets or sets the run time ticks. */ - public var runTimeTicks: Int64? - /** Gets or sets the play access. */ - public var playAccess: Any? - /** Gets or sets the aspect ratio. */ - public var aspectRatio: String? - /** Gets or sets the production year. */ - public var productionYear: Int? - /** Gets or sets a value indicating whether this instance is place holder. */ - public var isPlaceHolder: Bool? - /** Gets or sets the number. */ - public var number: String? - public var channelNumber: String? - /** Gets or sets the index number. */ - public var indexNumber: Int? - /** Gets or sets the index number end. */ - public var indexNumberEnd: Int? - /** Gets or sets the parent index number. */ - public var parentIndexNumber: Int? - /** Gets or sets the trailer urls. */ - public var remoteTrailers: [MediaUrl]? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets a value indicating whether this instance is HD. */ - public var isHD: Bool? - /** Gets or sets a value indicating whether this instance is folder. */ - public var isFolder: Bool? - /** Gets or sets the parent id. */ - public var parentId: UUID? - /** Gets or sets the type. */ - public var type: String? - /** Gets or sets the people. */ - public var people: [BaseItemPerson]? - /** Gets or sets the studios. */ - public var studios: [NameGuidPair]? - public var genreItems: [NameGuidPair]? - /** If the item does not have a logo, this will hold the Id of the Parent that has one. */ - public var parentLogoItemId: String? - /** If the item does not have any backdrops, this will hold the Id of the Parent that has one. */ - public var parentBackdropItemId: String? - /** Gets or sets the parent backdrop image tags. */ - public var parentBackdropImageTags: [String]? - /** Gets or sets the local trailer count. */ - public var localTrailerCount: Int? - /** User data for this item based on the user it's being requested for. */ - public var userData: Any? - /** Gets or sets the recursive item count. */ - public var recursiveItemCount: Int? - /** Gets or sets the child count. */ - public var childCount: Int? - /** Gets or sets the name of the series. */ - public var seriesName: String? - /** Gets or sets the series id. */ - public var seriesId: UUID? - /** Gets or sets the season identifier. */ - public var seasonId: UUID? - /** Gets or sets the special feature count. */ - public var specialFeatureCount: Int? - /** Gets or sets the display preferences id. */ - public var displayPreferencesId: String? - /** Gets or sets the status. */ - public var status: String? - /** Gets or sets the air time. */ - public var airTime: String? - /** Gets or sets the air days. */ - public var airDays: [DayOfWeek]? - /** Gets or sets the tags. */ - public var tags: [String]? - /** Gets or sets the primary image aspect ratio, after image enhancements. */ - public var primaryImageAspectRatio: Double? - /** Gets or sets the artists. */ - public var artists: [String]? - /** Gets or sets the artist items. */ - public var artistItems: [NameGuidPair]? - /** Gets or sets the album. */ - public var album: String? - /** Gets or sets the type of the collection. */ - public var collectionType: String? - /** Gets or sets the display order. */ - public var displayOrder: String? - /** Gets or sets the album id. */ - public var albumId: UUID? - /** Gets or sets the album image tag. */ - public var albumPrimaryImageTag: String? - /** Gets or sets the series primary image tag. */ - public var seriesPrimaryImageTag: String? - /** Gets or sets the album artist. */ - public var albumArtist: String? - /** Gets or sets the album artists. */ - public var albumArtists: [NameGuidPair]? - /** Gets or sets the name of the season. */ - public var seasonName: String? - /** Gets or sets the media streams. */ - public var mediaStreams: [MediaStream]? - /** Gets or sets the type of the video. */ - public var videoType: Any? - /** Gets or sets the part count. */ - public var partCount: Int? - public var mediaSourceCount: Int? - /** Gets or sets the image tags. */ - public var imageTags: [String:String]? - /** Gets or sets the backdrop image tags. */ - public var backdropImageTags: [String]? - /** Gets or sets the screenshot image tags. */ - public var screenshotImageTags: [String]? - /** Gets or sets the parent logo image tag. */ - public var parentLogoImageTag: String? - /** If the item does not have a art, this will hold the Id of the Parent that has one. */ - public var parentArtItemId: String? - /** Gets or sets the parent art image tag. */ - public var parentArtImageTag: String? - /** Gets or sets the series thumb image tag. */ - public var seriesThumbImageTag: String? - public var imageBlurHashes: BaseItemDtoImageBlurHashes? - /** Gets or sets the series studio. */ - public var seriesStudio: String? - /** Gets or sets the parent thumb item id. */ - public var parentThumbItemId: String? - /** Gets or sets the parent thumb image tag. */ - public var parentThumbImageTag: String? - /** Gets or sets the parent primary image item identifier. */ - public var parentPrimaryImageItemId: String? - /** Gets or sets the parent primary image tag. */ - public var parentPrimaryImageTag: String? - /** Gets or sets the chapters. */ - public var chapters: [ChapterInfo]? - /** Gets or sets the type of the location. */ - public var locationType: Any? - /** Gets or sets the type of the iso. */ - public var isoType: Any? - /** Gets or sets the type of the media. */ - public var mediaType: String? - /** Gets or sets the end date. */ - public var endDate: Date? - /** Gets or sets the locked fields. */ - public var lockedFields: [MetadataField]? - /** Gets or sets the trailer count. */ - public var trailerCount: Int? - /** Gets or sets the movie count. */ - public var movieCount: Int? - /** Gets or sets the series count. */ - public var seriesCount: Int? - public var programCount: Int? - /** Gets or sets the episode count. */ - public var episodeCount: Int? - /** Gets or sets the song count. */ - public var songCount: Int? - /** Gets or sets the album count. */ - public var albumCount: Int? - public var artistCount: Int? - /** Gets or sets the music video count. */ - public var musicVideoCount: Int? - /** Gets or sets a value indicating whether [enable internet providers]. */ - public var lockData: Bool? - public var width: Int? - public var height: Int? - public var cameraMake: String? - public var cameraModel: String? - public var software: String? - public var exposureTime: Double? - public var focalLength: Double? - public var imageOrientation: Any? - public var aperture: Double? - public var shutterSpeed: Double? - public var latitude: Double? - public var longitude: Double? - public var altitude: Double? - public var isoSpeedRating: Int? - /** Gets or sets the series timer identifier. */ - public var seriesTimerId: String? - /** Gets or sets the program identifier. */ - public var programId: String? - /** Gets or sets the channel primary image tag. */ - public var channelPrimaryImageTag: String? - /** The start date of the recording, in UTC. */ - public var startDate: Date? - /** Gets or sets the completion percentage. */ - public var completionPercentage: Double? - /** Gets or sets a value indicating whether this instance is repeat. */ - public var isRepeat: Bool? - /** Gets or sets the episode title. */ - public var episodeTitle: String? - /** Gets or sets the type of the channel. */ - public var channelType: Any? - /** Gets or sets the audio. */ - public var audio: Any? - /** Gets or sets a value indicating whether this instance is movie. */ - public var isMovie: Bool? - /** Gets or sets a value indicating whether this instance is sports. */ - public var isSports: Bool? - /** Gets or sets a value indicating whether this instance is series. */ - public var isSeries: Bool? - /** Gets or sets a value indicating whether this instance is live. */ - public var isLive: Bool? - /** Gets or sets a value indicating whether this instance is news. */ - public var isNews: Bool? - /** Gets or sets a value indicating whether this instance is kids. */ - public var isKids: Bool? - /** Gets or sets a value indicating whether this instance is premiere. */ - public var isPremiere: Bool? - /** Gets or sets the timer identifier. */ - public var timerId: String? - /** Gets or sets the current program. */ - public var currentProgram: Any? - - public init(name: String? = nil, originalTitle: String? = nil, serverId: String? = nil, _id: UUID? = nil, etag: String? = nil, sourceType: String? = nil, playlistItemId: String? = nil, dateCreated: Date? = nil, dateLastMediaAdded: Date? = nil, extraType: String? = nil, airsBeforeSeasonNumber: Int? = nil, airsAfterSeasonNumber: Int? = nil, airsBeforeEpisodeNumber: Int? = nil, canDelete: Bool? = nil, canDownload: Bool? = nil, hasSubtitles: Bool? = nil, preferredMetadataLanguage: String? = nil, preferredMetadataCountryCode: String? = nil, supportsSync: Bool? = nil, container: String? = nil, sortName: String? = nil, forcedSortName: String? = nil, video3DFormat: Any? = nil, premiereDate: Date? = nil, externalUrls: [ExternalUrl]? = nil, mediaSources: [MediaSourceInfo]? = nil, criticRating: Float? = nil, productionLocations: [String]? = nil, path: String? = nil, enableMediaSourceDisplay: Bool? = nil, officialRating: String? = nil, customRating: String? = nil, channelId: UUID? = nil, channelName: String? = nil, overview: String? = nil, taglines: [String]? = nil, genres: [String]? = nil, communityRating: Float? = nil, cumulativeRunTimeTicks: Int64? = nil, runTimeTicks: Int64? = nil, playAccess: Any? = nil, aspectRatio: String? = nil, productionYear: Int? = nil, isPlaceHolder: Bool? = nil, number: String? = nil, channelNumber: String? = nil, indexNumber: Int? = nil, indexNumberEnd: Int? = nil, parentIndexNumber: Int? = nil, remoteTrailers: [MediaUrl]? = nil, providerIds: [String:String]? = nil, isHD: Bool? = nil, isFolder: Bool? = nil, parentId: UUID? = nil, type: String? = nil, people: [BaseItemPerson]? = nil, studios: [NameGuidPair]? = nil, genreItems: [NameGuidPair]? = nil, parentLogoItemId: String? = nil, parentBackdropItemId: String? = nil, parentBackdropImageTags: [String]? = nil, localTrailerCount: Int? = nil, userData: Any? = nil, recursiveItemCount: Int? = nil, childCount: Int? = nil, seriesName: String? = nil, seriesId: UUID? = nil, seasonId: UUID? = nil, specialFeatureCount: Int? = nil, displayPreferencesId: String? = nil, status: String? = nil, airTime: String? = nil, airDays: [DayOfWeek]? = nil, tags: [String]? = nil, primaryImageAspectRatio: Double? = nil, artists: [String]? = nil, artistItems: [NameGuidPair]? = nil, album: String? = nil, collectionType: String? = nil, displayOrder: String? = nil, albumId: UUID? = nil, albumPrimaryImageTag: String? = nil, seriesPrimaryImageTag: String? = nil, albumArtist: String? = nil, albumArtists: [NameGuidPair]? = nil, seasonName: String? = nil, mediaStreams: [MediaStream]? = nil, videoType: Any? = nil, partCount: Int? = nil, mediaSourceCount: Int? = nil, imageTags: [String:String]? = nil, backdropImageTags: [String]? = nil, screenshotImageTags: [String]? = nil, parentLogoImageTag: String? = nil, parentArtItemId: String? = nil, parentArtImageTag: String? = nil, seriesThumbImageTag: String? = nil, imageBlurHashes: BaseItemDtoImageBlurHashes? = nil, seriesStudio: String? = nil, parentThumbItemId: String? = nil, parentThumbImageTag: String? = nil, parentPrimaryImageItemId: String? = nil, parentPrimaryImageTag: String? = nil, chapters: [ChapterInfo]? = nil, locationType: Any? = nil, isoType: Any? = nil, mediaType: String? = nil, endDate: Date? = nil, lockedFields: [MetadataField]? = nil, trailerCount: Int? = nil, movieCount: Int? = nil, seriesCount: Int? = nil, programCount: Int? = nil, episodeCount: Int? = nil, songCount: Int? = nil, albumCount: Int? = nil, artistCount: Int? = nil, musicVideoCount: Int? = nil, lockData: Bool? = nil, width: Int? = nil, height: Int? = nil, cameraMake: String? = nil, cameraModel: String? = nil, software: String? = nil, exposureTime: Double? = nil, focalLength: Double? = nil, imageOrientation: Any? = nil, aperture: Double? = nil, shutterSpeed: Double? = nil, latitude: Double? = nil, longitude: Double? = nil, altitude: Double? = nil, isoSpeedRating: Int? = nil, seriesTimerId: String? = nil, programId: String? = nil, channelPrimaryImageTag: String? = nil, startDate: Date? = nil, completionPercentage: Double? = nil, isRepeat: Bool? = nil, episodeTitle: String? = nil, channelType: Any? = nil, audio: Any? = nil, isMovie: Bool? = nil, isSports: Bool? = nil, isSeries: Bool? = nil, isLive: Bool? = nil, isNews: Bool? = nil, isKids: Bool? = nil, isPremiere: Bool? = nil, timerId: String? = nil, currentProgram: Any? = nil) { - self.name = name - self.originalTitle = originalTitle - self.serverId = serverId - self._id = _id - self.etag = etag - self.sourceType = sourceType - self.playlistItemId = playlistItemId - self.dateCreated = dateCreated - self.dateLastMediaAdded = dateLastMediaAdded - self.extraType = extraType - self.airsBeforeSeasonNumber = airsBeforeSeasonNumber - self.airsAfterSeasonNumber = airsAfterSeasonNumber - self.airsBeforeEpisodeNumber = airsBeforeEpisodeNumber - self.canDelete = canDelete - self.canDownload = canDownload - self.hasSubtitles = hasSubtitles - self.preferredMetadataLanguage = preferredMetadataLanguage - self.preferredMetadataCountryCode = preferredMetadataCountryCode - self.supportsSync = supportsSync - self.container = container - self.sortName = sortName - self.forcedSortName = forcedSortName - self.video3DFormat = video3DFormat - self.premiereDate = premiereDate - self.externalUrls = externalUrls - self.mediaSources = mediaSources - self.criticRating = criticRating - self.productionLocations = productionLocations - self.path = path - self.enableMediaSourceDisplay = enableMediaSourceDisplay - self.officialRating = officialRating - self.customRating = customRating - self.channelId = channelId - self.channelName = channelName - self.overview = overview - self.taglines = taglines - self.genres = genres - self.communityRating = communityRating - self.cumulativeRunTimeTicks = cumulativeRunTimeTicks - self.runTimeTicks = runTimeTicks - self.playAccess = playAccess - self.aspectRatio = aspectRatio - self.productionYear = productionYear - self.isPlaceHolder = isPlaceHolder - self.number = number - self.channelNumber = channelNumber - self.indexNumber = indexNumber - self.indexNumberEnd = indexNumberEnd - self.parentIndexNumber = parentIndexNumber - self.remoteTrailers = remoteTrailers - self.providerIds = providerIds - self.isHD = isHD - self.isFolder = isFolder - self.parentId = parentId - self.type = type - self.people = people - self.studios = studios - self.genreItems = genreItems - self.parentLogoItemId = parentLogoItemId - self.parentBackdropItemId = parentBackdropItemId - self.parentBackdropImageTags = parentBackdropImageTags - self.localTrailerCount = localTrailerCount - self.userData = userData - self.recursiveItemCount = recursiveItemCount - self.childCount = childCount - self.seriesName = seriesName - self.seriesId = seriesId - self.seasonId = seasonId - self.specialFeatureCount = specialFeatureCount - self.displayPreferencesId = displayPreferencesId - self.status = status - self.airTime = airTime - self.airDays = airDays - self.tags = tags - self.primaryImageAspectRatio = primaryImageAspectRatio - self.artists = artists - self.artistItems = artistItems - self.album = album - self.collectionType = collectionType - self.displayOrder = displayOrder - self.albumId = albumId - self.albumPrimaryImageTag = albumPrimaryImageTag - self.seriesPrimaryImageTag = seriesPrimaryImageTag - self.albumArtist = albumArtist - self.albumArtists = albumArtists - self.seasonName = seasonName - self.mediaStreams = mediaStreams - self.videoType = videoType - self.partCount = partCount - self.mediaSourceCount = mediaSourceCount - self.imageTags = imageTags - self.backdropImageTags = backdropImageTags - self.screenshotImageTags = screenshotImageTags - self.parentLogoImageTag = parentLogoImageTag - self.parentArtItemId = parentArtItemId - self.parentArtImageTag = parentArtImageTag - self.seriesThumbImageTag = seriesThumbImageTag - self.imageBlurHashes = imageBlurHashes - self.seriesStudio = seriesStudio - self.parentThumbItemId = parentThumbItemId - self.parentThumbImageTag = parentThumbImageTag - self.parentPrimaryImageItemId = parentPrimaryImageItemId - self.parentPrimaryImageTag = parentPrimaryImageTag - self.chapters = chapters - self.locationType = locationType - self.isoType = isoType - self.mediaType = mediaType - self.endDate = endDate - self.lockedFields = lockedFields - self.trailerCount = trailerCount - self.movieCount = movieCount - self.seriesCount = seriesCount - self.programCount = programCount - self.episodeCount = episodeCount - self.songCount = songCount - self.albumCount = albumCount - self.artistCount = artistCount - self.musicVideoCount = musicVideoCount - self.lockData = lockData - self.width = width - self.height = height - self.cameraMake = cameraMake - self.cameraModel = cameraModel - self.software = software - self.exposureTime = exposureTime - self.focalLength = focalLength - self.imageOrientation = imageOrientation - self.aperture = aperture - self.shutterSpeed = shutterSpeed - self.latitude = latitude - self.longitude = longitude - self.altitude = altitude - self.isoSpeedRating = isoSpeedRating - self.seriesTimerId = seriesTimerId - self.programId = programId - self.channelPrimaryImageTag = channelPrimaryImageTag - self.startDate = startDate - self.completionPercentage = completionPercentage - self.isRepeat = isRepeat - self.episodeTitle = episodeTitle - self.channelType = channelType - self.audio = audio - self.isMovie = isMovie - self.isSports = isSports - self.isSeries = isSeries - self.isLive = isLive - self.isNews = isNews - self.isKids = isKids - self.isPremiere = isPremiere - self.timerId = timerId - self.currentProgram = currentProgram - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case originalTitle = "OriginalTitle" - case serverId = "ServerId" - case _id = "Id" - case etag = "Etag" - case sourceType = "SourceType" - case playlistItemId = "PlaylistItemId" - case dateCreated = "DateCreated" - case dateLastMediaAdded = "DateLastMediaAdded" - case extraType = "ExtraType" - case airsBeforeSeasonNumber = "AirsBeforeSeasonNumber" - case airsAfterSeasonNumber = "AirsAfterSeasonNumber" - case airsBeforeEpisodeNumber = "AirsBeforeEpisodeNumber" - case canDelete = "CanDelete" - case canDownload = "CanDownload" - case hasSubtitles = "HasSubtitles" - case preferredMetadataLanguage = "PreferredMetadataLanguage" - case preferredMetadataCountryCode = "PreferredMetadataCountryCode" - case supportsSync = "SupportsSync" - case container = "Container" - case sortName = "SortName" - case forcedSortName = "ForcedSortName" - case video3DFormat = "Video3DFormat" - case premiereDate = "PremiereDate" - case externalUrls = "ExternalUrls" - case mediaSources = "MediaSources" - case criticRating = "CriticRating" - case productionLocations = "ProductionLocations" - case path = "Path" - case enableMediaSourceDisplay = "EnableMediaSourceDisplay" - case officialRating = "OfficialRating" - case customRating = "CustomRating" - case channelId = "ChannelId" - case channelName = "ChannelName" - case overview = "Overview" - case taglines = "Taglines" - case genres = "Genres" - case communityRating = "CommunityRating" - case cumulativeRunTimeTicks = "CumulativeRunTimeTicks" - case runTimeTicks = "RunTimeTicks" - case playAccess = "PlayAccess" - case aspectRatio = "AspectRatio" - case productionYear = "ProductionYear" - case isPlaceHolder = "IsPlaceHolder" - case number = "Number" - case channelNumber = "ChannelNumber" - case indexNumber = "IndexNumber" - case indexNumberEnd = "IndexNumberEnd" - case parentIndexNumber = "ParentIndexNumber" - case remoteTrailers = "RemoteTrailers" - case providerIds = "ProviderIds" - case isHD = "IsHD" - case isFolder = "IsFolder" - case parentId = "ParentId" - case type = "Type" - case people = "People" - case studios = "Studios" - case genreItems = "GenreItems" - case parentLogoItemId = "ParentLogoItemId" - case parentBackdropItemId = "ParentBackdropItemId" - case parentBackdropImageTags = "ParentBackdropImageTags" - case localTrailerCount = "LocalTrailerCount" - case userData = "UserData" - case recursiveItemCount = "RecursiveItemCount" - case childCount = "ChildCount" - case seriesName = "SeriesName" - case seriesId = "SeriesId" - case seasonId = "SeasonId" - case specialFeatureCount = "SpecialFeatureCount" - case displayPreferencesId = "DisplayPreferencesId" - case status = "Status" - case airTime = "AirTime" - case airDays = "AirDays" - case tags = "Tags" - case primaryImageAspectRatio = "PrimaryImageAspectRatio" - case artists = "Artists" - case artistItems = "ArtistItems" - case album = "Album" - case collectionType = "CollectionType" - case displayOrder = "DisplayOrder" - case albumId = "AlbumId" - case albumPrimaryImageTag = "AlbumPrimaryImageTag" - case seriesPrimaryImageTag = "SeriesPrimaryImageTag" - case albumArtist = "AlbumArtist" - case albumArtists = "AlbumArtists" - case seasonName = "SeasonName" - case mediaStreams = "MediaStreams" - case videoType = "VideoType" - case partCount = "PartCount" - case mediaSourceCount = "MediaSourceCount" - case imageTags = "ImageTags" - case backdropImageTags = "BackdropImageTags" - case screenshotImageTags = "ScreenshotImageTags" - case parentLogoImageTag = "ParentLogoImageTag" - case parentArtItemId = "ParentArtItemId" - case parentArtImageTag = "ParentArtImageTag" - case seriesThumbImageTag = "SeriesThumbImageTag" - case imageBlurHashes = "ImageBlurHashes" - case seriesStudio = "SeriesStudio" - case parentThumbItemId = "ParentThumbItemId" - case parentThumbImageTag = "ParentThumbImageTag" - case parentPrimaryImageItemId = "ParentPrimaryImageItemId" - case parentPrimaryImageTag = "ParentPrimaryImageTag" - case chapters = "Chapters" - case locationType = "LocationType" - case isoType = "IsoType" - case mediaType = "MediaType" - case endDate = "EndDate" - case lockedFields = "LockedFields" - case trailerCount = "TrailerCount" - case movieCount = "MovieCount" - case seriesCount = "SeriesCount" - case programCount = "ProgramCount" - case episodeCount = "EpisodeCount" - case songCount = "SongCount" - case albumCount = "AlbumCount" - case artistCount = "ArtistCount" - case musicVideoCount = "MusicVideoCount" - case lockData = "LockData" - case width = "Width" - case height = "Height" - case cameraMake = "CameraMake" - case cameraModel = "CameraModel" - case software = "Software" - case exposureTime = "ExposureTime" - case focalLength = "FocalLength" - case imageOrientation = "ImageOrientation" - case aperture = "Aperture" - case shutterSpeed = "ShutterSpeed" - case latitude = "Latitude" - case longitude = "Longitude" - case altitude = "Altitude" - case isoSpeedRating = "IsoSpeedRating" - case seriesTimerId = "SeriesTimerId" - case programId = "ProgramId" - case channelPrimaryImageTag = "ChannelPrimaryImageTag" - case startDate = "StartDate" - case completionPercentage = "CompletionPercentage" - case isRepeat = "IsRepeat" - case episodeTitle = "EpisodeTitle" - case channelType = "ChannelType" - case audio = "Audio" - case isMovie = "IsMovie" - case isSports = "IsSports" - case isSeries = "IsSeries" - case isLive = "IsLive" - case isNews = "IsNews" - case isKids = "IsKids" - case isPremiere = "IsPremiere" - case timerId = "TimerId" - case currentProgram = "CurrentProgram" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/JoinGroupRequestDto.swift b/JellyfinPlayer/Swaggers/Models/JoinGroupRequestDto.swift deleted file mode 100644 index 82a48440..00000000 --- a/JellyfinPlayer/Swaggers/Models/JoinGroupRequestDto.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// JoinGroupRequestDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class JoinGroupRequestDto. */ - -public struct JoinGroupRequestDto: Codable { - - /** Gets or sets the group identifier. */ - public var groupId: UUID? - - public init(groupId: UUID? = nil) { - self.groupId = groupId - } - - public enum CodingKeys: String, CodingKey { - case groupId = "GroupId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/KeepUntil.swift b/JellyfinPlayer/Swaggers/Models/KeepUntil.swift deleted file mode 100644 index c1ca9601..00000000 --- a/JellyfinPlayer/Swaggers/Models/KeepUntil.swift +++ /dev/null @@ -1,16 +0,0 @@ -// -// KeepUntil.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum KeepUntil: String, Codable { - case untilDeleted = "UntilDeleted" - case untilSpaceNeeded = "UntilSpaceNeeded" - case untilWatched = "UntilWatched" - case untilDate = "UntilDate" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/LibraryOptionInfoDto.swift b/JellyfinPlayer/Swaggers/Models/LibraryOptionInfoDto.swift deleted file mode 100644 index 93241a12..00000000 --- a/JellyfinPlayer/Swaggers/Models/LibraryOptionInfoDto.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// LibraryOptionInfoDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Library option info dto. */ - -public struct LibraryOptionInfoDto: Codable { - - /** Gets or sets name. */ - public var name: String? - /** Gets or sets a value indicating whether default enabled. */ - public var defaultEnabled: Bool? - - public init(name: String? = nil, defaultEnabled: Bool? = nil) { - self.name = name - self.defaultEnabled = defaultEnabled - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case defaultEnabled = "DefaultEnabled" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LibraryOptions.swift b/JellyfinPlayer/Swaggers/Models/LibraryOptions.swift deleted file mode 100644 index 32c41a50..00000000 --- a/JellyfinPlayer/Swaggers/Models/LibraryOptions.swift +++ /dev/null @@ -1,98 +0,0 @@ -// -// LibraryOptions.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct LibraryOptions: Codable { - - public var enablePhotos: Bool? - public var enableRealtimeMonitor: Bool? - public var enableChapterImageExtraction: Bool? - public var extractChapterImagesDuringLibraryScan: Bool? - public var pathInfos: [MediaPathInfo]? - public var saveLocalMetadata: Bool? - public var enableInternetProviders: Bool? - public var enableAutomaticSeriesGrouping: Bool? - public var enableEmbeddedTitles: Bool? - public var enableEmbeddedEpisodeInfos: Bool? - public var automaticRefreshIntervalDays: Int? - /** Gets or sets the preferred metadata language. */ - public var preferredMetadataLanguage: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - public var seasonZeroDisplayName: String? - public var metadataSavers: [String]? - public var disabledLocalMetadataReaders: [String]? - public var localMetadataReaderOrder: [String]? - public var disabledSubtitleFetchers: [String]? - public var subtitleFetcherOrder: [String]? - public var skipSubtitlesIfEmbeddedSubtitlesPresent: Bool? - public var skipSubtitlesIfAudioTrackMatches: Bool? - public var subtitleDownloadLanguages: [String]? - public var requirePerfectSubtitleMatch: Bool? - public var saveSubtitlesWithMedia: Bool? - public var typeOptions: [TypeOptions]? - - public init(enablePhotos: Bool? = nil, enableRealtimeMonitor: Bool? = nil, enableChapterImageExtraction: Bool? = nil, extractChapterImagesDuringLibraryScan: Bool? = nil, pathInfos: [MediaPathInfo]? = nil, saveLocalMetadata: Bool? = nil, enableInternetProviders: Bool? = nil, enableAutomaticSeriesGrouping: Bool? = nil, enableEmbeddedTitles: Bool? = nil, enableEmbeddedEpisodeInfos: Bool? = nil, automaticRefreshIntervalDays: Int? = nil, preferredMetadataLanguage: String? = nil, metadataCountryCode: String? = nil, seasonZeroDisplayName: String? = nil, metadataSavers: [String]? = nil, disabledLocalMetadataReaders: [String]? = nil, localMetadataReaderOrder: [String]? = nil, disabledSubtitleFetchers: [String]? = nil, subtitleFetcherOrder: [String]? = nil, skipSubtitlesIfEmbeddedSubtitlesPresent: Bool? = nil, skipSubtitlesIfAudioTrackMatches: Bool? = nil, subtitleDownloadLanguages: [String]? = nil, requirePerfectSubtitleMatch: Bool? = nil, saveSubtitlesWithMedia: Bool? = nil, typeOptions: [TypeOptions]? = nil) { - self.enablePhotos = enablePhotos - self.enableRealtimeMonitor = enableRealtimeMonitor - self.enableChapterImageExtraction = enableChapterImageExtraction - self.extractChapterImagesDuringLibraryScan = extractChapterImagesDuringLibraryScan - self.pathInfos = pathInfos - self.saveLocalMetadata = saveLocalMetadata - self.enableInternetProviders = enableInternetProviders - self.enableAutomaticSeriesGrouping = enableAutomaticSeriesGrouping - self.enableEmbeddedTitles = enableEmbeddedTitles - self.enableEmbeddedEpisodeInfos = enableEmbeddedEpisodeInfos - self.automaticRefreshIntervalDays = automaticRefreshIntervalDays - self.preferredMetadataLanguage = preferredMetadataLanguage - self.metadataCountryCode = metadataCountryCode - self.seasonZeroDisplayName = seasonZeroDisplayName - self.metadataSavers = metadataSavers - self.disabledLocalMetadataReaders = disabledLocalMetadataReaders - self.localMetadataReaderOrder = localMetadataReaderOrder - self.disabledSubtitleFetchers = disabledSubtitleFetchers - self.subtitleFetcherOrder = subtitleFetcherOrder - self.skipSubtitlesIfEmbeddedSubtitlesPresent = skipSubtitlesIfEmbeddedSubtitlesPresent - self.skipSubtitlesIfAudioTrackMatches = skipSubtitlesIfAudioTrackMatches - self.subtitleDownloadLanguages = subtitleDownloadLanguages - self.requirePerfectSubtitleMatch = requirePerfectSubtitleMatch - self.saveSubtitlesWithMedia = saveSubtitlesWithMedia - self.typeOptions = typeOptions - } - - public enum CodingKeys: String, CodingKey { - case enablePhotos = "EnablePhotos" - case enableRealtimeMonitor = "EnableRealtimeMonitor" - case enableChapterImageExtraction = "EnableChapterImageExtraction" - case extractChapterImagesDuringLibraryScan = "ExtractChapterImagesDuringLibraryScan" - case pathInfos = "PathInfos" - case saveLocalMetadata = "SaveLocalMetadata" - case enableInternetProviders = "EnableInternetProviders" - case enableAutomaticSeriesGrouping = "EnableAutomaticSeriesGrouping" - case enableEmbeddedTitles = "EnableEmbeddedTitles" - case enableEmbeddedEpisodeInfos = "EnableEmbeddedEpisodeInfos" - case automaticRefreshIntervalDays = "AutomaticRefreshIntervalDays" - case preferredMetadataLanguage = "PreferredMetadataLanguage" - case metadataCountryCode = "MetadataCountryCode" - case seasonZeroDisplayName = "SeasonZeroDisplayName" - case metadataSavers = "MetadataSavers" - case disabledLocalMetadataReaders = "DisabledLocalMetadataReaders" - case localMetadataReaderOrder = "LocalMetadataReaderOrder" - case disabledSubtitleFetchers = "DisabledSubtitleFetchers" - case subtitleFetcherOrder = "SubtitleFetcherOrder" - case skipSubtitlesIfEmbeddedSubtitlesPresent = "SkipSubtitlesIfEmbeddedSubtitlesPresent" - case skipSubtitlesIfAudioTrackMatches = "SkipSubtitlesIfAudioTrackMatches" - case subtitleDownloadLanguages = "SubtitleDownloadLanguages" - case requirePerfectSubtitleMatch = "RequirePerfectSubtitleMatch" - case saveSubtitlesWithMedia = "SaveSubtitlesWithMedia" - case typeOptions = "TypeOptions" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LibraryOptionsResultDto.swift b/JellyfinPlayer/Swaggers/Models/LibraryOptionsResultDto.swift deleted file mode 100644 index 7012814c..00000000 --- a/JellyfinPlayer/Swaggers/Models/LibraryOptionsResultDto.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// LibraryOptionsResultDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Library options result dto. */ - -public struct LibraryOptionsResultDto: Codable { - - /** Gets or sets the metadata savers. */ - public var metadataSavers: [LibraryOptionInfoDto]? - /** Gets or sets the metadata readers. */ - public var metadataReaders: [LibraryOptionInfoDto]? - /** Gets or sets the subtitle fetchers. */ - public var subtitleFetchers: [LibraryOptionInfoDto]? - /** Gets or sets the type options. */ - public var typeOptions: [LibraryTypeOptionsDto]? - - public init(metadataSavers: [LibraryOptionInfoDto]? = nil, metadataReaders: [LibraryOptionInfoDto]? = nil, subtitleFetchers: [LibraryOptionInfoDto]? = nil, typeOptions: [LibraryTypeOptionsDto]? = nil) { - self.metadataSavers = metadataSavers - self.metadataReaders = metadataReaders - self.subtitleFetchers = subtitleFetchers - self.typeOptions = typeOptions - } - - public enum CodingKeys: String, CodingKey { - case metadataSavers = "MetadataSavers" - case metadataReaders = "MetadataReaders" - case subtitleFetchers = "SubtitleFetchers" - case typeOptions = "TypeOptions" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LibraryTypeOptionsDto.swift b/JellyfinPlayer/Swaggers/Models/LibraryTypeOptionsDto.swift deleted file mode 100644 index 07edf777..00000000 --- a/JellyfinPlayer/Swaggers/Models/LibraryTypeOptionsDto.swift +++ /dev/null @@ -1,42 +0,0 @@ -// -// LibraryTypeOptionsDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Library type options dto. */ - -public struct LibraryTypeOptionsDto: Codable { - - /** Gets or sets the type. */ - public var type: String? - /** Gets or sets the metadata fetchers. */ - public var metadataFetchers: [LibraryOptionInfoDto]? - /** Gets or sets the image fetchers. */ - public var imageFetchers: [LibraryOptionInfoDto]? - /** Gets or sets the supported image types. */ - public var supportedImageTypes: [ImageType]? - /** Gets or sets the default image options. */ - public var defaultImageOptions: [ImageOption]? - - public init(type: String? = nil, metadataFetchers: [LibraryOptionInfoDto]? = nil, imageFetchers: [LibraryOptionInfoDto]? = nil, supportedImageTypes: [ImageType]? = nil, defaultImageOptions: [ImageOption]? = nil) { - self.type = type - self.metadataFetchers = metadataFetchers - self.imageFetchers = imageFetchers - self.supportedImageTypes = supportedImageTypes - self.defaultImageOptions = defaultImageOptions - } - - public enum CodingKeys: String, CodingKey { - case type = "Type" - case metadataFetchers = "MetadataFetchers" - case imageFetchers = "ImageFetchers" - case supportedImageTypes = "SupportedImageTypes" - case defaultImageOptions = "DefaultImageOptions" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LibraryUpdateInfo.swift b/JellyfinPlayer/Swaggers/Models/LibraryUpdateInfo.swift deleted file mode 100644 index 0a1f640c..00000000 --- a/JellyfinPlayer/Swaggers/Models/LibraryUpdateInfo.swift +++ /dev/null @@ -1,48 +0,0 @@ -// -// LibraryUpdateInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class LibraryUpdateInfo. */ - -public struct LibraryUpdateInfo: Codable { - - /** Gets or sets the folders added to. */ - public var foldersAddedTo: [String]? - /** Gets or sets the folders removed from. */ - public var foldersRemovedFrom: [String]? - /** Gets or sets the items added. */ - public var itemsAdded: [String]? - /** Gets or sets the items removed. */ - public var itemsRemoved: [String]? - /** Gets or sets the items updated. */ - public var itemsUpdated: [String]? - public var collectionFolders: [String]? - public var isEmpty: Bool? - - public init(foldersAddedTo: [String]? = nil, foldersRemovedFrom: [String]? = nil, itemsAdded: [String]? = nil, itemsRemoved: [String]? = nil, itemsUpdated: [String]? = nil, collectionFolders: [String]? = nil, isEmpty: Bool? = nil) { - self.foldersAddedTo = foldersAddedTo - self.foldersRemovedFrom = foldersRemovedFrom - self.itemsAdded = itemsAdded - self.itemsRemoved = itemsRemoved - self.itemsUpdated = itemsUpdated - self.collectionFolders = collectionFolders - self.isEmpty = isEmpty - } - - public enum CodingKeys: String, CodingKey { - case foldersAddedTo = "FoldersAddedTo" - case foldersRemovedFrom = "FoldersRemovedFrom" - case itemsAdded = "ItemsAdded" - case itemsRemoved = "ItemsRemoved" - case itemsUpdated = "ItemsUpdated" - case collectionFolders = "CollectionFolders" - case isEmpty = "IsEmpty" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LibraryVirtualFoldersBody.swift b/JellyfinPlayer/Swaggers/Models/LibraryVirtualFoldersBody.swift deleted file mode 100644 index 85104ccd..00000000 --- a/JellyfinPlayer/Swaggers/Models/LibraryVirtualFoldersBody.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// LibraryVirtualFoldersBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The library options. */ - -public struct LibraryVirtualFoldersBody: Codable { - - /** Gets or sets library options. */ - public var libraryOptions: Any? - - public init(libraryOptions: Any? = nil) { - self.libraryOptions = libraryOptions - } - - public enum CodingKeys: String, CodingKey { - case libraryOptions = "LibraryOptions" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LibraryVirtualFoldersBody1.swift b/JellyfinPlayer/Swaggers/Models/LibraryVirtualFoldersBody1.swift deleted file mode 100644 index 215375b6..00000000 --- a/JellyfinPlayer/Swaggers/Models/LibraryVirtualFoldersBody1.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// LibraryVirtualFoldersBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The library options. */ - -public struct LibraryVirtualFoldersBody1: Codable { - - /** Gets or sets library options. */ - public var libraryOptions: Any? - - public init(libraryOptions: Any? = nil) { - self.libraryOptions = libraryOptions - } - - public enum CodingKeys: String, CodingKey { - case libraryOptions = "LibraryOptions" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LibraryVirtualFoldersBody2.swift b/JellyfinPlayer/Swaggers/Models/LibraryVirtualFoldersBody2.swift deleted file mode 100644 index 05c2e469..00000000 --- a/JellyfinPlayer/Swaggers/Models/LibraryVirtualFoldersBody2.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// LibraryVirtualFoldersBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The library options. */ - -public struct LibraryVirtualFoldersBody2: Codable { - - /** Gets or sets library options. */ - public var libraryOptions: Any? - - public init(libraryOptions: Any? = nil) { - self.libraryOptions = libraryOptions - } - - public enum CodingKeys: String, CodingKey { - case libraryOptions = "LibraryOptions" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ListingsProviderInfo.swift b/JellyfinPlayer/Swaggers/Models/ListingsProviderInfo.swift deleted file mode 100644 index 7fc0a6f9..00000000 --- a/JellyfinPlayer/Swaggers/Models/ListingsProviderInfo.swift +++ /dev/null @@ -1,75 +0,0 @@ -// -// ListingsProviderInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct ListingsProviderInfo: Codable { - - public var _id: String? - public var type: String? - public var username: String? - public var password: String? - public var listingsId: String? - public var zipCode: String? - public var country: String? - public var path: String? - public var enabledTuners: [String]? - public var enableAllTuners: Bool? - public var newsCategories: [String]? - public var sportsCategories: [String]? - public var kidsCategories: [String]? - public var movieCategories: [String]? - public var channelMappings: [NameValuePair]? - public var moviePrefix: String? - public var preferredLanguage: String? - public var userAgent: String? - - public init(_id: String? = nil, type: String? = nil, username: String? = nil, password: String? = nil, listingsId: String? = nil, zipCode: String? = nil, country: String? = nil, path: String? = nil, enabledTuners: [String]? = nil, enableAllTuners: Bool? = nil, newsCategories: [String]? = nil, sportsCategories: [String]? = nil, kidsCategories: [String]? = nil, movieCategories: [String]? = nil, channelMappings: [NameValuePair]? = nil, moviePrefix: String? = nil, preferredLanguage: String? = nil, userAgent: String? = nil) { - self._id = _id - self.type = type - self.username = username - self.password = password - self.listingsId = listingsId - self.zipCode = zipCode - self.country = country - self.path = path - self.enabledTuners = enabledTuners - self.enableAllTuners = enableAllTuners - self.newsCategories = newsCategories - self.sportsCategories = sportsCategories - self.kidsCategories = kidsCategories - self.movieCategories = movieCategories - self.channelMappings = channelMappings - self.moviePrefix = moviePrefix - self.preferredLanguage = preferredLanguage - self.userAgent = userAgent - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case type = "Type" - case username = "Username" - case password = "Password" - case listingsId = "ListingsId" - case zipCode = "ZipCode" - case country = "Country" - case path = "Path" - case enabledTuners = "EnabledTuners" - case enableAllTuners = "EnableAllTuners" - case newsCategories = "NewsCategories" - case sportsCategories = "SportsCategories" - case kidsCategories = "KidsCategories" - case movieCategories = "MovieCategories" - case channelMappings = "ChannelMappings" - case moviePrefix = "MoviePrefix" - case preferredLanguage = "PreferredLanguage" - case userAgent = "UserAgent" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LiveStreamResponse.swift b/JellyfinPlayer/Swaggers/Models/LiveStreamResponse.swift deleted file mode 100644 index 81511283..00000000 --- a/JellyfinPlayer/Swaggers/Models/LiveStreamResponse.swift +++ /dev/null @@ -1,24 +0,0 @@ -// -// LiveStreamResponse.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct LiveStreamResponse: Codable { - - public var mediaSource: AllOfLiveStreamResponseMediaSource? - - public init(mediaSource: AllOfLiveStreamResponseMediaSource? = nil) { - self.mediaSource = mediaSource - } - - public enum CodingKeys: String, CodingKey { - case mediaSource = "MediaSource" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LiveStreamsOpenBody.swift b/JellyfinPlayer/Swaggers/Models/LiveStreamsOpenBody.swift deleted file mode 100644 index eb56ab65..00000000 --- a/JellyfinPlayer/Swaggers/Models/LiveStreamsOpenBody.swift +++ /dev/null @@ -1,74 +0,0 @@ -// -// LiveStreamsOpenBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The open live stream dto. */ - -public struct LiveStreamsOpenBody: Codable { - - /** Gets or sets the open token. */ - public var openToken: String? - /** Gets or sets the user id. */ - public var userId: UUID? - /** Gets or sets the play session id. */ - public var playSessionId: String? - /** Gets or sets the max streaming bitrate. */ - public var maxStreamingBitrate: Int? - /** Gets or sets the start time in ticks. */ - public var startTimeTicks: Int64? - /** Gets or sets the audio stream index. */ - public var audioStreamIndex: Int? - /** Gets or sets the subtitle stream index. */ - public var subtitleStreamIndex: Int? - /** Gets or sets the max audio channels. */ - public var maxAudioChannels: Int? - /** Gets or sets the item id. */ - public var itemId: UUID? - /** Gets or sets a value indicating whether to enable direct play. */ - public var enableDirectPlay: Bool? - /** Gets or sets a value indicating whether to enale direct stream. */ - public var enableDirectStream: Bool? - /** Gets or sets the device profile. */ - public var deviceProfile: Any? - /** Gets or sets the device play protocols. */ - public var directPlayProtocols: [MediaProtocol]? - - public init(openToken: String? = nil, userId: UUID? = nil, playSessionId: String? = nil, maxStreamingBitrate: Int? = nil, startTimeTicks: Int64? = nil, audioStreamIndex: Int? = nil, subtitleStreamIndex: Int? = nil, maxAudioChannels: Int? = nil, itemId: UUID? = nil, enableDirectPlay: Bool? = nil, enableDirectStream: Bool? = nil, deviceProfile: Any? = nil, directPlayProtocols: [MediaProtocol]? = nil) { - self.openToken = openToken - self.userId = userId - self.playSessionId = playSessionId - self.maxStreamingBitrate = maxStreamingBitrate - self.startTimeTicks = startTimeTicks - self.audioStreamIndex = audioStreamIndex - self.subtitleStreamIndex = subtitleStreamIndex - self.maxAudioChannels = maxAudioChannels - self.itemId = itemId - self.enableDirectPlay = enableDirectPlay - self.enableDirectStream = enableDirectStream - self.deviceProfile = deviceProfile - self.directPlayProtocols = directPlayProtocols - } - - public enum CodingKeys: String, CodingKey { - case openToken = "OpenToken" - case userId = "UserId" - case playSessionId = "PlaySessionId" - case maxStreamingBitrate = "MaxStreamingBitrate" - case startTimeTicks = "StartTimeTicks" - case audioStreamIndex = "AudioStreamIndex" - case subtitleStreamIndex = "SubtitleStreamIndex" - case maxAudioChannels = "MaxAudioChannels" - case itemId = "ItemId" - case enableDirectPlay = "EnableDirectPlay" - case enableDirectStream = "EnableDirectStream" - case deviceProfile = "DeviceProfile" - case directPlayProtocols = "DirectPlayProtocols" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LiveStreamsOpenBody1.swift b/JellyfinPlayer/Swaggers/Models/LiveStreamsOpenBody1.swift deleted file mode 100644 index 4c32f069..00000000 --- a/JellyfinPlayer/Swaggers/Models/LiveStreamsOpenBody1.swift +++ /dev/null @@ -1,74 +0,0 @@ -// -// LiveStreamsOpenBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The open live stream dto. */ - -public struct LiveStreamsOpenBody1: Codable { - - /** Gets or sets the open token. */ - public var openToken: String? - /** Gets or sets the user id. */ - public var userId: UUID? - /** Gets or sets the play session id. */ - public var playSessionId: String? - /** Gets or sets the max streaming bitrate. */ - public var maxStreamingBitrate: Int? - /** Gets or sets the start time in ticks. */ - public var startTimeTicks: Int64? - /** Gets or sets the audio stream index. */ - public var audioStreamIndex: Int? - /** Gets or sets the subtitle stream index. */ - public var subtitleStreamIndex: Int? - /** Gets or sets the max audio channels. */ - public var maxAudioChannels: Int? - /** Gets or sets the item id. */ - public var itemId: UUID? - /** Gets or sets a value indicating whether to enable direct play. */ - public var enableDirectPlay: Bool? - /** Gets or sets a value indicating whether to enale direct stream. */ - public var enableDirectStream: Bool? - /** Gets or sets the device profile. */ - public var deviceProfile: Any? - /** Gets or sets the device play protocols. */ - public var directPlayProtocols: [MediaProtocol]? - - public init(openToken: String? = nil, userId: UUID? = nil, playSessionId: String? = nil, maxStreamingBitrate: Int? = nil, startTimeTicks: Int64? = nil, audioStreamIndex: Int? = nil, subtitleStreamIndex: Int? = nil, maxAudioChannels: Int? = nil, itemId: UUID? = nil, enableDirectPlay: Bool? = nil, enableDirectStream: Bool? = nil, deviceProfile: Any? = nil, directPlayProtocols: [MediaProtocol]? = nil) { - self.openToken = openToken - self.userId = userId - self.playSessionId = playSessionId - self.maxStreamingBitrate = maxStreamingBitrate - self.startTimeTicks = startTimeTicks - self.audioStreamIndex = audioStreamIndex - self.subtitleStreamIndex = subtitleStreamIndex - self.maxAudioChannels = maxAudioChannels - self.itemId = itemId - self.enableDirectPlay = enableDirectPlay - self.enableDirectStream = enableDirectStream - self.deviceProfile = deviceProfile - self.directPlayProtocols = directPlayProtocols - } - - public enum CodingKeys: String, CodingKey { - case openToken = "OpenToken" - case userId = "UserId" - case playSessionId = "PlaySessionId" - case maxStreamingBitrate = "MaxStreamingBitrate" - case startTimeTicks = "StartTimeTicks" - case audioStreamIndex = "AudioStreamIndex" - case subtitleStreamIndex = "SubtitleStreamIndex" - case maxAudioChannels = "MaxAudioChannels" - case itemId = "ItemId" - case enableDirectPlay = "EnableDirectPlay" - case enableDirectStream = "EnableDirectStream" - case deviceProfile = "DeviceProfile" - case directPlayProtocols = "DirectPlayProtocols" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LiveStreamsOpenBody2.swift b/JellyfinPlayer/Swaggers/Models/LiveStreamsOpenBody2.swift deleted file mode 100644 index f651f961..00000000 --- a/JellyfinPlayer/Swaggers/Models/LiveStreamsOpenBody2.swift +++ /dev/null @@ -1,74 +0,0 @@ -// -// LiveStreamsOpenBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The open live stream dto. */ - -public struct LiveStreamsOpenBody2: Codable { - - /** Gets or sets the open token. */ - public var openToken: String? - /** Gets or sets the user id. */ - public var userId: UUID? - /** Gets or sets the play session id. */ - public var playSessionId: String? - /** Gets or sets the max streaming bitrate. */ - public var maxStreamingBitrate: Int? - /** Gets or sets the start time in ticks. */ - public var startTimeTicks: Int64? - /** Gets or sets the audio stream index. */ - public var audioStreamIndex: Int? - /** Gets or sets the subtitle stream index. */ - public var subtitleStreamIndex: Int? - /** Gets or sets the max audio channels. */ - public var maxAudioChannels: Int? - /** Gets or sets the item id. */ - public var itemId: UUID? - /** Gets or sets a value indicating whether to enable direct play. */ - public var enableDirectPlay: Bool? - /** Gets or sets a value indicating whether to enale direct stream. */ - public var enableDirectStream: Bool? - /** Gets or sets the device profile. */ - public var deviceProfile: Any? - /** Gets or sets the device play protocols. */ - public var directPlayProtocols: [MediaProtocol]? - - public init(openToken: String? = nil, userId: UUID? = nil, playSessionId: String? = nil, maxStreamingBitrate: Int? = nil, startTimeTicks: Int64? = nil, audioStreamIndex: Int? = nil, subtitleStreamIndex: Int? = nil, maxAudioChannels: Int? = nil, itemId: UUID? = nil, enableDirectPlay: Bool? = nil, enableDirectStream: Bool? = nil, deviceProfile: Any? = nil, directPlayProtocols: [MediaProtocol]? = nil) { - self.openToken = openToken - self.userId = userId - self.playSessionId = playSessionId - self.maxStreamingBitrate = maxStreamingBitrate - self.startTimeTicks = startTimeTicks - self.audioStreamIndex = audioStreamIndex - self.subtitleStreamIndex = subtitleStreamIndex - self.maxAudioChannels = maxAudioChannels - self.itemId = itemId - self.enableDirectPlay = enableDirectPlay - self.enableDirectStream = enableDirectStream - self.deviceProfile = deviceProfile - self.directPlayProtocols = directPlayProtocols - } - - public enum CodingKeys: String, CodingKey { - case openToken = "OpenToken" - case userId = "UserId" - case playSessionId = "PlaySessionId" - case maxStreamingBitrate = "MaxStreamingBitrate" - case startTimeTicks = "StartTimeTicks" - case audioStreamIndex = "AudioStreamIndex" - case subtitleStreamIndex = "SubtitleStreamIndex" - case maxAudioChannels = "MaxAudioChannels" - case itemId = "ItemId" - case enableDirectPlay = "EnableDirectPlay" - case enableDirectStream = "EnableDirectStream" - case deviceProfile = "DeviceProfile" - case directPlayProtocols = "DirectPlayProtocols" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LiveTvChannelMappingsBody.swift b/JellyfinPlayer/Swaggers/Models/LiveTvChannelMappingsBody.swift deleted file mode 100644 index d7eb9945..00000000 --- a/JellyfinPlayer/Swaggers/Models/LiveTvChannelMappingsBody.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// LiveTvChannelMappingsBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The set channel mapping dto. */ - -public struct LiveTvChannelMappingsBody: Codable { - - /** Gets or sets the provider id. */ - public var providerId: String - /** Gets or sets the tuner channel id. */ - public var tunerChannelId: String - /** Gets or sets the provider channel id. */ - public var providerChannelId: String - - public init(providerId: String, tunerChannelId: String, providerChannelId: String) { - self.providerId = providerId - self.tunerChannelId = tunerChannelId - self.providerChannelId = providerChannelId - } - - public enum CodingKeys: String, CodingKey { - case providerId = "ProviderId" - case tunerChannelId = "TunerChannelId" - case providerChannelId = "ProviderChannelId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LiveTvChannelMappingsBody1.swift b/JellyfinPlayer/Swaggers/Models/LiveTvChannelMappingsBody1.swift deleted file mode 100644 index 9cb22163..00000000 --- a/JellyfinPlayer/Swaggers/Models/LiveTvChannelMappingsBody1.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// LiveTvChannelMappingsBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The set channel mapping dto. */ - -public struct LiveTvChannelMappingsBody1: Codable { - - /** Gets or sets the provider id. */ - public var providerId: String - /** Gets or sets the tuner channel id. */ - public var tunerChannelId: String - /** Gets or sets the provider channel id. */ - public var providerChannelId: String - - public init(providerId: String, tunerChannelId: String, providerChannelId: String) { - self.providerId = providerId - self.tunerChannelId = tunerChannelId - self.providerChannelId = providerChannelId - } - - public enum CodingKeys: String, CodingKey { - case providerId = "ProviderId" - case tunerChannelId = "TunerChannelId" - case providerChannelId = "ProviderChannelId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LiveTvChannelMappingsBody2.swift b/JellyfinPlayer/Swaggers/Models/LiveTvChannelMappingsBody2.swift deleted file mode 100644 index 1205eaad..00000000 --- a/JellyfinPlayer/Swaggers/Models/LiveTvChannelMappingsBody2.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// LiveTvChannelMappingsBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The set channel mapping dto. */ - -public struct LiveTvChannelMappingsBody2: Codable { - - /** Gets or sets the provider id. */ - public var providerId: String - /** Gets or sets the tuner channel id. */ - public var tunerChannelId: String - /** Gets or sets the provider channel id. */ - public var providerChannelId: String - - public init(providerId: String, tunerChannelId: String, providerChannelId: String) { - self.providerId = providerId - self.tunerChannelId = tunerChannelId - self.providerChannelId = providerChannelId - } - - public enum CodingKeys: String, CodingKey { - case providerId = "ProviderId" - case tunerChannelId = "TunerChannelId" - case providerChannelId = "ProviderChannelId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LiveTvInfo.swift b/JellyfinPlayer/Swaggers/Models/LiveTvInfo.swift deleted file mode 100644 index bf018a21..00000000 --- a/JellyfinPlayer/Swaggers/Models/LiveTvInfo.swift +++ /dev/null @@ -1,33 +0,0 @@ -// -// LiveTvInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct LiveTvInfo: Codable { - - /** Gets or sets the services. */ - public var services: [LiveTvServiceInfo]? - /** Gets or sets a value indicating whether this instance is enabled. */ - public var isEnabled: Bool? - /** Gets or sets the enabled users. */ - public var enabledUsers: [String]? - - public init(services: [LiveTvServiceInfo]? = nil, isEnabled: Bool? = nil, enabledUsers: [String]? = nil) { - self.services = services - self.isEnabled = isEnabled - self.enabledUsers = enabledUsers - } - - public enum CodingKeys: String, CodingKey { - case services = "Services" - case isEnabled = "IsEnabled" - case enabledUsers = "EnabledUsers" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LiveTvListingProvidersBody.swift b/JellyfinPlayer/Swaggers/Models/LiveTvListingProvidersBody.swift deleted file mode 100644 index e849eddd..00000000 --- a/JellyfinPlayer/Swaggers/Models/LiveTvListingProvidersBody.swift +++ /dev/null @@ -1,76 +0,0 @@ -// -// LiveTvListingProvidersBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** New listings info. */ - -public struct LiveTvListingProvidersBody: Codable { - - public var _id: String? - public var type: String? - public var username: String? - public var password: String? - public var listingsId: String? - public var zipCode: String? - public var country: String? - public var path: String? - public var enabledTuners: [String]? - public var enableAllTuners: Bool? - public var newsCategories: [String]? - public var sportsCategories: [String]? - public var kidsCategories: [String]? - public var movieCategories: [String]? - public var channelMappings: [NameValuePair]? - public var moviePrefix: String? - public var preferredLanguage: String? - public var userAgent: String? - - public init(_id: String? = nil, type: String? = nil, username: String? = nil, password: String? = nil, listingsId: String? = nil, zipCode: String? = nil, country: String? = nil, path: String? = nil, enabledTuners: [String]? = nil, enableAllTuners: Bool? = nil, newsCategories: [String]? = nil, sportsCategories: [String]? = nil, kidsCategories: [String]? = nil, movieCategories: [String]? = nil, channelMappings: [NameValuePair]? = nil, moviePrefix: String? = nil, preferredLanguage: String? = nil, userAgent: String? = nil) { - self._id = _id - self.type = type - self.username = username - self.password = password - self.listingsId = listingsId - self.zipCode = zipCode - self.country = country - self.path = path - self.enabledTuners = enabledTuners - self.enableAllTuners = enableAllTuners - self.newsCategories = newsCategories - self.sportsCategories = sportsCategories - self.kidsCategories = kidsCategories - self.movieCategories = movieCategories - self.channelMappings = channelMappings - self.moviePrefix = moviePrefix - self.preferredLanguage = preferredLanguage - self.userAgent = userAgent - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case type = "Type" - case username = "Username" - case password = "Password" - case listingsId = "ListingsId" - case zipCode = "ZipCode" - case country = "Country" - case path = "Path" - case enabledTuners = "EnabledTuners" - case enableAllTuners = "EnableAllTuners" - case newsCategories = "NewsCategories" - case sportsCategories = "SportsCategories" - case kidsCategories = "KidsCategories" - case movieCategories = "MovieCategories" - case channelMappings = "ChannelMappings" - case moviePrefix = "MoviePrefix" - case preferredLanguage = "PreferredLanguage" - case userAgent = "UserAgent" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LiveTvListingProvidersBody1.swift b/JellyfinPlayer/Swaggers/Models/LiveTvListingProvidersBody1.swift deleted file mode 100644 index 5e7cde50..00000000 --- a/JellyfinPlayer/Swaggers/Models/LiveTvListingProvidersBody1.swift +++ /dev/null @@ -1,76 +0,0 @@ -// -// LiveTvListingProvidersBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** New listings info. */ - -public struct LiveTvListingProvidersBody1: Codable { - - public var _id: String? - public var type: String? - public var username: String? - public var password: String? - public var listingsId: String? - public var zipCode: String? - public var country: String? - public var path: String? - public var enabledTuners: [String]? - public var enableAllTuners: Bool? - public var newsCategories: [String]? - public var sportsCategories: [String]? - public var kidsCategories: [String]? - public var movieCategories: [String]? - public var channelMappings: [NameValuePair]? - public var moviePrefix: String? - public var preferredLanguage: String? - public var userAgent: String? - - public init(_id: String? = nil, type: String? = nil, username: String? = nil, password: String? = nil, listingsId: String? = nil, zipCode: String? = nil, country: String? = nil, path: String? = nil, enabledTuners: [String]? = nil, enableAllTuners: Bool? = nil, newsCategories: [String]? = nil, sportsCategories: [String]? = nil, kidsCategories: [String]? = nil, movieCategories: [String]? = nil, channelMappings: [NameValuePair]? = nil, moviePrefix: String? = nil, preferredLanguage: String? = nil, userAgent: String? = nil) { - self._id = _id - self.type = type - self.username = username - self.password = password - self.listingsId = listingsId - self.zipCode = zipCode - self.country = country - self.path = path - self.enabledTuners = enabledTuners - self.enableAllTuners = enableAllTuners - self.newsCategories = newsCategories - self.sportsCategories = sportsCategories - self.kidsCategories = kidsCategories - self.movieCategories = movieCategories - self.channelMappings = channelMappings - self.moviePrefix = moviePrefix - self.preferredLanguage = preferredLanguage - self.userAgent = userAgent - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case type = "Type" - case username = "Username" - case password = "Password" - case listingsId = "ListingsId" - case zipCode = "ZipCode" - case country = "Country" - case path = "Path" - case enabledTuners = "EnabledTuners" - case enableAllTuners = "EnableAllTuners" - case newsCategories = "NewsCategories" - case sportsCategories = "SportsCategories" - case kidsCategories = "KidsCategories" - case movieCategories = "MovieCategories" - case channelMappings = "ChannelMappings" - case moviePrefix = "MoviePrefix" - case preferredLanguage = "PreferredLanguage" - case userAgent = "UserAgent" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LiveTvListingProvidersBody2.swift b/JellyfinPlayer/Swaggers/Models/LiveTvListingProvidersBody2.swift deleted file mode 100644 index 091672d0..00000000 --- a/JellyfinPlayer/Swaggers/Models/LiveTvListingProvidersBody2.swift +++ /dev/null @@ -1,76 +0,0 @@ -// -// LiveTvListingProvidersBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** New listings info. */ - -public struct LiveTvListingProvidersBody2: Codable { - - public var _id: String? - public var type: String? - public var username: String? - public var password: String? - public var listingsId: String? - public var zipCode: String? - public var country: String? - public var path: String? - public var enabledTuners: [String]? - public var enableAllTuners: Bool? - public var newsCategories: [String]? - public var sportsCategories: [String]? - public var kidsCategories: [String]? - public var movieCategories: [String]? - public var channelMappings: [NameValuePair]? - public var moviePrefix: String? - public var preferredLanguage: String? - public var userAgent: String? - - public init(_id: String? = nil, type: String? = nil, username: String? = nil, password: String? = nil, listingsId: String? = nil, zipCode: String? = nil, country: String? = nil, path: String? = nil, enabledTuners: [String]? = nil, enableAllTuners: Bool? = nil, newsCategories: [String]? = nil, sportsCategories: [String]? = nil, kidsCategories: [String]? = nil, movieCategories: [String]? = nil, channelMappings: [NameValuePair]? = nil, moviePrefix: String? = nil, preferredLanguage: String? = nil, userAgent: String? = nil) { - self._id = _id - self.type = type - self.username = username - self.password = password - self.listingsId = listingsId - self.zipCode = zipCode - self.country = country - self.path = path - self.enabledTuners = enabledTuners - self.enableAllTuners = enableAllTuners - self.newsCategories = newsCategories - self.sportsCategories = sportsCategories - self.kidsCategories = kidsCategories - self.movieCategories = movieCategories - self.channelMappings = channelMappings - self.moviePrefix = moviePrefix - self.preferredLanguage = preferredLanguage - self.userAgent = userAgent - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case type = "Type" - case username = "Username" - case password = "Password" - case listingsId = "ListingsId" - case zipCode = "ZipCode" - case country = "Country" - case path = "Path" - case enabledTuners = "EnabledTuners" - case enableAllTuners = "EnableAllTuners" - case newsCategories = "NewsCategories" - case sportsCategories = "SportsCategories" - case kidsCategories = "KidsCategories" - case movieCategories = "MovieCategories" - case channelMappings = "ChannelMappings" - case moviePrefix = "MoviePrefix" - case preferredLanguage = "PreferredLanguage" - case userAgent = "UserAgent" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LiveTvProgramsBody.swift b/JellyfinPlayer/Swaggers/Models/LiveTvProgramsBody.swift deleted file mode 100644 index 03ae6fa6..00000000 --- a/JellyfinPlayer/Swaggers/Models/LiveTvProgramsBody.swift +++ /dev/null @@ -1,130 +0,0 @@ -// -// LiveTvProgramsBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Request body. */ - -public struct LiveTvProgramsBody: Codable { - - /** Gets or sets the channels to return guide information for. */ - public var channelIds: [UUID]? - /** Gets or sets optional. Filter by user id. */ - public var userId: UUID? - /** Gets or sets the minimum premiere start date. Optional. */ - public var minStartDate: Date? - /** Gets or sets filter by programs that have completed airing, or not. Optional. */ - public var hasAired: Bool? - /** Gets or sets filter by programs that are currently airing, or not. Optional. */ - public var isAiring: Bool? - /** Gets or sets the maximum premiere start date. Optional. */ - public var maxStartDate: Date? - /** Gets or sets the minimum premiere end date. Optional. */ - public var minEndDate: Date? - /** Gets or sets the maximum premiere end date. Optional. */ - public var maxEndDate: Date? - /** Gets or sets filter for movies. Optional. */ - public var isMovie: Bool? - /** Gets or sets filter for series. Optional. */ - public var isSeries: Bool? - /** Gets or sets filter for news. Optional. */ - public var isNews: Bool? - /** Gets or sets filter for kids. Optional. */ - public var isKids: Bool? - /** Gets or sets filter for sports. Optional. */ - public var isSports: Bool? - /** Gets or sets the record index to start at. All items with a lower index will be dropped from the results. Optional. */ - public var startIndex: Int? - /** Gets or sets the maximum number of records to return. Optional. */ - public var limit: Int? - /** Gets or sets specify one or more sort orders, comma delimited. Options: Name, StartDate. Optional. */ - public var sortBy: [String]? - /** Gets or sets sort Order - Ascending,Descending. */ - public var sortOrder: [SortOrder]? - /** Gets or sets the genres to return guide information for. */ - public var genres: [String]? - /** Gets or sets the genre ids to return guide information for. */ - public var genreIds: [UUID]? - /** Gets or sets include image information in output. Optional. */ - public var enableImages: Bool? - /** Gets or sets a value indicating whether retrieve total record count. */ - public var enableTotalRecordCount: Bool? - /** Gets or sets the max number of images to return, per image type. Optional. */ - public var imageTypeLimit: Int? - /** Gets or sets the image types to include in the output. Optional. */ - public var enableImageTypes: [ImageType]? - /** Gets or sets include user data. Optional. */ - public var enableUserData: Bool? - /** Gets or sets filter by series timer id. Optional. */ - public var seriesTimerId: String? - /** Gets or sets filter by library series id. Optional. */ - public var librarySeriesId: UUID? - /** Gets or sets specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines. Optional. */ - public var fields: [ItemFields]? - - public init(channelIds: [UUID]? = nil, userId: UUID? = nil, minStartDate: Date? = nil, hasAired: Bool? = nil, isAiring: Bool? = nil, maxStartDate: Date? = nil, minEndDate: Date? = nil, maxEndDate: Date? = nil, isMovie: Bool? = nil, isSeries: Bool? = nil, isNews: Bool? = nil, isKids: Bool? = nil, isSports: Bool? = nil, startIndex: Int? = nil, limit: Int? = nil, sortBy: [String]? = nil, sortOrder: [SortOrder]? = nil, genres: [String]? = nil, genreIds: [UUID]? = nil, enableImages: Bool? = nil, enableTotalRecordCount: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, enableUserData: Bool? = nil, seriesTimerId: String? = nil, librarySeriesId: UUID? = nil, fields: [ItemFields]? = nil) { - self.channelIds = channelIds - self.userId = userId - self.minStartDate = minStartDate - self.hasAired = hasAired - self.isAiring = isAiring - self.maxStartDate = maxStartDate - self.minEndDate = minEndDate - self.maxEndDate = maxEndDate - self.isMovie = isMovie - self.isSeries = isSeries - self.isNews = isNews - self.isKids = isKids - self.isSports = isSports - self.startIndex = startIndex - self.limit = limit - self.sortBy = sortBy - self.sortOrder = sortOrder - self.genres = genres - self.genreIds = genreIds - self.enableImages = enableImages - self.enableTotalRecordCount = enableTotalRecordCount - self.imageTypeLimit = imageTypeLimit - self.enableImageTypes = enableImageTypes - self.enableUserData = enableUserData - self.seriesTimerId = seriesTimerId - self.librarySeriesId = librarySeriesId - self.fields = fields - } - - public enum CodingKeys: String, CodingKey { - case channelIds = "ChannelIds" - case userId = "UserId" - case minStartDate = "MinStartDate" - case hasAired = "HasAired" - case isAiring = "IsAiring" - case maxStartDate = "MaxStartDate" - case minEndDate = "MinEndDate" - case maxEndDate = "MaxEndDate" - case isMovie = "IsMovie" - case isSeries = "IsSeries" - case isNews = "IsNews" - case isKids = "IsKids" - case isSports = "IsSports" - case startIndex = "StartIndex" - case limit = "Limit" - case sortBy = "SortBy" - case sortOrder = "SortOrder" - case genres = "Genres" - case genreIds = "GenreIds" - case enableImages = "EnableImages" - case enableTotalRecordCount = "EnableTotalRecordCount" - case imageTypeLimit = "ImageTypeLimit" - case enableImageTypes = "EnableImageTypes" - case enableUserData = "EnableUserData" - case seriesTimerId = "SeriesTimerId" - case librarySeriesId = "LibrarySeriesId" - case fields = "Fields" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LiveTvProgramsBody1.swift b/JellyfinPlayer/Swaggers/Models/LiveTvProgramsBody1.swift deleted file mode 100644 index 03336eef..00000000 --- a/JellyfinPlayer/Swaggers/Models/LiveTvProgramsBody1.swift +++ /dev/null @@ -1,130 +0,0 @@ -// -// LiveTvProgramsBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Request body. */ - -public struct LiveTvProgramsBody1: Codable { - - /** Gets or sets the channels to return guide information for. */ - public var channelIds: [UUID]? - /** Gets or sets optional. Filter by user id. */ - public var userId: UUID? - /** Gets or sets the minimum premiere start date. Optional. */ - public var minStartDate: Date? - /** Gets or sets filter by programs that have completed airing, or not. Optional. */ - public var hasAired: Bool? - /** Gets or sets filter by programs that are currently airing, or not. Optional. */ - public var isAiring: Bool? - /** Gets or sets the maximum premiere start date. Optional. */ - public var maxStartDate: Date? - /** Gets or sets the minimum premiere end date. Optional. */ - public var minEndDate: Date? - /** Gets or sets the maximum premiere end date. Optional. */ - public var maxEndDate: Date? - /** Gets or sets filter for movies. Optional. */ - public var isMovie: Bool? - /** Gets or sets filter for series. Optional. */ - public var isSeries: Bool? - /** Gets or sets filter for news. Optional. */ - public var isNews: Bool? - /** Gets or sets filter for kids. Optional. */ - public var isKids: Bool? - /** Gets or sets filter for sports. Optional. */ - public var isSports: Bool? - /** Gets or sets the record index to start at. All items with a lower index will be dropped from the results. Optional. */ - public var startIndex: Int? - /** Gets or sets the maximum number of records to return. Optional. */ - public var limit: Int? - /** Gets or sets specify one or more sort orders, comma delimited. Options: Name, StartDate. Optional. */ - public var sortBy: [String]? - /** Gets or sets sort Order - Ascending,Descending. */ - public var sortOrder: [SortOrder]? - /** Gets or sets the genres to return guide information for. */ - public var genres: [String]? - /** Gets or sets the genre ids to return guide information for. */ - public var genreIds: [UUID]? - /** Gets or sets include image information in output. Optional. */ - public var enableImages: Bool? - /** Gets or sets a value indicating whether retrieve total record count. */ - public var enableTotalRecordCount: Bool? - /** Gets or sets the max number of images to return, per image type. Optional. */ - public var imageTypeLimit: Int? - /** Gets or sets the image types to include in the output. Optional. */ - public var enableImageTypes: [ImageType]? - /** Gets or sets include user data. Optional. */ - public var enableUserData: Bool? - /** Gets or sets filter by series timer id. Optional. */ - public var seriesTimerId: String? - /** Gets or sets filter by library series id. Optional. */ - public var librarySeriesId: UUID? - /** Gets or sets specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines. Optional. */ - public var fields: [ItemFields]? - - public init(channelIds: [UUID]? = nil, userId: UUID? = nil, minStartDate: Date? = nil, hasAired: Bool? = nil, isAiring: Bool? = nil, maxStartDate: Date? = nil, minEndDate: Date? = nil, maxEndDate: Date? = nil, isMovie: Bool? = nil, isSeries: Bool? = nil, isNews: Bool? = nil, isKids: Bool? = nil, isSports: Bool? = nil, startIndex: Int? = nil, limit: Int? = nil, sortBy: [String]? = nil, sortOrder: [SortOrder]? = nil, genres: [String]? = nil, genreIds: [UUID]? = nil, enableImages: Bool? = nil, enableTotalRecordCount: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, enableUserData: Bool? = nil, seriesTimerId: String? = nil, librarySeriesId: UUID? = nil, fields: [ItemFields]? = nil) { - self.channelIds = channelIds - self.userId = userId - self.minStartDate = minStartDate - self.hasAired = hasAired - self.isAiring = isAiring - self.maxStartDate = maxStartDate - self.minEndDate = minEndDate - self.maxEndDate = maxEndDate - self.isMovie = isMovie - self.isSeries = isSeries - self.isNews = isNews - self.isKids = isKids - self.isSports = isSports - self.startIndex = startIndex - self.limit = limit - self.sortBy = sortBy - self.sortOrder = sortOrder - self.genres = genres - self.genreIds = genreIds - self.enableImages = enableImages - self.enableTotalRecordCount = enableTotalRecordCount - self.imageTypeLimit = imageTypeLimit - self.enableImageTypes = enableImageTypes - self.enableUserData = enableUserData - self.seriesTimerId = seriesTimerId - self.librarySeriesId = librarySeriesId - self.fields = fields - } - - public enum CodingKeys: String, CodingKey { - case channelIds = "ChannelIds" - case userId = "UserId" - case minStartDate = "MinStartDate" - case hasAired = "HasAired" - case isAiring = "IsAiring" - case maxStartDate = "MaxStartDate" - case minEndDate = "MinEndDate" - case maxEndDate = "MaxEndDate" - case isMovie = "IsMovie" - case isSeries = "IsSeries" - case isNews = "IsNews" - case isKids = "IsKids" - case isSports = "IsSports" - case startIndex = "StartIndex" - case limit = "Limit" - case sortBy = "SortBy" - case sortOrder = "SortOrder" - case genres = "Genres" - case genreIds = "GenreIds" - case enableImages = "EnableImages" - case enableTotalRecordCount = "EnableTotalRecordCount" - case imageTypeLimit = "ImageTypeLimit" - case enableImageTypes = "EnableImageTypes" - case enableUserData = "EnableUserData" - case seriesTimerId = "SeriesTimerId" - case librarySeriesId = "LibrarySeriesId" - case fields = "Fields" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LiveTvProgramsBody2.swift b/JellyfinPlayer/Swaggers/Models/LiveTvProgramsBody2.swift deleted file mode 100644 index 2f13e494..00000000 --- a/JellyfinPlayer/Swaggers/Models/LiveTvProgramsBody2.swift +++ /dev/null @@ -1,130 +0,0 @@ -// -// LiveTvProgramsBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Request body. */ - -public struct LiveTvProgramsBody2: Codable { - - /** Gets or sets the channels to return guide information for. */ - public var channelIds: [UUID]? - /** Gets or sets optional. Filter by user id. */ - public var userId: UUID? - /** Gets or sets the minimum premiere start date. Optional. */ - public var minStartDate: Date? - /** Gets or sets filter by programs that have completed airing, or not. Optional. */ - public var hasAired: Bool? - /** Gets or sets filter by programs that are currently airing, or not. Optional. */ - public var isAiring: Bool? - /** Gets or sets the maximum premiere start date. Optional. */ - public var maxStartDate: Date? - /** Gets or sets the minimum premiere end date. Optional. */ - public var minEndDate: Date? - /** Gets or sets the maximum premiere end date. Optional. */ - public var maxEndDate: Date? - /** Gets or sets filter for movies. Optional. */ - public var isMovie: Bool? - /** Gets or sets filter for series. Optional. */ - public var isSeries: Bool? - /** Gets or sets filter for news. Optional. */ - public var isNews: Bool? - /** Gets or sets filter for kids. Optional. */ - public var isKids: Bool? - /** Gets or sets filter for sports. Optional. */ - public var isSports: Bool? - /** Gets or sets the record index to start at. All items with a lower index will be dropped from the results. Optional. */ - public var startIndex: Int? - /** Gets or sets the maximum number of records to return. Optional. */ - public var limit: Int? - /** Gets or sets specify one or more sort orders, comma delimited. Options: Name, StartDate. Optional. */ - public var sortBy: [String]? - /** Gets or sets sort Order - Ascending,Descending. */ - public var sortOrder: [SortOrder]? - /** Gets or sets the genres to return guide information for. */ - public var genres: [String]? - /** Gets or sets the genre ids to return guide information for. */ - public var genreIds: [UUID]? - /** Gets or sets include image information in output. Optional. */ - public var enableImages: Bool? - /** Gets or sets a value indicating whether retrieve total record count. */ - public var enableTotalRecordCount: Bool? - /** Gets or sets the max number of images to return, per image type. Optional. */ - public var imageTypeLimit: Int? - /** Gets or sets the image types to include in the output. Optional. */ - public var enableImageTypes: [ImageType]? - /** Gets or sets include user data. Optional. */ - public var enableUserData: Bool? - /** Gets or sets filter by series timer id. Optional. */ - public var seriesTimerId: String? - /** Gets or sets filter by library series id. Optional. */ - public var librarySeriesId: UUID? - /** Gets or sets specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines. Optional. */ - public var fields: [ItemFields]? - - public init(channelIds: [UUID]? = nil, userId: UUID? = nil, minStartDate: Date? = nil, hasAired: Bool? = nil, isAiring: Bool? = nil, maxStartDate: Date? = nil, minEndDate: Date? = nil, maxEndDate: Date? = nil, isMovie: Bool? = nil, isSeries: Bool? = nil, isNews: Bool? = nil, isKids: Bool? = nil, isSports: Bool? = nil, startIndex: Int? = nil, limit: Int? = nil, sortBy: [String]? = nil, sortOrder: [SortOrder]? = nil, genres: [String]? = nil, genreIds: [UUID]? = nil, enableImages: Bool? = nil, enableTotalRecordCount: Bool? = nil, imageTypeLimit: Int? = nil, enableImageTypes: [ImageType]? = nil, enableUserData: Bool? = nil, seriesTimerId: String? = nil, librarySeriesId: UUID? = nil, fields: [ItemFields]? = nil) { - self.channelIds = channelIds - self.userId = userId - self.minStartDate = minStartDate - self.hasAired = hasAired - self.isAiring = isAiring - self.maxStartDate = maxStartDate - self.minEndDate = minEndDate - self.maxEndDate = maxEndDate - self.isMovie = isMovie - self.isSeries = isSeries - self.isNews = isNews - self.isKids = isKids - self.isSports = isSports - self.startIndex = startIndex - self.limit = limit - self.sortBy = sortBy - self.sortOrder = sortOrder - self.genres = genres - self.genreIds = genreIds - self.enableImages = enableImages - self.enableTotalRecordCount = enableTotalRecordCount - self.imageTypeLimit = imageTypeLimit - self.enableImageTypes = enableImageTypes - self.enableUserData = enableUserData - self.seriesTimerId = seriesTimerId - self.librarySeriesId = librarySeriesId - self.fields = fields - } - - public enum CodingKeys: String, CodingKey { - case channelIds = "ChannelIds" - case userId = "UserId" - case minStartDate = "MinStartDate" - case hasAired = "HasAired" - case isAiring = "IsAiring" - case maxStartDate = "MaxStartDate" - case minEndDate = "MinEndDate" - case maxEndDate = "MaxEndDate" - case isMovie = "IsMovie" - case isSeries = "IsSeries" - case isNews = "IsNews" - case isKids = "IsKids" - case isSports = "IsSports" - case startIndex = "StartIndex" - case limit = "Limit" - case sortBy = "SortBy" - case sortOrder = "SortOrder" - case genres = "Genres" - case genreIds = "GenreIds" - case enableImages = "EnableImages" - case enableTotalRecordCount = "EnableTotalRecordCount" - case imageTypeLimit = "ImageTypeLimit" - case enableImageTypes = "EnableImageTypes" - case enableUserData = "EnableUserData" - case seriesTimerId = "SeriesTimerId" - case librarySeriesId = "LibrarySeriesId" - case fields = "Fields" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LiveTvSeriesTimersBody.swift b/JellyfinPlayer/Swaggers/Models/LiveTvSeriesTimersBody.swift deleted file mode 100644 index 12fd3e45..00000000 --- a/JellyfinPlayer/Swaggers/Models/LiveTvSeriesTimersBody.swift +++ /dev/null @@ -1,157 +0,0 @@ -// -// LiveTvSeriesTimersBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** New series timer info. */ - -public struct LiveTvSeriesTimersBody: Codable { - - /** Id of the recording. */ - public var _id: String? - public var type: String? - /** Gets or sets the server identifier. */ - public var serverId: String? - /** Gets or sets the external identifier. */ - public var externalId: String? - /** ChannelId of the recording. */ - public var channelId: UUID? - /** Gets or sets the external channel identifier. */ - public var externalChannelId: String? - /** ChannelName of the recording. */ - public var channelName: String? - public var channelPrimaryImageTag: String? - /** Gets or sets the program identifier. */ - public var programId: String? - /** Gets or sets the external program identifier. */ - public var externalProgramId: String? - /** Name of the recording. */ - public var name: String? - /** Description of the recording. */ - public var overview: String? - /** The start date of the recording, in UTC. */ - public var startDate: Date? - /** The end date of the recording, in UTC. */ - public var endDate: Date? - /** Gets or sets the name of the service. */ - public var serviceName: String? - /** Gets or sets the priority. */ - public var priority: Int? - /** Gets or sets the pre padding seconds. */ - public var prePaddingSeconds: Int? - /** Gets or sets the post padding seconds. */ - public var postPaddingSeconds: Int? - /** Gets or sets a value indicating whether this instance is pre padding required. */ - public var isPrePaddingRequired: Bool? - /** If the item does not have any backdrops, this will hold the Id of the Parent that has one. */ - public var parentBackdropItemId: String? - /** Gets or sets the parent backdrop image tags. */ - public var parentBackdropImageTags: [String]? - /** Gets or sets a value indicating whether this instance is post padding required. */ - public var isPostPaddingRequired: Bool? - public var keepUntil: Any? - /** Gets or sets a value indicating whether [record any time]. */ - public var recordAnyTime: Bool? - public var skipEpisodesInLibrary: Bool? - /** Gets or sets a value indicating whether [record any channel]. */ - public var recordAnyChannel: Bool? - public var keepUpTo: Int? - /** Gets or sets a value indicating whether [record new only]. */ - public var recordNewOnly: Bool? - /** Gets or sets the days. */ - public var days: [DayOfWeek]? - /** Gets or sets the day pattern. */ - public var dayPattern: Any? - /** Gets or sets the image tags. */ - public var imageTags: [String:String]? - /** Gets or sets the parent thumb item id. */ - public var parentThumbItemId: String? - /** Gets or sets the parent thumb image tag. */ - public var parentThumbImageTag: String? - /** Gets or sets the parent primary image item identifier. */ - public var parentPrimaryImageItemId: String? - /** Gets or sets the parent primary image tag. */ - public var parentPrimaryImageTag: String? - - public init(_id: String? = nil, type: String? = nil, serverId: String? = nil, externalId: String? = nil, channelId: UUID? = nil, externalChannelId: String? = nil, channelName: String? = nil, channelPrimaryImageTag: String? = nil, programId: String? = nil, externalProgramId: String? = nil, name: String? = nil, overview: String? = nil, startDate: Date? = nil, endDate: Date? = nil, serviceName: String? = nil, priority: Int? = nil, prePaddingSeconds: Int? = nil, postPaddingSeconds: Int? = nil, isPrePaddingRequired: Bool? = nil, parentBackdropItemId: String? = nil, parentBackdropImageTags: [String]? = nil, isPostPaddingRequired: Bool? = nil, keepUntil: Any? = nil, recordAnyTime: Bool? = nil, skipEpisodesInLibrary: Bool? = nil, recordAnyChannel: Bool? = nil, keepUpTo: Int? = nil, recordNewOnly: Bool? = nil, days: [DayOfWeek]? = nil, dayPattern: Any? = nil, imageTags: [String:String]? = nil, parentThumbItemId: String? = nil, parentThumbImageTag: String? = nil, parentPrimaryImageItemId: String? = nil, parentPrimaryImageTag: String? = nil) { - self._id = _id - self.type = type - self.serverId = serverId - self.externalId = externalId - self.channelId = channelId - self.externalChannelId = externalChannelId - self.channelName = channelName - self.channelPrimaryImageTag = channelPrimaryImageTag - self.programId = programId - self.externalProgramId = externalProgramId - self.name = name - self.overview = overview - self.startDate = startDate - self.endDate = endDate - self.serviceName = serviceName - self.priority = priority - self.prePaddingSeconds = prePaddingSeconds - self.postPaddingSeconds = postPaddingSeconds - self.isPrePaddingRequired = isPrePaddingRequired - self.parentBackdropItemId = parentBackdropItemId - self.parentBackdropImageTags = parentBackdropImageTags - self.isPostPaddingRequired = isPostPaddingRequired - self.keepUntil = keepUntil - self.recordAnyTime = recordAnyTime - self.skipEpisodesInLibrary = skipEpisodesInLibrary - self.recordAnyChannel = recordAnyChannel - self.keepUpTo = keepUpTo - self.recordNewOnly = recordNewOnly - self.days = days - self.dayPattern = dayPattern - self.imageTags = imageTags - self.parentThumbItemId = parentThumbItemId - self.parentThumbImageTag = parentThumbImageTag - self.parentPrimaryImageItemId = parentPrimaryImageItemId - self.parentPrimaryImageTag = parentPrimaryImageTag - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case type = "Type" - case serverId = "ServerId" - case externalId = "ExternalId" - case channelId = "ChannelId" - case externalChannelId = "ExternalChannelId" - case channelName = "ChannelName" - case channelPrimaryImageTag = "ChannelPrimaryImageTag" - case programId = "ProgramId" - case externalProgramId = "ExternalProgramId" - case name = "Name" - case overview = "Overview" - case startDate = "StartDate" - case endDate = "EndDate" - case serviceName = "ServiceName" - case priority = "Priority" - case prePaddingSeconds = "PrePaddingSeconds" - case postPaddingSeconds = "PostPaddingSeconds" - case isPrePaddingRequired = "IsPrePaddingRequired" - case parentBackdropItemId = "ParentBackdropItemId" - case parentBackdropImageTags = "ParentBackdropImageTags" - case isPostPaddingRequired = "IsPostPaddingRequired" - case keepUntil = "KeepUntil" - case recordAnyTime = "RecordAnyTime" - case skipEpisodesInLibrary = "SkipEpisodesInLibrary" - case recordAnyChannel = "RecordAnyChannel" - case keepUpTo = "KeepUpTo" - case recordNewOnly = "RecordNewOnly" - case days = "Days" - case dayPattern = "DayPattern" - case imageTags = "ImageTags" - case parentThumbItemId = "ParentThumbItemId" - case parentThumbImageTag = "ParentThumbImageTag" - case parentPrimaryImageItemId = "ParentPrimaryImageItemId" - case parentPrimaryImageTag = "ParentPrimaryImageTag" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LiveTvSeriesTimersBody1.swift b/JellyfinPlayer/Swaggers/Models/LiveTvSeriesTimersBody1.swift deleted file mode 100644 index 6b476a78..00000000 --- a/JellyfinPlayer/Swaggers/Models/LiveTvSeriesTimersBody1.swift +++ /dev/null @@ -1,157 +0,0 @@ -// -// LiveTvSeriesTimersBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** New series timer info. */ - -public struct LiveTvSeriesTimersBody1: Codable { - - /** Id of the recording. */ - public var _id: String? - public var type: String? - /** Gets or sets the server identifier. */ - public var serverId: String? - /** Gets or sets the external identifier. */ - public var externalId: String? - /** ChannelId of the recording. */ - public var channelId: UUID? - /** Gets or sets the external channel identifier. */ - public var externalChannelId: String? - /** ChannelName of the recording. */ - public var channelName: String? - public var channelPrimaryImageTag: String? - /** Gets or sets the program identifier. */ - public var programId: String? - /** Gets or sets the external program identifier. */ - public var externalProgramId: String? - /** Name of the recording. */ - public var name: String? - /** Description of the recording. */ - public var overview: String? - /** The start date of the recording, in UTC. */ - public var startDate: Date? - /** The end date of the recording, in UTC. */ - public var endDate: Date? - /** Gets or sets the name of the service. */ - public var serviceName: String? - /** Gets or sets the priority. */ - public var priority: Int? - /** Gets or sets the pre padding seconds. */ - public var prePaddingSeconds: Int? - /** Gets or sets the post padding seconds. */ - public var postPaddingSeconds: Int? - /** Gets or sets a value indicating whether this instance is pre padding required. */ - public var isPrePaddingRequired: Bool? - /** If the item does not have any backdrops, this will hold the Id of the Parent that has one. */ - public var parentBackdropItemId: String? - /** Gets or sets the parent backdrop image tags. */ - public var parentBackdropImageTags: [String]? - /** Gets or sets a value indicating whether this instance is post padding required. */ - public var isPostPaddingRequired: Bool? - public var keepUntil: Any? - /** Gets or sets a value indicating whether [record any time]. */ - public var recordAnyTime: Bool? - public var skipEpisodesInLibrary: Bool? - /** Gets or sets a value indicating whether [record any channel]. */ - public var recordAnyChannel: Bool? - public var keepUpTo: Int? - /** Gets or sets a value indicating whether [record new only]. */ - public var recordNewOnly: Bool? - /** Gets or sets the days. */ - public var days: [DayOfWeek]? - /** Gets or sets the day pattern. */ - public var dayPattern: Any? - /** Gets or sets the image tags. */ - public var imageTags: [String:String]? - /** Gets or sets the parent thumb item id. */ - public var parentThumbItemId: String? - /** Gets or sets the parent thumb image tag. */ - public var parentThumbImageTag: String? - /** Gets or sets the parent primary image item identifier. */ - public var parentPrimaryImageItemId: String? - /** Gets or sets the parent primary image tag. */ - public var parentPrimaryImageTag: String? - - public init(_id: String? = nil, type: String? = nil, serverId: String? = nil, externalId: String? = nil, channelId: UUID? = nil, externalChannelId: String? = nil, channelName: String? = nil, channelPrimaryImageTag: String? = nil, programId: String? = nil, externalProgramId: String? = nil, name: String? = nil, overview: String? = nil, startDate: Date? = nil, endDate: Date? = nil, serviceName: String? = nil, priority: Int? = nil, prePaddingSeconds: Int? = nil, postPaddingSeconds: Int? = nil, isPrePaddingRequired: Bool? = nil, parentBackdropItemId: String? = nil, parentBackdropImageTags: [String]? = nil, isPostPaddingRequired: Bool? = nil, keepUntil: Any? = nil, recordAnyTime: Bool? = nil, skipEpisodesInLibrary: Bool? = nil, recordAnyChannel: Bool? = nil, keepUpTo: Int? = nil, recordNewOnly: Bool? = nil, days: [DayOfWeek]? = nil, dayPattern: Any? = nil, imageTags: [String:String]? = nil, parentThumbItemId: String? = nil, parentThumbImageTag: String? = nil, parentPrimaryImageItemId: String? = nil, parentPrimaryImageTag: String? = nil) { - self._id = _id - self.type = type - self.serverId = serverId - self.externalId = externalId - self.channelId = channelId - self.externalChannelId = externalChannelId - self.channelName = channelName - self.channelPrimaryImageTag = channelPrimaryImageTag - self.programId = programId - self.externalProgramId = externalProgramId - self.name = name - self.overview = overview - self.startDate = startDate - self.endDate = endDate - self.serviceName = serviceName - self.priority = priority - self.prePaddingSeconds = prePaddingSeconds - self.postPaddingSeconds = postPaddingSeconds - self.isPrePaddingRequired = isPrePaddingRequired - self.parentBackdropItemId = parentBackdropItemId - self.parentBackdropImageTags = parentBackdropImageTags - self.isPostPaddingRequired = isPostPaddingRequired - self.keepUntil = keepUntil - self.recordAnyTime = recordAnyTime - self.skipEpisodesInLibrary = skipEpisodesInLibrary - self.recordAnyChannel = recordAnyChannel - self.keepUpTo = keepUpTo - self.recordNewOnly = recordNewOnly - self.days = days - self.dayPattern = dayPattern - self.imageTags = imageTags - self.parentThumbItemId = parentThumbItemId - self.parentThumbImageTag = parentThumbImageTag - self.parentPrimaryImageItemId = parentPrimaryImageItemId - self.parentPrimaryImageTag = parentPrimaryImageTag - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case type = "Type" - case serverId = "ServerId" - case externalId = "ExternalId" - case channelId = "ChannelId" - case externalChannelId = "ExternalChannelId" - case channelName = "ChannelName" - case channelPrimaryImageTag = "ChannelPrimaryImageTag" - case programId = "ProgramId" - case externalProgramId = "ExternalProgramId" - case name = "Name" - case overview = "Overview" - case startDate = "StartDate" - case endDate = "EndDate" - case serviceName = "ServiceName" - case priority = "Priority" - case prePaddingSeconds = "PrePaddingSeconds" - case postPaddingSeconds = "PostPaddingSeconds" - case isPrePaddingRequired = "IsPrePaddingRequired" - case parentBackdropItemId = "ParentBackdropItemId" - case parentBackdropImageTags = "ParentBackdropImageTags" - case isPostPaddingRequired = "IsPostPaddingRequired" - case keepUntil = "KeepUntil" - case recordAnyTime = "RecordAnyTime" - case skipEpisodesInLibrary = "SkipEpisodesInLibrary" - case recordAnyChannel = "RecordAnyChannel" - case keepUpTo = "KeepUpTo" - case recordNewOnly = "RecordNewOnly" - case days = "Days" - case dayPattern = "DayPattern" - case imageTags = "ImageTags" - case parentThumbItemId = "ParentThumbItemId" - case parentThumbImageTag = "ParentThumbImageTag" - case parentPrimaryImageItemId = "ParentPrimaryImageItemId" - case parentPrimaryImageTag = "ParentPrimaryImageTag" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LiveTvSeriesTimersBody2.swift b/JellyfinPlayer/Swaggers/Models/LiveTvSeriesTimersBody2.swift deleted file mode 100644 index ebacaf1c..00000000 --- a/JellyfinPlayer/Swaggers/Models/LiveTvSeriesTimersBody2.swift +++ /dev/null @@ -1,157 +0,0 @@ -// -// LiveTvSeriesTimersBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** New series timer info. */ - -public struct LiveTvSeriesTimersBody2: Codable { - - /** Id of the recording. */ - public var _id: String? - public var type: String? - /** Gets or sets the server identifier. */ - public var serverId: String? - /** Gets or sets the external identifier. */ - public var externalId: String? - /** ChannelId of the recording. */ - public var channelId: UUID? - /** Gets or sets the external channel identifier. */ - public var externalChannelId: String? - /** ChannelName of the recording. */ - public var channelName: String? - public var channelPrimaryImageTag: String? - /** Gets or sets the program identifier. */ - public var programId: String? - /** Gets or sets the external program identifier. */ - public var externalProgramId: String? - /** Name of the recording. */ - public var name: String? - /** Description of the recording. */ - public var overview: String? - /** The start date of the recording, in UTC. */ - public var startDate: Date? - /** The end date of the recording, in UTC. */ - public var endDate: Date? - /** Gets or sets the name of the service. */ - public var serviceName: String? - /** Gets or sets the priority. */ - public var priority: Int? - /** Gets or sets the pre padding seconds. */ - public var prePaddingSeconds: Int? - /** Gets or sets the post padding seconds. */ - public var postPaddingSeconds: Int? - /** Gets or sets a value indicating whether this instance is pre padding required. */ - public var isPrePaddingRequired: Bool? - /** If the item does not have any backdrops, this will hold the Id of the Parent that has one. */ - public var parentBackdropItemId: String? - /** Gets or sets the parent backdrop image tags. */ - public var parentBackdropImageTags: [String]? - /** Gets or sets a value indicating whether this instance is post padding required. */ - public var isPostPaddingRequired: Bool? - public var keepUntil: Any? - /** Gets or sets a value indicating whether [record any time]. */ - public var recordAnyTime: Bool? - public var skipEpisodesInLibrary: Bool? - /** Gets or sets a value indicating whether [record any channel]. */ - public var recordAnyChannel: Bool? - public var keepUpTo: Int? - /** Gets or sets a value indicating whether [record new only]. */ - public var recordNewOnly: Bool? - /** Gets or sets the days. */ - public var days: [DayOfWeek]? - /** Gets or sets the day pattern. */ - public var dayPattern: Any? - /** Gets or sets the image tags. */ - public var imageTags: [String:String]? - /** Gets or sets the parent thumb item id. */ - public var parentThumbItemId: String? - /** Gets or sets the parent thumb image tag. */ - public var parentThumbImageTag: String? - /** Gets or sets the parent primary image item identifier. */ - public var parentPrimaryImageItemId: String? - /** Gets or sets the parent primary image tag. */ - public var parentPrimaryImageTag: String? - - public init(_id: String? = nil, type: String? = nil, serverId: String? = nil, externalId: String? = nil, channelId: UUID? = nil, externalChannelId: String? = nil, channelName: String? = nil, channelPrimaryImageTag: String? = nil, programId: String? = nil, externalProgramId: String? = nil, name: String? = nil, overview: String? = nil, startDate: Date? = nil, endDate: Date? = nil, serviceName: String? = nil, priority: Int? = nil, prePaddingSeconds: Int? = nil, postPaddingSeconds: Int? = nil, isPrePaddingRequired: Bool? = nil, parentBackdropItemId: String? = nil, parentBackdropImageTags: [String]? = nil, isPostPaddingRequired: Bool? = nil, keepUntil: Any? = nil, recordAnyTime: Bool? = nil, skipEpisodesInLibrary: Bool? = nil, recordAnyChannel: Bool? = nil, keepUpTo: Int? = nil, recordNewOnly: Bool? = nil, days: [DayOfWeek]? = nil, dayPattern: Any? = nil, imageTags: [String:String]? = nil, parentThumbItemId: String? = nil, parentThumbImageTag: String? = nil, parentPrimaryImageItemId: String? = nil, parentPrimaryImageTag: String? = nil) { - self._id = _id - self.type = type - self.serverId = serverId - self.externalId = externalId - self.channelId = channelId - self.externalChannelId = externalChannelId - self.channelName = channelName - self.channelPrimaryImageTag = channelPrimaryImageTag - self.programId = programId - self.externalProgramId = externalProgramId - self.name = name - self.overview = overview - self.startDate = startDate - self.endDate = endDate - self.serviceName = serviceName - self.priority = priority - self.prePaddingSeconds = prePaddingSeconds - self.postPaddingSeconds = postPaddingSeconds - self.isPrePaddingRequired = isPrePaddingRequired - self.parentBackdropItemId = parentBackdropItemId - self.parentBackdropImageTags = parentBackdropImageTags - self.isPostPaddingRequired = isPostPaddingRequired - self.keepUntil = keepUntil - self.recordAnyTime = recordAnyTime - self.skipEpisodesInLibrary = skipEpisodesInLibrary - self.recordAnyChannel = recordAnyChannel - self.keepUpTo = keepUpTo - self.recordNewOnly = recordNewOnly - self.days = days - self.dayPattern = dayPattern - self.imageTags = imageTags - self.parentThumbItemId = parentThumbItemId - self.parentThumbImageTag = parentThumbImageTag - self.parentPrimaryImageItemId = parentPrimaryImageItemId - self.parentPrimaryImageTag = parentPrimaryImageTag - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case type = "Type" - case serverId = "ServerId" - case externalId = "ExternalId" - case channelId = "ChannelId" - case externalChannelId = "ExternalChannelId" - case channelName = "ChannelName" - case channelPrimaryImageTag = "ChannelPrimaryImageTag" - case programId = "ProgramId" - case externalProgramId = "ExternalProgramId" - case name = "Name" - case overview = "Overview" - case startDate = "StartDate" - case endDate = "EndDate" - case serviceName = "ServiceName" - case priority = "Priority" - case prePaddingSeconds = "PrePaddingSeconds" - case postPaddingSeconds = "PostPaddingSeconds" - case isPrePaddingRequired = "IsPrePaddingRequired" - case parentBackdropItemId = "ParentBackdropItemId" - case parentBackdropImageTags = "ParentBackdropImageTags" - case isPostPaddingRequired = "IsPostPaddingRequired" - case keepUntil = "KeepUntil" - case recordAnyTime = "RecordAnyTime" - case skipEpisodesInLibrary = "SkipEpisodesInLibrary" - case recordAnyChannel = "RecordAnyChannel" - case keepUpTo = "KeepUpTo" - case recordNewOnly = "RecordNewOnly" - case days = "Days" - case dayPattern = "DayPattern" - case imageTags = "ImageTags" - case parentThumbItemId = "ParentThumbItemId" - case parentThumbImageTag = "ParentThumbImageTag" - case parentPrimaryImageItemId = "ParentPrimaryImageItemId" - case parentPrimaryImageTag = "ParentPrimaryImageTag" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LiveTvServiceInfo.swift b/JellyfinPlayer/Swaggers/Models/LiveTvServiceInfo.swift deleted file mode 100644 index f75de7cf..00000000 --- a/JellyfinPlayer/Swaggers/Models/LiveTvServiceInfo.swift +++ /dev/null @@ -1,53 +0,0 @@ -// -// LiveTvServiceInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class ServiceInfo. */ - -public struct LiveTvServiceInfo: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the home page URL. */ - public var homePageUrl: String? - /** Gets or sets the status. */ - public var status: AllOfLiveTvServiceInfoStatus? - /** Gets or sets the status message. */ - public var statusMessage: String? - /** Gets or sets the version. */ - public var version: String? - /** Gets or sets a value indicating whether this instance has update available. */ - public var hasUpdateAvailable: Bool? - /** Gets or sets a value indicating whether this instance is visible. */ - public var isVisible: Bool? - public var tuners: [String]? - - public init(name: String? = nil, homePageUrl: String? = nil, status: AllOfLiveTvServiceInfoStatus? = nil, statusMessage: String? = nil, version: String? = nil, hasUpdateAvailable: Bool? = nil, isVisible: Bool? = nil, tuners: [String]? = nil) { - self.name = name - self.homePageUrl = homePageUrl - self.status = status - self.statusMessage = statusMessage - self.version = version - self.hasUpdateAvailable = hasUpdateAvailable - self.isVisible = isVisible - self.tuners = tuners - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case homePageUrl = "HomePageUrl" - case status = "Status" - case statusMessage = "StatusMessage" - case version = "Version" - case hasUpdateAvailable = "HasUpdateAvailable" - case isVisible = "IsVisible" - case tuners = "Tuners" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LiveTvServiceStatus.swift b/JellyfinPlayer/Swaggers/Models/LiveTvServiceStatus.swift deleted file mode 100644 index c9d191d3..00000000 --- a/JellyfinPlayer/Swaggers/Models/LiveTvServiceStatus.swift +++ /dev/null @@ -1,14 +0,0 @@ -// -// LiveTvServiceStatus.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum LiveTvServiceStatus: String, Codable { - case ok = "Ok" - case unavailable = "Unavailable" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/LiveTvTimersBody.swift b/JellyfinPlayer/Swaggers/Models/LiveTvTimersBody.swift deleted file mode 100644 index 32dbde1f..00000000 --- a/JellyfinPlayer/Swaggers/Models/LiveTvTimersBody.swift +++ /dev/null @@ -1,131 +0,0 @@ -// -// LiveTvTimersBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** New timer info. */ - -public struct LiveTvTimersBody: Codable { - - /** Id of the recording. */ - public var _id: String? - public var type: String? - /** Gets or sets the server identifier. */ - public var serverId: String? - /** Gets or sets the external identifier. */ - public var externalId: String? - /** ChannelId of the recording. */ - public var channelId: UUID? - /** Gets or sets the external channel identifier. */ - public var externalChannelId: String? - /** ChannelName of the recording. */ - public var channelName: String? - public var channelPrimaryImageTag: String? - /** Gets or sets the program identifier. */ - public var programId: String? - /** Gets or sets the external program identifier. */ - public var externalProgramId: String? - /** Name of the recording. */ - public var name: String? - /** Description of the recording. */ - public var overview: String? - /** The start date of the recording, in UTC. */ - public var startDate: Date? - /** The end date of the recording, in UTC. */ - public var endDate: Date? - /** Gets or sets the name of the service. */ - public var serviceName: String? - /** Gets or sets the priority. */ - public var priority: Int? - /** Gets or sets the pre padding seconds. */ - public var prePaddingSeconds: Int? - /** Gets or sets the post padding seconds. */ - public var postPaddingSeconds: Int? - /** Gets or sets a value indicating whether this instance is pre padding required. */ - public var isPrePaddingRequired: Bool? - /** If the item does not have any backdrops, this will hold the Id of the Parent that has one. */ - public var parentBackdropItemId: String? - /** Gets or sets the parent backdrop image tags. */ - public var parentBackdropImageTags: [String]? - /** Gets or sets a value indicating whether this instance is post padding required. */ - public var isPostPaddingRequired: Bool? - public var keepUntil: Any? - /** Gets or sets the status. */ - public var status: Any? - /** Gets or sets the series timer identifier. */ - public var seriesTimerId: String? - /** Gets or sets the external series timer identifier. */ - public var externalSeriesTimerId: String? - /** Gets or sets the run time ticks. */ - public var runTimeTicks: Int64? - /** Gets or sets the program information. */ - public var programInfo: Any? - - public init(_id: String? = nil, type: String? = nil, serverId: String? = nil, externalId: String? = nil, channelId: UUID? = nil, externalChannelId: String? = nil, channelName: String? = nil, channelPrimaryImageTag: String? = nil, programId: String? = nil, externalProgramId: String? = nil, name: String? = nil, overview: String? = nil, startDate: Date? = nil, endDate: Date? = nil, serviceName: String? = nil, priority: Int? = nil, prePaddingSeconds: Int? = nil, postPaddingSeconds: Int? = nil, isPrePaddingRequired: Bool? = nil, parentBackdropItemId: String? = nil, parentBackdropImageTags: [String]? = nil, isPostPaddingRequired: Bool? = nil, keepUntil: Any? = nil, status: Any? = nil, seriesTimerId: String? = nil, externalSeriesTimerId: String? = nil, runTimeTicks: Int64? = nil, programInfo: Any? = nil) { - self._id = _id - self.type = type - self.serverId = serverId - self.externalId = externalId - self.channelId = channelId - self.externalChannelId = externalChannelId - self.channelName = channelName - self.channelPrimaryImageTag = channelPrimaryImageTag - self.programId = programId - self.externalProgramId = externalProgramId - self.name = name - self.overview = overview - self.startDate = startDate - self.endDate = endDate - self.serviceName = serviceName - self.priority = priority - self.prePaddingSeconds = prePaddingSeconds - self.postPaddingSeconds = postPaddingSeconds - self.isPrePaddingRequired = isPrePaddingRequired - self.parentBackdropItemId = parentBackdropItemId - self.parentBackdropImageTags = parentBackdropImageTags - self.isPostPaddingRequired = isPostPaddingRequired - self.keepUntil = keepUntil - self.status = status - self.seriesTimerId = seriesTimerId - self.externalSeriesTimerId = externalSeriesTimerId - self.runTimeTicks = runTimeTicks - self.programInfo = programInfo - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case type = "Type" - case serverId = "ServerId" - case externalId = "ExternalId" - case channelId = "ChannelId" - case externalChannelId = "ExternalChannelId" - case channelName = "ChannelName" - case channelPrimaryImageTag = "ChannelPrimaryImageTag" - case programId = "ProgramId" - case externalProgramId = "ExternalProgramId" - case name = "Name" - case overview = "Overview" - case startDate = "StartDate" - case endDate = "EndDate" - case serviceName = "ServiceName" - case priority = "Priority" - case prePaddingSeconds = "PrePaddingSeconds" - case postPaddingSeconds = "PostPaddingSeconds" - case isPrePaddingRequired = "IsPrePaddingRequired" - case parentBackdropItemId = "ParentBackdropItemId" - case parentBackdropImageTags = "ParentBackdropImageTags" - case isPostPaddingRequired = "IsPostPaddingRequired" - case keepUntil = "KeepUntil" - case status = "Status" - case seriesTimerId = "SeriesTimerId" - case externalSeriesTimerId = "ExternalSeriesTimerId" - case runTimeTicks = "RunTimeTicks" - case programInfo = "ProgramInfo" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LiveTvTimersBody1.swift b/JellyfinPlayer/Swaggers/Models/LiveTvTimersBody1.swift deleted file mode 100644 index 902ce34e..00000000 --- a/JellyfinPlayer/Swaggers/Models/LiveTvTimersBody1.swift +++ /dev/null @@ -1,131 +0,0 @@ -// -// LiveTvTimersBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** New timer info. */ - -public struct LiveTvTimersBody1: Codable { - - /** Id of the recording. */ - public var _id: String? - public var type: String? - /** Gets or sets the server identifier. */ - public var serverId: String? - /** Gets or sets the external identifier. */ - public var externalId: String? - /** ChannelId of the recording. */ - public var channelId: UUID? - /** Gets or sets the external channel identifier. */ - public var externalChannelId: String? - /** ChannelName of the recording. */ - public var channelName: String? - public var channelPrimaryImageTag: String? - /** Gets or sets the program identifier. */ - public var programId: String? - /** Gets or sets the external program identifier. */ - public var externalProgramId: String? - /** Name of the recording. */ - public var name: String? - /** Description of the recording. */ - public var overview: String? - /** The start date of the recording, in UTC. */ - public var startDate: Date? - /** The end date of the recording, in UTC. */ - public var endDate: Date? - /** Gets or sets the name of the service. */ - public var serviceName: String? - /** Gets or sets the priority. */ - public var priority: Int? - /** Gets or sets the pre padding seconds. */ - public var prePaddingSeconds: Int? - /** Gets or sets the post padding seconds. */ - public var postPaddingSeconds: Int? - /** Gets or sets a value indicating whether this instance is pre padding required. */ - public var isPrePaddingRequired: Bool? - /** If the item does not have any backdrops, this will hold the Id of the Parent that has one. */ - public var parentBackdropItemId: String? - /** Gets or sets the parent backdrop image tags. */ - public var parentBackdropImageTags: [String]? - /** Gets or sets a value indicating whether this instance is post padding required. */ - public var isPostPaddingRequired: Bool? - public var keepUntil: Any? - /** Gets or sets the status. */ - public var status: Any? - /** Gets or sets the series timer identifier. */ - public var seriesTimerId: String? - /** Gets or sets the external series timer identifier. */ - public var externalSeriesTimerId: String? - /** Gets or sets the run time ticks. */ - public var runTimeTicks: Int64? - /** Gets or sets the program information. */ - public var programInfo: Any? - - public init(_id: String? = nil, type: String? = nil, serverId: String? = nil, externalId: String? = nil, channelId: UUID? = nil, externalChannelId: String? = nil, channelName: String? = nil, channelPrimaryImageTag: String? = nil, programId: String? = nil, externalProgramId: String? = nil, name: String? = nil, overview: String? = nil, startDate: Date? = nil, endDate: Date? = nil, serviceName: String? = nil, priority: Int? = nil, prePaddingSeconds: Int? = nil, postPaddingSeconds: Int? = nil, isPrePaddingRequired: Bool? = nil, parentBackdropItemId: String? = nil, parentBackdropImageTags: [String]? = nil, isPostPaddingRequired: Bool? = nil, keepUntil: Any? = nil, status: Any? = nil, seriesTimerId: String? = nil, externalSeriesTimerId: String? = nil, runTimeTicks: Int64? = nil, programInfo: Any? = nil) { - self._id = _id - self.type = type - self.serverId = serverId - self.externalId = externalId - self.channelId = channelId - self.externalChannelId = externalChannelId - self.channelName = channelName - self.channelPrimaryImageTag = channelPrimaryImageTag - self.programId = programId - self.externalProgramId = externalProgramId - self.name = name - self.overview = overview - self.startDate = startDate - self.endDate = endDate - self.serviceName = serviceName - self.priority = priority - self.prePaddingSeconds = prePaddingSeconds - self.postPaddingSeconds = postPaddingSeconds - self.isPrePaddingRequired = isPrePaddingRequired - self.parentBackdropItemId = parentBackdropItemId - self.parentBackdropImageTags = parentBackdropImageTags - self.isPostPaddingRequired = isPostPaddingRequired - self.keepUntil = keepUntil - self.status = status - self.seriesTimerId = seriesTimerId - self.externalSeriesTimerId = externalSeriesTimerId - self.runTimeTicks = runTimeTicks - self.programInfo = programInfo - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case type = "Type" - case serverId = "ServerId" - case externalId = "ExternalId" - case channelId = "ChannelId" - case externalChannelId = "ExternalChannelId" - case channelName = "ChannelName" - case channelPrimaryImageTag = "ChannelPrimaryImageTag" - case programId = "ProgramId" - case externalProgramId = "ExternalProgramId" - case name = "Name" - case overview = "Overview" - case startDate = "StartDate" - case endDate = "EndDate" - case serviceName = "ServiceName" - case priority = "Priority" - case prePaddingSeconds = "PrePaddingSeconds" - case postPaddingSeconds = "PostPaddingSeconds" - case isPrePaddingRequired = "IsPrePaddingRequired" - case parentBackdropItemId = "ParentBackdropItemId" - case parentBackdropImageTags = "ParentBackdropImageTags" - case isPostPaddingRequired = "IsPostPaddingRequired" - case keepUntil = "KeepUntil" - case status = "Status" - case seriesTimerId = "SeriesTimerId" - case externalSeriesTimerId = "ExternalSeriesTimerId" - case runTimeTicks = "RunTimeTicks" - case programInfo = "ProgramInfo" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LiveTvTimersBody2.swift b/JellyfinPlayer/Swaggers/Models/LiveTvTimersBody2.swift deleted file mode 100644 index e35aa11a..00000000 --- a/JellyfinPlayer/Swaggers/Models/LiveTvTimersBody2.swift +++ /dev/null @@ -1,131 +0,0 @@ -// -// LiveTvTimersBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** New timer info. */ - -public struct LiveTvTimersBody2: Codable { - - /** Id of the recording. */ - public var _id: String? - public var type: String? - /** Gets or sets the server identifier. */ - public var serverId: String? - /** Gets or sets the external identifier. */ - public var externalId: String? - /** ChannelId of the recording. */ - public var channelId: UUID? - /** Gets or sets the external channel identifier. */ - public var externalChannelId: String? - /** ChannelName of the recording. */ - public var channelName: String? - public var channelPrimaryImageTag: String? - /** Gets or sets the program identifier. */ - public var programId: String? - /** Gets or sets the external program identifier. */ - public var externalProgramId: String? - /** Name of the recording. */ - public var name: String? - /** Description of the recording. */ - public var overview: String? - /** The start date of the recording, in UTC. */ - public var startDate: Date? - /** The end date of the recording, in UTC. */ - public var endDate: Date? - /** Gets or sets the name of the service. */ - public var serviceName: String? - /** Gets or sets the priority. */ - public var priority: Int? - /** Gets or sets the pre padding seconds. */ - public var prePaddingSeconds: Int? - /** Gets or sets the post padding seconds. */ - public var postPaddingSeconds: Int? - /** Gets or sets a value indicating whether this instance is pre padding required. */ - public var isPrePaddingRequired: Bool? - /** If the item does not have any backdrops, this will hold the Id of the Parent that has one. */ - public var parentBackdropItemId: String? - /** Gets or sets the parent backdrop image tags. */ - public var parentBackdropImageTags: [String]? - /** Gets or sets a value indicating whether this instance is post padding required. */ - public var isPostPaddingRequired: Bool? - public var keepUntil: Any? - /** Gets or sets the status. */ - public var status: Any? - /** Gets or sets the series timer identifier. */ - public var seriesTimerId: String? - /** Gets or sets the external series timer identifier. */ - public var externalSeriesTimerId: String? - /** Gets or sets the run time ticks. */ - public var runTimeTicks: Int64? - /** Gets or sets the program information. */ - public var programInfo: Any? - - public init(_id: String? = nil, type: String? = nil, serverId: String? = nil, externalId: String? = nil, channelId: UUID? = nil, externalChannelId: String? = nil, channelName: String? = nil, channelPrimaryImageTag: String? = nil, programId: String? = nil, externalProgramId: String? = nil, name: String? = nil, overview: String? = nil, startDate: Date? = nil, endDate: Date? = nil, serviceName: String? = nil, priority: Int? = nil, prePaddingSeconds: Int? = nil, postPaddingSeconds: Int? = nil, isPrePaddingRequired: Bool? = nil, parentBackdropItemId: String? = nil, parentBackdropImageTags: [String]? = nil, isPostPaddingRequired: Bool? = nil, keepUntil: Any? = nil, status: Any? = nil, seriesTimerId: String? = nil, externalSeriesTimerId: String? = nil, runTimeTicks: Int64? = nil, programInfo: Any? = nil) { - self._id = _id - self.type = type - self.serverId = serverId - self.externalId = externalId - self.channelId = channelId - self.externalChannelId = externalChannelId - self.channelName = channelName - self.channelPrimaryImageTag = channelPrimaryImageTag - self.programId = programId - self.externalProgramId = externalProgramId - self.name = name - self.overview = overview - self.startDate = startDate - self.endDate = endDate - self.serviceName = serviceName - self.priority = priority - self.prePaddingSeconds = prePaddingSeconds - self.postPaddingSeconds = postPaddingSeconds - self.isPrePaddingRequired = isPrePaddingRequired - self.parentBackdropItemId = parentBackdropItemId - self.parentBackdropImageTags = parentBackdropImageTags - self.isPostPaddingRequired = isPostPaddingRequired - self.keepUntil = keepUntil - self.status = status - self.seriesTimerId = seriesTimerId - self.externalSeriesTimerId = externalSeriesTimerId - self.runTimeTicks = runTimeTicks - self.programInfo = programInfo - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case type = "Type" - case serverId = "ServerId" - case externalId = "ExternalId" - case channelId = "ChannelId" - case externalChannelId = "ExternalChannelId" - case channelName = "ChannelName" - case channelPrimaryImageTag = "ChannelPrimaryImageTag" - case programId = "ProgramId" - case externalProgramId = "ExternalProgramId" - case name = "Name" - case overview = "Overview" - case startDate = "StartDate" - case endDate = "EndDate" - case serviceName = "ServiceName" - case priority = "Priority" - case prePaddingSeconds = "PrePaddingSeconds" - case postPaddingSeconds = "PostPaddingSeconds" - case isPrePaddingRequired = "IsPrePaddingRequired" - case parentBackdropItemId = "ParentBackdropItemId" - case parentBackdropImageTags = "ParentBackdropImageTags" - case isPostPaddingRequired = "IsPostPaddingRequired" - case keepUntil = "KeepUntil" - case status = "Status" - case seriesTimerId = "SeriesTimerId" - case externalSeriesTimerId = "ExternalSeriesTimerId" - case runTimeTicks = "RunTimeTicks" - case programInfo = "ProgramInfo" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LiveTvTunerHostsBody.swift b/JellyfinPlayer/Swaggers/Models/LiveTvTunerHostsBody.swift deleted file mode 100644 index c267a870..00000000 --- a/JellyfinPlayer/Swaggers/Models/LiveTvTunerHostsBody.swift +++ /dev/null @@ -1,55 +0,0 @@ -// -// LiveTvTunerHostsBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** New tuner host. */ - -public struct LiveTvTunerHostsBody: Codable { - - public var _id: String? - public var url: String? - public var type: String? - public var deviceId: String? - public var friendlyName: String? - public var importFavoritesOnly: Bool? - public var allowHWTranscoding: Bool? - public var enableStreamLooping: Bool? - public var source: String? - public var tunerCount: Int? - public var userAgent: String? - - public init(_id: String? = nil, url: String? = nil, type: String? = nil, deviceId: String? = nil, friendlyName: String? = nil, importFavoritesOnly: Bool? = nil, allowHWTranscoding: Bool? = nil, enableStreamLooping: Bool? = nil, source: String? = nil, tunerCount: Int? = nil, userAgent: String? = nil) { - self._id = _id - self.url = url - self.type = type - self.deviceId = deviceId - self.friendlyName = friendlyName - self.importFavoritesOnly = importFavoritesOnly - self.allowHWTranscoding = allowHWTranscoding - self.enableStreamLooping = enableStreamLooping - self.source = source - self.tunerCount = tunerCount - self.userAgent = userAgent - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case url = "Url" - case type = "Type" - case deviceId = "DeviceId" - case friendlyName = "FriendlyName" - case importFavoritesOnly = "ImportFavoritesOnly" - case allowHWTranscoding = "AllowHWTranscoding" - case enableStreamLooping = "EnableStreamLooping" - case source = "Source" - case tunerCount = "TunerCount" - case userAgent = "UserAgent" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LiveTvTunerHostsBody1.swift b/JellyfinPlayer/Swaggers/Models/LiveTvTunerHostsBody1.swift deleted file mode 100644 index 0e91231d..00000000 --- a/JellyfinPlayer/Swaggers/Models/LiveTvTunerHostsBody1.swift +++ /dev/null @@ -1,55 +0,0 @@ -// -// LiveTvTunerHostsBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** New tuner host. */ - -public struct LiveTvTunerHostsBody1: Codable { - - public var _id: String? - public var url: String? - public var type: String? - public var deviceId: String? - public var friendlyName: String? - public var importFavoritesOnly: Bool? - public var allowHWTranscoding: Bool? - public var enableStreamLooping: Bool? - public var source: String? - public var tunerCount: Int? - public var userAgent: String? - - public init(_id: String? = nil, url: String? = nil, type: String? = nil, deviceId: String? = nil, friendlyName: String? = nil, importFavoritesOnly: Bool? = nil, allowHWTranscoding: Bool? = nil, enableStreamLooping: Bool? = nil, source: String? = nil, tunerCount: Int? = nil, userAgent: String? = nil) { - self._id = _id - self.url = url - self.type = type - self.deviceId = deviceId - self.friendlyName = friendlyName - self.importFavoritesOnly = importFavoritesOnly - self.allowHWTranscoding = allowHWTranscoding - self.enableStreamLooping = enableStreamLooping - self.source = source - self.tunerCount = tunerCount - self.userAgent = userAgent - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case url = "Url" - case type = "Type" - case deviceId = "DeviceId" - case friendlyName = "FriendlyName" - case importFavoritesOnly = "ImportFavoritesOnly" - case allowHWTranscoding = "AllowHWTranscoding" - case enableStreamLooping = "EnableStreamLooping" - case source = "Source" - case tunerCount = "TunerCount" - case userAgent = "UserAgent" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LiveTvTunerHostsBody2.swift b/JellyfinPlayer/Swaggers/Models/LiveTvTunerHostsBody2.swift deleted file mode 100644 index 9baad7e4..00000000 --- a/JellyfinPlayer/Swaggers/Models/LiveTvTunerHostsBody2.swift +++ /dev/null @@ -1,55 +0,0 @@ -// -// LiveTvTunerHostsBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** New tuner host. */ - -public struct LiveTvTunerHostsBody2: Codable { - - public var _id: String? - public var url: String? - public var type: String? - public var deviceId: String? - public var friendlyName: String? - public var importFavoritesOnly: Bool? - public var allowHWTranscoding: Bool? - public var enableStreamLooping: Bool? - public var source: String? - public var tunerCount: Int? - public var userAgent: String? - - public init(_id: String? = nil, url: String? = nil, type: String? = nil, deviceId: String? = nil, friendlyName: String? = nil, importFavoritesOnly: Bool? = nil, allowHWTranscoding: Bool? = nil, enableStreamLooping: Bool? = nil, source: String? = nil, tunerCount: Int? = nil, userAgent: String? = nil) { - self._id = _id - self.url = url - self.type = type - self.deviceId = deviceId - self.friendlyName = friendlyName - self.importFavoritesOnly = importFavoritesOnly - self.allowHWTranscoding = allowHWTranscoding - self.enableStreamLooping = enableStreamLooping - self.source = source - self.tunerCount = tunerCount - self.userAgent = userAgent - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case url = "Url" - case type = "Type" - case deviceId = "DeviceId" - case friendlyName = "FriendlyName" - case importFavoritesOnly = "ImportFavoritesOnly" - case allowHWTranscoding = "AllowHWTranscoding" - case enableStreamLooping = "EnableStreamLooping" - case source = "Source" - case tunerCount = "TunerCount" - case userAgent = "UserAgent" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LocalizationOption.swift b/JellyfinPlayer/Swaggers/Models/LocalizationOption.swift deleted file mode 100644 index 904f5a57..00000000 --- a/JellyfinPlayer/Swaggers/Models/LocalizationOption.swift +++ /dev/null @@ -1,27 +0,0 @@ -// -// LocalizationOption.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct LocalizationOption: Codable { - - public var name: String? - public var value: String? - - public init(name: String? = nil, value: String? = nil) { - self.name = name - self.value = value - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case value = "Value" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LocationType.swift b/JellyfinPlayer/Swaggers/Models/LocationType.swift deleted file mode 100644 index 5a2ecad9..00000000 --- a/JellyfinPlayer/Swaggers/Models/LocationType.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// LocationType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Enum LocationType. */ -public enum LocationType: String, Codable { - case fileSystem = "FileSystem" - case remote = "Remote" - case virtual = "Virtual" - case offline = "Offline" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/LogFile.swift b/JellyfinPlayer/Swaggers/Models/LogFile.swift deleted file mode 100644 index 5cba115d..00000000 --- a/JellyfinPlayer/Swaggers/Models/LogFile.swift +++ /dev/null @@ -1,37 +0,0 @@ -// -// LogFile.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct LogFile: Codable { - - /** Gets or sets the date created. */ - public var dateCreated: Date? - /** Gets or sets the date modified. */ - public var dateModified: Date? - /** Gets or sets the size. */ - public var size: Int64? - /** Gets or sets the name. */ - public var name: String? - - public init(dateCreated: Date? = nil, dateModified: Date? = nil, size: Int64? = nil, name: String? = nil) { - self.dateCreated = dateCreated - self.dateModified = dateModified - self.size = size - self.name = name - } - - public enum CodingKeys: String, CodingKey { - case dateCreated = "DateCreated" - case dateModified = "DateModified" - case size = "Size" - case name = "Name" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/LogLevel.swift b/JellyfinPlayer/Swaggers/Models/LogLevel.swift deleted file mode 100644 index 564b3afa..00000000 --- a/JellyfinPlayer/Swaggers/Models/LogLevel.swift +++ /dev/null @@ -1,19 +0,0 @@ -// -// LogLevel.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum LogLevel: String, Codable { - case trace = "Trace" - case debug = "Debug" - case information = "Information" - case warning = "Warning" - case error = "Error" - case critical = "Critical" - case _none = "None" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/MediaAttachment.swift b/JellyfinPlayer/Swaggers/Models/MediaAttachment.swift deleted file mode 100644 index a54d4866..00000000 --- a/JellyfinPlayer/Swaggers/Models/MediaAttachment.swift +++ /dev/null @@ -1,50 +0,0 @@ -// -// MediaAttachment.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class MediaAttachment. */ - -public struct MediaAttachment: Codable { - - /** Gets or sets the codec. */ - public var codec: String? - /** Gets or sets the codec tag. */ - public var codecTag: String? - /** Gets or sets the comment. */ - public var comment: String? - /** Gets or sets the index. */ - public var index: Int? - /** Gets or sets the filename. */ - public var fileName: String? - /** Gets or sets the MIME type. */ - public var mimeType: String? - /** Gets or sets the delivery URL. */ - public var deliveryUrl: String? - - public init(codec: String? = nil, codecTag: String? = nil, comment: String? = nil, index: Int? = nil, fileName: String? = nil, mimeType: String? = nil, deliveryUrl: String? = nil) { - self.codec = codec - self.codecTag = codecTag - self.comment = comment - self.index = index - self.fileName = fileName - self.mimeType = mimeType - self.deliveryUrl = deliveryUrl - } - - public enum CodingKeys: String, CodingKey { - case codec = "Codec" - case codecTag = "CodecTag" - case comment = "Comment" - case index = "Index" - case fileName = "FileName" - case mimeType = "MimeType" - case deliveryUrl = "DeliveryUrl" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/MediaEncoderPathBody.swift b/JellyfinPlayer/Swaggers/Models/MediaEncoderPathBody.swift deleted file mode 100644 index 4602abdb..00000000 --- a/JellyfinPlayer/Swaggers/Models/MediaEncoderPathBody.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// MediaEncoderPathBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Media encoder path form body. */ - -public struct MediaEncoderPathBody: Codable { - - /** Gets or sets media encoder path. */ - public var path: String? - /** Gets or sets media encoder path type. */ - public var pathType: String? - - public init(path: String? = nil, pathType: String? = nil) { - self.path = path - self.pathType = pathType - } - - public enum CodingKeys: String, CodingKey { - case path = "Path" - case pathType = "PathType" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/MediaEncoderPathBody1.swift b/JellyfinPlayer/Swaggers/Models/MediaEncoderPathBody1.swift deleted file mode 100644 index df8966bd..00000000 --- a/JellyfinPlayer/Swaggers/Models/MediaEncoderPathBody1.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// MediaEncoderPathBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Media encoder path form body. */ - -public struct MediaEncoderPathBody1: Codable { - - /** Gets or sets media encoder path. */ - public var path: String? - /** Gets or sets media encoder path type. */ - public var pathType: String? - - public init(path: String? = nil, pathType: String? = nil) { - self.path = path - self.pathType = pathType - } - - public enum CodingKeys: String, CodingKey { - case path = "Path" - case pathType = "PathType" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/MediaEncoderPathBody2.swift b/JellyfinPlayer/Swaggers/Models/MediaEncoderPathBody2.swift deleted file mode 100644 index 1033c587..00000000 --- a/JellyfinPlayer/Swaggers/Models/MediaEncoderPathBody2.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// MediaEncoderPathBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Media encoder path form body. */ - -public struct MediaEncoderPathBody2: Codable { - - /** Gets or sets media encoder path. */ - public var path: String? - /** Gets or sets media encoder path type. */ - public var pathType: String? - - public init(path: String? = nil, pathType: String? = nil) { - self.path = path - self.pathType = pathType - } - - public enum CodingKeys: String, CodingKey { - case path = "Path" - case pathType = "PathType" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/MediaEncoderPathDto.swift b/JellyfinPlayer/Swaggers/Models/MediaEncoderPathDto.swift deleted file mode 100644 index 12ad1453..00000000 --- a/JellyfinPlayer/Swaggers/Models/MediaEncoderPathDto.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// MediaEncoderPathDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Media Encoder Path Dto. */ - -public struct MediaEncoderPathDto: Codable { - - /** Gets or sets media encoder path. */ - public var path: String? - /** Gets or sets media encoder path type. */ - public var pathType: String? - - public init(path: String? = nil, pathType: String? = nil) { - self.path = path - self.pathType = pathType - } - - public enum CodingKeys: String, CodingKey { - case path = "Path" - case pathType = "PathType" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/MediaPathDto.swift b/JellyfinPlayer/Swaggers/Models/MediaPathDto.swift deleted file mode 100644 index 72c1fdf9..00000000 --- a/JellyfinPlayer/Swaggers/Models/MediaPathDto.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// MediaPathDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Media Path dto. */ - -public struct MediaPathDto: Codable { - - /** Gets or sets the name of the library. */ - public var name: String - /** Gets or sets the path to add. */ - public var path: String? - /** Gets or sets the path info. */ - public var pathInfo: AllOfMediaPathDtoPathInfo? - - public init(name: String, path: String? = nil, pathInfo: AllOfMediaPathDtoPathInfo? = nil) { - self.name = name - self.path = path - self.pathInfo = pathInfo - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case path = "Path" - case pathInfo = "PathInfo" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/MediaPathInfo.swift b/JellyfinPlayer/Swaggers/Models/MediaPathInfo.swift deleted file mode 100644 index 0df7a1ff..00000000 --- a/JellyfinPlayer/Swaggers/Models/MediaPathInfo.swift +++ /dev/null @@ -1,27 +0,0 @@ -// -// MediaPathInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct MediaPathInfo: Codable { - - public var path: String? - public var networkPath: String? - - public init(path: String? = nil, networkPath: String? = nil) { - self.path = path - self.networkPath = networkPath - } - - public enum CodingKeys: String, CodingKey { - case path = "Path" - case networkPath = "NetworkPath" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/MediaProtocol.swift b/JellyfinPlayer/Swaggers/Models/MediaProtocol.swift deleted file mode 100644 index 05eef6a9..00000000 --- a/JellyfinPlayer/Swaggers/Models/MediaProtocol.swift +++ /dev/null @@ -1,19 +0,0 @@ -// -// MediaProtocol.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum MediaProtocol: String, Codable { - case file = "File" - case http = "Http" - case rtmp = "Rtmp" - case rtsp = "Rtsp" - case udp = "Udp" - case rtp = "Rtp" - case ftp = "Ftp" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/MediaSourceInfo.swift b/JellyfinPlayer/Swaggers/Models/MediaSourceInfo.swift deleted file mode 100644 index 3cb1283b..00000000 --- a/JellyfinPlayer/Swaggers/Models/MediaSourceInfo.swift +++ /dev/null @@ -1,148 +0,0 @@ -// -// MediaSourceInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct MediaSourceInfo: Codable { - - public var _protocol: AllOfMediaSourceInfoModelProtocol? - public var _id: String? - public var path: String? - public var encoderPath: String? - public var encoderProtocol: AllOfMediaSourceInfoEncoderProtocol? - public var type: AllOfMediaSourceInfoModelType? - public var container: String? - public var size: Int64? - public var name: String? - /** Differentiate internet url vs local network. */ - public var isRemote: Bool? - public var eTag: String? - public var runTimeTicks: Int64? - public var readAtNativeFramerate: Bool? - public var ignoreDts: Bool? - public var ignoreIndex: Bool? - public var genPtsInput: Bool? - public var supportsTranscoding: Bool? - public var supportsDirectStream: Bool? - public var supportsDirectPlay: Bool? - public var isInfiniteStream: Bool? - public var requiresOpening: Bool? - public var openToken: String? - public var requiresClosing: Bool? - public var liveStreamId: String? - public var bufferMs: Int? - public var requiresLooping: Bool? - public var supportsProbing: Bool? - public var videoType: AllOfMediaSourceInfoVideoType? - public var isoType: AllOfMediaSourceInfoIsoType? - public var video3DFormat: AllOfMediaSourceInfoVideo3DFormat? - public var mediaStreams: [MediaStream]? - public var mediaAttachments: [MediaAttachment]? - public var formats: [String]? - public var bitrate: Int? - public var timestamp: AllOfMediaSourceInfoTimestamp? - public var requiredHttpHeaders: [String:String]? - public var transcodingUrl: String? - public var transcodingSubProtocol: String? - public var transcodingContainer: String? - public var analyzeDurationMs: Int? - public var defaultAudioStreamIndex: Int? - public var defaultSubtitleStreamIndex: Int? - - public init(_protocol: AllOfMediaSourceInfoModelProtocol? = nil, _id: String? = nil, path: String? = nil, encoderPath: String? = nil, encoderProtocol: AllOfMediaSourceInfoEncoderProtocol? = nil, type: AllOfMediaSourceInfoModelType? = nil, container: String? = nil, size: Int64? = nil, name: String? = nil, isRemote: Bool? = nil, eTag: String? = nil, runTimeTicks: Int64? = nil, readAtNativeFramerate: Bool? = nil, ignoreDts: Bool? = nil, ignoreIndex: Bool? = nil, genPtsInput: Bool? = nil, supportsTranscoding: Bool? = nil, supportsDirectStream: Bool? = nil, supportsDirectPlay: Bool? = nil, isInfiniteStream: Bool? = nil, requiresOpening: Bool? = nil, openToken: String? = nil, requiresClosing: Bool? = nil, liveStreamId: String? = nil, bufferMs: Int? = nil, requiresLooping: Bool? = nil, supportsProbing: Bool? = nil, videoType: AllOfMediaSourceInfoVideoType? = nil, isoType: AllOfMediaSourceInfoIsoType? = nil, video3DFormat: AllOfMediaSourceInfoVideo3DFormat? = nil, mediaStreams: [MediaStream]? = nil, mediaAttachments: [MediaAttachment]? = nil, formats: [String]? = nil, bitrate: Int? = nil, timestamp: AllOfMediaSourceInfoTimestamp? = nil, requiredHttpHeaders: [String:String]? = nil, transcodingUrl: String? = nil, transcodingSubProtocol: String? = nil, transcodingContainer: String? = nil, analyzeDurationMs: Int? = nil, defaultAudioStreamIndex: Int? = nil, defaultSubtitleStreamIndex: Int? = nil) { - self._protocol = _protocol - self._id = _id - self.path = path - self.encoderPath = encoderPath - self.encoderProtocol = encoderProtocol - self.type = type - self.container = container - self.size = size - self.name = name - self.isRemote = isRemote - self.eTag = eTag - self.runTimeTicks = runTimeTicks - self.readAtNativeFramerate = readAtNativeFramerate - self.ignoreDts = ignoreDts - self.ignoreIndex = ignoreIndex - self.genPtsInput = genPtsInput - self.supportsTranscoding = supportsTranscoding - self.supportsDirectStream = supportsDirectStream - self.supportsDirectPlay = supportsDirectPlay - self.isInfiniteStream = isInfiniteStream - self.requiresOpening = requiresOpening - self.openToken = openToken - self.requiresClosing = requiresClosing - self.liveStreamId = liveStreamId - self.bufferMs = bufferMs - self.requiresLooping = requiresLooping - self.supportsProbing = supportsProbing - self.videoType = videoType - self.isoType = isoType - self.video3DFormat = video3DFormat - self.mediaStreams = mediaStreams - self.mediaAttachments = mediaAttachments - self.formats = formats - self.bitrate = bitrate - self.timestamp = timestamp - self.requiredHttpHeaders = requiredHttpHeaders - self.transcodingUrl = transcodingUrl - self.transcodingSubProtocol = transcodingSubProtocol - self.transcodingContainer = transcodingContainer - self.analyzeDurationMs = analyzeDurationMs - self.defaultAudioStreamIndex = defaultAudioStreamIndex - self.defaultSubtitleStreamIndex = defaultSubtitleStreamIndex - } - - public enum CodingKeys: String, CodingKey { - case _protocol = "Protocol" - case _id = "Id" - case path = "Path" - case encoderPath = "EncoderPath" - case encoderProtocol = "EncoderProtocol" - case type = "Type" - case container = "Container" - case size = "Size" - case name = "Name" - case isRemote = "IsRemote" - case eTag = "ETag" - case runTimeTicks = "RunTimeTicks" - case readAtNativeFramerate = "ReadAtNativeFramerate" - case ignoreDts = "IgnoreDts" - case ignoreIndex = "IgnoreIndex" - case genPtsInput = "GenPtsInput" - case supportsTranscoding = "SupportsTranscoding" - case supportsDirectStream = "SupportsDirectStream" - case supportsDirectPlay = "SupportsDirectPlay" - case isInfiniteStream = "IsInfiniteStream" - case requiresOpening = "RequiresOpening" - case openToken = "OpenToken" - case requiresClosing = "RequiresClosing" - case liveStreamId = "LiveStreamId" - case bufferMs = "BufferMs" - case requiresLooping = "RequiresLooping" - case supportsProbing = "SupportsProbing" - case videoType = "VideoType" - case isoType = "IsoType" - case video3DFormat = "Video3DFormat" - case mediaStreams = "MediaStreams" - case mediaAttachments = "MediaAttachments" - case formats = "Formats" - case bitrate = "Bitrate" - case timestamp = "Timestamp" - case requiredHttpHeaders = "RequiredHttpHeaders" - case transcodingUrl = "TranscodingUrl" - case transcodingSubProtocol = "TranscodingSubProtocol" - case transcodingContainer = "TranscodingContainer" - case analyzeDurationMs = "AnalyzeDurationMs" - case defaultAudioStreamIndex = "DefaultAudioStreamIndex" - case defaultSubtitleStreamIndex = "DefaultSubtitleStreamIndex" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/MediaSourceType.swift b/JellyfinPlayer/Swaggers/Models/MediaSourceType.swift deleted file mode 100644 index 2af5b7a8..00000000 --- a/JellyfinPlayer/Swaggers/Models/MediaSourceType.swift +++ /dev/null @@ -1,15 +0,0 @@ -// -// MediaSourceType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum MediaSourceType: String, Codable { - case _default = "Default" - case grouping = "Grouping" - case placeholder = "Placeholder" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/MediaStream.swift b/JellyfinPlayer/Swaggers/Models/MediaStream.swift deleted file mode 100644 index 2638c7de..00000000 --- a/JellyfinPlayer/Swaggers/Models/MediaStream.swift +++ /dev/null @@ -1,203 +0,0 @@ -// -// MediaStream.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class MediaStream. */ - -public struct MediaStream: Codable { - - /** Gets or sets the codec. */ - public var codec: String? - /** Gets or sets the codec tag. */ - public var codecTag: String? - /** Gets or sets the language. */ - public var language: String? - /** Gets or sets the color range. */ - public var colorRange: String? - /** Gets or sets the color space. */ - public var colorSpace: String? - /** Gets or sets the color transfer. */ - public var colorTransfer: String? - /** Gets or sets the color primaries. */ - public var colorPrimaries: String? - /** Gets or sets the comment. */ - public var comment: String? - /** Gets or sets the time base. */ - public var timeBase: String? - /** Gets or sets the codec time base. */ - public var codecTimeBase: String? - /** Gets or sets the title. */ - public var title: String? - /** Gets or sets the video range. */ - public var videoRange: String? - public var localizedUndefined: String? - public var localizedDefault: String? - public var localizedForced: String? - public var displayTitle: String? - public var nalLengthSize: String? - /** Gets or sets a value indicating whether this instance is interlaced. */ - public var isInterlaced: Bool? - public var isAVC: Bool? - /** Gets or sets the channel layout. */ - public var channelLayout: String? - /** Gets or sets the bit rate. */ - public var bitRate: Int? - /** Gets or sets the bit depth. */ - public var bitDepth: Int? - /** Gets or sets the reference frames. */ - public var refFrames: Int? - /** Gets or sets the length of the packet. */ - public var packetLength: Int? - /** Gets or sets the channels. */ - public var channels: Int? - /** Gets or sets the sample rate. */ - public var sampleRate: Int? - /** Gets or sets a value indicating whether this instance is default. */ - public var isDefault: Bool? - /** Gets or sets a value indicating whether this instance is forced. */ - public var isForced: Bool? - /** Gets or sets the height. */ - public var height: Int? - /** Gets or sets the width. */ - public var width: Int? - /** Gets or sets the average frame rate. */ - public var averageFrameRate: Float? - /** Gets or sets the real frame rate. */ - public var realFrameRate: Float? - /** Gets or sets the profile. */ - public var profile: String? - /** Gets or sets the type. */ - public var type: AllOfMediaStreamModelType? - /** Gets or sets the aspect ratio. */ - public var aspectRatio: String? - /** Gets or sets the index. */ - public var index: Int? - /** Gets or sets the score. */ - public var score: Int? - /** Gets or sets a value indicating whether this instance is external. */ - public var isExternal: Bool? - /** Gets or sets the method. */ - public var deliveryMethod: AllOfMediaStreamDeliveryMethod? - /** Gets or sets the delivery URL. */ - public var deliveryUrl: String? - /** Gets or sets a value indicating whether this instance is external URL. */ - public var isExternalUrl: Bool? - public var isTextSubtitleStream: Bool? - /** Gets or sets a value indicating whether [supports external stream]. */ - public var supportsExternalStream: Bool? - /** Gets or sets the filename. */ - public var path: String? - /** Gets or sets the pixel format. */ - public var pixelFormat: String? - /** Gets or sets the level. */ - public var level: Double? - /** Gets a value indicating whether this instance is anamorphic. */ - public var isAnamorphic: Bool? - - public init(codec: String? = nil, codecTag: String? = nil, language: String? = nil, colorRange: String? = nil, colorSpace: String? = nil, colorTransfer: String? = nil, colorPrimaries: String? = nil, comment: String? = nil, timeBase: String? = nil, codecTimeBase: String? = nil, title: String? = nil, videoRange: String? = nil, localizedUndefined: String? = nil, localizedDefault: String? = nil, localizedForced: String? = nil, displayTitle: String? = nil, nalLengthSize: String? = nil, isInterlaced: Bool? = nil, isAVC: Bool? = nil, channelLayout: String? = nil, bitRate: Int? = nil, bitDepth: Int? = nil, refFrames: Int? = nil, packetLength: Int? = nil, channels: Int? = nil, sampleRate: Int? = nil, isDefault: Bool? = nil, isForced: Bool? = nil, height: Int? = nil, width: Int? = nil, averageFrameRate: Float? = nil, realFrameRate: Float? = nil, profile: String? = nil, type: AllOfMediaStreamModelType? = nil, aspectRatio: String? = nil, index: Int? = nil, score: Int? = nil, isExternal: Bool? = nil, deliveryMethod: AllOfMediaStreamDeliveryMethod? = nil, deliveryUrl: String? = nil, isExternalUrl: Bool? = nil, isTextSubtitleStream: Bool? = nil, supportsExternalStream: Bool? = nil, path: String? = nil, pixelFormat: String? = nil, level: Double? = nil, isAnamorphic: Bool? = nil) { - self.codec = codec - self.codecTag = codecTag - self.language = language - self.colorRange = colorRange - self.colorSpace = colorSpace - self.colorTransfer = colorTransfer - self.colorPrimaries = colorPrimaries - self.comment = comment - self.timeBase = timeBase - self.codecTimeBase = codecTimeBase - self.title = title - self.videoRange = videoRange - self.localizedUndefined = localizedUndefined - self.localizedDefault = localizedDefault - self.localizedForced = localizedForced - self.displayTitle = displayTitle - self.nalLengthSize = nalLengthSize - self.isInterlaced = isInterlaced - self.isAVC = isAVC - self.channelLayout = channelLayout - self.bitRate = bitRate - self.bitDepth = bitDepth - self.refFrames = refFrames - self.packetLength = packetLength - self.channels = channels - self.sampleRate = sampleRate - self.isDefault = isDefault - self.isForced = isForced - self.height = height - self.width = width - self.averageFrameRate = averageFrameRate - self.realFrameRate = realFrameRate - self.profile = profile - self.type = type - self.aspectRatio = aspectRatio - self.index = index - self.score = score - self.isExternal = isExternal - self.deliveryMethod = deliveryMethod - self.deliveryUrl = deliveryUrl - self.isExternalUrl = isExternalUrl - self.isTextSubtitleStream = isTextSubtitleStream - self.supportsExternalStream = supportsExternalStream - self.path = path - self.pixelFormat = pixelFormat - self.level = level - self.isAnamorphic = isAnamorphic - } - - public enum CodingKeys: String, CodingKey { - case codec = "Codec" - case codecTag = "CodecTag" - case language = "Language" - case colorRange = "ColorRange" - case colorSpace = "ColorSpace" - case colorTransfer = "ColorTransfer" - case colorPrimaries = "ColorPrimaries" - case comment = "Comment" - case timeBase = "TimeBase" - case codecTimeBase = "CodecTimeBase" - case title = "Title" - case videoRange = "VideoRange" - case localizedUndefined - case localizedDefault - case localizedForced - case displayTitle = "DisplayTitle" - case nalLengthSize = "NalLengthSize" - case isInterlaced = "IsInterlaced" - case isAVC = "IsAVC" - case channelLayout = "ChannelLayout" - case bitRate = "BitRate" - case bitDepth = "BitDepth" - case refFrames = "RefFrames" - case packetLength = "PacketLength" - case channels = "Channels" - case sampleRate = "SampleRate" - case isDefault = "IsDefault" - case isForced = "IsForced" - case height = "Height" - case width = "Width" - case averageFrameRate = "AverageFrameRate" - case realFrameRate = "RealFrameRate" - case profile = "Profile" - case type = "Type" - case aspectRatio = "AspectRatio" - case index = "Index" - case score = "Score" - case isExternal = "IsExternal" - case deliveryMethod = "DeliveryMethod" - case deliveryUrl = "DeliveryUrl" - case isExternalUrl = "IsExternalUrl" - case isTextSubtitleStream = "IsTextSubtitleStream" - case supportsExternalStream = "SupportsExternalStream" - case path = "Path" - case pixelFormat = "PixelFormat" - case level = "Level" - case isAnamorphic = "IsAnamorphic" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/MediaStreamType.swift b/JellyfinPlayer/Swaggers/Models/MediaStreamType.swift deleted file mode 100644 index 6f249f6f..00000000 --- a/JellyfinPlayer/Swaggers/Models/MediaStreamType.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// MediaStreamType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Enum MediaStreamType. */ -public enum MediaStreamType: String, Codable { - case audio = "Audio" - case video = "Video" - case subtitle = "Subtitle" - case embeddedImage = "EmbeddedImage" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/MediaUpdateInfoDto.swift b/JellyfinPlayer/Swaggers/Models/MediaUpdateInfoDto.swift deleted file mode 100644 index ca368db1..00000000 --- a/JellyfinPlayer/Swaggers/Models/MediaUpdateInfoDto.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// MediaUpdateInfoDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Media Update Info Dto. */ - -public struct MediaUpdateInfoDto: Codable { - - /** Gets or sets the list of updates. */ - public var updates: [MediaUpdateInfoPathDto]? - - public init(updates: [MediaUpdateInfoPathDto]? = nil) { - self.updates = updates - } - - public enum CodingKeys: String, CodingKey { - case updates = "Updates" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/MediaUpdateInfoPathDto.swift b/JellyfinPlayer/Swaggers/Models/MediaUpdateInfoPathDto.swift deleted file mode 100644 index af1ac3ee..00000000 --- a/JellyfinPlayer/Swaggers/Models/MediaUpdateInfoPathDto.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// MediaUpdateInfoPathDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The media update info path. */ - -public struct MediaUpdateInfoPathDto: Codable { - - /** Gets or sets media path. */ - public var path: String? - /** Gets or sets media update type. Created, Modified, Deleted. */ - public var updateType: String? - - public init(path: String? = nil, updateType: String? = nil) { - self.path = path - self.updateType = updateType - } - - public enum CodingKeys: String, CodingKey { - case path = "Path" - case updateType = "UpdateType" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/MediaUpdatedBody.swift b/JellyfinPlayer/Swaggers/Models/MediaUpdatedBody.swift deleted file mode 100644 index 25f1d298..00000000 --- a/JellyfinPlayer/Swaggers/Models/MediaUpdatedBody.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// MediaUpdatedBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The update paths. */ - -public struct MediaUpdatedBody: Codable { - - /** Gets or sets the list of updates. */ - public var updates: [MediaUpdateInfoPathDto]? - - public init(updates: [MediaUpdateInfoPathDto]? = nil) { - self.updates = updates - } - - public enum CodingKeys: String, CodingKey { - case updates = "Updates" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/MediaUpdatedBody1.swift b/JellyfinPlayer/Swaggers/Models/MediaUpdatedBody1.swift deleted file mode 100644 index c876ed79..00000000 --- a/JellyfinPlayer/Swaggers/Models/MediaUpdatedBody1.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// MediaUpdatedBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The update paths. */ - -public struct MediaUpdatedBody1: Codable { - - /** Gets or sets the list of updates. */ - public var updates: [MediaUpdateInfoPathDto]? - - public init(updates: [MediaUpdateInfoPathDto]? = nil) { - self.updates = updates - } - - public enum CodingKeys: String, CodingKey { - case updates = "Updates" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/MediaUpdatedBody2.swift b/JellyfinPlayer/Swaggers/Models/MediaUpdatedBody2.swift deleted file mode 100644 index 6ef7e0c4..00000000 --- a/JellyfinPlayer/Swaggers/Models/MediaUpdatedBody2.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// MediaUpdatedBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The update paths. */ - -public struct MediaUpdatedBody2: Codable { - - /** Gets or sets the list of updates. */ - public var updates: [MediaUpdateInfoPathDto]? - - public init(updates: [MediaUpdateInfoPathDto]? = nil) { - self.updates = updates - } - - public enum CodingKeys: String, CodingKey { - case updates = "Updates" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/MediaUrl.swift b/JellyfinPlayer/Swaggers/Models/MediaUrl.swift deleted file mode 100644 index 025aba65..00000000 --- a/JellyfinPlayer/Swaggers/Models/MediaUrl.swift +++ /dev/null @@ -1,27 +0,0 @@ -// -// MediaUrl.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct MediaUrl: Codable { - - public var url: String? - public var name: String? - - public init(url: String? = nil, name: String? = nil) { - self.url = url - self.name = name - } - - public enum CodingKeys: String, CodingKey { - case url = "Url" - case name = "Name" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/MessageCommand.swift b/JellyfinPlayer/Swaggers/Models/MessageCommand.swift deleted file mode 100644 index 02a3fb43..00000000 --- a/JellyfinPlayer/Swaggers/Models/MessageCommand.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// MessageCommand.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct MessageCommand: Codable { - - public var header: String? - public var text: String - public var timeoutMs: Int64? - - public init(header: String? = nil, text: String, timeoutMs: Int64? = nil) { - self.header = header - self.text = text - self.timeoutMs = timeoutMs - } - - public enum CodingKeys: String, CodingKey { - case header = "Header" - case text = "Text" - case timeoutMs = "TimeoutMs" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/MetadataEditorInfo.swift b/JellyfinPlayer/Swaggers/Models/MetadataEditorInfo.swift deleted file mode 100644 index 828fc694..00000000 --- a/JellyfinPlayer/Swaggers/Models/MetadataEditorInfo.swift +++ /dev/null @@ -1,39 +0,0 @@ -// -// MetadataEditorInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct MetadataEditorInfo: Codable { - - public var parentalRatingOptions: [ParentalRating]? - public var countries: [CountryInfo]? - public var cultures: [CultureDto]? - public var externalIdInfos: [ExternalIdInfo]? - public var contentType: String? - public var contentTypeOptions: [NameValuePair]? - - public init(parentalRatingOptions: [ParentalRating]? = nil, countries: [CountryInfo]? = nil, cultures: [CultureDto]? = nil, externalIdInfos: [ExternalIdInfo]? = nil, contentType: String? = nil, contentTypeOptions: [NameValuePair]? = nil) { - self.parentalRatingOptions = parentalRatingOptions - self.countries = countries - self.cultures = cultures - self.externalIdInfos = externalIdInfos - self.contentType = contentType - self.contentTypeOptions = contentTypeOptions - } - - public enum CodingKeys: String, CodingKey { - case parentalRatingOptions = "ParentalRatingOptions" - case countries = "Countries" - case cultures = "Cultures" - case externalIdInfos = "ExternalIdInfos" - case contentType = "ContentType" - case contentTypeOptions = "ContentTypeOptions" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/MetadataField.swift b/JellyfinPlayer/Swaggers/Models/MetadataField.swift deleted file mode 100644 index de17192a..00000000 --- a/JellyfinPlayer/Swaggers/Models/MetadataField.swift +++ /dev/null @@ -1,22 +0,0 @@ -// -// MetadataField.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Enum MetadataFields. */ -public enum MetadataField: String, Codable { - case cast = "Cast" - case genres = "Genres" - case productionLocations = "ProductionLocations" - case studios = "Studios" - case tags = "Tags" - case name = "Name" - case overview = "Overview" - case runtime = "Runtime" - case officialRating = "OfficialRating" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/MetadataOptions.swift b/JellyfinPlayer/Swaggers/Models/MetadataOptions.swift deleted file mode 100644 index 119a7da0..00000000 --- a/JellyfinPlayer/Swaggers/Models/MetadataOptions.swift +++ /dev/null @@ -1,43 +0,0 @@ -// -// MetadataOptions.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class MetadataOptions. */ - -public struct MetadataOptions: Codable { - - public var itemType: String? - public var disabledMetadataSavers: [String]? - public var localMetadataReaderOrder: [String]? - public var disabledMetadataFetchers: [String]? - public var metadataFetcherOrder: [String]? - public var disabledImageFetchers: [String]? - public var imageFetcherOrder: [String]? - - public init(itemType: String? = nil, disabledMetadataSavers: [String]? = nil, localMetadataReaderOrder: [String]? = nil, disabledMetadataFetchers: [String]? = nil, metadataFetcherOrder: [String]? = nil, disabledImageFetchers: [String]? = nil, imageFetcherOrder: [String]? = nil) { - self.itemType = itemType - self.disabledMetadataSavers = disabledMetadataSavers - self.localMetadataReaderOrder = localMetadataReaderOrder - self.disabledMetadataFetchers = disabledMetadataFetchers - self.metadataFetcherOrder = metadataFetcherOrder - self.disabledImageFetchers = disabledImageFetchers - self.imageFetcherOrder = imageFetcherOrder - } - - public enum CodingKeys: String, CodingKey { - case itemType = "ItemType" - case disabledMetadataSavers = "DisabledMetadataSavers" - case localMetadataReaderOrder = "LocalMetadataReaderOrder" - case disabledMetadataFetchers = "DisabledMetadataFetchers" - case metadataFetcherOrder = "MetadataFetcherOrder" - case disabledImageFetchers = "DisabledImageFetchers" - case imageFetcherOrder = "ImageFetcherOrder" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/MetadataRefreshMode.swift b/JellyfinPlayer/Swaggers/Models/MetadataRefreshMode.swift deleted file mode 100644 index 8899cb23..00000000 --- a/JellyfinPlayer/Swaggers/Models/MetadataRefreshMode.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// MetadataRefreshMode.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** (Optional) Specifies the metadata refresh mode. */ - -public struct MetadataRefreshMode: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ModelType.swift b/JellyfinPlayer/Swaggers/Models/ModelType.swift deleted file mode 100644 index fc5df8c2..00000000 --- a/JellyfinPlayer/Swaggers/Models/ModelType.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ModelType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. Filter by channel type. */ - -public struct ModelType: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/MovePlaylistItemRequestDto.swift b/JellyfinPlayer/Swaggers/Models/MovePlaylistItemRequestDto.swift deleted file mode 100644 index 46100a25..00000000 --- a/JellyfinPlayer/Swaggers/Models/MovePlaylistItemRequestDto.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// MovePlaylistItemRequestDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class MovePlaylistItemRequestDto. */ - -public struct MovePlaylistItemRequestDto: Codable { - - /** Gets or sets the playlist identifier of the item. */ - public var playlistItemId: UUID? - /** Gets or sets the new position. */ - public var newIndex: Int? - - public init(playlistItemId: UUID? = nil, newIndex: Int? = nil) { - self.playlistItemId = playlistItemId - self.newIndex = newIndex - } - - public enum CodingKeys: String, CodingKey { - case playlistItemId = "PlaylistItemId" - case newIndex = "NewIndex" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/MovieInfo.swift b/JellyfinPlayer/Swaggers/Models/MovieInfo.swift deleted file mode 100644 index 71309a97..00000000 --- a/JellyfinPlayer/Swaggers/Models/MovieInfo.swift +++ /dev/null @@ -1,57 +0,0 @@ -// -// MovieInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct MovieInfo: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the path. */ - public var path: String? - /** Gets or sets the metadata language. */ - public var metadataLanguage: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets the year. */ - public var year: Int? - public var indexNumber: Int? - public var parentIndexNumber: Int? - public var premiereDate: Date? - public var isAutomated: Bool? - - public init(name: String? = nil, path: String? = nil, metadataLanguage: String? = nil, metadataCountryCode: String? = nil, providerIds: [String:String]? = nil, year: Int? = nil, indexNumber: Int? = nil, parentIndexNumber: Int? = nil, premiereDate: Date? = nil, isAutomated: Bool? = nil) { - self.name = name - self.path = path - self.metadataLanguage = metadataLanguage - self.metadataCountryCode = metadataCountryCode - self.providerIds = providerIds - self.year = year - self.indexNumber = indexNumber - self.parentIndexNumber = parentIndexNumber - self.premiereDate = premiereDate - self.isAutomated = isAutomated - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case path = "Path" - case metadataLanguage = "MetadataLanguage" - case metadataCountryCode = "MetadataCountryCode" - case providerIds = "ProviderIds" - case year = "Year" - case indexNumber = "IndexNumber" - case parentIndexNumber = "ParentIndexNumber" - case premiereDate = "PremiereDate" - case isAutomated = "IsAutomated" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/MovieInfoRemoteSearchQuery.swift b/JellyfinPlayer/Swaggers/Models/MovieInfoRemoteSearchQuery.swift deleted file mode 100644 index df56e1a5..00000000 --- a/JellyfinPlayer/Swaggers/Models/MovieInfoRemoteSearchQuery.swift +++ /dev/null @@ -1,35 +0,0 @@ -// -// MovieInfoRemoteSearchQuery.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct MovieInfoRemoteSearchQuery: Codable { - - public var searchInfo: AllOfMovieInfoRemoteSearchQuerySearchInfo? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: AllOfMovieInfoRemoteSearchQuerySearchInfo? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/MusicVideoInfo.swift b/JellyfinPlayer/Swaggers/Models/MusicVideoInfo.swift deleted file mode 100644 index 8c5215cc..00000000 --- a/JellyfinPlayer/Swaggers/Models/MusicVideoInfo.swift +++ /dev/null @@ -1,60 +0,0 @@ -// -// MusicVideoInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct MusicVideoInfo: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the path. */ - public var path: String? - /** Gets or sets the metadata language. */ - public var metadataLanguage: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets the year. */ - public var year: Int? - public var indexNumber: Int? - public var parentIndexNumber: Int? - public var premiereDate: Date? - public var isAutomated: Bool? - public var artists: [String]? - - public init(name: String? = nil, path: String? = nil, metadataLanguage: String? = nil, metadataCountryCode: String? = nil, providerIds: [String:String]? = nil, year: Int? = nil, indexNumber: Int? = nil, parentIndexNumber: Int? = nil, premiereDate: Date? = nil, isAutomated: Bool? = nil, artists: [String]? = nil) { - self.name = name - self.path = path - self.metadataLanguage = metadataLanguage - self.metadataCountryCode = metadataCountryCode - self.providerIds = providerIds - self.year = year - self.indexNumber = indexNumber - self.parentIndexNumber = parentIndexNumber - self.premiereDate = premiereDate - self.isAutomated = isAutomated - self.artists = artists - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case path = "Path" - case metadataLanguage = "MetadataLanguage" - case metadataCountryCode = "MetadataCountryCode" - case providerIds = "ProviderIds" - case year = "Year" - case indexNumber = "IndexNumber" - case parentIndexNumber = "ParentIndexNumber" - case premiereDate = "PremiereDate" - case isAutomated = "IsAutomated" - case artists = "Artists" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/MusicVideoInfoRemoteSearchQuery.swift b/JellyfinPlayer/Swaggers/Models/MusicVideoInfoRemoteSearchQuery.swift deleted file mode 100644 index 859d95f0..00000000 --- a/JellyfinPlayer/Swaggers/Models/MusicVideoInfoRemoteSearchQuery.swift +++ /dev/null @@ -1,35 +0,0 @@ -// -// MusicVideoInfoRemoteSearchQuery.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct MusicVideoInfoRemoteSearchQuery: Codable { - - public var searchInfo: AllOfMusicVideoInfoRemoteSearchQuerySearchInfo? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: AllOfMusicVideoInfoRemoteSearchQuerySearchInfo? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/NameGuidPair.swift b/JellyfinPlayer/Swaggers/Models/NameGuidPair.swift deleted file mode 100644 index d565b314..00000000 --- a/JellyfinPlayer/Swaggers/Models/NameGuidPair.swift +++ /dev/null @@ -1,27 +0,0 @@ -// -// NameGuidPair.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct NameGuidPair: Codable { - - public var name: String? - public var _id: UUID? - - public init(name: String? = nil, _id: UUID? = nil) { - self.name = name - self._id = _id - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case _id = "Id" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/NameIdPair.swift b/JellyfinPlayer/Swaggers/Models/NameIdPair.swift deleted file mode 100644 index 263c1c5d..00000000 --- a/JellyfinPlayer/Swaggers/Models/NameIdPair.swift +++ /dev/null @@ -1,29 +0,0 @@ -// -// NameIdPair.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct NameIdPair: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the identifier. */ - public var _id: String? - - public init(name: String? = nil, _id: String? = nil) { - self.name = name - self._id = _id - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case _id = "Id" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/NameValuePair.swift b/JellyfinPlayer/Swaggers/Models/NameValuePair.swift deleted file mode 100644 index 7faf2cea..00000000 --- a/JellyfinPlayer/Swaggers/Models/NameValuePair.swift +++ /dev/null @@ -1,29 +0,0 @@ -// -// NameValuePair.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct NameValuePair: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the value. */ - public var value: String? - - public init(name: String? = nil, value: String? = nil) { - self.name = name - self.value = value - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case value = "Value" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/NewGroupRequestDto.swift b/JellyfinPlayer/Swaggers/Models/NewGroupRequestDto.swift deleted file mode 100644 index cd3f261f..00000000 --- a/JellyfinPlayer/Swaggers/Models/NewGroupRequestDto.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// NewGroupRequestDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class NewGroupRequestDto. */ - -public struct NewGroupRequestDto: Codable { - - /** Gets or sets the group name. */ - public var groupName: String? - - public init(groupName: String? = nil) { - self.groupName = groupName - } - - public enum CodingKeys: String, CodingKey { - case groupName = "GroupName" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/NextItemRequestDto.swift b/JellyfinPlayer/Swaggers/Models/NextItemRequestDto.swift deleted file mode 100644 index 1e719c6d..00000000 --- a/JellyfinPlayer/Swaggers/Models/NextItemRequestDto.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// NextItemRequestDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class NextItemRequestDto. */ - -public struct NextItemRequestDto: Codable { - - /** Gets or sets the playing item identifier. */ - public var playlistItemId: UUID? - - public init(playlistItemId: UUID? = nil) { - self.playlistItemId = playlistItemId - } - - public enum CodingKeys: String, CodingKey { - case playlistItemId = "PlaylistItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/NotificationDto.swift b/JellyfinPlayer/Swaggers/Models/NotificationDto.swift deleted file mode 100644 index 9472011c..00000000 --- a/JellyfinPlayer/Swaggers/Models/NotificationDto.swift +++ /dev/null @@ -1,54 +0,0 @@ -// -// NotificationDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The notification DTO. */ - -public struct NotificationDto: Codable { - - /** Gets or sets the notification ID. Defaults to an empty string. */ - public var _id: String? - /** Gets or sets the notification's user ID. Defaults to an empty string. */ - public var userId: String? - /** Gets or sets the notification date. */ - public var date: Date? - /** Gets or sets a value indicating whether the notification has been read. Defaults to false. */ - public var isRead: Bool? - /** Gets or sets the notification's name. Defaults to an empty string. */ - public var name: String? - /** Gets or sets the notification's description. Defaults to an empty string. */ - public var _description: String? - /** Gets or sets the notification's URL. Defaults to an empty string. */ - public var url: String? - /** Gets or sets the notification level. */ - public var level: AllOfNotificationDtoLevel? - - public init(_id: String? = nil, userId: String? = nil, date: Date? = nil, isRead: Bool? = nil, name: String? = nil, _description: String? = nil, url: String? = nil, level: AllOfNotificationDtoLevel? = nil) { - self._id = _id - self.userId = userId - self.date = date - self.isRead = isRead - self.name = name - self._description = _description - self.url = url - self.level = level - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case userId = "UserId" - case date = "Date" - case isRead = "IsRead" - case name = "Name" - case _description = "Description" - case url = "Url" - case level = "Level" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/NotificationLevel.swift b/JellyfinPlayer/Swaggers/Models/NotificationLevel.swift deleted file mode 100644 index 640df8e0..00000000 --- a/JellyfinPlayer/Swaggers/Models/NotificationLevel.swift +++ /dev/null @@ -1,15 +0,0 @@ -// -// NotificationLevel.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum NotificationLevel: String, Codable { - case normal = "Normal" - case warning = "Warning" - case error = "Error" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/NotificationResultDto.swift b/JellyfinPlayer/Swaggers/Models/NotificationResultDto.swift deleted file mode 100644 index 4cafdb54..00000000 --- a/JellyfinPlayer/Swaggers/Models/NotificationResultDto.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// NotificationResultDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** A list of notifications with the total record count for pagination. */ - -public struct NotificationResultDto: Codable { - - /** Gets or sets the current page of notifications. */ - public var notifications: [NotificationDto]? - /** Gets or sets the total number of notifications. */ - public var totalRecordCount: Int? - - public init(notifications: [NotificationDto]? = nil, totalRecordCount: Int? = nil) { - self.notifications = notifications - self.totalRecordCount = totalRecordCount - } - - public enum CodingKeys: String, CodingKey { - case notifications = "Notifications" - case totalRecordCount = "TotalRecordCount" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/NotificationTypeInfo.swift b/JellyfinPlayer/Swaggers/Models/NotificationTypeInfo.swift deleted file mode 100644 index 825908de..00000000 --- a/JellyfinPlayer/Swaggers/Models/NotificationTypeInfo.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// NotificationTypeInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct NotificationTypeInfo: Codable { - - public var type: String? - public var name: String? - public var enabled: Bool? - public var category: String? - public var isBasedOnUserEvent: Bool? - - public init(type: String? = nil, name: String? = nil, enabled: Bool? = nil, category: String? = nil, isBasedOnUserEvent: Bool? = nil) { - self.type = type - self.name = name - self.enabled = enabled - self.category = category - self.isBasedOnUserEvent = isBasedOnUserEvent - } - - public enum CodingKeys: String, CodingKey { - case type = "Type" - case name = "Name" - case enabled = "Enabled" - case category = "Category" - case isBasedOnUserEvent = "IsBasedOnUserEvent" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/NotificationsAdminBody.swift b/JellyfinPlayer/Swaggers/Models/NotificationsAdminBody.swift deleted file mode 100644 index a41e1346..00000000 --- a/JellyfinPlayer/Swaggers/Models/NotificationsAdminBody.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// NotificationsAdminBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The notification request. */ - -public struct NotificationsAdminBody: Codable { - - /** Gets or sets the notification name. */ - public var name: String? - /** Gets or sets the notification description. */ - public var _description: String? - /** Gets or sets the notification level. */ - public var notificationLevel: Any? - /** Gets or sets the notification url. */ - public var url: String? - - public init(name: String? = nil, _description: String? = nil, notificationLevel: Any? = nil, url: String? = nil) { - self.name = name - self._description = _description - self.notificationLevel = notificationLevel - self.url = url - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case _description = "Description" - case notificationLevel = "NotificationLevel" - case url = "Url" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/NotificationsAdminBody1.swift b/JellyfinPlayer/Swaggers/Models/NotificationsAdminBody1.swift deleted file mode 100644 index 07105cd6..00000000 --- a/JellyfinPlayer/Swaggers/Models/NotificationsAdminBody1.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// NotificationsAdminBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The notification request. */ - -public struct NotificationsAdminBody1: Codable { - - /** Gets or sets the notification name. */ - public var name: String? - /** Gets or sets the notification description. */ - public var _description: String? - /** Gets or sets the notification level. */ - public var notificationLevel: Any? - /** Gets or sets the notification url. */ - public var url: String? - - public init(name: String? = nil, _description: String? = nil, notificationLevel: Any? = nil, url: String? = nil) { - self.name = name - self._description = _description - self.notificationLevel = notificationLevel - self.url = url - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case _description = "Description" - case notificationLevel = "NotificationLevel" - case url = "Url" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/NotificationsAdminBody2.swift b/JellyfinPlayer/Swaggers/Models/NotificationsAdminBody2.swift deleted file mode 100644 index 42480a2e..00000000 --- a/JellyfinPlayer/Swaggers/Models/NotificationsAdminBody2.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// NotificationsAdminBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The notification request. */ - -public struct NotificationsAdminBody2: Codable { - - /** Gets or sets the notification name. */ - public var name: String? - /** Gets or sets the notification description. */ - public var _description: String? - /** Gets or sets the notification level. */ - public var notificationLevel: Any? - /** Gets or sets the notification url. */ - public var url: String? - - public init(name: String? = nil, _description: String? = nil, notificationLevel: Any? = nil, url: String? = nil) { - self.name = name - self._description = _description - self.notificationLevel = notificationLevel - self.url = url - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case _description = "Description" - case notificationLevel = "NotificationLevel" - case url = "Url" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/NotificationsSummaryDto.swift b/JellyfinPlayer/Swaggers/Models/NotificationsSummaryDto.swift deleted file mode 100644 index f80b516c..00000000 --- a/JellyfinPlayer/Swaggers/Models/NotificationsSummaryDto.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// NotificationsSummaryDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The notification summary DTO. */ - -public struct NotificationsSummaryDto: Codable { - - /** Gets or sets the number of unread notifications. */ - public var unreadCount: Int? - /** Gets or sets the maximum unread notification level. */ - public var maxUnreadNotificationLevel: AllOfNotificationsSummaryDtoMaxUnreadNotificationLevel? - - public init(unreadCount: Int? = nil, maxUnreadNotificationLevel: AllOfNotificationsSummaryDtoMaxUnreadNotificationLevel? = nil) { - self.unreadCount = unreadCount - self.maxUnreadNotificationLevel = maxUnreadNotificationLevel - } - - public enum CodingKeys: String, CodingKey { - case unreadCount = "UnreadCount" - case maxUnreadNotificationLevel = "MaxUnreadNotificationLevel" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ObjectGroupUpdate.swift b/JellyfinPlayer/Swaggers/Models/ObjectGroupUpdate.swift deleted file mode 100644 index 3b3dbc5a..00000000 --- a/JellyfinPlayer/Swaggers/Models/ObjectGroupUpdate.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// ObjectGroupUpdate.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class GroupUpdate. */ - -public struct ObjectGroupUpdate: Codable { - - /** Gets the group identifier. */ - public var groupId: UUID? - /** Gets the update type. */ - public var type: AllOfObjectGroupUpdateModelType? - /** Gets the update data. */ - public var data: Any? - - public init(groupId: UUID? = nil, type: AllOfObjectGroupUpdateModelType? = nil, data: Any? = nil) { - self.groupId = groupId - self.type = type - self.data = data - } - - public enum CodingKeys: String, CodingKey { - case groupId = "GroupId" - case type = "Type" - case data = "Data" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/OpenLiveStreamDto.swift b/JellyfinPlayer/Swaggers/Models/OpenLiveStreamDto.swift deleted file mode 100644 index 5868ebe7..00000000 --- a/JellyfinPlayer/Swaggers/Models/OpenLiveStreamDto.swift +++ /dev/null @@ -1,74 +0,0 @@ -// -// OpenLiveStreamDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Open live stream dto. */ - -public struct OpenLiveStreamDto: Codable { - - /** Gets or sets the open token. */ - public var openToken: String? - /** Gets or sets the user id. */ - public var userId: UUID? - /** Gets or sets the play session id. */ - public var playSessionId: String? - /** Gets or sets the max streaming bitrate. */ - public var maxStreamingBitrate: Int? - /** Gets or sets the start time in ticks. */ - public var startTimeTicks: Int64? - /** Gets or sets the audio stream index. */ - public var audioStreamIndex: Int? - /** Gets or sets the subtitle stream index. */ - public var subtitleStreamIndex: Int? - /** Gets or sets the max audio channels. */ - public var maxAudioChannels: Int? - /** Gets or sets the item id. */ - public var itemId: UUID? - /** Gets or sets a value indicating whether to enable direct play. */ - public var enableDirectPlay: Bool? - /** Gets or sets a value indicating whether to enale direct stream. */ - public var enableDirectStream: Bool? - /** Gets or sets the device profile. */ - public var deviceProfile: AllOfOpenLiveStreamDtoDeviceProfile? - /** Gets or sets the device play protocols. */ - public var directPlayProtocols: [MediaProtocol]? - - public init(openToken: String? = nil, userId: UUID? = nil, playSessionId: String? = nil, maxStreamingBitrate: Int? = nil, startTimeTicks: Int64? = nil, audioStreamIndex: Int? = nil, subtitleStreamIndex: Int? = nil, maxAudioChannels: Int? = nil, itemId: UUID? = nil, enableDirectPlay: Bool? = nil, enableDirectStream: Bool? = nil, deviceProfile: AllOfOpenLiveStreamDtoDeviceProfile? = nil, directPlayProtocols: [MediaProtocol]? = nil) { - self.openToken = openToken - self.userId = userId - self.playSessionId = playSessionId - self.maxStreamingBitrate = maxStreamingBitrate - self.startTimeTicks = startTimeTicks - self.audioStreamIndex = audioStreamIndex - self.subtitleStreamIndex = subtitleStreamIndex - self.maxAudioChannels = maxAudioChannels - self.itemId = itemId - self.enableDirectPlay = enableDirectPlay - self.enableDirectStream = enableDirectStream - self.deviceProfile = deviceProfile - self.directPlayProtocols = directPlayProtocols - } - - public enum CodingKeys: String, CodingKey { - case openToken = "OpenToken" - case userId = "UserId" - case playSessionId = "PlaySessionId" - case maxStreamingBitrate = "MaxStreamingBitrate" - case startTimeTicks = "StartTimeTicks" - case audioStreamIndex = "AudioStreamIndex" - case subtitleStreamIndex = "SubtitleStreamIndex" - case maxAudioChannels = "MaxAudioChannels" - case itemId = "ItemId" - case enableDirectPlay = "EnableDirectPlay" - case enableDirectStream = "EnableDirectStream" - case deviceProfile = "DeviceProfile" - case directPlayProtocols = "DirectPlayProtocols" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PackageInfo.swift b/JellyfinPlayer/Swaggers/Models/PackageInfo.swift deleted file mode 100644 index b58050d8..00000000 --- a/JellyfinPlayer/Swaggers/Models/PackageInfo.swift +++ /dev/null @@ -1,54 +0,0 @@ -// -// PackageInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class PackageInfo. */ - -public struct PackageInfo: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets a long description of the plugin containing features or helpful explanations. */ - public var _description: String? - /** Gets or sets a short overview of what the plugin does. */ - public var overview: String? - /** Gets or sets the owner. */ - public var owner: String? - /** Gets or sets the category. */ - public var category: String? - /** Gets or sets the guid of the assembly associated with this plugin. This is used to identify the proper item for automatic updates. */ - public var guid: String? - /** Gets or sets the versions. */ - public var versions: [VersionInfo]? - /** Gets or sets the image url for the package. */ - public var imageUrl: String? - - public init(name: String? = nil, _description: String? = nil, overview: String? = nil, owner: String? = nil, category: String? = nil, guid: String? = nil, versions: [VersionInfo]? = nil, imageUrl: String? = nil) { - self.name = name - self._description = _description - self.overview = overview - self.owner = owner - self.category = category - self.guid = guid - self.versions = versions - self.imageUrl = imageUrl - } - - public enum CodingKeys: String, CodingKey { - case name - case _description = "description" - case overview - case owner - case category - case guid - case versions - case imageUrl - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PageType.swift b/JellyfinPlayer/Swaggers/Models/PageType.swift deleted file mode 100644 index 828d60b8..00000000 --- a/JellyfinPlayer/Swaggers/Models/PageType.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// PageType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The Jellyfin.Api.Models.ConfigurationPageInfo. */ - -public struct PageType: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ParentalRating.swift b/JellyfinPlayer/Swaggers/Models/ParentalRating.swift deleted file mode 100644 index db53e52f..00000000 --- a/JellyfinPlayer/Swaggers/Models/ParentalRating.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// ParentalRating.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class ParentalRating. */ - -public struct ParentalRating: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the value. */ - public var value: Int? - - public init(name: String? = nil, value: Int? = nil) { - self.name = name - self.value = value - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case value = "Value" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PathSubstitution.swift b/JellyfinPlayer/Swaggers/Models/PathSubstitution.swift deleted file mode 100644 index 47f75328..00000000 --- a/JellyfinPlayer/Swaggers/Models/PathSubstitution.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// PathSubstitution.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Defines the MediaBrowser.Model.Configuration.PathSubstitution. */ - -public struct PathSubstitution: Codable { - - /** Gets or sets the value to substitute. */ - public var from: String? - /** Gets or sets the value to substitution with. */ - public var to: String? - - public init(from: String? = nil, to: String? = nil) { - self.from = from - self.to = to - } - - public enum CodingKeys: String, CodingKey { - case from = "From" - case to = "To" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PathsUpdateBody.swift b/JellyfinPlayer/Swaggers/Models/PathsUpdateBody.swift deleted file mode 100644 index d98c0ca1..00000000 --- a/JellyfinPlayer/Swaggers/Models/PathsUpdateBody.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// PathsUpdateBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The name of the library and path infos. */ - -public struct PathsUpdateBody: Codable { - - /** Gets or sets the library name. */ - public var name: String - /** Gets or sets library folder path information. */ - public var pathInfo: Any - - public init(name: String, pathInfo: Any) { - self.name = name - self.pathInfo = pathInfo - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case pathInfo = "PathInfo" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PathsUpdateBody1.swift b/JellyfinPlayer/Swaggers/Models/PathsUpdateBody1.swift deleted file mode 100644 index e1427aab..00000000 --- a/JellyfinPlayer/Swaggers/Models/PathsUpdateBody1.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// PathsUpdateBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The name of the library and path infos. */ - -public struct PathsUpdateBody1: Codable { - - /** Gets or sets the library name. */ - public var name: String - /** Gets or sets library folder path information. */ - public var pathInfo: Any - - public init(name: String, pathInfo: Any) { - self.name = name - self.pathInfo = pathInfo - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case pathInfo = "PathInfo" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PathsUpdateBody2.swift b/JellyfinPlayer/Swaggers/Models/PathsUpdateBody2.swift deleted file mode 100644 index 65937e87..00000000 --- a/JellyfinPlayer/Swaggers/Models/PathsUpdateBody2.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// PathsUpdateBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The name of the library and path infos. */ - -public struct PathsUpdateBody2: Codable { - - /** Gets or sets the library name. */ - public var name: String - /** Gets or sets library folder path information. */ - public var pathInfo: Any - - public init(name: String, pathInfo: Any) { - self.name = name - self.pathInfo = pathInfo - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case pathInfo = "PathInfo" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PersonLookupInfo.swift b/JellyfinPlayer/Swaggers/Models/PersonLookupInfo.swift deleted file mode 100644 index 69b2d2e3..00000000 --- a/JellyfinPlayer/Swaggers/Models/PersonLookupInfo.swift +++ /dev/null @@ -1,57 +0,0 @@ -// -// PersonLookupInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct PersonLookupInfo: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the path. */ - public var path: String? - /** Gets or sets the metadata language. */ - public var metadataLanguage: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets the year. */ - public var year: Int? - public var indexNumber: Int? - public var parentIndexNumber: Int? - public var premiereDate: Date? - public var isAutomated: Bool? - - public init(name: String? = nil, path: String? = nil, metadataLanguage: String? = nil, metadataCountryCode: String? = nil, providerIds: [String:String]? = nil, year: Int? = nil, indexNumber: Int? = nil, parentIndexNumber: Int? = nil, premiereDate: Date? = nil, isAutomated: Bool? = nil) { - self.name = name - self.path = path - self.metadataLanguage = metadataLanguage - self.metadataCountryCode = metadataCountryCode - self.providerIds = providerIds - self.year = year - self.indexNumber = indexNumber - self.parentIndexNumber = parentIndexNumber - self.premiereDate = premiereDate - self.isAutomated = isAutomated - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case path = "Path" - case metadataLanguage = "MetadataLanguage" - case metadataCountryCode = "MetadataCountryCode" - case providerIds = "ProviderIds" - case year = "Year" - case indexNumber = "IndexNumber" - case parentIndexNumber = "ParentIndexNumber" - case premiereDate = "PremiereDate" - case isAutomated = "IsAutomated" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PersonLookupInfoRemoteSearchQuery.swift b/JellyfinPlayer/Swaggers/Models/PersonLookupInfoRemoteSearchQuery.swift deleted file mode 100644 index 80b129d7..00000000 --- a/JellyfinPlayer/Swaggers/Models/PersonLookupInfoRemoteSearchQuery.swift +++ /dev/null @@ -1,35 +0,0 @@ -// -// PersonLookupInfoRemoteSearchQuery.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct PersonLookupInfoRemoteSearchQuery: Codable { - - public var searchInfo: AllOfPersonLookupInfoRemoteSearchQuerySearchInfo? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: AllOfPersonLookupInfoRemoteSearchQuerySearchInfo? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PinRedeemResult.swift b/JellyfinPlayer/Swaggers/Models/PinRedeemResult.swift deleted file mode 100644 index d23b6f83..00000000 --- a/JellyfinPlayer/Swaggers/Models/PinRedeemResult.swift +++ /dev/null @@ -1,29 +0,0 @@ -// -// PinRedeemResult.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct PinRedeemResult: Codable { - - /** Gets or sets a value indicating whether this MediaBrowser.Model.Users.PinRedeemResult is success. */ - public var success: Bool? - /** Gets or sets the users reset. */ - public var usersReset: [String]? - - public init(success: Bool? = nil, usersReset: [String]? = nil) { - self.success = success - self.usersReset = usersReset - } - - public enum CodingKeys: String, CodingKey { - case success = "Success" - case usersReset = "UsersReset" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PingRequestDto.swift b/JellyfinPlayer/Swaggers/Models/PingRequestDto.swift deleted file mode 100644 index ef94f138..00000000 --- a/JellyfinPlayer/Swaggers/Models/PingRequestDto.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// PingRequestDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class PingRequestDto. */ - -public struct PingRequestDto: Codable { - - /** Gets or sets the ping time. */ - public var ping: Int64? - - public init(ping: Int64? = nil) { - self.ping = ping - } - - public enum CodingKeys: String, CodingKey { - case ping = "Ping" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PlayAccess.swift b/JellyfinPlayer/Swaggers/Models/PlayAccess.swift deleted file mode 100644 index ea396a3c..00000000 --- a/JellyfinPlayer/Swaggers/Models/PlayAccess.swift +++ /dev/null @@ -1,14 +0,0 @@ -// -// PlayAccess.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum PlayAccess: String, Codable { - case full = "Full" - case _none = "None" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/PlayCommand.swift b/JellyfinPlayer/Swaggers/Models/PlayCommand.swift deleted file mode 100644 index f2976f75..00000000 --- a/JellyfinPlayer/Swaggers/Models/PlayCommand.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// PlayCommand.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The type of play command to issue (PlayNow, PlayNext, PlayLast). Clients who have not yet implemented play next and play last may play now. */ - -public struct PlayCommand: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/PlayMethod.swift b/JellyfinPlayer/Swaggers/Models/PlayMethod.swift deleted file mode 100644 index 9fc0a034..00000000 --- a/JellyfinPlayer/Swaggers/Models/PlayMethod.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// PlayMethod.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The play method. */ - -public struct PlayMethod: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/PlayMethod1.swift b/JellyfinPlayer/Swaggers/Models/PlayMethod1.swift deleted file mode 100644 index d11675f6..00000000 --- a/JellyfinPlayer/Swaggers/Models/PlayMethod1.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// PlayMethod1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The play method. */ - -public struct PlayMethod1: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/PlayRequest.swift b/JellyfinPlayer/Swaggers/Models/PlayRequest.swift deleted file mode 100644 index 3f2cc1ea..00000000 --- a/JellyfinPlayer/Swaggers/Models/PlayRequest.swift +++ /dev/null @@ -1,50 +0,0 @@ -// -// PlayRequest.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class PlayRequest. */ - -public struct PlayRequest: Codable { - - /** Gets or sets the item ids. */ - public var itemIds: [UUID]? - /** Gets or sets the start position ticks that the first item should be played at. */ - public var startPositionTicks: Int64? - /** Gets or sets the play command. */ - public var playCommand: AllOfPlayRequestPlayCommand? - /** Gets or sets the controlling user identifier. */ - public var controllingUserId: UUID? - public var subtitleStreamIndex: Int? - public var audioStreamIndex: Int? - public var mediaSourceId: String? - public var startIndex: Int? - - public init(itemIds: [UUID]? = nil, startPositionTicks: Int64? = nil, playCommand: AllOfPlayRequestPlayCommand? = nil, controllingUserId: UUID? = nil, subtitleStreamIndex: Int? = nil, audioStreamIndex: Int? = nil, mediaSourceId: String? = nil, startIndex: Int? = nil) { - self.itemIds = itemIds - self.startPositionTicks = startPositionTicks - self.playCommand = playCommand - self.controllingUserId = controllingUserId - self.subtitleStreamIndex = subtitleStreamIndex - self.audioStreamIndex = audioStreamIndex - self.mediaSourceId = mediaSourceId - self.startIndex = startIndex - } - - public enum CodingKeys: String, CodingKey { - case itemIds = "ItemIds" - case startPositionTicks = "StartPositionTicks" - case playCommand = "PlayCommand" - case controllingUserId = "ControllingUserId" - case subtitleStreamIndex = "SubtitleStreamIndex" - case audioStreamIndex = "AudioStreamIndex" - case mediaSourceId = "MediaSourceId" - case startIndex = "StartIndex" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PlayRequestDto.swift b/JellyfinPlayer/Swaggers/Models/PlayRequestDto.swift deleted file mode 100644 index 0ba52d78..00000000 --- a/JellyfinPlayer/Swaggers/Models/PlayRequestDto.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// PlayRequestDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class PlayRequestDto. */ - -public struct PlayRequestDto: Codable { - - /** Gets or sets the playing queue. */ - public var playingQueue: [UUID]? - /** Gets or sets the position of the playing item in the queue. */ - public var playingItemPosition: Int? - /** Gets or sets the start position ticks. */ - public var startPositionTicks: Int64? - - public init(playingQueue: [UUID]? = nil, playingItemPosition: Int? = nil, startPositionTicks: Int64? = nil) { - self.playingQueue = playingQueue - self.playingItemPosition = playingItemPosition - self.startPositionTicks = startPositionTicks - } - - public enum CodingKeys: String, CodingKey { - case playingQueue = "PlayingQueue" - case playingItemPosition = "PlayingItemPosition" - case startPositionTicks = "StartPositionTicks" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PlaybackErrorCode.swift b/JellyfinPlayer/Swaggers/Models/PlaybackErrorCode.swift deleted file mode 100644 index dfe4b3ad..00000000 --- a/JellyfinPlayer/Swaggers/Models/PlaybackErrorCode.swift +++ /dev/null @@ -1,15 +0,0 @@ -// -// PlaybackErrorCode.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum PlaybackErrorCode: String, Codable { - case notAllowed = "NotAllowed" - case noCompatibleStream = "NoCompatibleStream" - case rateLimitExceeded = "RateLimitExceeded" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/PlaybackInfoDto.swift b/JellyfinPlayer/Swaggers/Models/PlaybackInfoDto.swift deleted file mode 100644 index 3855c9bd..00000000 --- a/JellyfinPlayer/Swaggers/Models/PlaybackInfoDto.swift +++ /dev/null @@ -1,82 +0,0 @@ -// -// PlaybackInfoDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Plabyback info dto. */ - -public struct PlaybackInfoDto: Codable { - - /** Gets or sets the playback userId. */ - public var userId: UUID? - /** Gets or sets the max streaming bitrate. */ - public var maxStreamingBitrate: Int? - /** Gets or sets the start time in ticks. */ - public var startTimeTicks: Int64? - /** Gets or sets the audio stream index. */ - public var audioStreamIndex: Int? - /** Gets or sets the subtitle stream index. */ - public var subtitleStreamIndex: Int? - /** Gets or sets the max audio channels. */ - public var maxAudioChannels: Int? - /** Gets or sets the media source id. */ - public var mediaSourceId: String? - /** Gets or sets the live stream id. */ - public var liveStreamId: String? - /** Gets or sets the device profile. */ - public var deviceProfile: AllOfPlaybackInfoDtoDeviceProfile? - /** Gets or sets a value indicating whether to enable direct play. */ - public var enableDirectPlay: Bool? - /** Gets or sets a value indicating whether to enable direct stream. */ - public var enableDirectStream: Bool? - /** Gets or sets a value indicating whether to enable transcoding. */ - public var enableTranscoding: Bool? - /** Gets or sets a value indicating whether to enable video stream copy. */ - public var allowVideoStreamCopy: Bool? - /** Gets or sets a value indicating whether to allow audio stream copy. */ - public var allowAudioStreamCopy: Bool? - /** Gets or sets a value indicating whether to auto open the live stream. */ - public var autoOpenLiveStream: Bool? - - public init(userId: UUID? = nil, maxStreamingBitrate: Int? = nil, startTimeTicks: Int64? = nil, audioStreamIndex: Int? = nil, subtitleStreamIndex: Int? = nil, maxAudioChannels: Int? = nil, mediaSourceId: String? = nil, liveStreamId: String? = nil, deviceProfile: AllOfPlaybackInfoDtoDeviceProfile? = nil, enableDirectPlay: Bool? = nil, enableDirectStream: Bool? = nil, enableTranscoding: Bool? = nil, allowVideoStreamCopy: Bool? = nil, allowAudioStreamCopy: Bool? = nil, autoOpenLiveStream: Bool? = nil) { - self.userId = userId - self.maxStreamingBitrate = maxStreamingBitrate - self.startTimeTicks = startTimeTicks - self.audioStreamIndex = audioStreamIndex - self.subtitleStreamIndex = subtitleStreamIndex - self.maxAudioChannels = maxAudioChannels - self.mediaSourceId = mediaSourceId - self.liveStreamId = liveStreamId - self.deviceProfile = deviceProfile - self.enableDirectPlay = enableDirectPlay - self.enableDirectStream = enableDirectStream - self.enableTranscoding = enableTranscoding - self.allowVideoStreamCopy = allowVideoStreamCopy - self.allowAudioStreamCopy = allowAudioStreamCopy - self.autoOpenLiveStream = autoOpenLiveStream - } - - public enum CodingKeys: String, CodingKey { - case userId = "UserId" - case maxStreamingBitrate = "MaxStreamingBitrate" - case startTimeTicks = "StartTimeTicks" - case audioStreamIndex = "AudioStreamIndex" - case subtitleStreamIndex = "SubtitleStreamIndex" - case maxAudioChannels = "MaxAudioChannels" - case mediaSourceId = "MediaSourceId" - case liveStreamId = "LiveStreamId" - case deviceProfile = "DeviceProfile" - case enableDirectPlay = "EnableDirectPlay" - case enableDirectStream = "EnableDirectStream" - case enableTranscoding = "EnableTranscoding" - case allowVideoStreamCopy = "AllowVideoStreamCopy" - case allowAudioStreamCopy = "AllowAudioStreamCopy" - case autoOpenLiveStream = "AutoOpenLiveStream" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PlaybackInfoResponse.swift b/JellyfinPlayer/Swaggers/Models/PlaybackInfoResponse.swift deleted file mode 100644 index 1103b137..00000000 --- a/JellyfinPlayer/Swaggers/Models/PlaybackInfoResponse.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// PlaybackInfoResponse.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class PlaybackInfoResponse. */ - -public struct PlaybackInfoResponse: Codable { - - /** Gets or sets the media sources. */ - public var mediaSources: [MediaSourceInfo]? - /** Gets or sets the play session identifier. */ - public var playSessionId: String? - /** Gets or sets the error code. */ - public var errorCode: AllOfPlaybackInfoResponseErrorCode? - - public init(mediaSources: [MediaSourceInfo]? = nil, playSessionId: String? = nil, errorCode: AllOfPlaybackInfoResponseErrorCode? = nil) { - self.mediaSources = mediaSources - self.playSessionId = playSessionId - self.errorCode = errorCode - } - - public enum CodingKeys: String, CodingKey { - case mediaSources = "MediaSources" - case playSessionId = "PlaySessionId" - case errorCode = "ErrorCode" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PlaybackProgressInfo.swift b/JellyfinPlayer/Swaggers/Models/PlaybackProgressInfo.swift deleted file mode 100644 index c27b753f..00000000 --- a/JellyfinPlayer/Swaggers/Models/PlaybackProgressInfo.swift +++ /dev/null @@ -1,97 +0,0 @@ -// -// PlaybackProgressInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class PlaybackProgressInfo. */ - -public struct PlaybackProgressInfo: Codable { - - /** Gets or sets a value indicating whether this instance can seek. */ - public var canSeek: Bool? - /** Gets or sets the item. */ - public var item: AllOfPlaybackProgressInfoItem? - /** Gets or sets the item identifier. */ - public var itemId: UUID? - /** Gets or sets the session id. */ - public var sessionId: String? - /** Gets or sets the media version identifier. */ - public var mediaSourceId: String? - /** Gets or sets the index of the audio stream. */ - public var audioStreamIndex: Int? - /** Gets or sets the index of the subtitle stream. */ - public var subtitleStreamIndex: Int? - /** Gets or sets a value indicating whether this instance is paused. */ - public var isPaused: Bool? - /** Gets or sets a value indicating whether this instance is muted. */ - public var isMuted: Bool? - /** Gets or sets the position ticks. */ - public var positionTicks: Int64? - public var playbackStartTimeTicks: Int64? - /** Gets or sets the volume level. */ - public var volumeLevel: Int? - public var brightness: Int? - public var aspectRatio: String? - /** Gets or sets the play method. */ - public var playMethod: AllOfPlaybackProgressInfoPlayMethod? - /** Gets or sets the live stream identifier. */ - public var liveStreamId: String? - /** Gets or sets the play session identifier. */ - public var playSessionId: String? - /** Gets or sets the repeat mode. */ - public var repeatMode: AllOfPlaybackProgressInfoRepeatMode? - public var nowPlayingQueue: [QueueItem]? - public var playlistItemId: String? - - public init(canSeek: Bool? = nil, item: AllOfPlaybackProgressInfoItem? = nil, itemId: UUID? = nil, sessionId: String? = nil, mediaSourceId: String? = nil, audioStreamIndex: Int? = nil, subtitleStreamIndex: Int? = nil, isPaused: Bool? = nil, isMuted: Bool? = nil, positionTicks: Int64? = nil, playbackStartTimeTicks: Int64? = nil, volumeLevel: Int? = nil, brightness: Int? = nil, aspectRatio: String? = nil, playMethod: AllOfPlaybackProgressInfoPlayMethod? = nil, liveStreamId: String? = nil, playSessionId: String? = nil, repeatMode: AllOfPlaybackProgressInfoRepeatMode? = nil, nowPlayingQueue: [QueueItem]? = nil, playlistItemId: String? = nil) { - self.canSeek = canSeek - self.item = item - self.itemId = itemId - self.sessionId = sessionId - self.mediaSourceId = mediaSourceId - self.audioStreamIndex = audioStreamIndex - self.subtitleStreamIndex = subtitleStreamIndex - self.isPaused = isPaused - self.isMuted = isMuted - self.positionTicks = positionTicks - self.playbackStartTimeTicks = playbackStartTimeTicks - self.volumeLevel = volumeLevel - self.brightness = brightness - self.aspectRatio = aspectRatio - self.playMethod = playMethod - self.liveStreamId = liveStreamId - self.playSessionId = playSessionId - self.repeatMode = repeatMode - self.nowPlayingQueue = nowPlayingQueue - self.playlistItemId = playlistItemId - } - - public enum CodingKeys: String, CodingKey { - case canSeek = "CanSeek" - case item = "Item" - case itemId = "ItemId" - case sessionId = "SessionId" - case mediaSourceId = "MediaSourceId" - case audioStreamIndex = "AudioStreamIndex" - case subtitleStreamIndex = "SubtitleStreamIndex" - case isPaused = "IsPaused" - case isMuted = "IsMuted" - case positionTicks = "PositionTicks" - case playbackStartTimeTicks = "PlaybackStartTimeTicks" - case volumeLevel = "VolumeLevel" - case brightness = "Brightness" - case aspectRatio = "AspectRatio" - case playMethod = "PlayMethod" - case liveStreamId = "LiveStreamId" - case playSessionId = "PlaySessionId" - case repeatMode = "RepeatMode" - case nowPlayingQueue = "NowPlayingQueue" - case playlistItemId = "PlaylistItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PlaybackStartInfo.swift b/JellyfinPlayer/Swaggers/Models/PlaybackStartInfo.swift deleted file mode 100644 index 25e1ca96..00000000 --- a/JellyfinPlayer/Swaggers/Models/PlaybackStartInfo.swift +++ /dev/null @@ -1,97 +0,0 @@ -// -// PlaybackStartInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class PlaybackStartInfo. */ - -public struct PlaybackStartInfo: Codable { - - /** Gets or sets a value indicating whether this instance can seek. */ - public var canSeek: Bool? - /** Gets or sets the item. */ - public var item: AllOfPlaybackStartInfoItem? - /** Gets or sets the item identifier. */ - public var itemId: UUID? - /** Gets or sets the session id. */ - public var sessionId: String? - /** Gets or sets the media version identifier. */ - public var mediaSourceId: String? - /** Gets or sets the index of the audio stream. */ - public var audioStreamIndex: Int? - /** Gets or sets the index of the subtitle stream. */ - public var subtitleStreamIndex: Int? - /** Gets or sets a value indicating whether this instance is paused. */ - public var isPaused: Bool? - /** Gets or sets a value indicating whether this instance is muted. */ - public var isMuted: Bool? - /** Gets or sets the position ticks. */ - public var positionTicks: Int64? - public var playbackStartTimeTicks: Int64? - /** Gets or sets the volume level. */ - public var volumeLevel: Int? - public var brightness: Int? - public var aspectRatio: String? - /** Gets or sets the play method. */ - public var playMethod: AllOfPlaybackStartInfoPlayMethod? - /** Gets or sets the live stream identifier. */ - public var liveStreamId: String? - /** Gets or sets the play session identifier. */ - public var playSessionId: String? - /** Gets or sets the repeat mode. */ - public var repeatMode: AllOfPlaybackStartInfoRepeatMode? - public var nowPlayingQueue: [QueueItem]? - public var playlistItemId: String? - - public init(canSeek: Bool? = nil, item: AllOfPlaybackStartInfoItem? = nil, itemId: UUID? = nil, sessionId: String? = nil, mediaSourceId: String? = nil, audioStreamIndex: Int? = nil, subtitleStreamIndex: Int? = nil, isPaused: Bool? = nil, isMuted: Bool? = nil, positionTicks: Int64? = nil, playbackStartTimeTicks: Int64? = nil, volumeLevel: Int? = nil, brightness: Int? = nil, aspectRatio: String? = nil, playMethod: AllOfPlaybackStartInfoPlayMethod? = nil, liveStreamId: String? = nil, playSessionId: String? = nil, repeatMode: AllOfPlaybackStartInfoRepeatMode? = nil, nowPlayingQueue: [QueueItem]? = nil, playlistItemId: String? = nil) { - self.canSeek = canSeek - self.item = item - self.itemId = itemId - self.sessionId = sessionId - self.mediaSourceId = mediaSourceId - self.audioStreamIndex = audioStreamIndex - self.subtitleStreamIndex = subtitleStreamIndex - self.isPaused = isPaused - self.isMuted = isMuted - self.positionTicks = positionTicks - self.playbackStartTimeTicks = playbackStartTimeTicks - self.volumeLevel = volumeLevel - self.brightness = brightness - self.aspectRatio = aspectRatio - self.playMethod = playMethod - self.liveStreamId = liveStreamId - self.playSessionId = playSessionId - self.repeatMode = repeatMode - self.nowPlayingQueue = nowPlayingQueue - self.playlistItemId = playlistItemId - } - - public enum CodingKeys: String, CodingKey { - case canSeek = "CanSeek" - case item = "Item" - case itemId = "ItemId" - case sessionId = "SessionId" - case mediaSourceId = "MediaSourceId" - case audioStreamIndex = "AudioStreamIndex" - case subtitleStreamIndex = "SubtitleStreamIndex" - case isPaused = "IsPaused" - case isMuted = "IsMuted" - case positionTicks = "PositionTicks" - case playbackStartTimeTicks = "PlaybackStartTimeTicks" - case volumeLevel = "VolumeLevel" - case brightness = "Brightness" - case aspectRatio = "AspectRatio" - case playMethod = "PlayMethod" - case liveStreamId = "LiveStreamId" - case playSessionId = "PlaySessionId" - case repeatMode = "RepeatMode" - case nowPlayingQueue = "NowPlayingQueue" - case playlistItemId = "PlaylistItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PlaybackStopInfo.swift b/JellyfinPlayer/Swaggers/Models/PlaybackStopInfo.swift deleted file mode 100644 index ad89e844..00000000 --- a/JellyfinPlayer/Swaggers/Models/PlaybackStopInfo.swift +++ /dev/null @@ -1,63 +0,0 @@ -// -// PlaybackStopInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class PlaybackStopInfo. */ - -public struct PlaybackStopInfo: Codable { - - /** Gets or sets the item. */ - public var item: AllOfPlaybackStopInfoItem? - /** Gets or sets the item identifier. */ - public var itemId: UUID? - /** Gets or sets the session id. */ - public var sessionId: String? - /** Gets or sets the media version identifier. */ - public var mediaSourceId: String? - /** Gets or sets the position ticks. */ - public var positionTicks: Int64? - /** Gets or sets the live stream identifier. */ - public var liveStreamId: String? - /** Gets or sets the play session identifier. */ - public var playSessionId: String? - /** Gets or sets a value indicating whether this MediaBrowser.Model.Session.PlaybackStopInfo is failed. */ - public var failed: Bool? - public var nextMediaType: String? - public var playlistItemId: String? - public var nowPlayingQueue: [QueueItem]? - - public init(item: AllOfPlaybackStopInfoItem? = nil, itemId: UUID? = nil, sessionId: String? = nil, mediaSourceId: String? = nil, positionTicks: Int64? = nil, liveStreamId: String? = nil, playSessionId: String? = nil, failed: Bool? = nil, nextMediaType: String? = nil, playlistItemId: String? = nil, nowPlayingQueue: [QueueItem]? = nil) { - self.item = item - self.itemId = itemId - self.sessionId = sessionId - self.mediaSourceId = mediaSourceId - self.positionTicks = positionTicks - self.liveStreamId = liveStreamId - self.playSessionId = playSessionId - self.failed = failed - self.nextMediaType = nextMediaType - self.playlistItemId = playlistItemId - self.nowPlayingQueue = nowPlayingQueue - } - - public enum CodingKeys: String, CodingKey { - case item = "Item" - case itemId = "ItemId" - case sessionId = "SessionId" - case mediaSourceId = "MediaSourceId" - case positionTicks = "PositionTicks" - case liveStreamId = "LiveStreamId" - case playSessionId = "PlaySessionId" - case failed = "Failed" - case nextMediaType = "NextMediaType" - case playlistItemId = "PlaylistItemId" - case nowPlayingQueue = "NowPlayingQueue" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PlayerStateInfo.swift b/JellyfinPlayer/Swaggers/Models/PlayerStateInfo.swift deleted file mode 100644 index 544c4029..00000000 --- a/JellyfinPlayer/Swaggers/Models/PlayerStateInfo.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// PlayerStateInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct PlayerStateInfo: Codable { - - /** Gets or sets the now playing position ticks. */ - public var positionTicks: Int64? - /** Gets or sets a value indicating whether this instance can seek. */ - public var canSeek: Bool? - /** Gets or sets a value indicating whether this instance is paused. */ - public var isPaused: Bool? - /** Gets or sets a value indicating whether this instance is muted. */ - public var isMuted: Bool? - /** Gets or sets the volume level. */ - public var volumeLevel: Int? - /** Gets or sets the index of the now playing audio stream. */ - public var audioStreamIndex: Int? - /** Gets or sets the index of the now playing subtitle stream. */ - public var subtitleStreamIndex: Int? - /** Gets or sets the now playing media version identifier. */ - public var mediaSourceId: String? - /** Gets or sets the play method. */ - public var playMethod: AllOfPlayerStateInfoPlayMethod? - /** Gets or sets the repeat mode. */ - public var repeatMode: AllOfPlayerStateInfoRepeatMode? - - public init(positionTicks: Int64? = nil, canSeek: Bool? = nil, isPaused: Bool? = nil, isMuted: Bool? = nil, volumeLevel: Int? = nil, audioStreamIndex: Int? = nil, subtitleStreamIndex: Int? = nil, mediaSourceId: String? = nil, playMethod: AllOfPlayerStateInfoPlayMethod? = nil, repeatMode: AllOfPlayerStateInfoRepeatMode? = nil) { - self.positionTicks = positionTicks - self.canSeek = canSeek - self.isPaused = isPaused - self.isMuted = isMuted - self.volumeLevel = volumeLevel - self.audioStreamIndex = audioStreamIndex - self.subtitleStreamIndex = subtitleStreamIndex - self.mediaSourceId = mediaSourceId - self.playMethod = playMethod - self.repeatMode = repeatMode - } - - public enum CodingKeys: String, CodingKey { - case positionTicks = "PositionTicks" - case canSeek = "CanSeek" - case isPaused = "IsPaused" - case isMuted = "IsMuted" - case volumeLevel = "VolumeLevel" - case audioStreamIndex = "AudioStreamIndex" - case subtitleStreamIndex = "SubtitleStreamIndex" - case mediaSourceId = "MediaSourceId" - case playMethod = "PlayMethod" - case repeatMode = "RepeatMode" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PlayingProgressBody.swift b/JellyfinPlayer/Swaggers/Models/PlayingProgressBody.swift deleted file mode 100644 index 85b4b078..00000000 --- a/JellyfinPlayer/Swaggers/Models/PlayingProgressBody.swift +++ /dev/null @@ -1,97 +0,0 @@ -// -// PlayingProgressBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The playback progress info. */ - -public struct PlayingProgressBody: Codable { - - /** Gets or sets a value indicating whether this instance can seek. */ - public var canSeek: Bool? - /** Gets or sets the item. */ - public var item: Any? - /** Gets or sets the item identifier. */ - public var itemId: UUID? - /** Gets or sets the session id. */ - public var sessionId: String? - /** Gets or sets the media version identifier. */ - public var mediaSourceId: String? - /** Gets or sets the index of the audio stream. */ - public var audioStreamIndex: Int? - /** Gets or sets the index of the subtitle stream. */ - public var subtitleStreamIndex: Int? - /** Gets or sets a value indicating whether this instance is paused. */ - public var isPaused: Bool? - /** Gets or sets a value indicating whether this instance is muted. */ - public var isMuted: Bool? - /** Gets or sets the position ticks. */ - public var positionTicks: Int64? - public var playbackStartTimeTicks: Int64? - /** Gets or sets the volume level. */ - public var volumeLevel: Int? - public var brightness: Int? - public var aspectRatio: String? - /** Gets or sets the play method. */ - public var playMethod: Any? - /** Gets or sets the live stream identifier. */ - public var liveStreamId: String? - /** Gets or sets the play session identifier. */ - public var playSessionId: String? - /** Gets or sets the repeat mode. */ - public var repeatMode: Any? - public var nowPlayingQueue: [QueueItem]? - public var playlistItemId: String? - - public init(canSeek: Bool? = nil, item: Any? = nil, itemId: UUID? = nil, sessionId: String? = nil, mediaSourceId: String? = nil, audioStreamIndex: Int? = nil, subtitleStreamIndex: Int? = nil, isPaused: Bool? = nil, isMuted: Bool? = nil, positionTicks: Int64? = nil, playbackStartTimeTicks: Int64? = nil, volumeLevel: Int? = nil, brightness: Int? = nil, aspectRatio: String? = nil, playMethod: Any? = nil, liveStreamId: String? = nil, playSessionId: String? = nil, repeatMode: Any? = nil, nowPlayingQueue: [QueueItem]? = nil, playlistItemId: String? = nil) { - self.canSeek = canSeek - self.item = item - self.itemId = itemId - self.sessionId = sessionId - self.mediaSourceId = mediaSourceId - self.audioStreamIndex = audioStreamIndex - self.subtitleStreamIndex = subtitleStreamIndex - self.isPaused = isPaused - self.isMuted = isMuted - self.positionTicks = positionTicks - self.playbackStartTimeTicks = playbackStartTimeTicks - self.volumeLevel = volumeLevel - self.brightness = brightness - self.aspectRatio = aspectRatio - self.playMethod = playMethod - self.liveStreamId = liveStreamId - self.playSessionId = playSessionId - self.repeatMode = repeatMode - self.nowPlayingQueue = nowPlayingQueue - self.playlistItemId = playlistItemId - } - - public enum CodingKeys: String, CodingKey { - case canSeek = "CanSeek" - case item = "Item" - case itemId = "ItemId" - case sessionId = "SessionId" - case mediaSourceId = "MediaSourceId" - case audioStreamIndex = "AudioStreamIndex" - case subtitleStreamIndex = "SubtitleStreamIndex" - case isPaused = "IsPaused" - case isMuted = "IsMuted" - case positionTicks = "PositionTicks" - case playbackStartTimeTicks = "PlaybackStartTimeTicks" - case volumeLevel = "VolumeLevel" - case brightness = "Brightness" - case aspectRatio = "AspectRatio" - case playMethod = "PlayMethod" - case liveStreamId = "LiveStreamId" - case playSessionId = "PlaySessionId" - case repeatMode = "RepeatMode" - case nowPlayingQueue = "NowPlayingQueue" - case playlistItemId = "PlaylistItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PlayingProgressBody1.swift b/JellyfinPlayer/Swaggers/Models/PlayingProgressBody1.swift deleted file mode 100644 index fc69f4dc..00000000 --- a/JellyfinPlayer/Swaggers/Models/PlayingProgressBody1.swift +++ /dev/null @@ -1,97 +0,0 @@ -// -// PlayingProgressBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The playback progress info. */ - -public struct PlayingProgressBody1: Codable { - - /** Gets or sets a value indicating whether this instance can seek. */ - public var canSeek: Bool? - /** Gets or sets the item. */ - public var item: Any? - /** Gets or sets the item identifier. */ - public var itemId: UUID? - /** Gets or sets the session id. */ - public var sessionId: String? - /** Gets or sets the media version identifier. */ - public var mediaSourceId: String? - /** Gets or sets the index of the audio stream. */ - public var audioStreamIndex: Int? - /** Gets or sets the index of the subtitle stream. */ - public var subtitleStreamIndex: Int? - /** Gets or sets a value indicating whether this instance is paused. */ - public var isPaused: Bool? - /** Gets or sets a value indicating whether this instance is muted. */ - public var isMuted: Bool? - /** Gets or sets the position ticks. */ - public var positionTicks: Int64? - public var playbackStartTimeTicks: Int64? - /** Gets or sets the volume level. */ - public var volumeLevel: Int? - public var brightness: Int? - public var aspectRatio: String? - /** Gets or sets the play method. */ - public var playMethod: Any? - /** Gets or sets the live stream identifier. */ - public var liveStreamId: String? - /** Gets or sets the play session identifier. */ - public var playSessionId: String? - /** Gets or sets the repeat mode. */ - public var repeatMode: Any? - public var nowPlayingQueue: [QueueItem]? - public var playlistItemId: String? - - public init(canSeek: Bool? = nil, item: Any? = nil, itemId: UUID? = nil, sessionId: String? = nil, mediaSourceId: String? = nil, audioStreamIndex: Int? = nil, subtitleStreamIndex: Int? = nil, isPaused: Bool? = nil, isMuted: Bool? = nil, positionTicks: Int64? = nil, playbackStartTimeTicks: Int64? = nil, volumeLevel: Int? = nil, brightness: Int? = nil, aspectRatio: String? = nil, playMethod: Any? = nil, liveStreamId: String? = nil, playSessionId: String? = nil, repeatMode: Any? = nil, nowPlayingQueue: [QueueItem]? = nil, playlistItemId: String? = nil) { - self.canSeek = canSeek - self.item = item - self.itemId = itemId - self.sessionId = sessionId - self.mediaSourceId = mediaSourceId - self.audioStreamIndex = audioStreamIndex - self.subtitleStreamIndex = subtitleStreamIndex - self.isPaused = isPaused - self.isMuted = isMuted - self.positionTicks = positionTicks - self.playbackStartTimeTicks = playbackStartTimeTicks - self.volumeLevel = volumeLevel - self.brightness = brightness - self.aspectRatio = aspectRatio - self.playMethod = playMethod - self.liveStreamId = liveStreamId - self.playSessionId = playSessionId - self.repeatMode = repeatMode - self.nowPlayingQueue = nowPlayingQueue - self.playlistItemId = playlistItemId - } - - public enum CodingKeys: String, CodingKey { - case canSeek = "CanSeek" - case item = "Item" - case itemId = "ItemId" - case sessionId = "SessionId" - case mediaSourceId = "MediaSourceId" - case audioStreamIndex = "AudioStreamIndex" - case subtitleStreamIndex = "SubtitleStreamIndex" - case isPaused = "IsPaused" - case isMuted = "IsMuted" - case positionTicks = "PositionTicks" - case playbackStartTimeTicks = "PlaybackStartTimeTicks" - case volumeLevel = "VolumeLevel" - case brightness = "Brightness" - case aspectRatio = "AspectRatio" - case playMethod = "PlayMethod" - case liveStreamId = "LiveStreamId" - case playSessionId = "PlaySessionId" - case repeatMode = "RepeatMode" - case nowPlayingQueue = "NowPlayingQueue" - case playlistItemId = "PlaylistItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PlayingProgressBody2.swift b/JellyfinPlayer/Swaggers/Models/PlayingProgressBody2.swift deleted file mode 100644 index b19fb78c..00000000 --- a/JellyfinPlayer/Swaggers/Models/PlayingProgressBody2.swift +++ /dev/null @@ -1,97 +0,0 @@ -// -// PlayingProgressBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The playback progress info. */ - -public struct PlayingProgressBody2: Codable { - - /** Gets or sets a value indicating whether this instance can seek. */ - public var canSeek: Bool? - /** Gets or sets the item. */ - public var item: Any? - /** Gets or sets the item identifier. */ - public var itemId: UUID? - /** Gets or sets the session id. */ - public var sessionId: String? - /** Gets or sets the media version identifier. */ - public var mediaSourceId: String? - /** Gets or sets the index of the audio stream. */ - public var audioStreamIndex: Int? - /** Gets or sets the index of the subtitle stream. */ - public var subtitleStreamIndex: Int? - /** Gets or sets a value indicating whether this instance is paused. */ - public var isPaused: Bool? - /** Gets or sets a value indicating whether this instance is muted. */ - public var isMuted: Bool? - /** Gets or sets the position ticks. */ - public var positionTicks: Int64? - public var playbackStartTimeTicks: Int64? - /** Gets or sets the volume level. */ - public var volumeLevel: Int? - public var brightness: Int? - public var aspectRatio: String? - /** Gets or sets the play method. */ - public var playMethod: Any? - /** Gets or sets the live stream identifier. */ - public var liveStreamId: String? - /** Gets or sets the play session identifier. */ - public var playSessionId: String? - /** Gets or sets the repeat mode. */ - public var repeatMode: Any? - public var nowPlayingQueue: [QueueItem]? - public var playlistItemId: String? - - public init(canSeek: Bool? = nil, item: Any? = nil, itemId: UUID? = nil, sessionId: String? = nil, mediaSourceId: String? = nil, audioStreamIndex: Int? = nil, subtitleStreamIndex: Int? = nil, isPaused: Bool? = nil, isMuted: Bool? = nil, positionTicks: Int64? = nil, playbackStartTimeTicks: Int64? = nil, volumeLevel: Int? = nil, brightness: Int? = nil, aspectRatio: String? = nil, playMethod: Any? = nil, liveStreamId: String? = nil, playSessionId: String? = nil, repeatMode: Any? = nil, nowPlayingQueue: [QueueItem]? = nil, playlistItemId: String? = nil) { - self.canSeek = canSeek - self.item = item - self.itemId = itemId - self.sessionId = sessionId - self.mediaSourceId = mediaSourceId - self.audioStreamIndex = audioStreamIndex - self.subtitleStreamIndex = subtitleStreamIndex - self.isPaused = isPaused - self.isMuted = isMuted - self.positionTicks = positionTicks - self.playbackStartTimeTicks = playbackStartTimeTicks - self.volumeLevel = volumeLevel - self.brightness = brightness - self.aspectRatio = aspectRatio - self.playMethod = playMethod - self.liveStreamId = liveStreamId - self.playSessionId = playSessionId - self.repeatMode = repeatMode - self.nowPlayingQueue = nowPlayingQueue - self.playlistItemId = playlistItemId - } - - public enum CodingKeys: String, CodingKey { - case canSeek = "CanSeek" - case item = "Item" - case itemId = "ItemId" - case sessionId = "SessionId" - case mediaSourceId = "MediaSourceId" - case audioStreamIndex = "AudioStreamIndex" - case subtitleStreamIndex = "SubtitleStreamIndex" - case isPaused = "IsPaused" - case isMuted = "IsMuted" - case positionTicks = "PositionTicks" - case playbackStartTimeTicks = "PlaybackStartTimeTicks" - case volumeLevel = "VolumeLevel" - case brightness = "Brightness" - case aspectRatio = "AspectRatio" - case playMethod = "PlayMethod" - case liveStreamId = "LiveStreamId" - case playSessionId = "PlaySessionId" - case repeatMode = "RepeatMode" - case nowPlayingQueue = "NowPlayingQueue" - case playlistItemId = "PlaylistItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PlayingStoppedBody.swift b/JellyfinPlayer/Swaggers/Models/PlayingStoppedBody.swift deleted file mode 100644 index 6e1f7337..00000000 --- a/JellyfinPlayer/Swaggers/Models/PlayingStoppedBody.swift +++ /dev/null @@ -1,63 +0,0 @@ -// -// PlayingStoppedBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The playback stop info. */ - -public struct PlayingStoppedBody: Codable { - - /** Gets or sets the item. */ - public var item: Any? - /** Gets or sets the item identifier. */ - public var itemId: UUID? - /** Gets or sets the session id. */ - public var sessionId: String? - /** Gets or sets the media version identifier. */ - public var mediaSourceId: String? - /** Gets or sets the position ticks. */ - public var positionTicks: Int64? - /** Gets or sets the live stream identifier. */ - public var liveStreamId: String? - /** Gets or sets the play session identifier. */ - public var playSessionId: String? - /** Gets or sets a value indicating whether this MediaBrowser.Model.Session.PlaybackStopInfo is failed. */ - public var failed: Bool? - public var nextMediaType: String? - public var playlistItemId: String? - public var nowPlayingQueue: [QueueItem]? - - public init(item: Any? = nil, itemId: UUID? = nil, sessionId: String? = nil, mediaSourceId: String? = nil, positionTicks: Int64? = nil, liveStreamId: String? = nil, playSessionId: String? = nil, failed: Bool? = nil, nextMediaType: String? = nil, playlistItemId: String? = nil, nowPlayingQueue: [QueueItem]? = nil) { - self.item = item - self.itemId = itemId - self.sessionId = sessionId - self.mediaSourceId = mediaSourceId - self.positionTicks = positionTicks - self.liveStreamId = liveStreamId - self.playSessionId = playSessionId - self.failed = failed - self.nextMediaType = nextMediaType - self.playlistItemId = playlistItemId - self.nowPlayingQueue = nowPlayingQueue - } - - public enum CodingKeys: String, CodingKey { - case item = "Item" - case itemId = "ItemId" - case sessionId = "SessionId" - case mediaSourceId = "MediaSourceId" - case positionTicks = "PositionTicks" - case liveStreamId = "LiveStreamId" - case playSessionId = "PlaySessionId" - case failed = "Failed" - case nextMediaType = "NextMediaType" - case playlistItemId = "PlaylistItemId" - case nowPlayingQueue = "NowPlayingQueue" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PlayingStoppedBody1.swift b/JellyfinPlayer/Swaggers/Models/PlayingStoppedBody1.swift deleted file mode 100644 index 6c10914c..00000000 --- a/JellyfinPlayer/Swaggers/Models/PlayingStoppedBody1.swift +++ /dev/null @@ -1,63 +0,0 @@ -// -// PlayingStoppedBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The playback stop info. */ - -public struct PlayingStoppedBody1: Codable { - - /** Gets or sets the item. */ - public var item: Any? - /** Gets or sets the item identifier. */ - public var itemId: UUID? - /** Gets or sets the session id. */ - public var sessionId: String? - /** Gets or sets the media version identifier. */ - public var mediaSourceId: String? - /** Gets or sets the position ticks. */ - public var positionTicks: Int64? - /** Gets or sets the live stream identifier. */ - public var liveStreamId: String? - /** Gets or sets the play session identifier. */ - public var playSessionId: String? - /** Gets or sets a value indicating whether this MediaBrowser.Model.Session.PlaybackStopInfo is failed. */ - public var failed: Bool? - public var nextMediaType: String? - public var playlistItemId: String? - public var nowPlayingQueue: [QueueItem]? - - public init(item: Any? = nil, itemId: UUID? = nil, sessionId: String? = nil, mediaSourceId: String? = nil, positionTicks: Int64? = nil, liveStreamId: String? = nil, playSessionId: String? = nil, failed: Bool? = nil, nextMediaType: String? = nil, playlistItemId: String? = nil, nowPlayingQueue: [QueueItem]? = nil) { - self.item = item - self.itemId = itemId - self.sessionId = sessionId - self.mediaSourceId = mediaSourceId - self.positionTicks = positionTicks - self.liveStreamId = liveStreamId - self.playSessionId = playSessionId - self.failed = failed - self.nextMediaType = nextMediaType - self.playlistItemId = playlistItemId - self.nowPlayingQueue = nowPlayingQueue - } - - public enum CodingKeys: String, CodingKey { - case item = "Item" - case itemId = "ItemId" - case sessionId = "SessionId" - case mediaSourceId = "MediaSourceId" - case positionTicks = "PositionTicks" - case liveStreamId = "LiveStreamId" - case playSessionId = "PlaySessionId" - case failed = "Failed" - case nextMediaType = "NextMediaType" - case playlistItemId = "PlaylistItemId" - case nowPlayingQueue = "NowPlayingQueue" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PlayingStoppedBody2.swift b/JellyfinPlayer/Swaggers/Models/PlayingStoppedBody2.swift deleted file mode 100644 index 7c6df38c..00000000 --- a/JellyfinPlayer/Swaggers/Models/PlayingStoppedBody2.swift +++ /dev/null @@ -1,63 +0,0 @@ -// -// PlayingStoppedBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The playback stop info. */ - -public struct PlayingStoppedBody2: Codable { - - /** Gets or sets the item. */ - public var item: Any? - /** Gets or sets the item identifier. */ - public var itemId: UUID? - /** Gets or sets the session id. */ - public var sessionId: String? - /** Gets or sets the media version identifier. */ - public var mediaSourceId: String? - /** Gets or sets the position ticks. */ - public var positionTicks: Int64? - /** Gets or sets the live stream identifier. */ - public var liveStreamId: String? - /** Gets or sets the play session identifier. */ - public var playSessionId: String? - /** Gets or sets a value indicating whether this MediaBrowser.Model.Session.PlaybackStopInfo is failed. */ - public var failed: Bool? - public var nextMediaType: String? - public var playlistItemId: String? - public var nowPlayingQueue: [QueueItem]? - - public init(item: Any? = nil, itemId: UUID? = nil, sessionId: String? = nil, mediaSourceId: String? = nil, positionTicks: Int64? = nil, liveStreamId: String? = nil, playSessionId: String? = nil, failed: Bool? = nil, nextMediaType: String? = nil, playlistItemId: String? = nil, nowPlayingQueue: [QueueItem]? = nil) { - self.item = item - self.itemId = itemId - self.sessionId = sessionId - self.mediaSourceId = mediaSourceId - self.positionTicks = positionTicks - self.liveStreamId = liveStreamId - self.playSessionId = playSessionId - self.failed = failed - self.nextMediaType = nextMediaType - self.playlistItemId = playlistItemId - self.nowPlayingQueue = nowPlayingQueue - } - - public enum CodingKeys: String, CodingKey { - case item = "Item" - case itemId = "ItemId" - case sessionId = "SessionId" - case mediaSourceId = "MediaSourceId" - case positionTicks = "PositionTicks" - case liveStreamId = "LiveStreamId" - case playSessionId = "PlaySessionId" - case failed = "Failed" - case nextMediaType = "NextMediaType" - case playlistItemId = "PlaylistItemId" - case nowPlayingQueue = "NowPlayingQueue" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PlaylistCreationResult.swift b/JellyfinPlayer/Swaggers/Models/PlaylistCreationResult.swift deleted file mode 100644 index dc4413fd..00000000 --- a/JellyfinPlayer/Swaggers/Models/PlaylistCreationResult.swift +++ /dev/null @@ -1,24 +0,0 @@ -// -// PlaylistCreationResult.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct PlaylistCreationResult: Codable { - - public var _id: String? - - public init(_id: String? = nil) { - self._id = _id - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PlaylistsBody.swift b/JellyfinPlayer/Swaggers/Models/PlaylistsBody.swift deleted file mode 100644 index d1c63994..00000000 --- a/JellyfinPlayer/Swaggers/Models/PlaylistsBody.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// PlaylistsBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The create playlist payload. */ - -public struct PlaylistsBody: Codable { - - /** Gets or sets the name of the new playlist. */ - public var name: String? - /** Gets or sets item ids to add to the playlist. */ - public var ids: [UUID]? - /** Gets or sets the user id. */ - public var userId: UUID? - /** Gets or sets the media type. */ - public var mediaType: String? - - public init(name: String? = nil, ids: [UUID]? = nil, userId: UUID? = nil, mediaType: String? = nil) { - self.name = name - self.ids = ids - self.userId = userId - self.mediaType = mediaType - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case ids = "Ids" - case userId = "UserId" - case mediaType = "MediaType" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PlaylistsBody1.swift b/JellyfinPlayer/Swaggers/Models/PlaylistsBody1.swift deleted file mode 100644 index 98db3ab1..00000000 --- a/JellyfinPlayer/Swaggers/Models/PlaylistsBody1.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// PlaylistsBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The create playlist payload. */ - -public struct PlaylistsBody1: Codable { - - /** Gets or sets the name of the new playlist. */ - public var name: String? - /** Gets or sets item ids to add to the playlist. */ - public var ids: [UUID]? - /** Gets or sets the user id. */ - public var userId: UUID? - /** Gets or sets the media type. */ - public var mediaType: String? - - public init(name: String? = nil, ids: [UUID]? = nil, userId: UUID? = nil, mediaType: String? = nil) { - self.name = name - self.ids = ids - self.userId = userId - self.mediaType = mediaType - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case ids = "Ids" - case userId = "UserId" - case mediaType = "MediaType" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PlaylistsBody2.swift b/JellyfinPlayer/Swaggers/Models/PlaylistsBody2.swift deleted file mode 100644 index 386fb071..00000000 --- a/JellyfinPlayer/Swaggers/Models/PlaylistsBody2.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// PlaylistsBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The create playlist payload. */ - -public struct PlaylistsBody2: Codable { - - /** Gets or sets the name of the new playlist. */ - public var name: String? - /** Gets or sets item ids to add to the playlist. */ - public var ids: [UUID]? - /** Gets or sets the user id. */ - public var userId: UUID? - /** Gets or sets the media type. */ - public var mediaType: String? - - public init(name: String? = nil, ids: [UUID]? = nil, userId: UUID? = nil, mediaType: String? = nil) { - self.name = name - self.ids = ids - self.userId = userId - self.mediaType = mediaType - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case ids = "Ids" - case userId = "UserId" - case mediaType = "MediaType" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PlaystateCommand.swift b/JellyfinPlayer/Swaggers/Models/PlaystateCommand.swift deleted file mode 100644 index a98c4823..00000000 --- a/JellyfinPlayer/Swaggers/Models/PlaystateCommand.swift +++ /dev/null @@ -1,22 +0,0 @@ -// -// PlaystateCommand.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Enum PlaystateCommand. */ -public enum PlaystateCommand: String, Codable { - case stop = "Stop" - case pause = "Pause" - case unpause = "Unpause" - case nextTrack = "NextTrack" - case previousTrack = "PreviousTrack" - case seek = "Seek" - case rewind = "Rewind" - case fastForward = "FastForward" - case playPause = "PlayPause" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/PlaystateRequest.swift b/JellyfinPlayer/Swaggers/Models/PlaystateRequest.swift deleted file mode 100644 index b36943ac..00000000 --- a/JellyfinPlayer/Swaggers/Models/PlaystateRequest.swift +++ /dev/null @@ -1,32 +0,0 @@ -// -// PlaystateRequest.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct PlaystateRequest: Codable { - - /** Enum PlaystateCommand. */ - public var command: AllOfPlaystateRequestCommand? - public var seekPositionTicks: Int64? - /** Gets or sets the controlling user identifier. */ - public var controllingUserId: String? - - public init(command: AllOfPlaystateRequestCommand? = nil, seekPositionTicks: Int64? = nil, controllingUserId: String? = nil) { - self.command = command - self.seekPositionTicks = seekPositionTicks - self.controllingUserId = controllingUserId - } - - public enum CodingKeys: String, CodingKey { - case command = "Command" - case seekPositionTicks = "SeekPositionTicks" - case controllingUserId = "ControllingUserId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PluginInfo.swift b/JellyfinPlayer/Swaggers/Models/PluginInfo.swift deleted file mode 100644 index 11e1ab0f..00000000 --- a/JellyfinPlayer/Swaggers/Models/PluginInfo.swift +++ /dev/null @@ -1,54 +0,0 @@ -// -// PluginInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** This is a serializable stub class that is used by the api to provide information about installed plugins. */ - -public struct PluginInfo: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the version. */ - public var version: AllOfPluginInfoVersion? - /** Gets or sets the name of the configuration file. */ - public var configurationFileName: String? - /** Gets or sets the description. */ - public var _description: String? - /** Gets or sets the unique id. */ - public var _id: UUID? - /** Gets or sets a value indicating whether the plugin can be uninstalled. */ - public var canUninstall: Bool? - /** Gets or sets a value indicating whether this plugin has a valid image. */ - public var hasImage: Bool? - /** Gets or sets a value indicating the status of the plugin. */ - public var status: AllOfPluginInfoStatus? - - public init(name: String? = nil, version: AllOfPluginInfoVersion? = nil, configurationFileName: String? = nil, _description: String? = nil, _id: UUID? = nil, canUninstall: Bool? = nil, hasImage: Bool? = nil, status: AllOfPluginInfoStatus? = nil) { - self.name = name - self.version = version - self.configurationFileName = configurationFileName - self._description = _description - self._id = _id - self.canUninstall = canUninstall - self.hasImage = hasImage - self.status = status - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case version = "Version" - case configurationFileName = "ConfigurationFileName" - case _description = "Description" - case _id = "Id" - case canUninstall = "CanUninstall" - case hasImage = "HasImage" - case status = "Status" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PluginSecurityInfo.swift b/JellyfinPlayer/Swaggers/Models/PluginSecurityInfo.swift deleted file mode 100644 index 8265e4f0..00000000 --- a/JellyfinPlayer/Swaggers/Models/PluginSecurityInfo.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// PluginSecurityInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Plugin security info. */ - -public struct PluginSecurityInfo: Codable { - - /** Gets or sets the supporter key. */ - public var supporterKey: String? - /** Gets or sets a value indicating whether is mb supporter. */ - public var isMbSupporter: Bool? - - public init(supporterKey: String? = nil, isMbSupporter: Bool? = nil) { - self.supporterKey = supporterKey - self.isMbSupporter = isMbSupporter - } - - public enum CodingKeys: String, CodingKey { - case supporterKey = "SupporterKey" - case isMbSupporter = "IsMbSupporter" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PluginStatus.swift b/JellyfinPlayer/Swaggers/Models/PluginStatus.swift deleted file mode 100644 index 4bbca98d..00000000 --- a/JellyfinPlayer/Swaggers/Models/PluginStatus.swift +++ /dev/null @@ -1,20 +0,0 @@ -// -// PluginStatus.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Plugin load status. */ -public enum PluginStatus: String, Codable { - case active = "Active" - case restart = "Restart" - case deleted = "Deleted" - case superceded = "Superceded" - case malfunctioned = "Malfunctioned" - case notSupported = "NotSupported" - case disabled = "Disabled" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/PluginsSecurityInfoBody.swift b/JellyfinPlayer/Swaggers/Models/PluginsSecurityInfoBody.swift deleted file mode 100644 index bc0c3c83..00000000 --- a/JellyfinPlayer/Swaggers/Models/PluginsSecurityInfoBody.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// PluginsSecurityInfoBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Plugin security info. */ - -public struct PluginsSecurityInfoBody: Codable { - - /** Gets or sets the supporter key. */ - public var supporterKey: String? - /** Gets or sets a value indicating whether is mb supporter. */ - public var isMbSupporter: Bool? - - public init(supporterKey: String? = nil, isMbSupporter: Bool? = nil) { - self.supporterKey = supporterKey - self.isMbSupporter = isMbSupporter - } - - public enum CodingKeys: String, CodingKey { - case supporterKey = "SupporterKey" - case isMbSupporter = "IsMbSupporter" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PluginsSecurityInfoBody1.swift b/JellyfinPlayer/Swaggers/Models/PluginsSecurityInfoBody1.swift deleted file mode 100644 index 547629a7..00000000 --- a/JellyfinPlayer/Swaggers/Models/PluginsSecurityInfoBody1.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// PluginsSecurityInfoBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Plugin security info. */ - -public struct PluginsSecurityInfoBody1: Codable { - - /** Gets or sets the supporter key. */ - public var supporterKey: String? - /** Gets or sets a value indicating whether is mb supporter. */ - public var isMbSupporter: Bool? - - public init(supporterKey: String? = nil, isMbSupporter: Bool? = nil) { - self.supporterKey = supporterKey - self.isMbSupporter = isMbSupporter - } - - public enum CodingKeys: String, CodingKey { - case supporterKey = "SupporterKey" - case isMbSupporter = "IsMbSupporter" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PluginsSecurityInfoBody2.swift b/JellyfinPlayer/Swaggers/Models/PluginsSecurityInfoBody2.swift deleted file mode 100644 index d9b65bdd..00000000 --- a/JellyfinPlayer/Swaggers/Models/PluginsSecurityInfoBody2.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// PluginsSecurityInfoBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Plugin security info. */ - -public struct PluginsSecurityInfoBody2: Codable { - - /** Gets or sets the supporter key. */ - public var supporterKey: String? - /** Gets or sets a value indicating whether is mb supporter. */ - public var isMbSupporter: Bool? - - public init(supporterKey: String? = nil, isMbSupporter: Bool? = nil) { - self.supporterKey = supporterKey - self.isMbSupporter = isMbSupporter - } - - public enum CodingKeys: String, CodingKey { - case supporterKey = "SupporterKey" - case isMbSupporter = "IsMbSupporter" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/PreviousItemRequestDto.swift b/JellyfinPlayer/Swaggers/Models/PreviousItemRequestDto.swift deleted file mode 100644 index f0178262..00000000 --- a/JellyfinPlayer/Swaggers/Models/PreviousItemRequestDto.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// PreviousItemRequestDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class PreviousItemRequestDto. */ - -public struct PreviousItemRequestDto: Codable { - - /** Gets or sets the playing item identifier. */ - public var playlistItemId: UUID? - - public init(playlistItemId: UUID? = nil) { - self.playlistItemId = playlistItemId - } - - public enum CodingKeys: String, CodingKey { - case playlistItemId = "PlaylistItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ProblemDetails.swift b/JellyfinPlayer/Swaggers/Models/ProblemDetails.swift deleted file mode 100644 index de273041..00000000 --- a/JellyfinPlayer/Swaggers/Models/ProblemDetails.swift +++ /dev/null @@ -1,49 +0,0 @@ -// -// ProblemDetails.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct ProblemDetails: Codable { - - - public var additionalProperties: [String:Object] = [:] - - public subscript(key: String) -> Object? { - get { - if let value = additionalProperties[key] { - return value - } - return nil - } - - set { - additionalProperties[key] = newValue - } - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - - var container = encoder.container(keyedBy: String.self) - - try container.encodeMap(additionalProperties) - } - - // Decodable protocol methods - - public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: String.self) - - var nonAdditionalPropertyKeys = Set() - additionalProperties = try container.decodeMap(Object.self, excludedKeys: nonAdditionalPropertyKeys) - } - - -} diff --git a/JellyfinPlayer/Swaggers/Models/ProfileCondition.swift b/JellyfinPlayer/Swaggers/Models/ProfileCondition.swift deleted file mode 100644 index a8bc0dd5..00000000 --- a/JellyfinPlayer/Swaggers/Models/ProfileCondition.swift +++ /dev/null @@ -1,33 +0,0 @@ -// -// ProfileCondition.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct ProfileCondition: Codable { - - public var condition: AllOfProfileConditionCondition? - public var property: AllOfProfileConditionProperty? - public var value: String? - public var isRequired: Bool? - - public init(condition: AllOfProfileConditionCondition? = nil, property: AllOfProfileConditionProperty? = nil, value: String? = nil, isRequired: Bool? = nil) { - self.condition = condition - self.property = property - self.value = value - self.isRequired = isRequired - } - - public enum CodingKeys: String, CodingKey { - case condition = "Condition" - case property = "Property" - case value = "Value" - case isRequired = "IsRequired" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ProfileConditionType.swift b/JellyfinPlayer/Swaggers/Models/ProfileConditionType.swift deleted file mode 100644 index 720e162a..00000000 --- a/JellyfinPlayer/Swaggers/Models/ProfileConditionType.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// ProfileConditionType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum ProfileConditionType: String, Codable { - case equals = "Equals" - case notEquals = "NotEquals" - case lessThanEqual = "LessThanEqual" - case greaterThanEqual = "GreaterThanEqual" - case equalsAny = "EqualsAny" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/ProfileConditionValue.swift b/JellyfinPlayer/Swaggers/Models/ProfileConditionValue.swift deleted file mode 100644 index 6edd75fc..00000000 --- a/JellyfinPlayer/Swaggers/Models/ProfileConditionValue.swift +++ /dev/null @@ -1,35 +0,0 @@ -// -// ProfileConditionValue.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum ProfileConditionValue: String, Codable { - case audioChannels = "AudioChannels" - case audioBitrate = "AudioBitrate" - case audioProfile = "AudioProfile" - case width = "Width" - case height = "Height" - case has64BitOffsets = "Has64BitOffsets" - case packetLength = "PacketLength" - case videoBitDepth = "VideoBitDepth" - case videoBitrate = "VideoBitrate" - case videoFramerate = "VideoFramerate" - case videoLevel = "VideoLevel" - case videoProfile = "VideoProfile" - case videoTimestamp = "VideoTimestamp" - case isAnamorphic = "IsAnamorphic" - case refFrames = "RefFrames" - case numAudioStreams = "NumAudioStreams" - case numVideoStreams = "NumVideoStreams" - case isSecondaryAudio = "IsSecondaryAudio" - case videoCodecTag = "VideoCodecTag" - case isAvc = "IsAvc" - case isInterlaced = "IsInterlaced" - case audioSampleRate = "AudioSampleRate" - case audioBitDepth = "AudioBitDepth" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/ProfilesProfileIdBody.swift b/JellyfinPlayer/Swaggers/Models/ProfilesProfileIdBody.swift deleted file mode 100644 index 4d6ff250..00000000 --- a/JellyfinPlayer/Swaggers/Models/ProfilesProfileIdBody.swift +++ /dev/null @@ -1,178 +0,0 @@ -// -// ProfilesProfileIdBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Device profile. */ - -public struct ProfilesProfileIdBody: Codable { - - /** Gets or sets the Name. */ - public var name: String? - /** Gets or sets the Id. */ - public var _id: String? - /** Gets or sets the Identification. */ - public var identification: Any? - /** Gets or sets the FriendlyName. */ - public var friendlyName: String? - /** Gets or sets the Manufacturer. */ - public var manufacturer: String? - /** Gets or sets the ManufacturerUrl. */ - public var manufacturerUrl: String? - /** Gets or sets the ModelName. */ - public var modelName: String? - /** Gets or sets the ModelDescription. */ - public var modelDescription: String? - /** Gets or sets the ModelNumber. */ - public var modelNumber: String? - /** Gets or sets the ModelUrl. */ - public var modelUrl: String? - /** Gets or sets the SerialNumber. */ - public var serialNumber: String? - /** Gets or sets a value indicating whether EnableAlbumArtInDidl. */ - public var enableAlbumArtInDidl: Bool? - /** Gets or sets a value indicating whether EnableSingleAlbumArtLimit. */ - public var enableSingleAlbumArtLimit: Bool? - /** Gets or sets a value indicating whether EnableSingleSubtitleLimit. */ - public var enableSingleSubtitleLimit: Bool? - /** Gets or sets the SupportedMediaTypes. */ - public var supportedMediaTypes: String? - /** Gets or sets the UserId. */ - public var userId: String? - /** Gets or sets the AlbumArtPn. */ - public var albumArtPn: String? - /** Gets or sets the MaxAlbumArtWidth. */ - public var maxAlbumArtWidth: Int? - /** Gets or sets the MaxAlbumArtHeight. */ - public var maxAlbumArtHeight: Int? - /** Gets or sets the MaxIconWidth. */ - public var maxIconWidth: Int? - /** Gets or sets the MaxIconHeight. */ - public var maxIconHeight: Int? - /** Gets or sets the MaxStreamingBitrate. */ - public var maxStreamingBitrate: Int? - /** Gets or sets the MaxStaticBitrate. */ - public var maxStaticBitrate: Int? - /** Gets or sets the MusicStreamingTranscodingBitrate. */ - public var musicStreamingTranscodingBitrate: Int? - /** Gets or sets the MaxStaticMusicBitrate. */ - public var maxStaticMusicBitrate: Int? - /** Gets or sets the content of the aggregationFlags element in the urn:schemas-sonycom:av namespace. */ - public var sonyAggregationFlags: String? - /** Gets or sets the ProtocolInfo. */ - public var protocolInfo: String? - /** Gets or sets the TimelineOffsetSeconds. */ - public var timelineOffsetSeconds: Int? - /** Gets or sets a value indicating whether RequiresPlainVideoItems. */ - public var requiresPlainVideoItems: Bool? - /** Gets or sets a value indicating whether RequiresPlainFolders. */ - public var requiresPlainFolders: Bool? - /** Gets or sets a value indicating whether EnableMSMediaReceiverRegistrar. */ - public var enableMSMediaReceiverRegistrar: Bool? - /** Gets or sets a value indicating whether IgnoreTranscodeByteRangeRequests. */ - public var ignoreTranscodeByteRangeRequests: Bool? - /** Gets or sets the XmlRootAttributes. */ - public var xmlRootAttributes: [XmlAttribute]? - /** Gets or sets the direct play profiles. */ - public var directPlayProfiles: [DirectPlayProfile]? - /** Gets or sets the transcoding profiles. */ - public var transcodingProfiles: [TranscodingProfile]? - /** Gets or sets the ContainerProfiles. */ - public var containerProfiles: [ContainerProfile]? - /** Gets or sets the CodecProfiles. */ - public var codecProfiles: [CodecProfile]? - /** Gets or sets the ResponseProfiles. */ - public var responseProfiles: [ResponseProfile]? - /** Gets or sets the SubtitleProfiles. */ - public var subtitleProfiles: [SubtitleProfile]? - - public init(name: String? = nil, _id: String? = nil, identification: Any? = nil, friendlyName: String? = nil, manufacturer: String? = nil, manufacturerUrl: String? = nil, modelName: String? = nil, modelDescription: String? = nil, modelNumber: String? = nil, modelUrl: String? = nil, serialNumber: String? = nil, enableAlbumArtInDidl: Bool? = nil, enableSingleAlbumArtLimit: Bool? = nil, enableSingleSubtitleLimit: Bool? = nil, supportedMediaTypes: String? = nil, userId: String? = nil, albumArtPn: String? = nil, maxAlbumArtWidth: Int? = nil, maxAlbumArtHeight: Int? = nil, maxIconWidth: Int? = nil, maxIconHeight: Int? = nil, maxStreamingBitrate: Int? = nil, maxStaticBitrate: Int? = nil, musicStreamingTranscodingBitrate: Int? = nil, maxStaticMusicBitrate: Int? = nil, sonyAggregationFlags: String? = nil, protocolInfo: String? = nil, timelineOffsetSeconds: Int? = nil, requiresPlainVideoItems: Bool? = nil, requiresPlainFolders: Bool? = nil, enableMSMediaReceiverRegistrar: Bool? = nil, ignoreTranscodeByteRangeRequests: Bool? = nil, xmlRootAttributes: [XmlAttribute]? = nil, directPlayProfiles: [DirectPlayProfile]? = nil, transcodingProfiles: [TranscodingProfile]? = nil, containerProfiles: [ContainerProfile]? = nil, codecProfiles: [CodecProfile]? = nil, responseProfiles: [ResponseProfile]? = nil, subtitleProfiles: [SubtitleProfile]? = nil) { - self.name = name - self._id = _id - self.identification = identification - self.friendlyName = friendlyName - self.manufacturer = manufacturer - self.manufacturerUrl = manufacturerUrl - self.modelName = modelName - self.modelDescription = modelDescription - self.modelNumber = modelNumber - self.modelUrl = modelUrl - self.serialNumber = serialNumber - self.enableAlbumArtInDidl = enableAlbumArtInDidl - self.enableSingleAlbumArtLimit = enableSingleAlbumArtLimit - self.enableSingleSubtitleLimit = enableSingleSubtitleLimit - self.supportedMediaTypes = supportedMediaTypes - self.userId = userId - self.albumArtPn = albumArtPn - self.maxAlbumArtWidth = maxAlbumArtWidth - self.maxAlbumArtHeight = maxAlbumArtHeight - self.maxIconWidth = maxIconWidth - self.maxIconHeight = maxIconHeight - self.maxStreamingBitrate = maxStreamingBitrate - self.maxStaticBitrate = maxStaticBitrate - self.musicStreamingTranscodingBitrate = musicStreamingTranscodingBitrate - self.maxStaticMusicBitrate = maxStaticMusicBitrate - self.sonyAggregationFlags = sonyAggregationFlags - self.protocolInfo = protocolInfo - self.timelineOffsetSeconds = timelineOffsetSeconds - self.requiresPlainVideoItems = requiresPlainVideoItems - self.requiresPlainFolders = requiresPlainFolders - self.enableMSMediaReceiverRegistrar = enableMSMediaReceiverRegistrar - self.ignoreTranscodeByteRangeRequests = ignoreTranscodeByteRangeRequests - self.xmlRootAttributes = xmlRootAttributes - self.directPlayProfiles = directPlayProfiles - self.transcodingProfiles = transcodingProfiles - self.containerProfiles = containerProfiles - self.codecProfiles = codecProfiles - self.responseProfiles = responseProfiles - self.subtitleProfiles = subtitleProfiles - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case _id = "Id" - case identification = "Identification" - case friendlyName = "FriendlyName" - case manufacturer = "Manufacturer" - case manufacturerUrl = "ManufacturerUrl" - case modelName = "ModelName" - case modelDescription = "ModelDescription" - case modelNumber = "ModelNumber" - case modelUrl = "ModelUrl" - case serialNumber = "SerialNumber" - case enableAlbumArtInDidl = "EnableAlbumArtInDidl" - case enableSingleAlbumArtLimit = "EnableSingleAlbumArtLimit" - case enableSingleSubtitleLimit = "EnableSingleSubtitleLimit" - case supportedMediaTypes = "SupportedMediaTypes" - case userId = "UserId" - case albumArtPn = "AlbumArtPn" - case maxAlbumArtWidth = "MaxAlbumArtWidth" - case maxAlbumArtHeight = "MaxAlbumArtHeight" - case maxIconWidth = "MaxIconWidth" - case maxIconHeight = "MaxIconHeight" - case maxStreamingBitrate = "MaxStreamingBitrate" - case maxStaticBitrate = "MaxStaticBitrate" - case musicStreamingTranscodingBitrate = "MusicStreamingTranscodingBitrate" - case maxStaticMusicBitrate = "MaxStaticMusicBitrate" - case sonyAggregationFlags = "SonyAggregationFlags" - case protocolInfo = "ProtocolInfo" - case timelineOffsetSeconds = "TimelineOffsetSeconds" - case requiresPlainVideoItems = "RequiresPlainVideoItems" - case requiresPlainFolders = "RequiresPlainFolders" - case enableMSMediaReceiverRegistrar = "EnableMSMediaReceiverRegistrar" - case ignoreTranscodeByteRangeRequests = "IgnoreTranscodeByteRangeRequests" - case xmlRootAttributes = "XmlRootAttributes" - case directPlayProfiles = "DirectPlayProfiles" - case transcodingProfiles = "TranscodingProfiles" - case containerProfiles = "ContainerProfiles" - case codecProfiles = "CodecProfiles" - case responseProfiles = "ResponseProfiles" - case subtitleProfiles = "SubtitleProfiles" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ProfilesProfileIdBody1.swift b/JellyfinPlayer/Swaggers/Models/ProfilesProfileIdBody1.swift deleted file mode 100644 index e15e9133..00000000 --- a/JellyfinPlayer/Swaggers/Models/ProfilesProfileIdBody1.swift +++ /dev/null @@ -1,178 +0,0 @@ -// -// ProfilesProfileIdBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Device profile. */ - -public struct ProfilesProfileIdBody1: Codable { - - /** Gets or sets the Name. */ - public var name: String? - /** Gets or sets the Id. */ - public var _id: String? - /** Gets or sets the Identification. */ - public var identification: Any? - /** Gets or sets the FriendlyName. */ - public var friendlyName: String? - /** Gets or sets the Manufacturer. */ - public var manufacturer: String? - /** Gets or sets the ManufacturerUrl. */ - public var manufacturerUrl: String? - /** Gets or sets the ModelName. */ - public var modelName: String? - /** Gets or sets the ModelDescription. */ - public var modelDescription: String? - /** Gets or sets the ModelNumber. */ - public var modelNumber: String? - /** Gets or sets the ModelUrl. */ - public var modelUrl: String? - /** Gets or sets the SerialNumber. */ - public var serialNumber: String? - /** Gets or sets a value indicating whether EnableAlbumArtInDidl. */ - public var enableAlbumArtInDidl: Bool? - /** Gets or sets a value indicating whether EnableSingleAlbumArtLimit. */ - public var enableSingleAlbumArtLimit: Bool? - /** Gets or sets a value indicating whether EnableSingleSubtitleLimit. */ - public var enableSingleSubtitleLimit: Bool? - /** Gets or sets the SupportedMediaTypes. */ - public var supportedMediaTypes: String? - /** Gets or sets the UserId. */ - public var userId: String? - /** Gets or sets the AlbumArtPn. */ - public var albumArtPn: String? - /** Gets or sets the MaxAlbumArtWidth. */ - public var maxAlbumArtWidth: Int? - /** Gets or sets the MaxAlbumArtHeight. */ - public var maxAlbumArtHeight: Int? - /** Gets or sets the MaxIconWidth. */ - public var maxIconWidth: Int? - /** Gets or sets the MaxIconHeight. */ - public var maxIconHeight: Int? - /** Gets or sets the MaxStreamingBitrate. */ - public var maxStreamingBitrate: Int? - /** Gets or sets the MaxStaticBitrate. */ - public var maxStaticBitrate: Int? - /** Gets or sets the MusicStreamingTranscodingBitrate. */ - public var musicStreamingTranscodingBitrate: Int? - /** Gets or sets the MaxStaticMusicBitrate. */ - public var maxStaticMusicBitrate: Int? - /** Gets or sets the content of the aggregationFlags element in the urn:schemas-sonycom:av namespace. */ - public var sonyAggregationFlags: String? - /** Gets or sets the ProtocolInfo. */ - public var protocolInfo: String? - /** Gets or sets the TimelineOffsetSeconds. */ - public var timelineOffsetSeconds: Int? - /** Gets or sets a value indicating whether RequiresPlainVideoItems. */ - public var requiresPlainVideoItems: Bool? - /** Gets or sets a value indicating whether RequiresPlainFolders. */ - public var requiresPlainFolders: Bool? - /** Gets or sets a value indicating whether EnableMSMediaReceiverRegistrar. */ - public var enableMSMediaReceiverRegistrar: Bool? - /** Gets or sets a value indicating whether IgnoreTranscodeByteRangeRequests. */ - public var ignoreTranscodeByteRangeRequests: Bool? - /** Gets or sets the XmlRootAttributes. */ - public var xmlRootAttributes: [XmlAttribute]? - /** Gets or sets the direct play profiles. */ - public var directPlayProfiles: [DirectPlayProfile]? - /** Gets or sets the transcoding profiles. */ - public var transcodingProfiles: [TranscodingProfile]? - /** Gets or sets the ContainerProfiles. */ - public var containerProfiles: [ContainerProfile]? - /** Gets or sets the CodecProfiles. */ - public var codecProfiles: [CodecProfile]? - /** Gets or sets the ResponseProfiles. */ - public var responseProfiles: [ResponseProfile]? - /** Gets or sets the SubtitleProfiles. */ - public var subtitleProfiles: [SubtitleProfile]? - - public init(name: String? = nil, _id: String? = nil, identification: Any? = nil, friendlyName: String? = nil, manufacturer: String? = nil, manufacturerUrl: String? = nil, modelName: String? = nil, modelDescription: String? = nil, modelNumber: String? = nil, modelUrl: String? = nil, serialNumber: String? = nil, enableAlbumArtInDidl: Bool? = nil, enableSingleAlbumArtLimit: Bool? = nil, enableSingleSubtitleLimit: Bool? = nil, supportedMediaTypes: String? = nil, userId: String? = nil, albumArtPn: String? = nil, maxAlbumArtWidth: Int? = nil, maxAlbumArtHeight: Int? = nil, maxIconWidth: Int? = nil, maxIconHeight: Int? = nil, maxStreamingBitrate: Int? = nil, maxStaticBitrate: Int? = nil, musicStreamingTranscodingBitrate: Int? = nil, maxStaticMusicBitrate: Int? = nil, sonyAggregationFlags: String? = nil, protocolInfo: String? = nil, timelineOffsetSeconds: Int? = nil, requiresPlainVideoItems: Bool? = nil, requiresPlainFolders: Bool? = nil, enableMSMediaReceiverRegistrar: Bool? = nil, ignoreTranscodeByteRangeRequests: Bool? = nil, xmlRootAttributes: [XmlAttribute]? = nil, directPlayProfiles: [DirectPlayProfile]? = nil, transcodingProfiles: [TranscodingProfile]? = nil, containerProfiles: [ContainerProfile]? = nil, codecProfiles: [CodecProfile]? = nil, responseProfiles: [ResponseProfile]? = nil, subtitleProfiles: [SubtitleProfile]? = nil) { - self.name = name - self._id = _id - self.identification = identification - self.friendlyName = friendlyName - self.manufacturer = manufacturer - self.manufacturerUrl = manufacturerUrl - self.modelName = modelName - self.modelDescription = modelDescription - self.modelNumber = modelNumber - self.modelUrl = modelUrl - self.serialNumber = serialNumber - self.enableAlbumArtInDidl = enableAlbumArtInDidl - self.enableSingleAlbumArtLimit = enableSingleAlbumArtLimit - self.enableSingleSubtitleLimit = enableSingleSubtitleLimit - self.supportedMediaTypes = supportedMediaTypes - self.userId = userId - self.albumArtPn = albumArtPn - self.maxAlbumArtWidth = maxAlbumArtWidth - self.maxAlbumArtHeight = maxAlbumArtHeight - self.maxIconWidth = maxIconWidth - self.maxIconHeight = maxIconHeight - self.maxStreamingBitrate = maxStreamingBitrate - self.maxStaticBitrate = maxStaticBitrate - self.musicStreamingTranscodingBitrate = musicStreamingTranscodingBitrate - self.maxStaticMusicBitrate = maxStaticMusicBitrate - self.sonyAggregationFlags = sonyAggregationFlags - self.protocolInfo = protocolInfo - self.timelineOffsetSeconds = timelineOffsetSeconds - self.requiresPlainVideoItems = requiresPlainVideoItems - self.requiresPlainFolders = requiresPlainFolders - self.enableMSMediaReceiverRegistrar = enableMSMediaReceiverRegistrar - self.ignoreTranscodeByteRangeRequests = ignoreTranscodeByteRangeRequests - self.xmlRootAttributes = xmlRootAttributes - self.directPlayProfiles = directPlayProfiles - self.transcodingProfiles = transcodingProfiles - self.containerProfiles = containerProfiles - self.codecProfiles = codecProfiles - self.responseProfiles = responseProfiles - self.subtitleProfiles = subtitleProfiles - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case _id = "Id" - case identification = "Identification" - case friendlyName = "FriendlyName" - case manufacturer = "Manufacturer" - case manufacturerUrl = "ManufacturerUrl" - case modelName = "ModelName" - case modelDescription = "ModelDescription" - case modelNumber = "ModelNumber" - case modelUrl = "ModelUrl" - case serialNumber = "SerialNumber" - case enableAlbumArtInDidl = "EnableAlbumArtInDidl" - case enableSingleAlbumArtLimit = "EnableSingleAlbumArtLimit" - case enableSingleSubtitleLimit = "EnableSingleSubtitleLimit" - case supportedMediaTypes = "SupportedMediaTypes" - case userId = "UserId" - case albumArtPn = "AlbumArtPn" - case maxAlbumArtWidth = "MaxAlbumArtWidth" - case maxAlbumArtHeight = "MaxAlbumArtHeight" - case maxIconWidth = "MaxIconWidth" - case maxIconHeight = "MaxIconHeight" - case maxStreamingBitrate = "MaxStreamingBitrate" - case maxStaticBitrate = "MaxStaticBitrate" - case musicStreamingTranscodingBitrate = "MusicStreamingTranscodingBitrate" - case maxStaticMusicBitrate = "MaxStaticMusicBitrate" - case sonyAggregationFlags = "SonyAggregationFlags" - case protocolInfo = "ProtocolInfo" - case timelineOffsetSeconds = "TimelineOffsetSeconds" - case requiresPlainVideoItems = "RequiresPlainVideoItems" - case requiresPlainFolders = "RequiresPlainFolders" - case enableMSMediaReceiverRegistrar = "EnableMSMediaReceiverRegistrar" - case ignoreTranscodeByteRangeRequests = "IgnoreTranscodeByteRangeRequests" - case xmlRootAttributes = "XmlRootAttributes" - case directPlayProfiles = "DirectPlayProfiles" - case transcodingProfiles = "TranscodingProfiles" - case containerProfiles = "ContainerProfiles" - case codecProfiles = "CodecProfiles" - case responseProfiles = "ResponseProfiles" - case subtitleProfiles = "SubtitleProfiles" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ProfilesProfileIdBody2.swift b/JellyfinPlayer/Swaggers/Models/ProfilesProfileIdBody2.swift deleted file mode 100644 index 6e016da8..00000000 --- a/JellyfinPlayer/Swaggers/Models/ProfilesProfileIdBody2.swift +++ /dev/null @@ -1,178 +0,0 @@ -// -// ProfilesProfileIdBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Device profile. */ - -public struct ProfilesProfileIdBody2: Codable { - - /** Gets or sets the Name. */ - public var name: String? - /** Gets or sets the Id. */ - public var _id: String? - /** Gets or sets the Identification. */ - public var identification: Any? - /** Gets or sets the FriendlyName. */ - public var friendlyName: String? - /** Gets or sets the Manufacturer. */ - public var manufacturer: String? - /** Gets or sets the ManufacturerUrl. */ - public var manufacturerUrl: String? - /** Gets or sets the ModelName. */ - public var modelName: String? - /** Gets or sets the ModelDescription. */ - public var modelDescription: String? - /** Gets or sets the ModelNumber. */ - public var modelNumber: String? - /** Gets or sets the ModelUrl. */ - public var modelUrl: String? - /** Gets or sets the SerialNumber. */ - public var serialNumber: String? - /** Gets or sets a value indicating whether EnableAlbumArtInDidl. */ - public var enableAlbumArtInDidl: Bool? - /** Gets or sets a value indicating whether EnableSingleAlbumArtLimit. */ - public var enableSingleAlbumArtLimit: Bool? - /** Gets or sets a value indicating whether EnableSingleSubtitleLimit. */ - public var enableSingleSubtitleLimit: Bool? - /** Gets or sets the SupportedMediaTypes. */ - public var supportedMediaTypes: String? - /** Gets or sets the UserId. */ - public var userId: String? - /** Gets or sets the AlbumArtPn. */ - public var albumArtPn: String? - /** Gets or sets the MaxAlbumArtWidth. */ - public var maxAlbumArtWidth: Int? - /** Gets or sets the MaxAlbumArtHeight. */ - public var maxAlbumArtHeight: Int? - /** Gets or sets the MaxIconWidth. */ - public var maxIconWidth: Int? - /** Gets or sets the MaxIconHeight. */ - public var maxIconHeight: Int? - /** Gets or sets the MaxStreamingBitrate. */ - public var maxStreamingBitrate: Int? - /** Gets or sets the MaxStaticBitrate. */ - public var maxStaticBitrate: Int? - /** Gets or sets the MusicStreamingTranscodingBitrate. */ - public var musicStreamingTranscodingBitrate: Int? - /** Gets or sets the MaxStaticMusicBitrate. */ - public var maxStaticMusicBitrate: Int? - /** Gets or sets the content of the aggregationFlags element in the urn:schemas-sonycom:av namespace. */ - public var sonyAggregationFlags: String? - /** Gets or sets the ProtocolInfo. */ - public var protocolInfo: String? - /** Gets or sets the TimelineOffsetSeconds. */ - public var timelineOffsetSeconds: Int? - /** Gets or sets a value indicating whether RequiresPlainVideoItems. */ - public var requiresPlainVideoItems: Bool? - /** Gets or sets a value indicating whether RequiresPlainFolders. */ - public var requiresPlainFolders: Bool? - /** Gets or sets a value indicating whether EnableMSMediaReceiverRegistrar. */ - public var enableMSMediaReceiverRegistrar: Bool? - /** Gets or sets a value indicating whether IgnoreTranscodeByteRangeRequests. */ - public var ignoreTranscodeByteRangeRequests: Bool? - /** Gets or sets the XmlRootAttributes. */ - public var xmlRootAttributes: [XmlAttribute]? - /** Gets or sets the direct play profiles. */ - public var directPlayProfiles: [DirectPlayProfile]? - /** Gets or sets the transcoding profiles. */ - public var transcodingProfiles: [TranscodingProfile]? - /** Gets or sets the ContainerProfiles. */ - public var containerProfiles: [ContainerProfile]? - /** Gets or sets the CodecProfiles. */ - public var codecProfiles: [CodecProfile]? - /** Gets or sets the ResponseProfiles. */ - public var responseProfiles: [ResponseProfile]? - /** Gets or sets the SubtitleProfiles. */ - public var subtitleProfiles: [SubtitleProfile]? - - public init(name: String? = nil, _id: String? = nil, identification: Any? = nil, friendlyName: String? = nil, manufacturer: String? = nil, manufacturerUrl: String? = nil, modelName: String? = nil, modelDescription: String? = nil, modelNumber: String? = nil, modelUrl: String? = nil, serialNumber: String? = nil, enableAlbumArtInDidl: Bool? = nil, enableSingleAlbumArtLimit: Bool? = nil, enableSingleSubtitleLimit: Bool? = nil, supportedMediaTypes: String? = nil, userId: String? = nil, albumArtPn: String? = nil, maxAlbumArtWidth: Int? = nil, maxAlbumArtHeight: Int? = nil, maxIconWidth: Int? = nil, maxIconHeight: Int? = nil, maxStreamingBitrate: Int? = nil, maxStaticBitrate: Int? = nil, musicStreamingTranscodingBitrate: Int? = nil, maxStaticMusicBitrate: Int? = nil, sonyAggregationFlags: String? = nil, protocolInfo: String? = nil, timelineOffsetSeconds: Int? = nil, requiresPlainVideoItems: Bool? = nil, requiresPlainFolders: Bool? = nil, enableMSMediaReceiverRegistrar: Bool? = nil, ignoreTranscodeByteRangeRequests: Bool? = nil, xmlRootAttributes: [XmlAttribute]? = nil, directPlayProfiles: [DirectPlayProfile]? = nil, transcodingProfiles: [TranscodingProfile]? = nil, containerProfiles: [ContainerProfile]? = nil, codecProfiles: [CodecProfile]? = nil, responseProfiles: [ResponseProfile]? = nil, subtitleProfiles: [SubtitleProfile]? = nil) { - self.name = name - self._id = _id - self.identification = identification - self.friendlyName = friendlyName - self.manufacturer = manufacturer - self.manufacturerUrl = manufacturerUrl - self.modelName = modelName - self.modelDescription = modelDescription - self.modelNumber = modelNumber - self.modelUrl = modelUrl - self.serialNumber = serialNumber - self.enableAlbumArtInDidl = enableAlbumArtInDidl - self.enableSingleAlbumArtLimit = enableSingleAlbumArtLimit - self.enableSingleSubtitleLimit = enableSingleSubtitleLimit - self.supportedMediaTypes = supportedMediaTypes - self.userId = userId - self.albumArtPn = albumArtPn - self.maxAlbumArtWidth = maxAlbumArtWidth - self.maxAlbumArtHeight = maxAlbumArtHeight - self.maxIconWidth = maxIconWidth - self.maxIconHeight = maxIconHeight - self.maxStreamingBitrate = maxStreamingBitrate - self.maxStaticBitrate = maxStaticBitrate - self.musicStreamingTranscodingBitrate = musicStreamingTranscodingBitrate - self.maxStaticMusicBitrate = maxStaticMusicBitrate - self.sonyAggregationFlags = sonyAggregationFlags - self.protocolInfo = protocolInfo - self.timelineOffsetSeconds = timelineOffsetSeconds - self.requiresPlainVideoItems = requiresPlainVideoItems - self.requiresPlainFolders = requiresPlainFolders - self.enableMSMediaReceiverRegistrar = enableMSMediaReceiverRegistrar - self.ignoreTranscodeByteRangeRequests = ignoreTranscodeByteRangeRequests - self.xmlRootAttributes = xmlRootAttributes - self.directPlayProfiles = directPlayProfiles - self.transcodingProfiles = transcodingProfiles - self.containerProfiles = containerProfiles - self.codecProfiles = codecProfiles - self.responseProfiles = responseProfiles - self.subtitleProfiles = subtitleProfiles - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case _id = "Id" - case identification = "Identification" - case friendlyName = "FriendlyName" - case manufacturer = "Manufacturer" - case manufacturerUrl = "ManufacturerUrl" - case modelName = "ModelName" - case modelDescription = "ModelDescription" - case modelNumber = "ModelNumber" - case modelUrl = "ModelUrl" - case serialNumber = "SerialNumber" - case enableAlbumArtInDidl = "EnableAlbumArtInDidl" - case enableSingleAlbumArtLimit = "EnableSingleAlbumArtLimit" - case enableSingleSubtitleLimit = "EnableSingleSubtitleLimit" - case supportedMediaTypes = "SupportedMediaTypes" - case userId = "UserId" - case albumArtPn = "AlbumArtPn" - case maxAlbumArtWidth = "MaxAlbumArtWidth" - case maxAlbumArtHeight = "MaxAlbumArtHeight" - case maxIconWidth = "MaxIconWidth" - case maxIconHeight = "MaxIconHeight" - case maxStreamingBitrate = "MaxStreamingBitrate" - case maxStaticBitrate = "MaxStaticBitrate" - case musicStreamingTranscodingBitrate = "MusicStreamingTranscodingBitrate" - case maxStaticMusicBitrate = "MaxStaticMusicBitrate" - case sonyAggregationFlags = "SonyAggregationFlags" - case protocolInfo = "ProtocolInfo" - case timelineOffsetSeconds = "TimelineOffsetSeconds" - case requiresPlainVideoItems = "RequiresPlainVideoItems" - case requiresPlainFolders = "RequiresPlainFolders" - case enableMSMediaReceiverRegistrar = "EnableMSMediaReceiverRegistrar" - case ignoreTranscodeByteRangeRequests = "IgnoreTranscodeByteRangeRequests" - case xmlRootAttributes = "XmlRootAttributes" - case directPlayProfiles = "DirectPlayProfiles" - case transcodingProfiles = "TranscodingProfiles" - case containerProfiles = "ContainerProfiles" - case codecProfiles = "CodecProfiles" - case responseProfiles = "ResponseProfiles" - case subtitleProfiles = "SubtitleProfiles" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ProgramAudio.swift b/JellyfinPlayer/Swaggers/Models/ProgramAudio.swift deleted file mode 100644 index 8c8f6ba9..00000000 --- a/JellyfinPlayer/Swaggers/Models/ProgramAudio.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ProgramAudio.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum ProgramAudio: String, Codable { - case mono = "Mono" - case stereo = "Stereo" - case dolby = "Dolby" - case dolbyDigital = "DolbyDigital" - case thx = "Thx" - case atmos = "Atmos" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/PublicSystemInfo.swift b/JellyfinPlayer/Swaggers/Models/PublicSystemInfo.swift deleted file mode 100644 index 5ac175e8..00000000 --- a/JellyfinPlayer/Swaggers/Models/PublicSystemInfo.swift +++ /dev/null @@ -1,49 +0,0 @@ -// -// PublicSystemInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct PublicSystemInfo: Codable { - - /** Gets or sets the local address. */ - public var localAddress: String? - /** Gets or sets the name of the server. */ - public var serverName: String? - /** Gets or sets the server version. */ - public var version: String? - /** Gets or sets the product name. This is the AssemblyProduct name. */ - public var productName: String? - /** Gets or sets the operating system. */ - public var operatingSystem: String? - /** Gets or sets the id. */ - public var _id: String? - /** Gets or sets a value indicating whether the startup wizard is completed. */ - public var startupWizardCompleted: Bool? - - public init(localAddress: String? = nil, serverName: String? = nil, version: String? = nil, productName: String? = nil, operatingSystem: String? = nil, _id: String? = nil, startupWizardCompleted: Bool? = nil) { - self.localAddress = localAddress - self.serverName = serverName - self.version = version - self.productName = productName - self.operatingSystem = operatingSystem - self._id = _id - self.startupWizardCompleted = startupWizardCompleted - } - - public enum CodingKeys: String, CodingKey { - case localAddress = "LocalAddress" - case serverName = "ServerName" - case version = "Version" - case productName = "ProductName" - case operatingSystem = "OperatingSystem" - case _id = "Id" - case startupWizardCompleted = "StartupWizardCompleted" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/QueryFilters.swift b/JellyfinPlayer/Swaggers/Models/QueryFilters.swift deleted file mode 100644 index f61cda4b..00000000 --- a/JellyfinPlayer/Swaggers/Models/QueryFilters.swift +++ /dev/null @@ -1,27 +0,0 @@ -// -// QueryFilters.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct QueryFilters: Codable { - - public var genres: [NameGuidPair]? - public var tags: [String]? - - public init(genres: [NameGuidPair]? = nil, tags: [String]? = nil) { - self.genres = genres - self.tags = tags - } - - public enum CodingKeys: String, CodingKey { - case genres = "Genres" - case tags = "Tags" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/QueryFiltersLegacy.swift b/JellyfinPlayer/Swaggers/Models/QueryFiltersLegacy.swift deleted file mode 100644 index d8b79882..00000000 --- a/JellyfinPlayer/Swaggers/Models/QueryFiltersLegacy.swift +++ /dev/null @@ -1,33 +0,0 @@ -// -// QueryFiltersLegacy.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct QueryFiltersLegacy: Codable { - - public var genres: [String]? - public var tags: [String]? - public var officialRatings: [String]? - public var years: [Int]? - - public init(genres: [String]? = nil, tags: [String]? = nil, officialRatings: [String]? = nil, years: [Int]? = nil) { - self.genres = genres - self.tags = tags - self.officialRatings = officialRatings - self.years = years - } - - public enum CodingKeys: String, CodingKey { - case genres = "Genres" - case tags = "Tags" - case officialRatings = "OfficialRatings" - case years = "Years" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/QueueItem.swift b/JellyfinPlayer/Swaggers/Models/QueueItem.swift deleted file mode 100644 index f718dfac..00000000 --- a/JellyfinPlayer/Swaggers/Models/QueueItem.swift +++ /dev/null @@ -1,27 +0,0 @@ -// -// QueueItem.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct QueueItem: Codable { - - public var _id: UUID? - public var playlistItemId: String? - - public init(_id: UUID? = nil, playlistItemId: String? = nil) { - self._id = _id - self.playlistItemId = playlistItemId - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case playlistItemId = "PlaylistItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/QueueRequestDto.swift b/JellyfinPlayer/Swaggers/Models/QueueRequestDto.swift deleted file mode 100644 index a844b6d8..00000000 --- a/JellyfinPlayer/Swaggers/Models/QueueRequestDto.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// QueueRequestDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class QueueRequestDto. */ - -public struct QueueRequestDto: Codable { - - /** Gets or sets the items to enqueue. */ - public var itemIds: [UUID]? - /** Gets or sets the mode in which to add the new items. */ - public var mode: AllOfQueueRequestDtoMode? - - public init(itemIds: [UUID]? = nil, mode: AllOfQueueRequestDtoMode? = nil) { - self.itemIds = itemIds - self.mode = mode - } - - public enum CodingKeys: String, CodingKey { - case itemIds = "ItemIds" - case mode = "Mode" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/QuickConnectDto.swift b/JellyfinPlayer/Swaggers/Models/QuickConnectDto.swift deleted file mode 100644 index c79793e3..00000000 --- a/JellyfinPlayer/Swaggers/Models/QuickConnectDto.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// QuickConnectDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The quick connect request body. */ - -public struct QuickConnectDto: Codable { - - /** Gets or sets the quick connect token. */ - public var token: String - - public init(token: String) { - self.token = token - } - - public enum CodingKeys: String, CodingKey { - case token = "Token" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/QuickConnectResult.swift b/JellyfinPlayer/Swaggers/Models/QuickConnectResult.swift deleted file mode 100644 index 6d17c41e..00000000 --- a/JellyfinPlayer/Swaggers/Models/QuickConnectResult.swift +++ /dev/null @@ -1,46 +0,0 @@ -// -// QuickConnectResult.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Stores the result of an incoming quick connect request. */ - -public struct QuickConnectResult: Codable { - - /** Gets a value indicating whether this request is authorized. */ - public var authenticated: Bool? - /** Gets or sets the secret value used to uniquely identify this request. Can be used to retrieve authentication information. */ - public var secret: String? - /** Gets or sets the user facing code used so the user can quickly differentiate this request from others. */ - public var code: String? - /** Gets or sets the private access token. */ - public var authentication: String? - /** Gets or sets an error message. */ - public var error: String? - /** Gets or sets the DateTime that this request was created. */ - public var dateAdded: Date? - - public init(authenticated: Bool? = nil, secret: String? = nil, code: String? = nil, authentication: String? = nil, error: String? = nil, dateAdded: Date? = nil) { - self.authenticated = authenticated - self.secret = secret - self.code = code - self.authentication = authentication - self.error = error - self.dateAdded = dateAdded - } - - public enum CodingKeys: String, CodingKey { - case authenticated = "Authenticated" - case secret = "Secret" - case code = "Code" - case authentication = "Authentication" - case error = "Error" - case dateAdded = "DateAdded" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/QuickConnectState.swift b/JellyfinPlayer/Swaggers/Models/QuickConnectState.swift deleted file mode 100644 index 360dbe27..00000000 --- a/JellyfinPlayer/Swaggers/Models/QuickConnectState.swift +++ /dev/null @@ -1,16 +0,0 @@ -// -// QuickConnectState.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Quick connect state. */ -public enum QuickConnectState: String, Codable { - case unavailable = "Unavailable" - case available = "Available" - case active = "Active" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/RatingType.swift b/JellyfinPlayer/Swaggers/Models/RatingType.swift deleted file mode 100644 index 3d6b4a1f..00000000 --- a/JellyfinPlayer/Swaggers/Models/RatingType.swift +++ /dev/null @@ -1,14 +0,0 @@ -// -// RatingType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum RatingType: String, Codable { - case score = "Score" - case likes = "Likes" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/ReadyRequestDto.swift b/JellyfinPlayer/Swaggers/Models/ReadyRequestDto.swift deleted file mode 100644 index 3f38e0ef..00000000 --- a/JellyfinPlayer/Swaggers/Models/ReadyRequestDto.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// ReadyRequestDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class ReadyRequest. */ - -public struct ReadyRequestDto: Codable { - - /** Gets or sets when the request has been made by the client. */ - public var when: Date? - /** Gets or sets the position ticks. */ - public var positionTicks: Int64? - /** Gets or sets a value indicating whether the client playback is unpaused. */ - public var isPlaying: Bool? - /** Gets or sets the playlist item identifier of the playing item. */ - public var playlistItemId: UUID? - - public init(when: Date? = nil, positionTicks: Int64? = nil, isPlaying: Bool? = nil, playlistItemId: UUID? = nil) { - self.when = when - self.positionTicks = positionTicks - self.isPlaying = isPlaying - self.playlistItemId = playlistItemId - } - - public enum CodingKeys: String, CodingKey { - case when = "When" - case positionTicks = "PositionTicks" - case isPlaying = "IsPlaying" - case playlistItemId = "PlaylistItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RecommendationDto.swift b/JellyfinPlayer/Swaggers/Models/RecommendationDto.swift deleted file mode 100644 index 4f987591..00000000 --- a/JellyfinPlayer/Swaggers/Models/RecommendationDto.swift +++ /dev/null @@ -1,33 +0,0 @@ -// -// RecommendationDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct RecommendationDto: Codable { - - public var items: [BaseItemDto]? - public var recommendationType: AllOfRecommendationDtoRecommendationType? - public var baselineItemName: String? - public var categoryId: UUID? - - public init(items: [BaseItemDto]? = nil, recommendationType: AllOfRecommendationDtoRecommendationType? = nil, baselineItemName: String? = nil, categoryId: UUID? = nil) { - self.items = items - self.recommendationType = recommendationType - self.baselineItemName = baselineItemName - self.categoryId = categoryId - } - - public enum CodingKeys: String, CodingKey { - case items = "Items" - case recommendationType = "RecommendationType" - case baselineItemName = "BaselineItemName" - case categoryId = "CategoryId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RecommendationType.swift b/JellyfinPlayer/Swaggers/Models/RecommendationType.swift deleted file mode 100644 index 0e686267..00000000 --- a/JellyfinPlayer/Swaggers/Models/RecommendationType.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// RecommendationType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum RecommendationType: String, Codable { - case similarToRecentlyPlayed = "SimilarToRecentlyPlayed" - case similarToLikedItem = "SimilarToLikedItem" - case hasDirectorFromRecentlyPlayed = "HasDirectorFromRecentlyPlayed" - case hasActorFromRecentlyPlayed = "HasActorFromRecentlyPlayed" - case hasLikedDirector = "HasLikedDirector" - case hasLikedActor = "HasLikedActor" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/RecordingStatus.swift b/JellyfinPlayer/Swaggers/Models/RecordingStatus.swift deleted file mode 100644 index 0b7c7840..00000000 --- a/JellyfinPlayer/Swaggers/Models/RecordingStatus.swift +++ /dev/null @@ -1,19 +0,0 @@ -// -// RecordingStatus.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum RecordingStatus: String, Codable { - case new = "New" - case inProgress = "InProgress" - case completed = "Completed" - case cancelled = "Cancelled" - case conflictedOk = "ConflictedOk" - case conflictedNotOk = "ConflictedNotOk" - case error = "Error" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/RemoteImageInfo.swift b/JellyfinPlayer/Swaggers/Models/RemoteImageInfo.swift deleted file mode 100644 index f3b5b085..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteImageInfo.swift +++ /dev/null @@ -1,62 +0,0 @@ -// -// RemoteImageInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class RemoteImageInfo. */ - -public struct RemoteImageInfo: Codable { - - /** Gets or sets the name of the provider. */ - public var providerName: String? - /** Gets or sets the URL. */ - public var url: String? - /** Gets a url used for previewing a smaller version. */ - public var thumbnailUrl: String? - /** Gets or sets the height. */ - public var height: Int? - /** Gets or sets the width. */ - public var width: Int? - /** Gets or sets the community rating. */ - public var communityRating: Double? - /** Gets or sets the vote count. */ - public var voteCount: Int? - /** Gets or sets the language. */ - public var language: String? - /** Gets or sets the type. */ - public var type: AllOfRemoteImageInfoModelType? - /** Gets or sets the type of the rating. */ - public var ratingType: AllOfRemoteImageInfoRatingType? - - public init(providerName: String? = nil, url: String? = nil, thumbnailUrl: String? = nil, height: Int? = nil, width: Int? = nil, communityRating: Double? = nil, voteCount: Int? = nil, language: String? = nil, type: AllOfRemoteImageInfoModelType? = nil, ratingType: AllOfRemoteImageInfoRatingType? = nil) { - self.providerName = providerName - self.url = url - self.thumbnailUrl = thumbnailUrl - self.height = height - self.width = width - self.communityRating = communityRating - self.voteCount = voteCount - self.language = language - self.type = type - self.ratingType = ratingType - } - - public enum CodingKeys: String, CodingKey { - case providerName = "ProviderName" - case url = "Url" - case thumbnailUrl = "ThumbnailUrl" - case height = "Height" - case width = "Width" - case communityRating = "CommunityRating" - case voteCount = "VoteCount" - case language = "Language" - case type = "Type" - case ratingType = "RatingType" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoteImageResult.swift b/JellyfinPlayer/Swaggers/Models/RemoteImageResult.swift deleted file mode 100644 index fe05f6a8..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteImageResult.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// RemoteImageResult.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class RemoteImageResult. */ - -public struct RemoteImageResult: Codable { - - /** Gets or sets the images. */ - public var images: [RemoteImageInfo]? - /** Gets or sets the total record count. */ - public var totalRecordCount: Int? - /** Gets or sets the providers. */ - public var providers: [String]? - - public init(images: [RemoteImageInfo]? = nil, totalRecordCount: Int? = nil, providers: [String]? = nil) { - self.images = images - self.totalRecordCount = totalRecordCount - self.providers = providers - } - - public enum CodingKeys: String, CodingKey { - case images = "Images" - case totalRecordCount = "TotalRecordCount" - case providers = "Providers" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoteSearchBookBody.swift b/JellyfinPlayer/Swaggers/Models/RemoteSearchBookBody.swift deleted file mode 100644 index 2b6650ce..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteSearchBookBody.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// RemoteSearchBookBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Remote search query. */ - -public struct RemoteSearchBookBody: Codable { - - public var searchInfo: Any? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: Any? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoteSearchBookBody1.swift b/JellyfinPlayer/Swaggers/Models/RemoteSearchBookBody1.swift deleted file mode 100644 index e2ded57e..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteSearchBookBody1.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// RemoteSearchBookBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Remote search query. */ - -public struct RemoteSearchBookBody1: Codable { - - public var searchInfo: Any? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: Any? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoteSearchBookBody2.swift b/JellyfinPlayer/Swaggers/Models/RemoteSearchBookBody2.swift deleted file mode 100644 index 4ed72692..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteSearchBookBody2.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// RemoteSearchBookBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Remote search query. */ - -public struct RemoteSearchBookBody2: Codable { - - public var searchInfo: Any? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: Any? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoteSearchBoxSetBody.swift b/JellyfinPlayer/Swaggers/Models/RemoteSearchBoxSetBody.swift deleted file mode 100644 index e2ede9b3..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteSearchBoxSetBody.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// RemoteSearchBoxSetBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Remote search query. */ - -public struct RemoteSearchBoxSetBody: Codable { - - public var searchInfo: Any? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: Any? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoteSearchBoxSetBody1.swift b/JellyfinPlayer/Swaggers/Models/RemoteSearchBoxSetBody1.swift deleted file mode 100644 index 1a0c9d79..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteSearchBoxSetBody1.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// RemoteSearchBoxSetBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Remote search query. */ - -public struct RemoteSearchBoxSetBody1: Codable { - - public var searchInfo: Any? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: Any? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoteSearchBoxSetBody2.swift b/JellyfinPlayer/Swaggers/Models/RemoteSearchBoxSetBody2.swift deleted file mode 100644 index 64efcff8..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteSearchBoxSetBody2.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// RemoteSearchBoxSetBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Remote search query. */ - -public struct RemoteSearchBoxSetBody2: Codable { - - public var searchInfo: Any? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: Any? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoteSearchMovieBody.swift b/JellyfinPlayer/Swaggers/Models/RemoteSearchMovieBody.swift deleted file mode 100644 index ba816e7c..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteSearchMovieBody.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// RemoteSearchMovieBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Remote search query. */ - -public struct RemoteSearchMovieBody: Codable { - - public var searchInfo: Any? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: Any? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoteSearchMovieBody1.swift b/JellyfinPlayer/Swaggers/Models/RemoteSearchMovieBody1.swift deleted file mode 100644 index 5cf8e9c9..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteSearchMovieBody1.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// RemoteSearchMovieBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Remote search query. */ - -public struct RemoteSearchMovieBody1: Codable { - - public var searchInfo: Any? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: Any? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoteSearchMovieBody2.swift b/JellyfinPlayer/Swaggers/Models/RemoteSearchMovieBody2.swift deleted file mode 100644 index 27e02981..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteSearchMovieBody2.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// RemoteSearchMovieBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Remote search query. */ - -public struct RemoteSearchMovieBody2: Codable { - - public var searchInfo: Any? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: Any? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoteSearchMusicAlbumBody.swift b/JellyfinPlayer/Swaggers/Models/RemoteSearchMusicAlbumBody.swift deleted file mode 100644 index cc9b7a4f..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteSearchMusicAlbumBody.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// RemoteSearchMusicAlbumBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Remote search query. */ - -public struct RemoteSearchMusicAlbumBody: Codable { - - public var searchInfo: Any? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: Any? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoteSearchMusicAlbumBody1.swift b/JellyfinPlayer/Swaggers/Models/RemoteSearchMusicAlbumBody1.swift deleted file mode 100644 index 5af35c73..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteSearchMusicAlbumBody1.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// RemoteSearchMusicAlbumBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Remote search query. */ - -public struct RemoteSearchMusicAlbumBody1: Codable { - - public var searchInfo: Any? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: Any? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoteSearchMusicAlbumBody2.swift b/JellyfinPlayer/Swaggers/Models/RemoteSearchMusicAlbumBody2.swift deleted file mode 100644 index 0eaa983f..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteSearchMusicAlbumBody2.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// RemoteSearchMusicAlbumBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Remote search query. */ - -public struct RemoteSearchMusicAlbumBody2: Codable { - - public var searchInfo: Any? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: Any? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoteSearchMusicArtistBody.swift b/JellyfinPlayer/Swaggers/Models/RemoteSearchMusicArtistBody.swift deleted file mode 100644 index 27639a17..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteSearchMusicArtistBody.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// RemoteSearchMusicArtistBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Remote search query. */ - -public struct RemoteSearchMusicArtistBody: Codable { - - public var searchInfo: Any? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: Any? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoteSearchMusicArtistBody1.swift b/JellyfinPlayer/Swaggers/Models/RemoteSearchMusicArtistBody1.swift deleted file mode 100644 index 324a7204..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteSearchMusicArtistBody1.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// RemoteSearchMusicArtistBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Remote search query. */ - -public struct RemoteSearchMusicArtistBody1: Codable { - - public var searchInfo: Any? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: Any? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoteSearchMusicArtistBody2.swift b/JellyfinPlayer/Swaggers/Models/RemoteSearchMusicArtistBody2.swift deleted file mode 100644 index 1ec5df55..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteSearchMusicArtistBody2.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// RemoteSearchMusicArtistBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Remote search query. */ - -public struct RemoteSearchMusicArtistBody2: Codable { - - public var searchInfo: Any? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: Any? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoteSearchMusicVideoBody.swift b/JellyfinPlayer/Swaggers/Models/RemoteSearchMusicVideoBody.swift deleted file mode 100644 index 7c5d8724..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteSearchMusicVideoBody.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// RemoteSearchMusicVideoBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Remote search query. */ - -public struct RemoteSearchMusicVideoBody: Codable { - - public var searchInfo: Any? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: Any? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoteSearchMusicVideoBody1.swift b/JellyfinPlayer/Swaggers/Models/RemoteSearchMusicVideoBody1.swift deleted file mode 100644 index fcb00cb5..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteSearchMusicVideoBody1.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// RemoteSearchMusicVideoBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Remote search query. */ - -public struct RemoteSearchMusicVideoBody1: Codable { - - public var searchInfo: Any? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: Any? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoteSearchMusicVideoBody2.swift b/JellyfinPlayer/Swaggers/Models/RemoteSearchMusicVideoBody2.swift deleted file mode 100644 index 211b96bd..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteSearchMusicVideoBody2.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// RemoteSearchMusicVideoBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Remote search query. */ - -public struct RemoteSearchMusicVideoBody2: Codable { - - public var searchInfo: Any? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: Any? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoteSearchPersonBody.swift b/JellyfinPlayer/Swaggers/Models/RemoteSearchPersonBody.swift deleted file mode 100644 index 551c3650..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteSearchPersonBody.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// RemoteSearchPersonBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Remote search query. */ - -public struct RemoteSearchPersonBody: Codable { - - public var searchInfo: Any? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: Any? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoteSearchPersonBody1.swift b/JellyfinPlayer/Swaggers/Models/RemoteSearchPersonBody1.swift deleted file mode 100644 index 5e324791..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteSearchPersonBody1.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// RemoteSearchPersonBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Remote search query. */ - -public struct RemoteSearchPersonBody1: Codable { - - public var searchInfo: Any? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: Any? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoteSearchPersonBody2.swift b/JellyfinPlayer/Swaggers/Models/RemoteSearchPersonBody2.swift deleted file mode 100644 index 2cd711ca..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteSearchPersonBody2.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// RemoteSearchPersonBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Remote search query. */ - -public struct RemoteSearchPersonBody2: Codable { - - public var searchInfo: Any? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: Any? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoteSearchResult.swift b/JellyfinPlayer/Swaggers/Models/RemoteSearchResult.swift deleted file mode 100644 index e4231564..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteSearchResult.swift +++ /dev/null @@ -1,60 +0,0 @@ -// -// RemoteSearchResult.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct RemoteSearchResult: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets the year. */ - public var productionYear: Int? - public var indexNumber: Int? - public var indexNumberEnd: Int? - public var parentIndexNumber: Int? - public var premiereDate: Date? - public var imageUrl: String? - public var searchProviderName: String? - public var overview: String? - public var albumArtist: AllOfRemoteSearchResultAlbumArtist? - public var artists: [RemoteSearchResult]? - - public init(name: String? = nil, providerIds: [String:String]? = nil, productionYear: Int? = nil, indexNumber: Int? = nil, indexNumberEnd: Int? = nil, parentIndexNumber: Int? = nil, premiereDate: Date? = nil, imageUrl: String? = nil, searchProviderName: String? = nil, overview: String? = nil, albumArtist: AllOfRemoteSearchResultAlbumArtist? = nil, artists: [RemoteSearchResult]? = nil) { - self.name = name - self.providerIds = providerIds - self.productionYear = productionYear - self.indexNumber = indexNumber - self.indexNumberEnd = indexNumberEnd - self.parentIndexNumber = parentIndexNumber - self.premiereDate = premiereDate - self.imageUrl = imageUrl - self.searchProviderName = searchProviderName - self.overview = overview - self.albumArtist = albumArtist - self.artists = artists - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case providerIds = "ProviderIds" - case productionYear = "ProductionYear" - case indexNumber = "IndexNumber" - case indexNumberEnd = "IndexNumberEnd" - case parentIndexNumber = "ParentIndexNumber" - case premiereDate = "PremiereDate" - case imageUrl = "ImageUrl" - case searchProviderName = "SearchProviderName" - case overview = "Overview" - case albumArtist = "AlbumArtist" - case artists = "Artists" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoteSearchSeriesBody.swift b/JellyfinPlayer/Swaggers/Models/RemoteSearchSeriesBody.swift deleted file mode 100644 index a09680ea..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteSearchSeriesBody.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// RemoteSearchSeriesBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Remote search query. */ - -public struct RemoteSearchSeriesBody: Codable { - - public var searchInfo: Any? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: Any? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoteSearchSeriesBody1.swift b/JellyfinPlayer/Swaggers/Models/RemoteSearchSeriesBody1.swift deleted file mode 100644 index 4ceabca3..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteSearchSeriesBody1.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// RemoteSearchSeriesBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Remote search query. */ - -public struct RemoteSearchSeriesBody1: Codable { - - public var searchInfo: Any? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: Any? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoteSearchSeriesBody2.swift b/JellyfinPlayer/Swaggers/Models/RemoteSearchSeriesBody2.swift deleted file mode 100644 index a22b6cc0..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteSearchSeriesBody2.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// RemoteSearchSeriesBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Remote search query. */ - -public struct RemoteSearchSeriesBody2: Codable { - - public var searchInfo: Any? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: Any? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoteSearchTrailerBody.swift b/JellyfinPlayer/Swaggers/Models/RemoteSearchTrailerBody.swift deleted file mode 100644 index 08454e8b..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteSearchTrailerBody.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// RemoteSearchTrailerBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Remote search query. */ - -public struct RemoteSearchTrailerBody: Codable { - - public var searchInfo: Any? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: Any? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoteSearchTrailerBody1.swift b/JellyfinPlayer/Swaggers/Models/RemoteSearchTrailerBody1.swift deleted file mode 100644 index 8109e929..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteSearchTrailerBody1.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// RemoteSearchTrailerBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Remote search query. */ - -public struct RemoteSearchTrailerBody1: Codable { - - public var searchInfo: Any? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: Any? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoteSearchTrailerBody2.swift b/JellyfinPlayer/Swaggers/Models/RemoteSearchTrailerBody2.swift deleted file mode 100644 index 9860a919..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteSearchTrailerBody2.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// RemoteSearchTrailerBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Remote search query. */ - -public struct RemoteSearchTrailerBody2: Codable { - - public var searchInfo: Any? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: Any? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoteSubtitleInfo.swift b/JellyfinPlayer/Swaggers/Models/RemoteSubtitleInfo.swift deleted file mode 100644 index 9826faae..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoteSubtitleInfo.swift +++ /dev/null @@ -1,54 +0,0 @@ -// -// RemoteSubtitleInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct RemoteSubtitleInfo: Codable { - - public var threeLetterISOLanguageName: String? - public var _id: String? - public var providerName: String? - public var name: String? - public var format: String? - public var author: String? - public var comment: String? - public var dateCreated: Date? - public var communityRating: Float? - public var downloadCount: Int? - public var isHashMatch: Bool? - - public init(threeLetterISOLanguageName: String? = nil, _id: String? = nil, providerName: String? = nil, name: String? = nil, format: String? = nil, author: String? = nil, comment: String? = nil, dateCreated: Date? = nil, communityRating: Float? = nil, downloadCount: Int? = nil, isHashMatch: Bool? = nil) { - self.threeLetterISOLanguageName = threeLetterISOLanguageName - self._id = _id - self.providerName = providerName - self.name = name - self.format = format - self.author = author - self.comment = comment - self.dateCreated = dateCreated - self.communityRating = communityRating - self.downloadCount = downloadCount - self.isHashMatch = isHashMatch - } - - public enum CodingKeys: String, CodingKey { - case threeLetterISOLanguageName = "ThreeLetterISOLanguageName" - case _id = "Id" - case providerName = "ProviderName" - case name = "Name" - case format = "Format" - case author = "Author" - case comment = "Comment" - case dateCreated = "DateCreated" - case communityRating = "CommunityRating" - case downloadCount = "DownloadCount" - case isHashMatch = "IsHashMatch" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RemoveFromPlaylistRequestDto.swift b/JellyfinPlayer/Swaggers/Models/RemoveFromPlaylistRequestDto.swift deleted file mode 100644 index 2c7edffb..00000000 --- a/JellyfinPlayer/Swaggers/Models/RemoveFromPlaylistRequestDto.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// RemoveFromPlaylistRequestDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class RemoveFromPlaylistRequestDto. */ - -public struct RemoveFromPlaylistRequestDto: Codable { - - /** Gets or sets the playlist identifiers ot the items. */ - public var playlistItemIds: [UUID]? - - public init(playlistItemIds: [UUID]? = nil) { - self.playlistItemIds = playlistItemIds - } - - public enum CodingKeys: String, CodingKey { - case playlistItemIds = "PlaylistItemIds" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/RepeatMode.swift b/JellyfinPlayer/Swaggers/Models/RepeatMode.swift deleted file mode 100644 index 1a39eb87..00000000 --- a/JellyfinPlayer/Swaggers/Models/RepeatMode.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// RepeatMode.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The repeat mode. */ - -public struct RepeatMode: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/RepositoryInfo.swift b/JellyfinPlayer/Swaggers/Models/RepositoryInfo.swift deleted file mode 100644 index 04c28661..00000000 --- a/JellyfinPlayer/Swaggers/Models/RepositoryInfo.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// RepositoryInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class RepositoryInfo. */ - -public struct RepositoryInfo: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the URL. */ - public var url: String? - /** Gets or sets a value indicating whether the repository is enabled. */ - public var enabled: Bool? - - public init(name: String? = nil, url: String? = nil, enabled: Bool? = nil) { - self.name = name - self.url = url - self.enabled = enabled - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case url = "Url" - case enabled = "Enabled" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ResponseProfile.swift b/JellyfinPlayer/Swaggers/Models/ResponseProfile.swift deleted file mode 100644 index adc7082b..00000000 --- a/JellyfinPlayer/Swaggers/Models/ResponseProfile.swift +++ /dev/null @@ -1,42 +0,0 @@ -// -// ResponseProfile.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct ResponseProfile: Codable { - - public var container: String? - public var audioCodec: String? - public var videoCodec: String? - public var type: AllOfResponseProfileModelType? - public var orgPn: String? - public var mimeType: String? - public var conditions: [ProfileCondition]? - - public init(container: String? = nil, audioCodec: String? = nil, videoCodec: String? = nil, type: AllOfResponseProfileModelType? = nil, orgPn: String? = nil, mimeType: String? = nil, conditions: [ProfileCondition]? = nil) { - self.container = container - self.audioCodec = audioCodec - self.videoCodec = videoCodec - self.type = type - self.orgPn = orgPn - self.mimeType = mimeType - self.conditions = conditions - } - - public enum CodingKeys: String, CodingKey { - case container = "Container" - case audioCodec = "AudioCodec" - case videoCodec = "VideoCodec" - case type = "Type" - case orgPn = "OrgPn" - case mimeType = "MimeType" - case conditions = "Conditions" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ScrollDirection.swift b/JellyfinPlayer/Swaggers/Models/ScrollDirection.swift deleted file mode 100644 index 515df769..00000000 --- a/JellyfinPlayer/Swaggers/Models/ScrollDirection.swift +++ /dev/null @@ -1,15 +0,0 @@ -// -// ScrollDirection.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** An enum representing the axis that should be scrolled. */ -public enum ScrollDirection: String, Codable { - case horizontal = "Horizontal" - case vertical = "Vertical" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/SearchHint.swift b/JellyfinPlayer/Swaggers/Models/SearchHint.swift deleted file mode 100644 index 4a046024..00000000 --- a/JellyfinPlayer/Swaggers/Models/SearchHint.swift +++ /dev/null @@ -1,132 +0,0 @@ -// -// SearchHint.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class SearchHintResult. */ - -public struct SearchHint: Codable { - - /** Gets or sets the item id. */ - public var itemId: UUID? - public var _id: UUID? - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the matched term. */ - public var matchedTerm: String? - /** Gets or sets the index number. */ - public var indexNumber: Int? - /** Gets or sets the production year. */ - public var productionYear: Int? - /** Gets or sets the parent index number. */ - public var parentIndexNumber: Int? - /** Gets or sets the image tag. */ - public var primaryImageTag: String? - /** Gets or sets the thumb image tag. */ - public var thumbImageTag: String? - /** Gets or sets the thumb image item identifier. */ - public var thumbImageItemId: String? - /** Gets or sets the backdrop image tag. */ - public var backdropImageTag: String? - /** Gets or sets the backdrop image item identifier. */ - public var backdropImageItemId: String? - /** Gets or sets the type. */ - public var type: String? - public var isFolder: Bool? - /** Gets or sets the run time ticks. */ - public var runTimeTicks: Int64? - /** Gets or sets the type of the media. */ - public var mediaType: String? - public var startDate: Date? - public var endDate: Date? - /** Gets or sets the series. */ - public var series: String? - public var status: String? - /** Gets or sets the album. */ - public var album: String? - public var albumId: UUID? - /** Gets or sets the album artist. */ - public var albumArtist: String? - /** Gets or sets the artists. */ - public var artists: [String]? - /** Gets or sets the song count. */ - public var songCount: Int? - /** Gets or sets the episode count. */ - public var episodeCount: Int? - /** Gets or sets the channel identifier. */ - public var channelId: UUID? - /** Gets or sets the name of the channel. */ - public var channelName: String? - /** Gets or sets the primary image aspect ratio. */ - public var primaryImageAspectRatio: Double? - - public init(itemId: UUID? = nil, _id: UUID? = nil, name: String? = nil, matchedTerm: String? = nil, indexNumber: Int? = nil, productionYear: Int? = nil, parentIndexNumber: Int? = nil, primaryImageTag: String? = nil, thumbImageTag: String? = nil, thumbImageItemId: String? = nil, backdropImageTag: String? = nil, backdropImageItemId: String? = nil, type: String? = nil, isFolder: Bool? = nil, runTimeTicks: Int64? = nil, mediaType: String? = nil, startDate: Date? = nil, endDate: Date? = nil, series: String? = nil, status: String? = nil, album: String? = nil, albumId: UUID? = nil, albumArtist: String? = nil, artists: [String]? = nil, songCount: Int? = nil, episodeCount: Int? = nil, channelId: UUID? = nil, channelName: String? = nil, primaryImageAspectRatio: Double? = nil) { - self.itemId = itemId - self._id = _id - self.name = name - self.matchedTerm = matchedTerm - self.indexNumber = indexNumber - self.productionYear = productionYear - self.parentIndexNumber = parentIndexNumber - self.primaryImageTag = primaryImageTag - self.thumbImageTag = thumbImageTag - self.thumbImageItemId = thumbImageItemId - self.backdropImageTag = backdropImageTag - self.backdropImageItemId = backdropImageItemId - self.type = type - self.isFolder = isFolder - self.runTimeTicks = runTimeTicks - self.mediaType = mediaType - self.startDate = startDate - self.endDate = endDate - self.series = series - self.status = status - self.album = album - self.albumId = albumId - self.albumArtist = albumArtist - self.artists = artists - self.songCount = songCount - self.episodeCount = episodeCount - self.channelId = channelId - self.channelName = channelName - self.primaryImageAspectRatio = primaryImageAspectRatio - } - - public enum CodingKeys: String, CodingKey { - case itemId = "ItemId" - case _id = "Id" - case name = "Name" - case matchedTerm = "MatchedTerm" - case indexNumber = "IndexNumber" - case productionYear = "ProductionYear" - case parentIndexNumber = "ParentIndexNumber" - case primaryImageTag = "PrimaryImageTag" - case thumbImageTag = "ThumbImageTag" - case thumbImageItemId = "ThumbImageItemId" - case backdropImageTag = "BackdropImageTag" - case backdropImageItemId = "BackdropImageItemId" - case type = "Type" - case isFolder = "IsFolder" - case runTimeTicks = "RunTimeTicks" - case mediaType = "MediaType" - case startDate = "StartDate" - case endDate = "EndDate" - case series = "Series" - case status = "Status" - case album = "Album" - case albumId = "AlbumId" - case albumArtist = "AlbumArtist" - case artists = "Artists" - case songCount = "SongCount" - case episodeCount = "EpisodeCount" - case channelId = "ChannelId" - case channelName = "ChannelName" - case primaryImageAspectRatio = "PrimaryImageAspectRatio" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SearchHintResult.swift b/JellyfinPlayer/Swaggers/Models/SearchHintResult.swift deleted file mode 100644 index 3e5c14b3..00000000 --- a/JellyfinPlayer/Swaggers/Models/SearchHintResult.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// SearchHintResult.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class SearchHintResult. */ - -public struct SearchHintResult: Codable { - - /** Gets or sets the search hints. */ - public var searchHints: [SearchHint]? - /** Gets or sets the total record count. */ - public var totalRecordCount: Int? - - public init(searchHints: [SearchHint]? = nil, totalRecordCount: Int? = nil) { - self.searchHints = searchHints - self.totalRecordCount = totalRecordCount - } - - public enum CodingKeys: String, CodingKey { - case searchHints = "SearchHints" - case totalRecordCount = "TotalRecordCount" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SeekRequestDto.swift b/JellyfinPlayer/Swaggers/Models/SeekRequestDto.swift deleted file mode 100644 index a4db4f05..00000000 --- a/JellyfinPlayer/Swaggers/Models/SeekRequestDto.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SeekRequestDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class SeekRequestDto. */ - -public struct SeekRequestDto: Codable { - - /** Gets or sets the position ticks. */ - public var positionTicks: Int64? - - public init(positionTicks: Int64? = nil) { - self.positionTicks = positionTicks - } - - public enum CodingKeys: String, CodingKey { - case positionTicks = "PositionTicks" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SendCommand.swift b/JellyfinPlayer/Swaggers/Models/SendCommand.swift deleted file mode 100644 index 94296302..00000000 --- a/JellyfinPlayer/Swaggers/Models/SendCommand.swift +++ /dev/null @@ -1,46 +0,0 @@ -// -// SendCommand.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class SendCommand. */ - -public struct SendCommand: Codable { - - /** Gets the group identifier. */ - public var groupId: UUID? - /** Gets the playlist identifier of the playing item. */ - public var playlistItemId: UUID? - /** Gets or sets the UTC time when to execute the command. */ - public var when: Date? - /** Gets the position ticks. */ - public var positionTicks: Int64? - /** Gets the command. */ - public var command: AllOfSendCommandCommand? - /** Gets the UTC time when this command has been emitted. */ - public var emittedAt: Date? - - public init(groupId: UUID? = nil, playlistItemId: UUID? = nil, when: Date? = nil, positionTicks: Int64? = nil, command: AllOfSendCommandCommand? = nil, emittedAt: Date? = nil) { - self.groupId = groupId - self.playlistItemId = playlistItemId - self.when = when - self.positionTicks = positionTicks - self.command = command - self.emittedAt = emittedAt - } - - public enum CodingKeys: String, CodingKey { - case groupId = "GroupId" - case playlistItemId = "PlaylistItemId" - case when = "When" - case positionTicks = "PositionTicks" - case command = "Command" - case emittedAt = "EmittedAt" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SendCommandType.swift b/JellyfinPlayer/Swaggers/Models/SendCommandType.swift deleted file mode 100644 index 8dda2ef5..00000000 --- a/JellyfinPlayer/Swaggers/Models/SendCommandType.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// SendCommandType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Enum SendCommandType. */ -public enum SendCommandType: String, Codable { - case unpause = "Unpause" - case pause = "Pause" - case stop = "Stop" - case seek = "Seek" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/SeriesInfo.swift b/JellyfinPlayer/Swaggers/Models/SeriesInfo.swift deleted file mode 100644 index b1cd9bb7..00000000 --- a/JellyfinPlayer/Swaggers/Models/SeriesInfo.swift +++ /dev/null @@ -1,57 +0,0 @@ -// -// SeriesInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct SeriesInfo: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the path. */ - public var path: String? - /** Gets or sets the metadata language. */ - public var metadataLanguage: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets the year. */ - public var year: Int? - public var indexNumber: Int? - public var parentIndexNumber: Int? - public var premiereDate: Date? - public var isAutomated: Bool? - - public init(name: String? = nil, path: String? = nil, metadataLanguage: String? = nil, metadataCountryCode: String? = nil, providerIds: [String:String]? = nil, year: Int? = nil, indexNumber: Int? = nil, parentIndexNumber: Int? = nil, premiereDate: Date? = nil, isAutomated: Bool? = nil) { - self.name = name - self.path = path - self.metadataLanguage = metadataLanguage - self.metadataCountryCode = metadataCountryCode - self.providerIds = providerIds - self.year = year - self.indexNumber = indexNumber - self.parentIndexNumber = parentIndexNumber - self.premiereDate = premiereDate - self.isAutomated = isAutomated - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case path = "Path" - case metadataLanguage = "MetadataLanguage" - case metadataCountryCode = "MetadataCountryCode" - case providerIds = "ProviderIds" - case year = "Year" - case indexNumber = "IndexNumber" - case parentIndexNumber = "ParentIndexNumber" - case premiereDate = "PremiereDate" - case isAutomated = "IsAutomated" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SeriesInfoRemoteSearchQuery.swift b/JellyfinPlayer/Swaggers/Models/SeriesInfoRemoteSearchQuery.swift deleted file mode 100644 index c4cb023d..00000000 --- a/JellyfinPlayer/Swaggers/Models/SeriesInfoRemoteSearchQuery.swift +++ /dev/null @@ -1,35 +0,0 @@ -// -// SeriesInfoRemoteSearchQuery.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct SeriesInfoRemoteSearchQuery: Codable { - - public var searchInfo: AllOfSeriesInfoRemoteSearchQuerySearchInfo? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: AllOfSeriesInfoRemoteSearchQuerySearchInfo? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SeriesStatus.swift b/JellyfinPlayer/Swaggers/Models/SeriesStatus.swift deleted file mode 100644 index 84a3e679..00000000 --- a/JellyfinPlayer/Swaggers/Models/SeriesStatus.swift +++ /dev/null @@ -1,15 +0,0 @@ -// -// SeriesStatus.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Enum SeriesStatus. */ -public enum SeriesStatus: String, Codable { - case continuing = "Continuing" - case ended = "Ended" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/SeriesTimerInfoDto.swift b/JellyfinPlayer/Swaggers/Models/SeriesTimerInfoDto.swift deleted file mode 100644 index 0b16451e..00000000 --- a/JellyfinPlayer/Swaggers/Models/SeriesTimerInfoDto.swift +++ /dev/null @@ -1,157 +0,0 @@ -// -// SeriesTimerInfoDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class SeriesTimerInfoDto. */ - -public struct SeriesTimerInfoDto: Codable { - - /** Id of the recording. */ - public var _id: String? - public var type: String? - /** Gets or sets the server identifier. */ - public var serverId: String? - /** Gets or sets the external identifier. */ - public var externalId: String? - /** ChannelId of the recording. */ - public var channelId: UUID? - /** Gets or sets the external channel identifier. */ - public var externalChannelId: String? - /** ChannelName of the recording. */ - public var channelName: String? - public var channelPrimaryImageTag: String? - /** Gets or sets the program identifier. */ - public var programId: String? - /** Gets or sets the external program identifier. */ - public var externalProgramId: String? - /** Name of the recording. */ - public var name: String? - /** Description of the recording. */ - public var overview: String? - /** The start date of the recording, in UTC. */ - public var startDate: Date? - /** The end date of the recording, in UTC. */ - public var endDate: Date? - /** Gets or sets the name of the service. */ - public var serviceName: String? - /** Gets or sets the priority. */ - public var priority: Int? - /** Gets or sets the pre padding seconds. */ - public var prePaddingSeconds: Int? - /** Gets or sets the post padding seconds. */ - public var postPaddingSeconds: Int? - /** Gets or sets a value indicating whether this instance is pre padding required. */ - public var isPrePaddingRequired: Bool? - /** If the item does not have any backdrops, this will hold the Id of the Parent that has one. */ - public var parentBackdropItemId: String? - /** Gets or sets the parent backdrop image tags. */ - public var parentBackdropImageTags: [String]? - /** Gets or sets a value indicating whether this instance is post padding required. */ - public var isPostPaddingRequired: Bool? - public var keepUntil: AllOfSeriesTimerInfoDtoKeepUntil? - /** Gets or sets a value indicating whether [record any time]. */ - public var recordAnyTime: Bool? - public var skipEpisodesInLibrary: Bool? - /** Gets or sets a value indicating whether [record any channel]. */ - public var recordAnyChannel: Bool? - public var keepUpTo: Int? - /** Gets or sets a value indicating whether [record new only]. */ - public var recordNewOnly: Bool? - /** Gets or sets the days. */ - public var days: [DayOfWeek]? - /** Gets or sets the day pattern. */ - public var dayPattern: AllOfSeriesTimerInfoDtoDayPattern? - /** Gets or sets the image tags. */ - public var imageTags: [String:String]? - /** Gets or sets the parent thumb item id. */ - public var parentThumbItemId: String? - /** Gets or sets the parent thumb image tag. */ - public var parentThumbImageTag: String? - /** Gets or sets the parent primary image item identifier. */ - public var parentPrimaryImageItemId: String? - /** Gets or sets the parent primary image tag. */ - public var parentPrimaryImageTag: String? - - public init(_id: String? = nil, type: String? = nil, serverId: String? = nil, externalId: String? = nil, channelId: UUID? = nil, externalChannelId: String? = nil, channelName: String? = nil, channelPrimaryImageTag: String? = nil, programId: String? = nil, externalProgramId: String? = nil, name: String? = nil, overview: String? = nil, startDate: Date? = nil, endDate: Date? = nil, serviceName: String? = nil, priority: Int? = nil, prePaddingSeconds: Int? = nil, postPaddingSeconds: Int? = nil, isPrePaddingRequired: Bool? = nil, parentBackdropItemId: String? = nil, parentBackdropImageTags: [String]? = nil, isPostPaddingRequired: Bool? = nil, keepUntil: AllOfSeriesTimerInfoDtoKeepUntil? = nil, recordAnyTime: Bool? = nil, skipEpisodesInLibrary: Bool? = nil, recordAnyChannel: Bool? = nil, keepUpTo: Int? = nil, recordNewOnly: Bool? = nil, days: [DayOfWeek]? = nil, dayPattern: AllOfSeriesTimerInfoDtoDayPattern? = nil, imageTags: [String:String]? = nil, parentThumbItemId: String? = nil, parentThumbImageTag: String? = nil, parentPrimaryImageItemId: String? = nil, parentPrimaryImageTag: String? = nil) { - self._id = _id - self.type = type - self.serverId = serverId - self.externalId = externalId - self.channelId = channelId - self.externalChannelId = externalChannelId - self.channelName = channelName - self.channelPrimaryImageTag = channelPrimaryImageTag - self.programId = programId - self.externalProgramId = externalProgramId - self.name = name - self.overview = overview - self.startDate = startDate - self.endDate = endDate - self.serviceName = serviceName - self.priority = priority - self.prePaddingSeconds = prePaddingSeconds - self.postPaddingSeconds = postPaddingSeconds - self.isPrePaddingRequired = isPrePaddingRequired - self.parentBackdropItemId = parentBackdropItemId - self.parentBackdropImageTags = parentBackdropImageTags - self.isPostPaddingRequired = isPostPaddingRequired - self.keepUntil = keepUntil - self.recordAnyTime = recordAnyTime - self.skipEpisodesInLibrary = skipEpisodesInLibrary - self.recordAnyChannel = recordAnyChannel - self.keepUpTo = keepUpTo - self.recordNewOnly = recordNewOnly - self.days = days - self.dayPattern = dayPattern - self.imageTags = imageTags - self.parentThumbItemId = parentThumbItemId - self.parentThumbImageTag = parentThumbImageTag - self.parentPrimaryImageItemId = parentPrimaryImageItemId - self.parentPrimaryImageTag = parentPrimaryImageTag - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case type = "Type" - case serverId = "ServerId" - case externalId = "ExternalId" - case channelId = "ChannelId" - case externalChannelId = "ExternalChannelId" - case channelName = "ChannelName" - case channelPrimaryImageTag = "ChannelPrimaryImageTag" - case programId = "ProgramId" - case externalProgramId = "ExternalProgramId" - case name = "Name" - case overview = "Overview" - case startDate = "StartDate" - case endDate = "EndDate" - case serviceName = "ServiceName" - case priority = "Priority" - case prePaddingSeconds = "PrePaddingSeconds" - case postPaddingSeconds = "PostPaddingSeconds" - case isPrePaddingRequired = "IsPrePaddingRequired" - case parentBackdropItemId = "ParentBackdropItemId" - case parentBackdropImageTags = "ParentBackdropImageTags" - case isPostPaddingRequired = "IsPostPaddingRequired" - case keepUntil = "KeepUntil" - case recordAnyTime = "RecordAnyTime" - case skipEpisodesInLibrary = "SkipEpisodesInLibrary" - case recordAnyChannel = "RecordAnyChannel" - case keepUpTo = "KeepUpTo" - case recordNewOnly = "RecordNewOnly" - case days = "Days" - case dayPattern = "DayPattern" - case imageTags = "ImageTags" - case parentThumbItemId = "ParentThumbItemId" - case parentThumbImageTag = "ParentThumbImageTag" - case parentPrimaryImageItemId = "ParentPrimaryImageItemId" - case parentPrimaryImageTag = "ParentPrimaryImageTag" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SeriesTimerInfoDtoQueryResult.swift b/JellyfinPlayer/Swaggers/Models/SeriesTimerInfoDtoQueryResult.swift deleted file mode 100644 index a6ec7f5e..00000000 --- a/JellyfinPlayer/Swaggers/Models/SeriesTimerInfoDtoQueryResult.swift +++ /dev/null @@ -1,33 +0,0 @@ -// -// SeriesTimerInfoDtoQueryResult.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct SeriesTimerInfoDtoQueryResult: Codable { - - /** Gets or sets the items. */ - public var items: [SeriesTimerInfoDto]? - /** The total number of records available. */ - public var totalRecordCount: Int? - /** The index of the first record in Items. */ - public var startIndex: Int? - - public init(items: [SeriesTimerInfoDto]? = nil, totalRecordCount: Int? = nil, startIndex: Int? = nil) { - self.items = items - self.totalRecordCount = totalRecordCount - self.startIndex = startIndex - } - - public enum CodingKeys: String, CodingKey { - case items = "Items" - case totalRecordCount = "TotalRecordCount" - case startIndex = "StartIndex" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SeriesTimersTimerIdBody.swift b/JellyfinPlayer/Swaggers/Models/SeriesTimersTimerIdBody.swift deleted file mode 100644 index 06dc7363..00000000 --- a/JellyfinPlayer/Swaggers/Models/SeriesTimersTimerIdBody.swift +++ /dev/null @@ -1,157 +0,0 @@ -// -// SeriesTimersTimerIdBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** New series timer info. */ - -public struct SeriesTimersTimerIdBody: Codable { - - /** Id of the recording. */ - public var _id: String? - public var type: String? - /** Gets or sets the server identifier. */ - public var serverId: String? - /** Gets or sets the external identifier. */ - public var externalId: String? - /** ChannelId of the recording. */ - public var channelId: UUID? - /** Gets or sets the external channel identifier. */ - public var externalChannelId: String? - /** ChannelName of the recording. */ - public var channelName: String? - public var channelPrimaryImageTag: String? - /** Gets or sets the program identifier. */ - public var programId: String? - /** Gets or sets the external program identifier. */ - public var externalProgramId: String? - /** Name of the recording. */ - public var name: String? - /** Description of the recording. */ - public var overview: String? - /** The start date of the recording, in UTC. */ - public var startDate: Date? - /** The end date of the recording, in UTC. */ - public var endDate: Date? - /** Gets or sets the name of the service. */ - public var serviceName: String? - /** Gets or sets the priority. */ - public var priority: Int? - /** Gets or sets the pre padding seconds. */ - public var prePaddingSeconds: Int? - /** Gets or sets the post padding seconds. */ - public var postPaddingSeconds: Int? - /** Gets or sets a value indicating whether this instance is pre padding required. */ - public var isPrePaddingRequired: Bool? - /** If the item does not have any backdrops, this will hold the Id of the Parent that has one. */ - public var parentBackdropItemId: String? - /** Gets or sets the parent backdrop image tags. */ - public var parentBackdropImageTags: [String]? - /** Gets or sets a value indicating whether this instance is post padding required. */ - public var isPostPaddingRequired: Bool? - public var keepUntil: Any? - /** Gets or sets a value indicating whether [record any time]. */ - public var recordAnyTime: Bool? - public var skipEpisodesInLibrary: Bool? - /** Gets or sets a value indicating whether [record any channel]. */ - public var recordAnyChannel: Bool? - public var keepUpTo: Int? - /** Gets or sets a value indicating whether [record new only]. */ - public var recordNewOnly: Bool? - /** Gets or sets the days. */ - public var days: [DayOfWeek]? - /** Gets or sets the day pattern. */ - public var dayPattern: Any? - /** Gets or sets the image tags. */ - public var imageTags: [String:String]? - /** Gets or sets the parent thumb item id. */ - public var parentThumbItemId: String? - /** Gets or sets the parent thumb image tag. */ - public var parentThumbImageTag: String? - /** Gets or sets the parent primary image item identifier. */ - public var parentPrimaryImageItemId: String? - /** Gets or sets the parent primary image tag. */ - public var parentPrimaryImageTag: String? - - public init(_id: String? = nil, type: String? = nil, serverId: String? = nil, externalId: String? = nil, channelId: UUID? = nil, externalChannelId: String? = nil, channelName: String? = nil, channelPrimaryImageTag: String? = nil, programId: String? = nil, externalProgramId: String? = nil, name: String? = nil, overview: String? = nil, startDate: Date? = nil, endDate: Date? = nil, serviceName: String? = nil, priority: Int? = nil, prePaddingSeconds: Int? = nil, postPaddingSeconds: Int? = nil, isPrePaddingRequired: Bool? = nil, parentBackdropItemId: String? = nil, parentBackdropImageTags: [String]? = nil, isPostPaddingRequired: Bool? = nil, keepUntil: Any? = nil, recordAnyTime: Bool? = nil, skipEpisodesInLibrary: Bool? = nil, recordAnyChannel: Bool? = nil, keepUpTo: Int? = nil, recordNewOnly: Bool? = nil, days: [DayOfWeek]? = nil, dayPattern: Any? = nil, imageTags: [String:String]? = nil, parentThumbItemId: String? = nil, parentThumbImageTag: String? = nil, parentPrimaryImageItemId: String? = nil, parentPrimaryImageTag: String? = nil) { - self._id = _id - self.type = type - self.serverId = serverId - self.externalId = externalId - self.channelId = channelId - self.externalChannelId = externalChannelId - self.channelName = channelName - self.channelPrimaryImageTag = channelPrimaryImageTag - self.programId = programId - self.externalProgramId = externalProgramId - self.name = name - self.overview = overview - self.startDate = startDate - self.endDate = endDate - self.serviceName = serviceName - self.priority = priority - self.prePaddingSeconds = prePaddingSeconds - self.postPaddingSeconds = postPaddingSeconds - self.isPrePaddingRequired = isPrePaddingRequired - self.parentBackdropItemId = parentBackdropItemId - self.parentBackdropImageTags = parentBackdropImageTags - self.isPostPaddingRequired = isPostPaddingRequired - self.keepUntil = keepUntil - self.recordAnyTime = recordAnyTime - self.skipEpisodesInLibrary = skipEpisodesInLibrary - self.recordAnyChannel = recordAnyChannel - self.keepUpTo = keepUpTo - self.recordNewOnly = recordNewOnly - self.days = days - self.dayPattern = dayPattern - self.imageTags = imageTags - self.parentThumbItemId = parentThumbItemId - self.parentThumbImageTag = parentThumbImageTag - self.parentPrimaryImageItemId = parentPrimaryImageItemId - self.parentPrimaryImageTag = parentPrimaryImageTag - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case type = "Type" - case serverId = "ServerId" - case externalId = "ExternalId" - case channelId = "ChannelId" - case externalChannelId = "ExternalChannelId" - case channelName = "ChannelName" - case channelPrimaryImageTag = "ChannelPrimaryImageTag" - case programId = "ProgramId" - case externalProgramId = "ExternalProgramId" - case name = "Name" - case overview = "Overview" - case startDate = "StartDate" - case endDate = "EndDate" - case serviceName = "ServiceName" - case priority = "Priority" - case prePaddingSeconds = "PrePaddingSeconds" - case postPaddingSeconds = "PostPaddingSeconds" - case isPrePaddingRequired = "IsPrePaddingRequired" - case parentBackdropItemId = "ParentBackdropItemId" - case parentBackdropImageTags = "ParentBackdropImageTags" - case isPostPaddingRequired = "IsPostPaddingRequired" - case keepUntil = "KeepUntil" - case recordAnyTime = "RecordAnyTime" - case skipEpisodesInLibrary = "SkipEpisodesInLibrary" - case recordAnyChannel = "RecordAnyChannel" - case keepUpTo = "KeepUpTo" - case recordNewOnly = "RecordNewOnly" - case days = "Days" - case dayPattern = "DayPattern" - case imageTags = "ImageTags" - case parentThumbItemId = "ParentThumbItemId" - case parentThumbImageTag = "ParentThumbImageTag" - case parentPrimaryImageItemId = "ParentPrimaryImageItemId" - case parentPrimaryImageTag = "ParentPrimaryImageTag" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SeriesTimersTimerIdBody1.swift b/JellyfinPlayer/Swaggers/Models/SeriesTimersTimerIdBody1.swift deleted file mode 100644 index 7a4484b7..00000000 --- a/JellyfinPlayer/Swaggers/Models/SeriesTimersTimerIdBody1.swift +++ /dev/null @@ -1,157 +0,0 @@ -// -// SeriesTimersTimerIdBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** New series timer info. */ - -public struct SeriesTimersTimerIdBody1: Codable { - - /** Id of the recording. */ - public var _id: String? - public var type: String? - /** Gets or sets the server identifier. */ - public var serverId: String? - /** Gets or sets the external identifier. */ - public var externalId: String? - /** ChannelId of the recording. */ - public var channelId: UUID? - /** Gets or sets the external channel identifier. */ - public var externalChannelId: String? - /** ChannelName of the recording. */ - public var channelName: String? - public var channelPrimaryImageTag: String? - /** Gets or sets the program identifier. */ - public var programId: String? - /** Gets or sets the external program identifier. */ - public var externalProgramId: String? - /** Name of the recording. */ - public var name: String? - /** Description of the recording. */ - public var overview: String? - /** The start date of the recording, in UTC. */ - public var startDate: Date? - /** The end date of the recording, in UTC. */ - public var endDate: Date? - /** Gets or sets the name of the service. */ - public var serviceName: String? - /** Gets or sets the priority. */ - public var priority: Int? - /** Gets or sets the pre padding seconds. */ - public var prePaddingSeconds: Int? - /** Gets or sets the post padding seconds. */ - public var postPaddingSeconds: Int? - /** Gets or sets a value indicating whether this instance is pre padding required. */ - public var isPrePaddingRequired: Bool? - /** If the item does not have any backdrops, this will hold the Id of the Parent that has one. */ - public var parentBackdropItemId: String? - /** Gets or sets the parent backdrop image tags. */ - public var parentBackdropImageTags: [String]? - /** Gets or sets a value indicating whether this instance is post padding required. */ - public var isPostPaddingRequired: Bool? - public var keepUntil: Any? - /** Gets or sets a value indicating whether [record any time]. */ - public var recordAnyTime: Bool? - public var skipEpisodesInLibrary: Bool? - /** Gets or sets a value indicating whether [record any channel]. */ - public var recordAnyChannel: Bool? - public var keepUpTo: Int? - /** Gets or sets a value indicating whether [record new only]. */ - public var recordNewOnly: Bool? - /** Gets or sets the days. */ - public var days: [DayOfWeek]? - /** Gets or sets the day pattern. */ - public var dayPattern: Any? - /** Gets or sets the image tags. */ - public var imageTags: [String:String]? - /** Gets or sets the parent thumb item id. */ - public var parentThumbItemId: String? - /** Gets or sets the parent thumb image tag. */ - public var parentThumbImageTag: String? - /** Gets or sets the parent primary image item identifier. */ - public var parentPrimaryImageItemId: String? - /** Gets or sets the parent primary image tag. */ - public var parentPrimaryImageTag: String? - - public init(_id: String? = nil, type: String? = nil, serverId: String? = nil, externalId: String? = nil, channelId: UUID? = nil, externalChannelId: String? = nil, channelName: String? = nil, channelPrimaryImageTag: String? = nil, programId: String? = nil, externalProgramId: String? = nil, name: String? = nil, overview: String? = nil, startDate: Date? = nil, endDate: Date? = nil, serviceName: String? = nil, priority: Int? = nil, prePaddingSeconds: Int? = nil, postPaddingSeconds: Int? = nil, isPrePaddingRequired: Bool? = nil, parentBackdropItemId: String? = nil, parentBackdropImageTags: [String]? = nil, isPostPaddingRequired: Bool? = nil, keepUntil: Any? = nil, recordAnyTime: Bool? = nil, skipEpisodesInLibrary: Bool? = nil, recordAnyChannel: Bool? = nil, keepUpTo: Int? = nil, recordNewOnly: Bool? = nil, days: [DayOfWeek]? = nil, dayPattern: Any? = nil, imageTags: [String:String]? = nil, parentThumbItemId: String? = nil, parentThumbImageTag: String? = nil, parentPrimaryImageItemId: String? = nil, parentPrimaryImageTag: String? = nil) { - self._id = _id - self.type = type - self.serverId = serverId - self.externalId = externalId - self.channelId = channelId - self.externalChannelId = externalChannelId - self.channelName = channelName - self.channelPrimaryImageTag = channelPrimaryImageTag - self.programId = programId - self.externalProgramId = externalProgramId - self.name = name - self.overview = overview - self.startDate = startDate - self.endDate = endDate - self.serviceName = serviceName - self.priority = priority - self.prePaddingSeconds = prePaddingSeconds - self.postPaddingSeconds = postPaddingSeconds - self.isPrePaddingRequired = isPrePaddingRequired - self.parentBackdropItemId = parentBackdropItemId - self.parentBackdropImageTags = parentBackdropImageTags - self.isPostPaddingRequired = isPostPaddingRequired - self.keepUntil = keepUntil - self.recordAnyTime = recordAnyTime - self.skipEpisodesInLibrary = skipEpisodesInLibrary - self.recordAnyChannel = recordAnyChannel - self.keepUpTo = keepUpTo - self.recordNewOnly = recordNewOnly - self.days = days - self.dayPattern = dayPattern - self.imageTags = imageTags - self.parentThumbItemId = parentThumbItemId - self.parentThumbImageTag = parentThumbImageTag - self.parentPrimaryImageItemId = parentPrimaryImageItemId - self.parentPrimaryImageTag = parentPrimaryImageTag - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case type = "Type" - case serverId = "ServerId" - case externalId = "ExternalId" - case channelId = "ChannelId" - case externalChannelId = "ExternalChannelId" - case channelName = "ChannelName" - case channelPrimaryImageTag = "ChannelPrimaryImageTag" - case programId = "ProgramId" - case externalProgramId = "ExternalProgramId" - case name = "Name" - case overview = "Overview" - case startDate = "StartDate" - case endDate = "EndDate" - case serviceName = "ServiceName" - case priority = "Priority" - case prePaddingSeconds = "PrePaddingSeconds" - case postPaddingSeconds = "PostPaddingSeconds" - case isPrePaddingRequired = "IsPrePaddingRequired" - case parentBackdropItemId = "ParentBackdropItemId" - case parentBackdropImageTags = "ParentBackdropImageTags" - case isPostPaddingRequired = "IsPostPaddingRequired" - case keepUntil = "KeepUntil" - case recordAnyTime = "RecordAnyTime" - case skipEpisodesInLibrary = "SkipEpisodesInLibrary" - case recordAnyChannel = "RecordAnyChannel" - case keepUpTo = "KeepUpTo" - case recordNewOnly = "RecordNewOnly" - case days = "Days" - case dayPattern = "DayPattern" - case imageTags = "ImageTags" - case parentThumbItemId = "ParentThumbItemId" - case parentThumbImageTag = "ParentThumbImageTag" - case parentPrimaryImageItemId = "ParentPrimaryImageItemId" - case parentPrimaryImageTag = "ParentPrimaryImageTag" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SeriesTimersTimerIdBody2.swift b/JellyfinPlayer/Swaggers/Models/SeriesTimersTimerIdBody2.swift deleted file mode 100644 index e1d78d2e..00000000 --- a/JellyfinPlayer/Swaggers/Models/SeriesTimersTimerIdBody2.swift +++ /dev/null @@ -1,157 +0,0 @@ -// -// SeriesTimersTimerIdBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** New series timer info. */ - -public struct SeriesTimersTimerIdBody2: Codable { - - /** Id of the recording. */ - public var _id: String? - public var type: String? - /** Gets or sets the server identifier. */ - public var serverId: String? - /** Gets or sets the external identifier. */ - public var externalId: String? - /** ChannelId of the recording. */ - public var channelId: UUID? - /** Gets or sets the external channel identifier. */ - public var externalChannelId: String? - /** ChannelName of the recording. */ - public var channelName: String? - public var channelPrimaryImageTag: String? - /** Gets or sets the program identifier. */ - public var programId: String? - /** Gets or sets the external program identifier. */ - public var externalProgramId: String? - /** Name of the recording. */ - public var name: String? - /** Description of the recording. */ - public var overview: String? - /** The start date of the recording, in UTC. */ - public var startDate: Date? - /** The end date of the recording, in UTC. */ - public var endDate: Date? - /** Gets or sets the name of the service. */ - public var serviceName: String? - /** Gets or sets the priority. */ - public var priority: Int? - /** Gets or sets the pre padding seconds. */ - public var prePaddingSeconds: Int? - /** Gets or sets the post padding seconds. */ - public var postPaddingSeconds: Int? - /** Gets or sets a value indicating whether this instance is pre padding required. */ - public var isPrePaddingRequired: Bool? - /** If the item does not have any backdrops, this will hold the Id of the Parent that has one. */ - public var parentBackdropItemId: String? - /** Gets or sets the parent backdrop image tags. */ - public var parentBackdropImageTags: [String]? - /** Gets or sets a value indicating whether this instance is post padding required. */ - public var isPostPaddingRequired: Bool? - public var keepUntil: Any? - /** Gets or sets a value indicating whether [record any time]. */ - public var recordAnyTime: Bool? - public var skipEpisodesInLibrary: Bool? - /** Gets or sets a value indicating whether [record any channel]. */ - public var recordAnyChannel: Bool? - public var keepUpTo: Int? - /** Gets or sets a value indicating whether [record new only]. */ - public var recordNewOnly: Bool? - /** Gets or sets the days. */ - public var days: [DayOfWeek]? - /** Gets or sets the day pattern. */ - public var dayPattern: Any? - /** Gets or sets the image tags. */ - public var imageTags: [String:String]? - /** Gets or sets the parent thumb item id. */ - public var parentThumbItemId: String? - /** Gets or sets the parent thumb image tag. */ - public var parentThumbImageTag: String? - /** Gets or sets the parent primary image item identifier. */ - public var parentPrimaryImageItemId: String? - /** Gets or sets the parent primary image tag. */ - public var parentPrimaryImageTag: String? - - public init(_id: String? = nil, type: String? = nil, serverId: String? = nil, externalId: String? = nil, channelId: UUID? = nil, externalChannelId: String? = nil, channelName: String? = nil, channelPrimaryImageTag: String? = nil, programId: String? = nil, externalProgramId: String? = nil, name: String? = nil, overview: String? = nil, startDate: Date? = nil, endDate: Date? = nil, serviceName: String? = nil, priority: Int? = nil, prePaddingSeconds: Int? = nil, postPaddingSeconds: Int? = nil, isPrePaddingRequired: Bool? = nil, parentBackdropItemId: String? = nil, parentBackdropImageTags: [String]? = nil, isPostPaddingRequired: Bool? = nil, keepUntil: Any? = nil, recordAnyTime: Bool? = nil, skipEpisodesInLibrary: Bool? = nil, recordAnyChannel: Bool? = nil, keepUpTo: Int? = nil, recordNewOnly: Bool? = nil, days: [DayOfWeek]? = nil, dayPattern: Any? = nil, imageTags: [String:String]? = nil, parentThumbItemId: String? = nil, parentThumbImageTag: String? = nil, parentPrimaryImageItemId: String? = nil, parentPrimaryImageTag: String? = nil) { - self._id = _id - self.type = type - self.serverId = serverId - self.externalId = externalId - self.channelId = channelId - self.externalChannelId = externalChannelId - self.channelName = channelName - self.channelPrimaryImageTag = channelPrimaryImageTag - self.programId = programId - self.externalProgramId = externalProgramId - self.name = name - self.overview = overview - self.startDate = startDate - self.endDate = endDate - self.serviceName = serviceName - self.priority = priority - self.prePaddingSeconds = prePaddingSeconds - self.postPaddingSeconds = postPaddingSeconds - self.isPrePaddingRequired = isPrePaddingRequired - self.parentBackdropItemId = parentBackdropItemId - self.parentBackdropImageTags = parentBackdropImageTags - self.isPostPaddingRequired = isPostPaddingRequired - self.keepUntil = keepUntil - self.recordAnyTime = recordAnyTime - self.skipEpisodesInLibrary = skipEpisodesInLibrary - self.recordAnyChannel = recordAnyChannel - self.keepUpTo = keepUpTo - self.recordNewOnly = recordNewOnly - self.days = days - self.dayPattern = dayPattern - self.imageTags = imageTags - self.parentThumbItemId = parentThumbItemId - self.parentThumbImageTag = parentThumbImageTag - self.parentPrimaryImageItemId = parentPrimaryImageItemId - self.parentPrimaryImageTag = parentPrimaryImageTag - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case type = "Type" - case serverId = "ServerId" - case externalId = "ExternalId" - case channelId = "ChannelId" - case externalChannelId = "ExternalChannelId" - case channelName = "ChannelName" - case channelPrimaryImageTag = "ChannelPrimaryImageTag" - case programId = "ProgramId" - case externalProgramId = "ExternalProgramId" - case name = "Name" - case overview = "Overview" - case startDate = "StartDate" - case endDate = "EndDate" - case serviceName = "ServiceName" - case priority = "Priority" - case prePaddingSeconds = "PrePaddingSeconds" - case postPaddingSeconds = "PostPaddingSeconds" - case isPrePaddingRequired = "IsPrePaddingRequired" - case parentBackdropItemId = "ParentBackdropItemId" - case parentBackdropImageTags = "ParentBackdropImageTags" - case isPostPaddingRequired = "IsPostPaddingRequired" - case keepUntil = "KeepUntil" - case recordAnyTime = "RecordAnyTime" - case skipEpisodesInLibrary = "SkipEpisodesInLibrary" - case recordAnyChannel = "RecordAnyChannel" - case keepUpTo = "KeepUpTo" - case recordNewOnly = "RecordNewOnly" - case days = "Days" - case dayPattern = "DayPattern" - case imageTags = "ImageTags" - case parentThumbItemId = "ParentThumbItemId" - case parentThumbImageTag = "ParentThumbImageTag" - case parentPrimaryImageItemId = "ParentPrimaryImageItemId" - case parentPrimaryImageTag = "ParentPrimaryImageTag" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ServerConfiguration.swift b/JellyfinPlayer/Swaggers/Models/ServerConfiguration.swift deleted file mode 100644 index acfd0247..00000000 --- a/JellyfinPlayer/Swaggers/Models/ServerConfiguration.swift +++ /dev/null @@ -1,333 +0,0 @@ -// -// ServerConfiguration.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Represents the server configuration. */ - -public struct ServerConfiguration: Codable { - - /** Gets or sets the number of days we should retain log files. */ - public var logFileRetentionDays: Int? - /** Gets or sets a value indicating whether this instance is first run. */ - public var isStartupWizardCompleted: Bool? - /** Gets or sets the cache path. */ - public var cachePath: String? - /** Gets or sets the last known version that was ran using the configuration. */ - public var previousVersion: AllOfServerConfigurationPreviousVersion? - /** Gets or sets the stringified PreviousVersion to be stored/loaded, because System.Version itself isn't xml-serializable. */ - public var previousVersionStr: String? - /** Gets or sets a value indicating whether to enable automatic port forwarding. */ - public var enableUPnP: Bool? - /** Gets or sets a value indicating whether to enable prometheus metrics exporting. */ - public var enableMetrics: Bool? - /** Gets or sets the public mapped port. */ - public var publicPort: Int? - /** Gets or sets a value indicating whether the http port should be mapped as part of UPnP automatic port forwarding. */ - public var uPnPCreateHttpPortMap: Bool? - /** Gets or sets client udp port range. */ - public var uDPPortRange: String? - /** Gets or sets a value indicating whether IPV6 capability is enabled. */ - public var enableIPV6: Bool? - /** Gets or sets a value indicating whether IPV4 capability is enabled. */ - public var enableIPV4: Bool? - /** Gets or sets a value indicating whether detailed ssdp logs are sent to the console/log. \"Emby.Dlna\": \"Debug\" must be set in logging.default.json for this property to work. */ - public var enableSSDPTracing: Bool? - /** Gets or sets a value indicating whether an IP address is to be used to filter the detailed ssdp logs that are being sent to the console/log. If the setting \"Emby.Dlna\": \"Debug\" msut be set in logging.default.json for this property to work. */ - public var sSDPTracingFilter: String? - /** Gets or sets the number of times SSDP UDP messages are sent. */ - public var uDPSendCount: Int? - /** Gets or sets the delay between each groups of SSDP messages (in ms). */ - public var uDPSendDelay: Int? - /** Gets or sets a value indicating whether address names that match MediaBrowser.Model.Configuration.ServerConfiguration.VirtualInterfaceNames should be Ignore for the purposes of binding. */ - public var ignoreVirtualInterfaces: Bool? - /** Gets or sets a value indicating the interfaces that should be ignored. The list can be comma separated. <seealso cref=\"P:MediaBrowser.Model.Configuration.ServerConfiguration.IgnoreVirtualInterfaces\" />. */ - public var virtualInterfaceNames: String? - /** Gets or sets the time (in seconds) between the pings of SSDP gateway monitor. */ - public var gatewayMonitorPeriod: Int? - /** Gets a value indicating whether multi-socket binding is available. */ - public var enableMultiSocketBinding: Bool? - /** Gets or sets a value indicating whether all IPv6 interfaces should be treated as on the internal network. Depending on the address range implemented ULA ranges might not be used. */ - public var trustAllIP6Interfaces: Bool? - /** Gets or sets the ports that HDHomerun uses. */ - public var hDHomerunPortRange: String? - /** Gets or sets PublishedServerUri to advertise for specific subnets. */ - public var publishedServerUriBySubnet: [String]? - /** Gets or sets a value indicating whether Autodiscovery tracing is enabled. */ - public var autoDiscoveryTracing: Bool? - /** Gets or sets a value indicating whether Autodiscovery is enabled. */ - public var autoDiscovery: Bool? - /** Gets or sets the public HTTPS port. */ - public var publicHttpsPort: Int? - /** Gets or sets the HTTP server port number. */ - public var httpServerPortNumber: Int? - /** Gets or sets the HTTPS server port number. */ - public var httpsPortNumber: Int? - /** Gets or sets a value indicating whether to use HTTPS. */ - public var enableHttps: Bool? - public var enableNormalizedItemByNameIds: Bool? - /** Gets or sets the filesystem path of an X.509 certificate to use for SSL. */ - public var certificatePath: String? - /** Gets or sets the password required to access the X.509 certificate data in the file specified by MediaBrowser.Model.Configuration.ServerConfiguration.CertificatePath. */ - public var certificatePassword: String? - /** Gets or sets a value indicating whether this instance is port authorized. */ - public var isPortAuthorized: Bool? - /** Gets or sets a value indicating whether quick connect is available for use on this server. */ - public var quickConnectAvailable: Bool? - /** Gets or sets a value indicating whether access outside of the LAN is permitted. */ - public var enableRemoteAccess: Bool? - /** Gets or sets a value indicating whether [enable case sensitive item ids]. */ - public var enableCaseSensitiveItemIds: Bool? - public var disableLiveTvChannelUserDataName: Bool? - /** Gets or sets the metadata path. */ - public var metadataPath: String? - public var metadataNetworkPath: String? - /** Gets or sets the preferred metadata language. */ - public var preferredMetadataLanguage: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - /** Gets or sets characters to be replaced with a ' ' in strings to create a sort name. */ - public var sortReplaceCharacters: [String]? - /** Gets or sets characters to be removed from strings to create a sort name. */ - public var sortRemoveCharacters: [String]? - /** Gets or sets words to be removed from strings to create a sort name. */ - public var sortRemoveWords: [String]? - /** Gets or sets the minimum percentage of an item that must be played in order for playstate to be updated. */ - public var minResumePct: Int? - /** Gets or sets the maximum percentage of an item that can be played while still saving playstate. If this percentage is crossed playstate will be reset to the beginning and the item will be marked watched. */ - public var maxResumePct: Int? - /** Gets or sets the minimum duration that an item must have in order to be eligible for playstate updates.. */ - public var minResumeDurationSeconds: Int? - /** Gets or sets the minimum minutes of a book that must be played in order for playstate to be updated. */ - public var minAudiobookResume: Int? - /** Gets or sets the remaining minutes of a book that can be played while still saving playstate. If this percentage is crossed playstate will be reset to the beginning and the item will be marked watched. */ - public var maxAudiobookResume: Int? - /** Gets or sets the delay in seconds that we will wait after a file system change to try and discover what has been added/removed Some delay is necessary with some items because their creation is not atomic. It involves the creation of several different directories and files. */ - public var libraryMonitorDelay: Int? - /** Gets or sets a value indicating whether [enable dashboard response caching]. Allows potential contributors without visual studio to modify production dashboard code and test changes. */ - public var enableDashboardResponseCaching: Bool? - /** Gets or sets the image saving convention. */ - public var imageSavingConvention: AllOfServerConfigurationImageSavingConvention? - public var metadataOptions: [MetadataOptions]? - public var skipDeserializationForBasicTypes: Bool? - public var serverName: String? - public var baseUrl: String? - public var uICulture: String? - public var saveMetadataHidden: Bool? - public var contentTypes: [NameValuePair]? - public var remoteClientBitrateLimit: Int? - public var enableFolderView: Bool? - public var enableGroupingIntoCollections: Bool? - public var displaySpecialsWithinSeasons: Bool? - /** Gets or sets the subnets that are deemed to make up the LAN. */ - public var localNetworkSubnets: [String]? - /** Gets or sets the interface addresses which Jellyfin will bind to. If empty, all interfaces will be used. */ - public var localNetworkAddresses: [String]? - public var codecsUsed: [String]? - public var pluginRepositories: [RepositoryInfo]? - public var enableExternalContentInSuggestions: Bool? - /** Gets or sets a value indicating whether the server should force connections over HTTPS. */ - public var requireHttps: Bool? - public var enableNewOmdbSupport: Bool? - /** Gets or sets the filter for remote IP connectivity. Used in conjuntion with <seealso cref=\"P:MediaBrowser.Model.Configuration.ServerConfiguration.IsRemoteIPFilterBlacklist\" />. */ - public var remoteIPFilter: [String]? - /** Gets or sets a value indicating whether <seealso cref=\"P:MediaBrowser.Model.Configuration.ServerConfiguration.RemoteIPFilter\" /> contains a blacklist or a whitelist. Default is a whitelist. */ - public var isRemoteIPFilterBlacklist: Bool? - public var imageExtractionTimeoutMs: Int? - public var pathSubstitutions: [PathSubstitution]? - public var uninstalledPlugins: [String]? - /** Gets or sets a value indicating whether slow server responses should be logged as a warning. */ - public var enableSlowResponseWarning: Bool? - /** Gets or sets the threshold for the slow response time warning in ms. */ - public var slowResponseThresholdMs: Int64? - /** Gets or sets the cors hosts. */ - public var corsHosts: [String]? - /** Gets or sets the known proxies. */ - public var knownProxies: [String]? - /** Gets or sets the number of days we should retain activity logs. */ - public var activityLogRetentionDays: Int? - /** Gets or sets the how the library scan fans out. */ - public var libraryScanFanoutConcurrency: Int? - /** Gets or sets the how many metadata refreshes can run concurrently. */ - public var libraryMetadataRefreshConcurrency: Int? - /** Gets or sets a value indicating whether older plugins should automatically be deleted from the plugin folder. */ - public var removeOldPlugins: Bool? - - public init(logFileRetentionDays: Int? = nil, isStartupWizardCompleted: Bool? = nil, cachePath: String? = nil, previousVersion: AllOfServerConfigurationPreviousVersion? = nil, previousVersionStr: String? = nil, enableUPnP: Bool? = nil, enableMetrics: Bool? = nil, publicPort: Int? = nil, uPnPCreateHttpPortMap: Bool? = nil, uDPPortRange: String? = nil, enableIPV6: Bool? = nil, enableIPV4: Bool? = nil, enableSSDPTracing: Bool? = nil, sSDPTracingFilter: String? = nil, uDPSendCount: Int? = nil, uDPSendDelay: Int? = nil, ignoreVirtualInterfaces: Bool? = nil, virtualInterfaceNames: String? = nil, gatewayMonitorPeriod: Int? = nil, enableMultiSocketBinding: Bool? = nil, trustAllIP6Interfaces: Bool? = nil, hDHomerunPortRange: String? = nil, publishedServerUriBySubnet: [String]? = nil, autoDiscoveryTracing: Bool? = nil, autoDiscovery: Bool? = nil, publicHttpsPort: Int? = nil, httpServerPortNumber: Int? = nil, httpsPortNumber: Int? = nil, enableHttps: Bool? = nil, enableNormalizedItemByNameIds: Bool? = nil, certificatePath: String? = nil, certificatePassword: String? = nil, isPortAuthorized: Bool? = nil, quickConnectAvailable: Bool? = nil, enableRemoteAccess: Bool? = nil, enableCaseSensitiveItemIds: Bool? = nil, disableLiveTvChannelUserDataName: Bool? = nil, metadataPath: String? = nil, metadataNetworkPath: String? = nil, preferredMetadataLanguage: String? = nil, metadataCountryCode: String? = nil, sortReplaceCharacters: [String]? = nil, sortRemoveCharacters: [String]? = nil, sortRemoveWords: [String]? = nil, minResumePct: Int? = nil, maxResumePct: Int? = nil, minResumeDurationSeconds: Int? = nil, minAudiobookResume: Int? = nil, maxAudiobookResume: Int? = nil, libraryMonitorDelay: Int? = nil, enableDashboardResponseCaching: Bool? = nil, imageSavingConvention: AllOfServerConfigurationImageSavingConvention? = nil, metadataOptions: [MetadataOptions]? = nil, skipDeserializationForBasicTypes: Bool? = nil, serverName: String? = nil, baseUrl: String? = nil, uICulture: String? = nil, saveMetadataHidden: Bool? = nil, contentTypes: [NameValuePair]? = nil, remoteClientBitrateLimit: Int? = nil, enableFolderView: Bool? = nil, enableGroupingIntoCollections: Bool? = nil, displaySpecialsWithinSeasons: Bool? = nil, localNetworkSubnets: [String]? = nil, localNetworkAddresses: [String]? = nil, codecsUsed: [String]? = nil, pluginRepositories: [RepositoryInfo]? = nil, enableExternalContentInSuggestions: Bool? = nil, requireHttps: Bool? = nil, enableNewOmdbSupport: Bool? = nil, remoteIPFilter: [String]? = nil, isRemoteIPFilterBlacklist: Bool? = nil, imageExtractionTimeoutMs: Int? = nil, pathSubstitutions: [PathSubstitution]? = nil, uninstalledPlugins: [String]? = nil, enableSlowResponseWarning: Bool? = nil, slowResponseThresholdMs: Int64? = nil, corsHosts: [String]? = nil, knownProxies: [String]? = nil, activityLogRetentionDays: Int? = nil, libraryScanFanoutConcurrency: Int? = nil, libraryMetadataRefreshConcurrency: Int? = nil, removeOldPlugins: Bool? = nil) { - self.logFileRetentionDays = logFileRetentionDays - self.isStartupWizardCompleted = isStartupWizardCompleted - self.cachePath = cachePath - self.previousVersion = previousVersion - self.previousVersionStr = previousVersionStr - self.enableUPnP = enableUPnP - self.enableMetrics = enableMetrics - self.publicPort = publicPort - self.uPnPCreateHttpPortMap = uPnPCreateHttpPortMap - self.uDPPortRange = uDPPortRange - self.enableIPV6 = enableIPV6 - self.enableIPV4 = enableIPV4 - self.enableSSDPTracing = enableSSDPTracing - self.sSDPTracingFilter = sSDPTracingFilter - self.uDPSendCount = uDPSendCount - self.uDPSendDelay = uDPSendDelay - self.ignoreVirtualInterfaces = ignoreVirtualInterfaces - self.virtualInterfaceNames = virtualInterfaceNames - self.gatewayMonitorPeriod = gatewayMonitorPeriod - self.enableMultiSocketBinding = enableMultiSocketBinding - self.trustAllIP6Interfaces = trustAllIP6Interfaces - self.hDHomerunPortRange = hDHomerunPortRange - self.publishedServerUriBySubnet = publishedServerUriBySubnet - self.autoDiscoveryTracing = autoDiscoveryTracing - self.autoDiscovery = autoDiscovery - self.publicHttpsPort = publicHttpsPort - self.httpServerPortNumber = httpServerPortNumber - self.httpsPortNumber = httpsPortNumber - self.enableHttps = enableHttps - self.enableNormalizedItemByNameIds = enableNormalizedItemByNameIds - self.certificatePath = certificatePath - self.certificatePassword = certificatePassword - self.isPortAuthorized = isPortAuthorized - self.quickConnectAvailable = quickConnectAvailable - self.enableRemoteAccess = enableRemoteAccess - self.enableCaseSensitiveItemIds = enableCaseSensitiveItemIds - self.disableLiveTvChannelUserDataName = disableLiveTvChannelUserDataName - self.metadataPath = metadataPath - self.metadataNetworkPath = metadataNetworkPath - self.preferredMetadataLanguage = preferredMetadataLanguage - self.metadataCountryCode = metadataCountryCode - self.sortReplaceCharacters = sortReplaceCharacters - self.sortRemoveCharacters = sortRemoveCharacters - self.sortRemoveWords = sortRemoveWords - self.minResumePct = minResumePct - self.maxResumePct = maxResumePct - self.minResumeDurationSeconds = minResumeDurationSeconds - self.minAudiobookResume = minAudiobookResume - self.maxAudiobookResume = maxAudiobookResume - self.libraryMonitorDelay = libraryMonitorDelay - self.enableDashboardResponseCaching = enableDashboardResponseCaching - self.imageSavingConvention = imageSavingConvention - self.metadataOptions = metadataOptions - self.skipDeserializationForBasicTypes = skipDeserializationForBasicTypes - self.serverName = serverName - self.baseUrl = baseUrl - self.uICulture = uICulture - self.saveMetadataHidden = saveMetadataHidden - self.contentTypes = contentTypes - self.remoteClientBitrateLimit = remoteClientBitrateLimit - self.enableFolderView = enableFolderView - self.enableGroupingIntoCollections = enableGroupingIntoCollections - self.displaySpecialsWithinSeasons = displaySpecialsWithinSeasons - self.localNetworkSubnets = localNetworkSubnets - self.localNetworkAddresses = localNetworkAddresses - self.codecsUsed = codecsUsed - self.pluginRepositories = pluginRepositories - self.enableExternalContentInSuggestions = enableExternalContentInSuggestions - self.requireHttps = requireHttps - self.enableNewOmdbSupport = enableNewOmdbSupport - self.remoteIPFilter = remoteIPFilter - self.isRemoteIPFilterBlacklist = isRemoteIPFilterBlacklist - self.imageExtractionTimeoutMs = imageExtractionTimeoutMs - self.pathSubstitutions = pathSubstitutions - self.uninstalledPlugins = uninstalledPlugins - self.enableSlowResponseWarning = enableSlowResponseWarning - self.slowResponseThresholdMs = slowResponseThresholdMs - self.corsHosts = corsHosts - self.knownProxies = knownProxies - self.activityLogRetentionDays = activityLogRetentionDays - self.libraryScanFanoutConcurrency = libraryScanFanoutConcurrency - self.libraryMetadataRefreshConcurrency = libraryMetadataRefreshConcurrency - self.removeOldPlugins = removeOldPlugins - } - - public enum CodingKeys: String, CodingKey { - case logFileRetentionDays = "LogFileRetentionDays" - case isStartupWizardCompleted = "IsStartupWizardCompleted" - case cachePath = "CachePath" - case previousVersion = "PreviousVersion" - case previousVersionStr = "PreviousVersionStr" - case enableUPnP = "EnableUPnP" - case enableMetrics = "EnableMetrics" - case publicPort = "PublicPort" - case uPnPCreateHttpPortMap = "UPnPCreateHttpPortMap" - case uDPPortRange = "UDPPortRange" - case enableIPV6 = "EnableIPV6" - case enableIPV4 = "EnableIPV4" - case enableSSDPTracing = "EnableSSDPTracing" - case sSDPTracingFilter = "SSDPTracingFilter" - case uDPSendCount = "UDPSendCount" - case uDPSendDelay = "UDPSendDelay" - case ignoreVirtualInterfaces = "IgnoreVirtualInterfaces" - case virtualInterfaceNames = "VirtualInterfaceNames" - case gatewayMonitorPeriod = "GatewayMonitorPeriod" - case enableMultiSocketBinding = "EnableMultiSocketBinding" - case trustAllIP6Interfaces = "TrustAllIP6Interfaces" - case hDHomerunPortRange = "HDHomerunPortRange" - case publishedServerUriBySubnet = "PublishedServerUriBySubnet" - case autoDiscoveryTracing = "AutoDiscoveryTracing" - case autoDiscovery = "AutoDiscovery" - case publicHttpsPort = "PublicHttpsPort" - case httpServerPortNumber = "HttpServerPortNumber" - case httpsPortNumber = "HttpsPortNumber" - case enableHttps = "EnableHttps" - case enableNormalizedItemByNameIds = "EnableNormalizedItemByNameIds" - case certificatePath = "CertificatePath" - case certificatePassword = "CertificatePassword" - case isPortAuthorized = "IsPortAuthorized" - case quickConnectAvailable = "QuickConnectAvailable" - case enableRemoteAccess = "EnableRemoteAccess" - case enableCaseSensitiveItemIds = "EnableCaseSensitiveItemIds" - case disableLiveTvChannelUserDataName = "DisableLiveTvChannelUserDataName" - case metadataPath = "MetadataPath" - case metadataNetworkPath = "MetadataNetworkPath" - case preferredMetadataLanguage = "PreferredMetadataLanguage" - case metadataCountryCode = "MetadataCountryCode" - case sortReplaceCharacters = "SortReplaceCharacters" - case sortRemoveCharacters = "SortRemoveCharacters" - case sortRemoveWords = "SortRemoveWords" - case minResumePct = "MinResumePct" - case maxResumePct = "MaxResumePct" - case minResumeDurationSeconds = "MinResumeDurationSeconds" - case minAudiobookResume = "MinAudiobookResume" - case maxAudiobookResume = "MaxAudiobookResume" - case libraryMonitorDelay = "LibraryMonitorDelay" - case enableDashboardResponseCaching = "EnableDashboardResponseCaching" - case imageSavingConvention = "ImageSavingConvention" - case metadataOptions = "MetadataOptions" - case skipDeserializationForBasicTypes = "SkipDeserializationForBasicTypes" - case serverName = "ServerName" - case baseUrl = "BaseUrl" - case uICulture = "UICulture" - case saveMetadataHidden = "SaveMetadataHidden" - case contentTypes = "ContentTypes" - case remoteClientBitrateLimit = "RemoteClientBitrateLimit" - case enableFolderView = "EnableFolderView" - case enableGroupingIntoCollections = "EnableGroupingIntoCollections" - case displaySpecialsWithinSeasons = "DisplaySpecialsWithinSeasons" - case localNetworkSubnets = "LocalNetworkSubnets" - case localNetworkAddresses = "LocalNetworkAddresses" - case codecsUsed = "CodecsUsed" - case pluginRepositories = "PluginRepositories" - case enableExternalContentInSuggestions = "EnableExternalContentInSuggestions" - case requireHttps = "RequireHttps" - case enableNewOmdbSupport = "EnableNewOmdbSupport" - case remoteIPFilter = "RemoteIPFilter" - case isRemoteIPFilterBlacklist = "IsRemoteIPFilterBlacklist" - case imageExtractionTimeoutMs = "ImageExtractionTimeoutMs" - case pathSubstitutions = "PathSubstitutions" - case uninstalledPlugins = "UninstalledPlugins" - case enableSlowResponseWarning = "EnableSlowResponseWarning" - case slowResponseThresholdMs = "SlowResponseThresholdMs" - case corsHosts = "CorsHosts" - case knownProxies = "KnownProxies" - case activityLogRetentionDays = "ActivityLogRetentionDays" - case libraryScanFanoutConcurrency = "LibraryScanFanoutConcurrency" - case libraryMetadataRefreshConcurrency = "LibraryMetadataRefreshConcurrency" - case removeOldPlugins = "RemoveOldPlugins" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ServerDiscoveryInfo.swift b/JellyfinPlayer/Swaggers/Models/ServerDiscoveryInfo.swift deleted file mode 100644 index c19d6e90..00000000 --- a/JellyfinPlayer/Swaggers/Models/ServerDiscoveryInfo.swift +++ /dev/null @@ -1,37 +0,0 @@ -// -// ServerDiscoveryInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct ServerDiscoveryInfo: Codable { - - /** Gets or sets the address. */ - public var address: String? - /** Gets or sets the server identifier. */ - public var _id: String? - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the endpoint address. */ - public var endpointAddress: String? - - public init(address: String? = nil, _id: String? = nil, name: String? = nil, endpointAddress: String? = nil) { - self.address = address - self._id = _id - self.name = name - self.endpointAddress = endpointAddress - } - - public enum CodingKeys: String, CodingKey { - case address = "Address" - case _id = "Id" - case name = "Name" - case endpointAddress = "EndpointAddress" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SessionIdCommandBody.swift b/JellyfinPlayer/Swaggers/Models/SessionIdCommandBody.swift deleted file mode 100644 index 0e59ab76..00000000 --- a/JellyfinPlayer/Swaggers/Models/SessionIdCommandBody.swift +++ /dev/null @@ -1,32 +0,0 @@ -// -// SessionIdCommandBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The MediaBrowser.Model.Session.GeneralCommand. */ - -public struct SessionIdCommandBody: Codable { - - /** This exists simply to identify a set of known commands. */ - public var name: Any? - public var controllingUserId: UUID? - public var arguments: [String:String]? - - public init(name: Any? = nil, controllingUserId: UUID? = nil, arguments: [String:String]? = nil) { - self.name = name - self.controllingUserId = controllingUserId - self.arguments = arguments - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case controllingUserId = "ControllingUserId" - case arguments = "Arguments" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SessionIdCommandBody1.swift b/JellyfinPlayer/Swaggers/Models/SessionIdCommandBody1.swift deleted file mode 100644 index 197418a3..00000000 --- a/JellyfinPlayer/Swaggers/Models/SessionIdCommandBody1.swift +++ /dev/null @@ -1,32 +0,0 @@ -// -// SessionIdCommandBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The MediaBrowser.Model.Session.GeneralCommand. */ - -public struct SessionIdCommandBody1: Codable { - - /** This exists simply to identify a set of known commands. */ - public var name: Any? - public var controllingUserId: UUID? - public var arguments: [String:String]? - - public init(name: Any? = nil, controllingUserId: UUID? = nil, arguments: [String:String]? = nil) { - self.name = name - self.controllingUserId = controllingUserId - self.arguments = arguments - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case controllingUserId = "ControllingUserId" - case arguments = "Arguments" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SessionIdCommandBody2.swift b/JellyfinPlayer/Swaggers/Models/SessionIdCommandBody2.swift deleted file mode 100644 index bfcbe68e..00000000 --- a/JellyfinPlayer/Swaggers/Models/SessionIdCommandBody2.swift +++ /dev/null @@ -1,32 +0,0 @@ -// -// SessionIdCommandBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The MediaBrowser.Model.Session.GeneralCommand. */ - -public struct SessionIdCommandBody2: Codable { - - /** This exists simply to identify a set of known commands. */ - public var name: Any? - public var controllingUserId: UUID? - public var arguments: [String:String]? - - public init(name: Any? = nil, controllingUserId: UUID? = nil, arguments: [String:String]? = nil) { - self.name = name - self.controllingUserId = controllingUserId - self.arguments = arguments - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case controllingUserId = "ControllingUserId" - case arguments = "Arguments" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SessionIdMessageBody.swift b/JellyfinPlayer/Swaggers/Models/SessionIdMessageBody.swift deleted file mode 100644 index e2319088..00000000 --- a/JellyfinPlayer/Swaggers/Models/SessionIdMessageBody.swift +++ /dev/null @@ -1,31 +0,0 @@ -// -// SessionIdMessageBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The MediaBrowser.Model.Session.MessageCommand object containing Header, Message Text, and TimeoutMs. */ - -public struct SessionIdMessageBody: Codable { - - public var header: String? - public var text: String - public var timeoutMs: Int64? - - public init(header: String? = nil, text: String, timeoutMs: Int64? = nil) { - self.header = header - self.text = text - self.timeoutMs = timeoutMs - } - - public enum CodingKeys: String, CodingKey { - case header = "Header" - case text = "Text" - case timeoutMs = "TimeoutMs" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SessionIdMessageBody1.swift b/JellyfinPlayer/Swaggers/Models/SessionIdMessageBody1.swift deleted file mode 100644 index ed338f80..00000000 --- a/JellyfinPlayer/Swaggers/Models/SessionIdMessageBody1.swift +++ /dev/null @@ -1,31 +0,0 @@ -// -// SessionIdMessageBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The MediaBrowser.Model.Session.MessageCommand object containing Header, Message Text, and TimeoutMs. */ - -public struct SessionIdMessageBody1: Codable { - - public var header: String? - public var text: String - public var timeoutMs: Int64? - - public init(header: String? = nil, text: String, timeoutMs: Int64? = nil) { - self.header = header - self.text = text - self.timeoutMs = timeoutMs - } - - public enum CodingKeys: String, CodingKey { - case header = "Header" - case text = "Text" - case timeoutMs = "TimeoutMs" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SessionIdMessageBody2.swift b/JellyfinPlayer/Swaggers/Models/SessionIdMessageBody2.swift deleted file mode 100644 index 498db454..00000000 --- a/JellyfinPlayer/Swaggers/Models/SessionIdMessageBody2.swift +++ /dev/null @@ -1,31 +0,0 @@ -// -// SessionIdMessageBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The MediaBrowser.Model.Session.MessageCommand object containing Header, Message Text, and TimeoutMs. */ - -public struct SessionIdMessageBody2: Codable { - - public var header: String? - public var text: String - public var timeoutMs: Int64? - - public init(header: String? = nil, text: String, timeoutMs: Int64? = nil) { - self.header = header - self.text = text - self.timeoutMs = timeoutMs - } - - public enum CodingKeys: String, CodingKey { - case header = "Header" - case text = "Text" - case timeoutMs = "TimeoutMs" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SessionInfo.swift b/JellyfinPlayer/Swaggers/Models/SessionInfo.swift deleted file mode 100644 index 10d27e80..00000000 --- a/JellyfinPlayer/Swaggers/Models/SessionInfo.swift +++ /dev/null @@ -1,123 +0,0 @@ -// -// SessionInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class SessionInfo. */ - -public struct SessionInfo: Codable { - - public var playState: AllOfSessionInfoPlayState? - public var additionalUsers: [SessionUserInfo]? - public var capabilities: AllOfSessionInfoCapabilities? - /** Gets or sets the remote end point. */ - public var remoteEndPoint: String? - /** Gets or sets the playable media types. */ - public var playableMediaTypes: [String]? - /** Gets or sets the id. */ - public var _id: String? - /** Gets or sets the user id. */ - public var userId: UUID? - /** Gets or sets the username. */ - public var userName: String? - /** Gets or sets the type of the client. */ - public var client: String? - /** Gets or sets the last activity date. */ - public var lastActivityDate: Date? - /** Gets or sets the last playback check in. */ - public var lastPlaybackCheckIn: Date? - /** Gets or sets the name of the device. */ - public var deviceName: String? - /** Gets or sets the type of the device. */ - public var deviceType: String? - /** Gets or sets the now playing item. */ - public var nowPlayingItem: AllOfSessionInfoNowPlayingItem? - /** Class BaseItem. */ - public var fullNowPlayingItem: AllOfSessionInfoFullNowPlayingItem? - /** This is strictly used as a data transfer object from the api layer. This holds information about a BaseItem in a format that is convenient for the client. */ - public var nowViewingItem: AllOfSessionInfoNowViewingItem? - /** Gets or sets the device id. */ - public var deviceId: String? - /** Gets or sets the application version. */ - public var applicationVersion: String? - public var transcodingInfo: AllOfSessionInfoTranscodingInfo? - /** Gets a value indicating whether this instance is active. */ - public var isActive: Bool? - public var supportsMediaControl: Bool? - public var supportsRemoteControl: Bool? - public var nowPlayingQueue: [QueueItem]? - public var hasCustomDeviceName: Bool? - public var playlistItemId: String? - public var serverId: String? - public var userPrimaryImageTag: String? - /** Gets or sets the supported commands. */ - public var supportedCommands: [GeneralCommandType]? - - public init(playState: AllOfSessionInfoPlayState? = nil, additionalUsers: [SessionUserInfo]? = nil, capabilities: AllOfSessionInfoCapabilities? = nil, remoteEndPoint: String? = nil, playableMediaTypes: [String]? = nil, _id: String? = nil, userId: UUID? = nil, userName: String? = nil, client: String? = nil, lastActivityDate: Date? = nil, lastPlaybackCheckIn: Date? = nil, deviceName: String? = nil, deviceType: String? = nil, nowPlayingItem: AllOfSessionInfoNowPlayingItem? = nil, fullNowPlayingItem: AllOfSessionInfoFullNowPlayingItem? = nil, nowViewingItem: AllOfSessionInfoNowViewingItem? = nil, deviceId: String? = nil, applicationVersion: String? = nil, transcodingInfo: AllOfSessionInfoTranscodingInfo? = nil, isActive: Bool? = nil, supportsMediaControl: Bool? = nil, supportsRemoteControl: Bool? = nil, nowPlayingQueue: [QueueItem]? = nil, hasCustomDeviceName: Bool? = nil, playlistItemId: String? = nil, serverId: String? = nil, userPrimaryImageTag: String? = nil, supportedCommands: [GeneralCommandType]? = nil) { - self.playState = playState - self.additionalUsers = additionalUsers - self.capabilities = capabilities - self.remoteEndPoint = remoteEndPoint - self.playableMediaTypes = playableMediaTypes - self._id = _id - self.userId = userId - self.userName = userName - self.client = client - self.lastActivityDate = lastActivityDate - self.lastPlaybackCheckIn = lastPlaybackCheckIn - self.deviceName = deviceName - self.deviceType = deviceType - self.nowPlayingItem = nowPlayingItem - self.fullNowPlayingItem = fullNowPlayingItem - self.nowViewingItem = nowViewingItem - self.deviceId = deviceId - self.applicationVersion = applicationVersion - self.transcodingInfo = transcodingInfo - self.isActive = isActive - self.supportsMediaControl = supportsMediaControl - self.supportsRemoteControl = supportsRemoteControl - self.nowPlayingQueue = nowPlayingQueue - self.hasCustomDeviceName = hasCustomDeviceName - self.playlistItemId = playlistItemId - self.serverId = serverId - self.userPrimaryImageTag = userPrimaryImageTag - self.supportedCommands = supportedCommands - } - - public enum CodingKeys: String, CodingKey { - case playState = "PlayState" - case additionalUsers = "AdditionalUsers" - case capabilities = "Capabilities" - case remoteEndPoint = "RemoteEndPoint" - case playableMediaTypes = "PlayableMediaTypes" - case _id = "Id" - case userId = "UserId" - case userName = "UserName" - case client = "Client" - case lastActivityDate = "LastActivityDate" - case lastPlaybackCheckIn = "LastPlaybackCheckIn" - case deviceName = "DeviceName" - case deviceType = "DeviceType" - case nowPlayingItem = "NowPlayingItem" - case fullNowPlayingItem = "FullNowPlayingItem" - case nowViewingItem = "NowViewingItem" - case deviceId = "DeviceId" - case applicationVersion = "ApplicationVersion" - case transcodingInfo = "TranscodingInfo" - case isActive = "IsActive" - case supportsMediaControl = "SupportsMediaControl" - case supportsRemoteControl = "SupportsRemoteControl" - case nowPlayingQueue = "NowPlayingQueue" - case hasCustomDeviceName = "HasCustomDeviceName" - case playlistItemId = "PlaylistItemId" - case serverId = "ServerId" - case userPrimaryImageTag = "UserPrimaryImageTag" - case supportedCommands = "SupportedCommands" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SessionMessageType.swift b/JellyfinPlayer/Swaggers/Models/SessionMessageType.swift deleted file mode 100644 index b01315fc..00000000 --- a/JellyfinPlayer/Swaggers/Models/SessionMessageType.swift +++ /dev/null @@ -1,47 +0,0 @@ -// -// SessionMessageType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The different kinds of messages that are used in the WebSocket api. */ -public enum SessionMessageType: String, Codable { - case forceKeepAlive = "ForceKeepAlive" - case generalCommand = "GeneralCommand" - case userDataChanged = "UserDataChanged" - case sessions = "Sessions" - case play = "Play" - case syncPlayCommand = "SyncPlayCommand" - case syncPlayGroupUpdate = "SyncPlayGroupUpdate" - case playstate = "Playstate" - case restartRequired = "RestartRequired" - case serverShuttingDown = "ServerShuttingDown" - case serverRestarting = "ServerRestarting" - case libraryChanged = "LibraryChanged" - case userDeleted = "UserDeleted" - case userUpdated = "UserUpdated" - case seriesTimerCreated = "SeriesTimerCreated" - case timerCreated = "TimerCreated" - case seriesTimerCancelled = "SeriesTimerCancelled" - case timerCancelled = "TimerCancelled" - case refreshProgress = "RefreshProgress" - case scheduledTaskEnded = "ScheduledTaskEnded" - case packageInstallationCancelled = "PackageInstallationCancelled" - case packageInstallationFailed = "PackageInstallationFailed" - case packageInstallationCompleted = "PackageInstallationCompleted" - case packageInstalling = "PackageInstalling" - case packageUninstalled = "PackageUninstalled" - case activityLogEntry = "ActivityLogEntry" - case scheduledTasksInfo = "ScheduledTasksInfo" - case activityLogEntryStart = "ActivityLogEntryStart" - case activityLogEntryStop = "ActivityLogEntryStop" - case sessionsStart = "SessionsStart" - case sessionsStop = "SessionsStop" - case scheduledTasksInfoStart = "ScheduledTasksInfoStart" - case scheduledTasksInfoStop = "ScheduledTasksInfoStop" - case keepAlive = "KeepAlive" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/SessionUserInfo.swift b/JellyfinPlayer/Swaggers/Models/SessionUserInfo.swift deleted file mode 100644 index 06bf02e6..00000000 --- a/JellyfinPlayer/Swaggers/Models/SessionUserInfo.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// SessionUserInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class SessionUserInfo. */ - -public struct SessionUserInfo: Codable { - - /** Gets or sets the user identifier. */ - public var userId: UUID? - /** Gets or sets the name of the user. */ - public var userName: String? - - public init(userId: UUID? = nil, userName: String? = nil) { - self.userId = userId - self.userName = userName - } - - public enum CodingKeys: String, CodingKey { - case userId = "UserId" - case userName = "UserName" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SessionsPlayingBody.swift b/JellyfinPlayer/Swaggers/Models/SessionsPlayingBody.swift deleted file mode 100644 index aac00fcd..00000000 --- a/JellyfinPlayer/Swaggers/Models/SessionsPlayingBody.swift +++ /dev/null @@ -1,97 +0,0 @@ -// -// SessionsPlayingBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The playback start info. */ - -public struct SessionsPlayingBody: Codable { - - /** Gets or sets a value indicating whether this instance can seek. */ - public var canSeek: Bool? - /** Gets or sets the item. */ - public var item: Any? - /** Gets or sets the item identifier. */ - public var itemId: UUID? - /** Gets or sets the session id. */ - public var sessionId: String? - /** Gets or sets the media version identifier. */ - public var mediaSourceId: String? - /** Gets or sets the index of the audio stream. */ - public var audioStreamIndex: Int? - /** Gets or sets the index of the subtitle stream. */ - public var subtitleStreamIndex: Int? - /** Gets or sets a value indicating whether this instance is paused. */ - public var isPaused: Bool? - /** Gets or sets a value indicating whether this instance is muted. */ - public var isMuted: Bool? - /** Gets or sets the position ticks. */ - public var positionTicks: Int64? - public var playbackStartTimeTicks: Int64? - /** Gets or sets the volume level. */ - public var volumeLevel: Int? - public var brightness: Int? - public var aspectRatio: String? - /** Gets or sets the play method. */ - public var playMethod: Any? - /** Gets or sets the live stream identifier. */ - public var liveStreamId: String? - /** Gets or sets the play session identifier. */ - public var playSessionId: String? - /** Gets or sets the repeat mode. */ - public var repeatMode: Any? - public var nowPlayingQueue: [QueueItem]? - public var playlistItemId: String? - - public init(canSeek: Bool? = nil, item: Any? = nil, itemId: UUID? = nil, sessionId: String? = nil, mediaSourceId: String? = nil, audioStreamIndex: Int? = nil, subtitleStreamIndex: Int? = nil, isPaused: Bool? = nil, isMuted: Bool? = nil, positionTicks: Int64? = nil, playbackStartTimeTicks: Int64? = nil, volumeLevel: Int? = nil, brightness: Int? = nil, aspectRatio: String? = nil, playMethod: Any? = nil, liveStreamId: String? = nil, playSessionId: String? = nil, repeatMode: Any? = nil, nowPlayingQueue: [QueueItem]? = nil, playlistItemId: String? = nil) { - self.canSeek = canSeek - self.item = item - self.itemId = itemId - self.sessionId = sessionId - self.mediaSourceId = mediaSourceId - self.audioStreamIndex = audioStreamIndex - self.subtitleStreamIndex = subtitleStreamIndex - self.isPaused = isPaused - self.isMuted = isMuted - self.positionTicks = positionTicks - self.playbackStartTimeTicks = playbackStartTimeTicks - self.volumeLevel = volumeLevel - self.brightness = brightness - self.aspectRatio = aspectRatio - self.playMethod = playMethod - self.liveStreamId = liveStreamId - self.playSessionId = playSessionId - self.repeatMode = repeatMode - self.nowPlayingQueue = nowPlayingQueue - self.playlistItemId = playlistItemId - } - - public enum CodingKeys: String, CodingKey { - case canSeek = "CanSeek" - case item = "Item" - case itemId = "ItemId" - case sessionId = "SessionId" - case mediaSourceId = "MediaSourceId" - case audioStreamIndex = "AudioStreamIndex" - case subtitleStreamIndex = "SubtitleStreamIndex" - case isPaused = "IsPaused" - case isMuted = "IsMuted" - case positionTicks = "PositionTicks" - case playbackStartTimeTicks = "PlaybackStartTimeTicks" - case volumeLevel = "VolumeLevel" - case brightness = "Brightness" - case aspectRatio = "AspectRatio" - case playMethod = "PlayMethod" - case liveStreamId = "LiveStreamId" - case playSessionId = "PlaySessionId" - case repeatMode = "RepeatMode" - case nowPlayingQueue = "NowPlayingQueue" - case playlistItemId = "PlaylistItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SessionsPlayingBody1.swift b/JellyfinPlayer/Swaggers/Models/SessionsPlayingBody1.swift deleted file mode 100644 index 15b45879..00000000 --- a/JellyfinPlayer/Swaggers/Models/SessionsPlayingBody1.swift +++ /dev/null @@ -1,97 +0,0 @@ -// -// SessionsPlayingBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The playback start info. */ - -public struct SessionsPlayingBody1: Codable { - - /** Gets or sets a value indicating whether this instance can seek. */ - public var canSeek: Bool? - /** Gets or sets the item. */ - public var item: Any? - /** Gets or sets the item identifier. */ - public var itemId: UUID? - /** Gets or sets the session id. */ - public var sessionId: String? - /** Gets or sets the media version identifier. */ - public var mediaSourceId: String? - /** Gets or sets the index of the audio stream. */ - public var audioStreamIndex: Int? - /** Gets or sets the index of the subtitle stream. */ - public var subtitleStreamIndex: Int? - /** Gets or sets a value indicating whether this instance is paused. */ - public var isPaused: Bool? - /** Gets or sets a value indicating whether this instance is muted. */ - public var isMuted: Bool? - /** Gets or sets the position ticks. */ - public var positionTicks: Int64? - public var playbackStartTimeTicks: Int64? - /** Gets or sets the volume level. */ - public var volumeLevel: Int? - public var brightness: Int? - public var aspectRatio: String? - /** Gets or sets the play method. */ - public var playMethod: Any? - /** Gets or sets the live stream identifier. */ - public var liveStreamId: String? - /** Gets or sets the play session identifier. */ - public var playSessionId: String? - /** Gets or sets the repeat mode. */ - public var repeatMode: Any? - public var nowPlayingQueue: [QueueItem]? - public var playlistItemId: String? - - public init(canSeek: Bool? = nil, item: Any? = nil, itemId: UUID? = nil, sessionId: String? = nil, mediaSourceId: String? = nil, audioStreamIndex: Int? = nil, subtitleStreamIndex: Int? = nil, isPaused: Bool? = nil, isMuted: Bool? = nil, positionTicks: Int64? = nil, playbackStartTimeTicks: Int64? = nil, volumeLevel: Int? = nil, brightness: Int? = nil, aspectRatio: String? = nil, playMethod: Any? = nil, liveStreamId: String? = nil, playSessionId: String? = nil, repeatMode: Any? = nil, nowPlayingQueue: [QueueItem]? = nil, playlistItemId: String? = nil) { - self.canSeek = canSeek - self.item = item - self.itemId = itemId - self.sessionId = sessionId - self.mediaSourceId = mediaSourceId - self.audioStreamIndex = audioStreamIndex - self.subtitleStreamIndex = subtitleStreamIndex - self.isPaused = isPaused - self.isMuted = isMuted - self.positionTicks = positionTicks - self.playbackStartTimeTicks = playbackStartTimeTicks - self.volumeLevel = volumeLevel - self.brightness = brightness - self.aspectRatio = aspectRatio - self.playMethod = playMethod - self.liveStreamId = liveStreamId - self.playSessionId = playSessionId - self.repeatMode = repeatMode - self.nowPlayingQueue = nowPlayingQueue - self.playlistItemId = playlistItemId - } - - public enum CodingKeys: String, CodingKey { - case canSeek = "CanSeek" - case item = "Item" - case itemId = "ItemId" - case sessionId = "SessionId" - case mediaSourceId = "MediaSourceId" - case audioStreamIndex = "AudioStreamIndex" - case subtitleStreamIndex = "SubtitleStreamIndex" - case isPaused = "IsPaused" - case isMuted = "IsMuted" - case positionTicks = "PositionTicks" - case playbackStartTimeTicks = "PlaybackStartTimeTicks" - case volumeLevel = "VolumeLevel" - case brightness = "Brightness" - case aspectRatio = "AspectRatio" - case playMethod = "PlayMethod" - case liveStreamId = "LiveStreamId" - case playSessionId = "PlaySessionId" - case repeatMode = "RepeatMode" - case nowPlayingQueue = "NowPlayingQueue" - case playlistItemId = "PlaylistItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SessionsPlayingBody2.swift b/JellyfinPlayer/Swaggers/Models/SessionsPlayingBody2.swift deleted file mode 100644 index 3634d0e5..00000000 --- a/JellyfinPlayer/Swaggers/Models/SessionsPlayingBody2.swift +++ /dev/null @@ -1,97 +0,0 @@ -// -// SessionsPlayingBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The playback start info. */ - -public struct SessionsPlayingBody2: Codable { - - /** Gets or sets a value indicating whether this instance can seek. */ - public var canSeek: Bool? - /** Gets or sets the item. */ - public var item: Any? - /** Gets or sets the item identifier. */ - public var itemId: UUID? - /** Gets or sets the session id. */ - public var sessionId: String? - /** Gets or sets the media version identifier. */ - public var mediaSourceId: String? - /** Gets or sets the index of the audio stream. */ - public var audioStreamIndex: Int? - /** Gets or sets the index of the subtitle stream. */ - public var subtitleStreamIndex: Int? - /** Gets or sets a value indicating whether this instance is paused. */ - public var isPaused: Bool? - /** Gets or sets a value indicating whether this instance is muted. */ - public var isMuted: Bool? - /** Gets or sets the position ticks. */ - public var positionTicks: Int64? - public var playbackStartTimeTicks: Int64? - /** Gets or sets the volume level. */ - public var volumeLevel: Int? - public var brightness: Int? - public var aspectRatio: String? - /** Gets or sets the play method. */ - public var playMethod: Any? - /** Gets or sets the live stream identifier. */ - public var liveStreamId: String? - /** Gets or sets the play session identifier. */ - public var playSessionId: String? - /** Gets or sets the repeat mode. */ - public var repeatMode: Any? - public var nowPlayingQueue: [QueueItem]? - public var playlistItemId: String? - - public init(canSeek: Bool? = nil, item: Any? = nil, itemId: UUID? = nil, sessionId: String? = nil, mediaSourceId: String? = nil, audioStreamIndex: Int? = nil, subtitleStreamIndex: Int? = nil, isPaused: Bool? = nil, isMuted: Bool? = nil, positionTicks: Int64? = nil, playbackStartTimeTicks: Int64? = nil, volumeLevel: Int? = nil, brightness: Int? = nil, aspectRatio: String? = nil, playMethod: Any? = nil, liveStreamId: String? = nil, playSessionId: String? = nil, repeatMode: Any? = nil, nowPlayingQueue: [QueueItem]? = nil, playlistItemId: String? = nil) { - self.canSeek = canSeek - self.item = item - self.itemId = itemId - self.sessionId = sessionId - self.mediaSourceId = mediaSourceId - self.audioStreamIndex = audioStreamIndex - self.subtitleStreamIndex = subtitleStreamIndex - self.isPaused = isPaused - self.isMuted = isMuted - self.positionTicks = positionTicks - self.playbackStartTimeTicks = playbackStartTimeTicks - self.volumeLevel = volumeLevel - self.brightness = brightness - self.aspectRatio = aspectRatio - self.playMethod = playMethod - self.liveStreamId = liveStreamId - self.playSessionId = playSessionId - self.repeatMode = repeatMode - self.nowPlayingQueue = nowPlayingQueue - self.playlistItemId = playlistItemId - } - - public enum CodingKeys: String, CodingKey { - case canSeek = "CanSeek" - case item = "Item" - case itemId = "ItemId" - case sessionId = "SessionId" - case mediaSourceId = "MediaSourceId" - case audioStreamIndex = "AudioStreamIndex" - case subtitleStreamIndex = "SubtitleStreamIndex" - case isPaused = "IsPaused" - case isMuted = "IsMuted" - case positionTicks = "PositionTicks" - case playbackStartTimeTicks = "PlaybackStartTimeTicks" - case volumeLevel = "VolumeLevel" - case brightness = "Brightness" - case aspectRatio = "AspectRatio" - case playMethod = "PlayMethod" - case liveStreamId = "LiveStreamId" - case playSessionId = "PlaySessionId" - case repeatMode = "RepeatMode" - case nowPlayingQueue = "NowPlayingQueue" - case playlistItemId = "PlaylistItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SetChannelMappingDto.swift b/JellyfinPlayer/Swaggers/Models/SetChannelMappingDto.swift deleted file mode 100644 index ab686ae8..00000000 --- a/JellyfinPlayer/Swaggers/Models/SetChannelMappingDto.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// SetChannelMappingDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Set channel mapping dto. */ - -public struct SetChannelMappingDto: Codable { - - /** Gets or sets the provider id. */ - public var providerId: String - /** Gets or sets the tuner channel id. */ - public var tunerChannelId: String - /** Gets or sets the provider channel id. */ - public var providerChannelId: String - - public init(providerId: String, tunerChannelId: String, providerChannelId: String) { - self.providerId = providerId - self.tunerChannelId = tunerChannelId - self.providerChannelId = providerChannelId - } - - public enum CodingKeys: String, CodingKey { - case providerId = "ProviderId" - case tunerChannelId = "TunerChannelId" - case providerChannelId = "ProviderChannelId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SetPlaylistItemRequestDto.swift b/JellyfinPlayer/Swaggers/Models/SetPlaylistItemRequestDto.swift deleted file mode 100644 index 91f62a08..00000000 --- a/JellyfinPlayer/Swaggers/Models/SetPlaylistItemRequestDto.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SetPlaylistItemRequestDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class SetPlaylistItemRequestDto. */ - -public struct SetPlaylistItemRequestDto: Codable { - - /** Gets or sets the playlist identifier of the playing item. */ - public var playlistItemId: UUID? - - public init(playlistItemId: UUID? = nil) { - self.playlistItemId = playlistItemId - } - - public enum CodingKeys: String, CodingKey { - case playlistItemId = "PlaylistItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SetRepeatModeRequestDto.swift b/JellyfinPlayer/Swaggers/Models/SetRepeatModeRequestDto.swift deleted file mode 100644 index d3464b12..00000000 --- a/JellyfinPlayer/Swaggers/Models/SetRepeatModeRequestDto.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SetRepeatModeRequestDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class SetRepeatModeRequestDto. */ - -public struct SetRepeatModeRequestDto: Codable { - - /** Gets or sets the repeat mode. */ - public var mode: AllOfSetRepeatModeRequestDtoMode? - - public init(mode: AllOfSetRepeatModeRequestDtoMode? = nil) { - self.mode = mode - } - - public enum CodingKeys: String, CodingKey { - case mode = "Mode" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SetShuffleModeRequestDto.swift b/JellyfinPlayer/Swaggers/Models/SetShuffleModeRequestDto.swift deleted file mode 100644 index 0ec87b24..00000000 --- a/JellyfinPlayer/Swaggers/Models/SetShuffleModeRequestDto.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SetShuffleModeRequestDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class SetShuffleModeRequestDto. */ - -public struct SetShuffleModeRequestDto: Codable { - - /** Gets or sets the shuffle mode. */ - public var mode: AllOfSetShuffleModeRequestDtoMode? - - public init(mode: AllOfSetShuffleModeRequestDtoMode? = nil) { - self.mode = mode - } - - public enum CodingKeys: String, CodingKey { - case mode = "Mode" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SongInfo.swift b/JellyfinPlayer/Swaggers/Models/SongInfo.swift deleted file mode 100644 index 1a3160a1..00000000 --- a/JellyfinPlayer/Swaggers/Models/SongInfo.swift +++ /dev/null @@ -1,66 +0,0 @@ -// -// SongInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct SongInfo: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the path. */ - public var path: String? - /** Gets or sets the metadata language. */ - public var metadataLanguage: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets the year. */ - public var year: Int? - public var indexNumber: Int? - public var parentIndexNumber: Int? - public var premiereDate: Date? - public var isAutomated: Bool? - public var albumArtists: [String]? - public var album: String? - public var artists: [String]? - - public init(name: String? = nil, path: String? = nil, metadataLanguage: String? = nil, metadataCountryCode: String? = nil, providerIds: [String:String]? = nil, year: Int? = nil, indexNumber: Int? = nil, parentIndexNumber: Int? = nil, premiereDate: Date? = nil, isAutomated: Bool? = nil, albumArtists: [String]? = nil, album: String? = nil, artists: [String]? = nil) { - self.name = name - self.path = path - self.metadataLanguage = metadataLanguage - self.metadataCountryCode = metadataCountryCode - self.providerIds = providerIds - self.year = year - self.indexNumber = indexNumber - self.parentIndexNumber = parentIndexNumber - self.premiereDate = premiereDate - self.isAutomated = isAutomated - self.albumArtists = albumArtists - self.album = album - self.artists = artists - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case path = "Path" - case metadataLanguage = "MetadataLanguage" - case metadataCountryCode = "MetadataCountryCode" - case providerIds = "ProviderIds" - case year = "Year" - case indexNumber = "IndexNumber" - case parentIndexNumber = "ParentIndexNumber" - case premiereDate = "PremiereDate" - case isAutomated = "IsAutomated" - case albumArtists = "AlbumArtists" - case album = "Album" - case artists = "Artists" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SortOrder.swift b/JellyfinPlayer/Swaggers/Models/SortOrder.swift deleted file mode 100644 index a02969f4..00000000 --- a/JellyfinPlayer/Swaggers/Models/SortOrder.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// SortOrder.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. Sort order. */ - -public struct SortOrder: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/SortOrder1.swift b/JellyfinPlayer/Swaggers/Models/SortOrder1.swift deleted file mode 100644 index ea71e20a..00000000 --- a/JellyfinPlayer/Swaggers/Models/SortOrder1.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// SortOrder1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. Sort in Ascending or Descending order. */ - -public struct SortOrder1: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/SpecialViewOptionDto.swift b/JellyfinPlayer/Swaggers/Models/SpecialViewOptionDto.swift deleted file mode 100644 index 9497a196..00000000 --- a/JellyfinPlayer/Swaggers/Models/SpecialViewOptionDto.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// SpecialViewOptionDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Special view option dto. */ - -public struct SpecialViewOptionDto: Codable { - - /** Gets or sets view option name. */ - public var name: String? - /** Gets or sets view option id. */ - public var _id: String? - - public init(name: String? = nil, _id: String? = nil) { - self.name = name - self._id = _id - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case _id = "Id" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/StartupConfigurationBody.swift b/JellyfinPlayer/Swaggers/Models/StartupConfigurationBody.swift deleted file mode 100644 index 8f88a279..00000000 --- a/JellyfinPlayer/Swaggers/Models/StartupConfigurationBody.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// StartupConfigurationBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The updated startup configuration. */ - -public struct StartupConfigurationBody: Codable { - - /** Gets or sets UI language culture. */ - public var uICulture: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - /** Gets or sets the preferred language for the metadata. */ - public var preferredMetadataLanguage: String? - - public init(uICulture: String? = nil, metadataCountryCode: String? = nil, preferredMetadataLanguage: String? = nil) { - self.uICulture = uICulture - self.metadataCountryCode = metadataCountryCode - self.preferredMetadataLanguage = preferredMetadataLanguage - } - - public enum CodingKeys: String, CodingKey { - case uICulture = "UICulture" - case metadataCountryCode = "MetadataCountryCode" - case preferredMetadataLanguage = "PreferredMetadataLanguage" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/StartupConfigurationBody1.swift b/JellyfinPlayer/Swaggers/Models/StartupConfigurationBody1.swift deleted file mode 100644 index 34e333da..00000000 --- a/JellyfinPlayer/Swaggers/Models/StartupConfigurationBody1.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// StartupConfigurationBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The updated startup configuration. */ - -public struct StartupConfigurationBody1: Codable { - - /** Gets or sets UI language culture. */ - public var uICulture: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - /** Gets or sets the preferred language for the metadata. */ - public var preferredMetadataLanguage: String? - - public init(uICulture: String? = nil, metadataCountryCode: String? = nil, preferredMetadataLanguage: String? = nil) { - self.uICulture = uICulture - self.metadataCountryCode = metadataCountryCode - self.preferredMetadataLanguage = preferredMetadataLanguage - } - - public enum CodingKeys: String, CodingKey { - case uICulture = "UICulture" - case metadataCountryCode = "MetadataCountryCode" - case preferredMetadataLanguage = "PreferredMetadataLanguage" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/StartupConfigurationBody2.swift b/JellyfinPlayer/Swaggers/Models/StartupConfigurationBody2.swift deleted file mode 100644 index 11bc4c25..00000000 --- a/JellyfinPlayer/Swaggers/Models/StartupConfigurationBody2.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// StartupConfigurationBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The updated startup configuration. */ - -public struct StartupConfigurationBody2: Codable { - - /** Gets or sets UI language culture. */ - public var uICulture: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - /** Gets or sets the preferred language for the metadata. */ - public var preferredMetadataLanguage: String? - - public init(uICulture: String? = nil, metadataCountryCode: String? = nil, preferredMetadataLanguage: String? = nil) { - self.uICulture = uICulture - self.metadataCountryCode = metadataCountryCode - self.preferredMetadataLanguage = preferredMetadataLanguage - } - - public enum CodingKeys: String, CodingKey { - case uICulture = "UICulture" - case metadataCountryCode = "MetadataCountryCode" - case preferredMetadataLanguage = "PreferredMetadataLanguage" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/StartupConfigurationDto.swift b/JellyfinPlayer/Swaggers/Models/StartupConfigurationDto.swift deleted file mode 100644 index a1fb2d8f..00000000 --- a/JellyfinPlayer/Swaggers/Models/StartupConfigurationDto.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// StartupConfigurationDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The startup configuration DTO. */ - -public struct StartupConfigurationDto: Codable { - - /** Gets or sets UI language culture. */ - public var uICulture: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - /** Gets or sets the preferred language for the metadata. */ - public var preferredMetadataLanguage: String? - - public init(uICulture: String? = nil, metadataCountryCode: String? = nil, preferredMetadataLanguage: String? = nil) { - self.uICulture = uICulture - self.metadataCountryCode = metadataCountryCode - self.preferredMetadataLanguage = preferredMetadataLanguage - } - - public enum CodingKeys: String, CodingKey { - case uICulture = "UICulture" - case metadataCountryCode = "MetadataCountryCode" - case preferredMetadataLanguage = "PreferredMetadataLanguage" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/StartupRemoteAccessBody.swift b/JellyfinPlayer/Swaggers/Models/StartupRemoteAccessBody.swift deleted file mode 100644 index 3ec3c9fb..00000000 --- a/JellyfinPlayer/Swaggers/Models/StartupRemoteAccessBody.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// StartupRemoteAccessBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The startup remote access dto. */ - -public struct StartupRemoteAccessBody: Codable { - - /** Gets or sets a value indicating whether enable remote access. */ - public var enableRemoteAccess: Bool - /** Gets or sets a value indicating whether enable automatic port mapping. */ - public var enableAutomaticPortMapping: Bool - - public init(enableRemoteAccess: Bool, enableAutomaticPortMapping: Bool) { - self.enableRemoteAccess = enableRemoteAccess - self.enableAutomaticPortMapping = enableAutomaticPortMapping - } - - public enum CodingKeys: String, CodingKey { - case enableRemoteAccess = "EnableRemoteAccess" - case enableAutomaticPortMapping = "EnableAutomaticPortMapping" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/StartupRemoteAccessBody1.swift b/JellyfinPlayer/Swaggers/Models/StartupRemoteAccessBody1.swift deleted file mode 100644 index 0aaf1220..00000000 --- a/JellyfinPlayer/Swaggers/Models/StartupRemoteAccessBody1.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// StartupRemoteAccessBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The startup remote access dto. */ - -public struct StartupRemoteAccessBody1: Codable { - - /** Gets or sets a value indicating whether enable remote access. */ - public var enableRemoteAccess: Bool - /** Gets or sets a value indicating whether enable automatic port mapping. */ - public var enableAutomaticPortMapping: Bool - - public init(enableRemoteAccess: Bool, enableAutomaticPortMapping: Bool) { - self.enableRemoteAccess = enableRemoteAccess - self.enableAutomaticPortMapping = enableAutomaticPortMapping - } - - public enum CodingKeys: String, CodingKey { - case enableRemoteAccess = "EnableRemoteAccess" - case enableAutomaticPortMapping = "EnableAutomaticPortMapping" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/StartupRemoteAccessBody2.swift b/JellyfinPlayer/Swaggers/Models/StartupRemoteAccessBody2.swift deleted file mode 100644 index 06cfd311..00000000 --- a/JellyfinPlayer/Swaggers/Models/StartupRemoteAccessBody2.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// StartupRemoteAccessBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The startup remote access dto. */ - -public struct StartupRemoteAccessBody2: Codable { - - /** Gets or sets a value indicating whether enable remote access. */ - public var enableRemoteAccess: Bool - /** Gets or sets a value indicating whether enable automatic port mapping. */ - public var enableAutomaticPortMapping: Bool - - public init(enableRemoteAccess: Bool, enableAutomaticPortMapping: Bool) { - self.enableRemoteAccess = enableRemoteAccess - self.enableAutomaticPortMapping = enableAutomaticPortMapping - } - - public enum CodingKeys: String, CodingKey { - case enableRemoteAccess = "EnableRemoteAccess" - case enableAutomaticPortMapping = "EnableAutomaticPortMapping" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/StartupRemoteAccessDto.swift b/JellyfinPlayer/Swaggers/Models/StartupRemoteAccessDto.swift deleted file mode 100644 index 4977767c..00000000 --- a/JellyfinPlayer/Swaggers/Models/StartupRemoteAccessDto.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// StartupRemoteAccessDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Startup remote access dto. */ - -public struct StartupRemoteAccessDto: Codable { - - /** Gets or sets a value indicating whether enable remote access. */ - public var enableRemoteAccess: Bool - /** Gets or sets a value indicating whether enable automatic port mapping. */ - public var enableAutomaticPortMapping: Bool - - public init(enableRemoteAccess: Bool, enableAutomaticPortMapping: Bool) { - self.enableRemoteAccess = enableRemoteAccess - self.enableAutomaticPortMapping = enableAutomaticPortMapping - } - - public enum CodingKeys: String, CodingKey { - case enableRemoteAccess = "EnableRemoteAccess" - case enableAutomaticPortMapping = "EnableAutomaticPortMapping" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/StartupUserBody.swift b/JellyfinPlayer/Swaggers/Models/StartupUserBody.swift deleted file mode 100644 index c55557c0..00000000 --- a/JellyfinPlayer/Swaggers/Models/StartupUserBody.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// StartupUserBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The DTO containing username and password. */ - -public struct StartupUserBody: Codable { - - /** Gets or sets the username. */ - public var name: String? - /** Gets or sets the user's password. */ - public var password: String? - - public init(name: String? = nil, password: String? = nil) { - self.name = name - self.password = password - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case password = "Password" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/StartupUserBody1.swift b/JellyfinPlayer/Swaggers/Models/StartupUserBody1.swift deleted file mode 100644 index 867a6b48..00000000 --- a/JellyfinPlayer/Swaggers/Models/StartupUserBody1.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// StartupUserBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The DTO containing username and password. */ - -public struct StartupUserBody1: Codable { - - /** Gets or sets the username. */ - public var name: String? - /** Gets or sets the user's password. */ - public var password: String? - - public init(name: String? = nil, password: String? = nil) { - self.name = name - self.password = password - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case password = "Password" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/StartupUserBody2.swift b/JellyfinPlayer/Swaggers/Models/StartupUserBody2.swift deleted file mode 100644 index fece36ee..00000000 --- a/JellyfinPlayer/Swaggers/Models/StartupUserBody2.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// StartupUserBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The DTO containing username and password. */ - -public struct StartupUserBody2: Codable { - - /** Gets or sets the username. */ - public var name: String? - /** Gets or sets the user's password. */ - public var password: String? - - public init(name: String? = nil, password: String? = nil) { - self.name = name - self.password = password - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case password = "Password" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/StartupUserDto.swift b/JellyfinPlayer/Swaggers/Models/StartupUserDto.swift deleted file mode 100644 index e46c5f04..00000000 --- a/JellyfinPlayer/Swaggers/Models/StartupUserDto.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// StartupUserDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The startup user DTO. */ - -public struct StartupUserDto: Codable { - - /** Gets or sets the username. */ - public var name: String? - /** Gets or sets the user's password. */ - public var password: String? - - public init(name: String? = nil, password: String? = nil) { - self.name = name - self.password = password - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case password = "Password" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/Status.swift b/JellyfinPlayer/Swaggers/Models/Status.swift deleted file mode 100644 index 3596f6ce..00000000 --- a/JellyfinPlayer/Swaggers/Models/Status.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Status.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. Filter by recording status. */ - -public struct Status: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Status1.swift b/JellyfinPlayer/Swaggers/Models/Status1.swift deleted file mode 100644 index 88b8881b..00000000 --- a/JellyfinPlayer/Swaggers/Models/Status1.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Status1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. Filter by recording status. */ - -public struct Status1: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Status2.swift b/JellyfinPlayer/Swaggers/Models/Status2.swift deleted file mode 100644 index 222543e9..00000000 --- a/JellyfinPlayer/Swaggers/Models/Status2.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Status2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** New MediaBrowser.Model.QuickConnect.QuickConnectState. */ - -public struct Status2: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/SubtitleDeliveryMethod.swift b/JellyfinPlayer/Swaggers/Models/SubtitleDeliveryMethod.swift deleted file mode 100644 index c1d64c37..00000000 --- a/JellyfinPlayer/Swaggers/Models/SubtitleDeliveryMethod.swift +++ /dev/null @@ -1,16 +0,0 @@ -// -// SubtitleDeliveryMethod.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum SubtitleDeliveryMethod: String, Codable { - case encode = "Encode" - case embed = "Embed" - case external = "External" - case hls = "Hls" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/SubtitleMethod.swift b/JellyfinPlayer/Swaggers/Models/SubtitleMethod.swift deleted file mode 100644 index 0fa09504..00000000 --- a/JellyfinPlayer/Swaggers/Models/SubtitleMethod.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// SubtitleMethod.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. Specify the subtitle delivery method. */ - -public struct SubtitleMethod: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/SubtitleMethod1.swift b/JellyfinPlayer/Swaggers/Models/SubtitleMethod1.swift deleted file mode 100644 index c5197a2b..00000000 --- a/JellyfinPlayer/Swaggers/Models/SubtitleMethod1.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// SubtitleMethod1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. Specify the subtitle delivery method. */ - -public struct SubtitleMethod1: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/SubtitleMethod10.swift b/JellyfinPlayer/Swaggers/Models/SubtitleMethod10.swift deleted file mode 100644 index 70885919..00000000 --- a/JellyfinPlayer/Swaggers/Models/SubtitleMethod10.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// SubtitleMethod10.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. Specify the subtitle delivery method. */ - -public struct SubtitleMethod10: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/SubtitleMethod11.swift b/JellyfinPlayer/Swaggers/Models/SubtitleMethod11.swift deleted file mode 100644 index 0bd3901d..00000000 --- a/JellyfinPlayer/Swaggers/Models/SubtitleMethod11.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// SubtitleMethod11.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. Specify the subtitle delivery method. */ - -public struct SubtitleMethod11: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/SubtitleMethod12.swift b/JellyfinPlayer/Swaggers/Models/SubtitleMethod12.swift deleted file mode 100644 index 52a19c32..00000000 --- a/JellyfinPlayer/Swaggers/Models/SubtitleMethod12.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// SubtitleMethod12.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. Specify the subtitle delivery method. */ - -public struct SubtitleMethod12: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/SubtitleMethod13.swift b/JellyfinPlayer/Swaggers/Models/SubtitleMethod13.swift deleted file mode 100644 index 39530181..00000000 --- a/JellyfinPlayer/Swaggers/Models/SubtitleMethod13.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// SubtitleMethod13.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. Specify the subtitle delivery method. */ - -public struct SubtitleMethod13: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/SubtitleMethod14.swift b/JellyfinPlayer/Swaggers/Models/SubtitleMethod14.swift deleted file mode 100644 index fdbf87b1..00000000 --- a/JellyfinPlayer/Swaggers/Models/SubtitleMethod14.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// SubtitleMethod14.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. Specify the subtitle delivery method. */ - -public struct SubtitleMethod14: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/SubtitleMethod15.swift b/JellyfinPlayer/Swaggers/Models/SubtitleMethod15.swift deleted file mode 100644 index fa1a9dea..00000000 --- a/JellyfinPlayer/Swaggers/Models/SubtitleMethod15.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// SubtitleMethod15.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. Specify the subtitle delivery method. */ - -public struct SubtitleMethod15: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/SubtitleMethod16.swift b/JellyfinPlayer/Swaggers/Models/SubtitleMethod16.swift deleted file mode 100644 index e7a824b8..00000000 --- a/JellyfinPlayer/Swaggers/Models/SubtitleMethod16.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// SubtitleMethod16.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. Specify the subtitle delivery method. */ - -public struct SubtitleMethod16: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/SubtitleMethod2.swift b/JellyfinPlayer/Swaggers/Models/SubtitleMethod2.swift deleted file mode 100644 index 8ba44643..00000000 --- a/JellyfinPlayer/Swaggers/Models/SubtitleMethod2.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// SubtitleMethod2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. Specify the subtitle delivery method. */ - -public struct SubtitleMethod2: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/SubtitleMethod3.swift b/JellyfinPlayer/Swaggers/Models/SubtitleMethod3.swift deleted file mode 100644 index 89b214f5..00000000 --- a/JellyfinPlayer/Swaggers/Models/SubtitleMethod3.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// SubtitleMethod3.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. Specify the subtitle delivery method. */ - -public struct SubtitleMethod3: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/SubtitleMethod4.swift b/JellyfinPlayer/Swaggers/Models/SubtitleMethod4.swift deleted file mode 100644 index 940c6f92..00000000 --- a/JellyfinPlayer/Swaggers/Models/SubtitleMethod4.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// SubtitleMethod4.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. Specify the subtitle delivery method. */ - -public struct SubtitleMethod4: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/SubtitleMethod5.swift b/JellyfinPlayer/Swaggers/Models/SubtitleMethod5.swift deleted file mode 100644 index 0d8c6d95..00000000 --- a/JellyfinPlayer/Swaggers/Models/SubtitleMethod5.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// SubtitleMethod5.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. Specify the subtitle delivery method. */ - -public struct SubtitleMethod5: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/SubtitleMethod6.swift b/JellyfinPlayer/Swaggers/Models/SubtitleMethod6.swift deleted file mode 100644 index 70aceb1e..00000000 --- a/JellyfinPlayer/Swaggers/Models/SubtitleMethod6.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// SubtitleMethod6.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. Specify the subtitle delivery method. */ - -public struct SubtitleMethod6: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/SubtitleMethod7.swift b/JellyfinPlayer/Swaggers/Models/SubtitleMethod7.swift deleted file mode 100644 index e04f13e9..00000000 --- a/JellyfinPlayer/Swaggers/Models/SubtitleMethod7.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// SubtitleMethod7.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. Specify the subtitle delivery method. */ - -public struct SubtitleMethod7: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/SubtitleMethod8.swift b/JellyfinPlayer/Swaggers/Models/SubtitleMethod8.swift deleted file mode 100644 index 113bc29f..00000000 --- a/JellyfinPlayer/Swaggers/Models/SubtitleMethod8.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// SubtitleMethod8.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. Specify the subtitle delivery method. */ - -public struct SubtitleMethod8: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/SubtitleMethod9.swift b/JellyfinPlayer/Swaggers/Models/SubtitleMethod9.swift deleted file mode 100644 index 0dbd01e7..00000000 --- a/JellyfinPlayer/Swaggers/Models/SubtitleMethod9.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// SubtitleMethod9.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Optional. Specify the subtitle delivery method. */ - -public struct SubtitleMethod9: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/SubtitlePlaybackMode.swift b/JellyfinPlayer/Swaggers/Models/SubtitlePlaybackMode.swift deleted file mode 100644 index 832fefda..00000000 --- a/JellyfinPlayer/Swaggers/Models/SubtitlePlaybackMode.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// SubtitlePlaybackMode.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** An enum representing a subtitle playback mode. */ -public enum SubtitlePlaybackMode: String, Codable { - case _default = "Default" - case always = "Always" - case onlyForced = "OnlyForced" - case _none = "None" - case smart = "Smart" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/SubtitleProfile.swift b/JellyfinPlayer/Swaggers/Models/SubtitleProfile.swift deleted file mode 100644 index 04f76376..00000000 --- a/JellyfinPlayer/Swaggers/Models/SubtitleProfile.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// SubtitleProfile.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct SubtitleProfile: Codable { - - public var format: String? - public var method: AllOfSubtitleProfileMethod? - public var didlMode: String? - public var language: String? - public var container: String? - - public init(format: String? = nil, method: AllOfSubtitleProfileMethod? = nil, didlMode: String? = nil, language: String? = nil, container: String? = nil) { - self.format = format - self.method = method - self.didlMode = didlMode - self.language = language - self.container = container - } - - public enum CodingKeys: String, CodingKey { - case format = "Format" - case method = "Method" - case didlMode = "DidlMode" - case language = "Language" - case container = "Container" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayBufferingBody.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayBufferingBody.swift deleted file mode 100644 index 52a05a80..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayBufferingBody.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// SyncPlayBufferingBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The player status. */ - -public struct SyncPlayBufferingBody: Codable { - - /** Gets or sets when the request has been made by the client. */ - public var when: Date? - /** Gets or sets the position ticks. */ - public var positionTicks: Int64? - /** Gets or sets a value indicating whether the client playback is unpaused. */ - public var isPlaying: Bool? - /** Gets or sets the playlist item identifier of the playing item. */ - public var playlistItemId: UUID? - - public init(when: Date? = nil, positionTicks: Int64? = nil, isPlaying: Bool? = nil, playlistItemId: UUID? = nil) { - self.when = when - self.positionTicks = positionTicks - self.isPlaying = isPlaying - self.playlistItemId = playlistItemId - } - - public enum CodingKeys: String, CodingKey { - case when = "When" - case positionTicks = "PositionTicks" - case isPlaying = "IsPlaying" - case playlistItemId = "PlaylistItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayBufferingBody1.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayBufferingBody1.swift deleted file mode 100644 index fc12c751..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayBufferingBody1.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// SyncPlayBufferingBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The player status. */ - -public struct SyncPlayBufferingBody1: Codable { - - /** Gets or sets when the request has been made by the client. */ - public var when: Date? - /** Gets or sets the position ticks. */ - public var positionTicks: Int64? - /** Gets or sets a value indicating whether the client playback is unpaused. */ - public var isPlaying: Bool? - /** Gets or sets the playlist item identifier of the playing item. */ - public var playlistItemId: UUID? - - public init(when: Date? = nil, positionTicks: Int64? = nil, isPlaying: Bool? = nil, playlistItemId: UUID? = nil) { - self.when = when - self.positionTicks = positionTicks - self.isPlaying = isPlaying - self.playlistItemId = playlistItemId - } - - public enum CodingKeys: String, CodingKey { - case when = "When" - case positionTicks = "PositionTicks" - case isPlaying = "IsPlaying" - case playlistItemId = "PlaylistItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayBufferingBody2.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayBufferingBody2.swift deleted file mode 100644 index 91a3a576..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayBufferingBody2.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// SyncPlayBufferingBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The player status. */ - -public struct SyncPlayBufferingBody2: Codable { - - /** Gets or sets when the request has been made by the client. */ - public var when: Date? - /** Gets or sets the position ticks. */ - public var positionTicks: Int64? - /** Gets or sets a value indicating whether the client playback is unpaused. */ - public var isPlaying: Bool? - /** Gets or sets the playlist item identifier of the playing item. */ - public var playlistItemId: UUID? - - public init(when: Date? = nil, positionTicks: Int64? = nil, isPlaying: Bool? = nil, playlistItemId: UUID? = nil) { - self.when = when - self.positionTicks = positionTicks - self.isPlaying = isPlaying - self.playlistItemId = playlistItemId - } - - public enum CodingKeys: String, CodingKey { - case when = "When" - case positionTicks = "PositionTicks" - case isPlaying = "IsPlaying" - case playlistItemId = "PlaylistItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayJoinBody.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayJoinBody.swift deleted file mode 100644 index e1e398b1..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayJoinBody.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlayJoinBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The group to join. */ - -public struct SyncPlayJoinBody: Codable { - - /** Gets or sets the group identifier. */ - public var groupId: UUID? - - public init(groupId: UUID? = nil) { - self.groupId = groupId - } - - public enum CodingKeys: String, CodingKey { - case groupId = "GroupId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayJoinBody1.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayJoinBody1.swift deleted file mode 100644 index 8686d0b8..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayJoinBody1.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlayJoinBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The group to join. */ - -public struct SyncPlayJoinBody1: Codable { - - /** Gets or sets the group identifier. */ - public var groupId: UUID? - - public init(groupId: UUID? = nil) { - self.groupId = groupId - } - - public enum CodingKeys: String, CodingKey { - case groupId = "GroupId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayJoinBody2.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayJoinBody2.swift deleted file mode 100644 index 40a17d4e..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayJoinBody2.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlayJoinBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The group to join. */ - -public struct SyncPlayJoinBody2: Codable { - - /** Gets or sets the group identifier. */ - public var groupId: UUID? - - public init(groupId: UUID? = nil) { - self.groupId = groupId - } - - public enum CodingKeys: String, CodingKey { - case groupId = "GroupId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayMovePlaylistItemBody.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayMovePlaylistItemBody.swift deleted file mode 100644 index 3e5a2393..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayMovePlaylistItemBody.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// SyncPlayMovePlaylistItemBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The new position for the item. */ - -public struct SyncPlayMovePlaylistItemBody: Codable { - - /** Gets or sets the playlist identifier of the item. */ - public var playlistItemId: UUID? - /** Gets or sets the new position. */ - public var newIndex: Int? - - public init(playlistItemId: UUID? = nil, newIndex: Int? = nil) { - self.playlistItemId = playlistItemId - self.newIndex = newIndex - } - - public enum CodingKeys: String, CodingKey { - case playlistItemId = "PlaylistItemId" - case newIndex = "NewIndex" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayMovePlaylistItemBody1.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayMovePlaylistItemBody1.swift deleted file mode 100644 index 61ed9f1e..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayMovePlaylistItemBody1.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// SyncPlayMovePlaylistItemBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The new position for the item. */ - -public struct SyncPlayMovePlaylistItemBody1: Codable { - - /** Gets or sets the playlist identifier of the item. */ - public var playlistItemId: UUID? - /** Gets or sets the new position. */ - public var newIndex: Int? - - public init(playlistItemId: UUID? = nil, newIndex: Int? = nil) { - self.playlistItemId = playlistItemId - self.newIndex = newIndex - } - - public enum CodingKeys: String, CodingKey { - case playlistItemId = "PlaylistItemId" - case newIndex = "NewIndex" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayMovePlaylistItemBody2.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayMovePlaylistItemBody2.swift deleted file mode 100644 index ea502784..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayMovePlaylistItemBody2.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// SyncPlayMovePlaylistItemBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The new position for the item. */ - -public struct SyncPlayMovePlaylistItemBody2: Codable { - - /** Gets or sets the playlist identifier of the item. */ - public var playlistItemId: UUID? - /** Gets or sets the new position. */ - public var newIndex: Int? - - public init(playlistItemId: UUID? = nil, newIndex: Int? = nil) { - self.playlistItemId = playlistItemId - self.newIndex = newIndex - } - - public enum CodingKeys: String, CodingKey { - case playlistItemId = "PlaylistItemId" - case newIndex = "NewIndex" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayNewBody.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayNewBody.swift deleted file mode 100644 index 319a787d..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayNewBody.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlayNewBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The settings of the new group. */ - -public struct SyncPlayNewBody: Codable { - - /** Gets or sets the group name. */ - public var groupName: String? - - public init(groupName: String? = nil) { - self.groupName = groupName - } - - public enum CodingKeys: String, CodingKey { - case groupName = "GroupName" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayNewBody1.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayNewBody1.swift deleted file mode 100644 index 7ff6f4c9..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayNewBody1.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlayNewBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The settings of the new group. */ - -public struct SyncPlayNewBody1: Codable { - - /** Gets or sets the group name. */ - public var groupName: String? - - public init(groupName: String? = nil) { - self.groupName = groupName - } - - public enum CodingKeys: String, CodingKey { - case groupName = "GroupName" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayNewBody2.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayNewBody2.swift deleted file mode 100644 index 9e265f00..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayNewBody2.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlayNewBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The settings of the new group. */ - -public struct SyncPlayNewBody2: Codable { - - /** Gets or sets the group name. */ - public var groupName: String? - - public init(groupName: String? = nil) { - self.groupName = groupName - } - - public enum CodingKeys: String, CodingKey { - case groupName = "GroupName" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayNextItemBody.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayNextItemBody.swift deleted file mode 100644 index a2e44da2..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayNextItemBody.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlayNextItemBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The current item information. */ - -public struct SyncPlayNextItemBody: Codable { - - /** Gets or sets the playing item identifier. */ - public var playlistItemId: UUID? - - public init(playlistItemId: UUID? = nil) { - self.playlistItemId = playlistItemId - } - - public enum CodingKeys: String, CodingKey { - case playlistItemId = "PlaylistItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayNextItemBody1.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayNextItemBody1.swift deleted file mode 100644 index e21c6ced..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayNextItemBody1.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlayNextItemBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The current item information. */ - -public struct SyncPlayNextItemBody1: Codable { - - /** Gets or sets the playing item identifier. */ - public var playlistItemId: UUID? - - public init(playlistItemId: UUID? = nil) { - self.playlistItemId = playlistItemId - } - - public enum CodingKeys: String, CodingKey { - case playlistItemId = "PlaylistItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayNextItemBody2.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayNextItemBody2.swift deleted file mode 100644 index 47aec713..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayNextItemBody2.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlayNextItemBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The current item information. */ - -public struct SyncPlayNextItemBody2: Codable { - - /** Gets or sets the playing item identifier. */ - public var playlistItemId: UUID? - - public init(playlistItemId: UUID? = nil) { - self.playlistItemId = playlistItemId - } - - public enum CodingKeys: String, CodingKey { - case playlistItemId = "PlaylistItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayPingBody.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayPingBody.swift deleted file mode 100644 index d61ee266..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayPingBody.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlayPingBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The new ping. */ - -public struct SyncPlayPingBody: Codable { - - /** Gets or sets the ping time. */ - public var ping: Int64? - - public init(ping: Int64? = nil) { - self.ping = ping - } - - public enum CodingKeys: String, CodingKey { - case ping = "Ping" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayPingBody1.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayPingBody1.swift deleted file mode 100644 index b1fecbd5..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayPingBody1.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlayPingBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The new ping. */ - -public struct SyncPlayPingBody1: Codable { - - /** Gets or sets the ping time. */ - public var ping: Int64? - - public init(ping: Int64? = nil) { - self.ping = ping - } - - public enum CodingKeys: String, CodingKey { - case ping = "Ping" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayPingBody2.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayPingBody2.swift deleted file mode 100644 index c016a4b2..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayPingBody2.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlayPingBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The new ping. */ - -public struct SyncPlayPingBody2: Codable { - - /** Gets or sets the ping time. */ - public var ping: Int64? - - public init(ping: Int64? = nil) { - self.ping = ping - } - - public enum CodingKeys: String, CodingKey { - case ping = "Ping" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayPreviousItemBody.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayPreviousItemBody.swift deleted file mode 100644 index b2a91de1..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayPreviousItemBody.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlayPreviousItemBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The current item information. */ - -public struct SyncPlayPreviousItemBody: Codable { - - /** Gets or sets the playing item identifier. */ - public var playlistItemId: UUID? - - public init(playlistItemId: UUID? = nil) { - self.playlistItemId = playlistItemId - } - - public enum CodingKeys: String, CodingKey { - case playlistItemId = "PlaylistItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayPreviousItemBody1.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayPreviousItemBody1.swift deleted file mode 100644 index 68abecb1..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayPreviousItemBody1.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlayPreviousItemBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The current item information. */ - -public struct SyncPlayPreviousItemBody1: Codable { - - /** Gets or sets the playing item identifier. */ - public var playlistItemId: UUID? - - public init(playlistItemId: UUID? = nil) { - self.playlistItemId = playlistItemId - } - - public enum CodingKeys: String, CodingKey { - case playlistItemId = "PlaylistItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayPreviousItemBody2.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayPreviousItemBody2.swift deleted file mode 100644 index b5a84f26..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayPreviousItemBody2.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlayPreviousItemBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The current item information. */ - -public struct SyncPlayPreviousItemBody2: Codable { - - /** Gets or sets the playing item identifier. */ - public var playlistItemId: UUID? - - public init(playlistItemId: UUID? = nil) { - self.playlistItemId = playlistItemId - } - - public enum CodingKeys: String, CodingKey { - case playlistItemId = "PlaylistItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayQueueBody.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayQueueBody.swift deleted file mode 100644 index 142e1b11..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayQueueBody.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// SyncPlayQueueBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The items to add. */ - -public struct SyncPlayQueueBody: Codable { - - /** Gets or sets the items to enqueue. */ - public var itemIds: [UUID]? - /** Gets or sets the mode in which to add the new items. */ - public var mode: Any? - - public init(itemIds: [UUID]? = nil, mode: Any? = nil) { - self.itemIds = itemIds - self.mode = mode - } - - public enum CodingKeys: String, CodingKey { - case itemIds = "ItemIds" - case mode = "Mode" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayQueueBody1.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayQueueBody1.swift deleted file mode 100644 index 60e96f2e..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayQueueBody1.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// SyncPlayQueueBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The items to add. */ - -public struct SyncPlayQueueBody1: Codable { - - /** Gets or sets the items to enqueue. */ - public var itemIds: [UUID]? - /** Gets or sets the mode in which to add the new items. */ - public var mode: Any? - - public init(itemIds: [UUID]? = nil, mode: Any? = nil) { - self.itemIds = itemIds - self.mode = mode - } - - public enum CodingKeys: String, CodingKey { - case itemIds = "ItemIds" - case mode = "Mode" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayQueueBody2.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayQueueBody2.swift deleted file mode 100644 index 8782458e..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayQueueBody2.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// SyncPlayQueueBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The items to add. */ - -public struct SyncPlayQueueBody2: Codable { - - /** Gets or sets the items to enqueue. */ - public var itemIds: [UUID]? - /** Gets or sets the mode in which to add the new items. */ - public var mode: Any? - - public init(itemIds: [UUID]? = nil, mode: Any? = nil) { - self.itemIds = itemIds - self.mode = mode - } - - public enum CodingKeys: String, CodingKey { - case itemIds = "ItemIds" - case mode = "Mode" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayReadyBody.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayReadyBody.swift deleted file mode 100644 index b4d5a08d..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayReadyBody.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// SyncPlayReadyBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The player status. */ - -public struct SyncPlayReadyBody: Codable { - - /** Gets or sets when the request has been made by the client. */ - public var when: Date? - /** Gets or sets the position ticks. */ - public var positionTicks: Int64? - /** Gets or sets a value indicating whether the client playback is unpaused. */ - public var isPlaying: Bool? - /** Gets or sets the playlist item identifier of the playing item. */ - public var playlistItemId: UUID? - - public init(when: Date? = nil, positionTicks: Int64? = nil, isPlaying: Bool? = nil, playlistItemId: UUID? = nil) { - self.when = when - self.positionTicks = positionTicks - self.isPlaying = isPlaying - self.playlistItemId = playlistItemId - } - - public enum CodingKeys: String, CodingKey { - case when = "When" - case positionTicks = "PositionTicks" - case isPlaying = "IsPlaying" - case playlistItemId = "PlaylistItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayReadyBody1.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayReadyBody1.swift deleted file mode 100644 index 09754360..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayReadyBody1.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// SyncPlayReadyBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The player status. */ - -public struct SyncPlayReadyBody1: Codable { - - /** Gets or sets when the request has been made by the client. */ - public var when: Date? - /** Gets or sets the position ticks. */ - public var positionTicks: Int64? - /** Gets or sets a value indicating whether the client playback is unpaused. */ - public var isPlaying: Bool? - /** Gets or sets the playlist item identifier of the playing item. */ - public var playlistItemId: UUID? - - public init(when: Date? = nil, positionTicks: Int64? = nil, isPlaying: Bool? = nil, playlistItemId: UUID? = nil) { - self.when = when - self.positionTicks = positionTicks - self.isPlaying = isPlaying - self.playlistItemId = playlistItemId - } - - public enum CodingKeys: String, CodingKey { - case when = "When" - case positionTicks = "PositionTicks" - case isPlaying = "IsPlaying" - case playlistItemId = "PlaylistItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayReadyBody2.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayReadyBody2.swift deleted file mode 100644 index c9bd5399..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayReadyBody2.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// SyncPlayReadyBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The player status. */ - -public struct SyncPlayReadyBody2: Codable { - - /** Gets or sets when the request has been made by the client. */ - public var when: Date? - /** Gets or sets the position ticks. */ - public var positionTicks: Int64? - /** Gets or sets a value indicating whether the client playback is unpaused. */ - public var isPlaying: Bool? - /** Gets or sets the playlist item identifier of the playing item. */ - public var playlistItemId: UUID? - - public init(when: Date? = nil, positionTicks: Int64? = nil, isPlaying: Bool? = nil, playlistItemId: UUID? = nil) { - self.when = when - self.positionTicks = positionTicks - self.isPlaying = isPlaying - self.playlistItemId = playlistItemId - } - - public enum CodingKeys: String, CodingKey { - case when = "When" - case positionTicks = "PositionTicks" - case isPlaying = "IsPlaying" - case playlistItemId = "PlaylistItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayRemoveFromPlaylistBody.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayRemoveFromPlaylistBody.swift deleted file mode 100644 index 531449f3..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayRemoveFromPlaylistBody.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlayRemoveFromPlaylistBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The items to remove. */ - -public struct SyncPlayRemoveFromPlaylistBody: Codable { - - /** Gets or sets the playlist identifiers ot the items. */ - public var playlistItemIds: [UUID]? - - public init(playlistItemIds: [UUID]? = nil) { - self.playlistItemIds = playlistItemIds - } - - public enum CodingKeys: String, CodingKey { - case playlistItemIds = "PlaylistItemIds" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayRemoveFromPlaylistBody1.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayRemoveFromPlaylistBody1.swift deleted file mode 100644 index 5382e976..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayRemoveFromPlaylistBody1.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlayRemoveFromPlaylistBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The items to remove. */ - -public struct SyncPlayRemoveFromPlaylistBody1: Codable { - - /** Gets or sets the playlist identifiers ot the items. */ - public var playlistItemIds: [UUID]? - - public init(playlistItemIds: [UUID]? = nil) { - self.playlistItemIds = playlistItemIds - } - - public enum CodingKeys: String, CodingKey { - case playlistItemIds = "PlaylistItemIds" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayRemoveFromPlaylistBody2.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayRemoveFromPlaylistBody2.swift deleted file mode 100644 index a25f71d5..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayRemoveFromPlaylistBody2.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlayRemoveFromPlaylistBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The items to remove. */ - -public struct SyncPlayRemoveFromPlaylistBody2: Codable { - - /** Gets or sets the playlist identifiers ot the items. */ - public var playlistItemIds: [UUID]? - - public init(playlistItemIds: [UUID]? = nil) { - self.playlistItemIds = playlistItemIds - } - - public enum CodingKeys: String, CodingKey { - case playlistItemIds = "PlaylistItemIds" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlaySeekBody.swift b/JellyfinPlayer/Swaggers/Models/SyncPlaySeekBody.swift deleted file mode 100644 index 9715276c..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlaySeekBody.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlaySeekBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The new playback position. */ - -public struct SyncPlaySeekBody: Codable { - - /** Gets or sets the position ticks. */ - public var positionTicks: Int64? - - public init(positionTicks: Int64? = nil) { - self.positionTicks = positionTicks - } - - public enum CodingKeys: String, CodingKey { - case positionTicks = "PositionTicks" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlaySeekBody1.swift b/JellyfinPlayer/Swaggers/Models/SyncPlaySeekBody1.swift deleted file mode 100644 index ac703d5e..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlaySeekBody1.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlaySeekBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The new playback position. */ - -public struct SyncPlaySeekBody1: Codable { - - /** Gets or sets the position ticks. */ - public var positionTicks: Int64? - - public init(positionTicks: Int64? = nil) { - self.positionTicks = positionTicks - } - - public enum CodingKeys: String, CodingKey { - case positionTicks = "PositionTicks" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlaySeekBody2.swift b/JellyfinPlayer/Swaggers/Models/SyncPlaySeekBody2.swift deleted file mode 100644 index 461aa638..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlaySeekBody2.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlaySeekBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The new playback position. */ - -public struct SyncPlaySeekBody2: Codable { - - /** Gets or sets the position ticks. */ - public var positionTicks: Int64? - - public init(positionTicks: Int64? = nil) { - self.positionTicks = positionTicks - } - - public enum CodingKeys: String, CodingKey { - case positionTicks = "PositionTicks" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlaySetIgnoreWaitBody.swift b/JellyfinPlayer/Swaggers/Models/SyncPlaySetIgnoreWaitBody.swift deleted file mode 100644 index 06ce6e82..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlaySetIgnoreWaitBody.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlaySetIgnoreWaitBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The settings to set. */ - -public struct SyncPlaySetIgnoreWaitBody: Codable { - - /** Gets or sets a value indicating whether the client should be ignored. */ - public var ignoreWait: Bool? - - public init(ignoreWait: Bool? = nil) { - self.ignoreWait = ignoreWait - } - - public enum CodingKeys: String, CodingKey { - case ignoreWait = "IgnoreWait" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlaySetIgnoreWaitBody1.swift b/JellyfinPlayer/Swaggers/Models/SyncPlaySetIgnoreWaitBody1.swift deleted file mode 100644 index 6b5411da..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlaySetIgnoreWaitBody1.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlaySetIgnoreWaitBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The settings to set. */ - -public struct SyncPlaySetIgnoreWaitBody1: Codable { - - /** Gets or sets a value indicating whether the client should be ignored. */ - public var ignoreWait: Bool? - - public init(ignoreWait: Bool? = nil) { - self.ignoreWait = ignoreWait - } - - public enum CodingKeys: String, CodingKey { - case ignoreWait = "IgnoreWait" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlaySetIgnoreWaitBody2.swift b/JellyfinPlayer/Swaggers/Models/SyncPlaySetIgnoreWaitBody2.swift deleted file mode 100644 index 99bc574a..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlaySetIgnoreWaitBody2.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlaySetIgnoreWaitBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The settings to set. */ - -public struct SyncPlaySetIgnoreWaitBody2: Codable { - - /** Gets or sets a value indicating whether the client should be ignored. */ - public var ignoreWait: Bool? - - public init(ignoreWait: Bool? = nil) { - self.ignoreWait = ignoreWait - } - - public enum CodingKeys: String, CodingKey { - case ignoreWait = "IgnoreWait" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlaySetNewQueueBody.swift b/JellyfinPlayer/Swaggers/Models/SyncPlaySetNewQueueBody.swift deleted file mode 100644 index 7caadc19..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlaySetNewQueueBody.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// SyncPlaySetNewQueueBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The new playlist to play in the group. */ - -public struct SyncPlaySetNewQueueBody: Codable { - - /** Gets or sets the playing queue. */ - public var playingQueue: [UUID]? - /** Gets or sets the position of the playing item in the queue. */ - public var playingItemPosition: Int? - /** Gets or sets the start position ticks. */ - public var startPositionTicks: Int64? - - public init(playingQueue: [UUID]? = nil, playingItemPosition: Int? = nil, startPositionTicks: Int64? = nil) { - self.playingQueue = playingQueue - self.playingItemPosition = playingItemPosition - self.startPositionTicks = startPositionTicks - } - - public enum CodingKeys: String, CodingKey { - case playingQueue = "PlayingQueue" - case playingItemPosition = "PlayingItemPosition" - case startPositionTicks = "StartPositionTicks" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlaySetNewQueueBody1.swift b/JellyfinPlayer/Swaggers/Models/SyncPlaySetNewQueueBody1.swift deleted file mode 100644 index 8f7161f2..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlaySetNewQueueBody1.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// SyncPlaySetNewQueueBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The new playlist to play in the group. */ - -public struct SyncPlaySetNewQueueBody1: Codable { - - /** Gets or sets the playing queue. */ - public var playingQueue: [UUID]? - /** Gets or sets the position of the playing item in the queue. */ - public var playingItemPosition: Int? - /** Gets or sets the start position ticks. */ - public var startPositionTicks: Int64? - - public init(playingQueue: [UUID]? = nil, playingItemPosition: Int? = nil, startPositionTicks: Int64? = nil) { - self.playingQueue = playingQueue - self.playingItemPosition = playingItemPosition - self.startPositionTicks = startPositionTicks - } - - public enum CodingKeys: String, CodingKey { - case playingQueue = "PlayingQueue" - case playingItemPosition = "PlayingItemPosition" - case startPositionTicks = "StartPositionTicks" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlaySetNewQueueBody2.swift b/JellyfinPlayer/Swaggers/Models/SyncPlaySetNewQueueBody2.swift deleted file mode 100644 index b4e6f2e1..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlaySetNewQueueBody2.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// SyncPlaySetNewQueueBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The new playlist to play in the group. */ - -public struct SyncPlaySetNewQueueBody2: Codable { - - /** Gets or sets the playing queue. */ - public var playingQueue: [UUID]? - /** Gets or sets the position of the playing item in the queue. */ - public var playingItemPosition: Int? - /** Gets or sets the start position ticks. */ - public var startPositionTicks: Int64? - - public init(playingQueue: [UUID]? = nil, playingItemPosition: Int? = nil, startPositionTicks: Int64? = nil) { - self.playingQueue = playingQueue - self.playingItemPosition = playingItemPosition - self.startPositionTicks = startPositionTicks - } - - public enum CodingKeys: String, CodingKey { - case playingQueue = "PlayingQueue" - case playingItemPosition = "PlayingItemPosition" - case startPositionTicks = "StartPositionTicks" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlaySetPlaylistItemBody.swift b/JellyfinPlayer/Swaggers/Models/SyncPlaySetPlaylistItemBody.swift deleted file mode 100644 index fedfa21e..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlaySetPlaylistItemBody.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlaySetPlaylistItemBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The new item to play. */ - -public struct SyncPlaySetPlaylistItemBody: Codable { - - /** Gets or sets the playlist identifier of the playing item. */ - public var playlistItemId: UUID? - - public init(playlistItemId: UUID? = nil) { - self.playlistItemId = playlistItemId - } - - public enum CodingKeys: String, CodingKey { - case playlistItemId = "PlaylistItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlaySetPlaylistItemBody1.swift b/JellyfinPlayer/Swaggers/Models/SyncPlaySetPlaylistItemBody1.swift deleted file mode 100644 index 9db297bb..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlaySetPlaylistItemBody1.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlaySetPlaylistItemBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The new item to play. */ - -public struct SyncPlaySetPlaylistItemBody1: Codable { - - /** Gets or sets the playlist identifier of the playing item. */ - public var playlistItemId: UUID? - - public init(playlistItemId: UUID? = nil) { - self.playlistItemId = playlistItemId - } - - public enum CodingKeys: String, CodingKey { - case playlistItemId = "PlaylistItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlaySetPlaylistItemBody2.swift b/JellyfinPlayer/Swaggers/Models/SyncPlaySetPlaylistItemBody2.swift deleted file mode 100644 index 8dad5d26..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlaySetPlaylistItemBody2.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlaySetPlaylistItemBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The new item to play. */ - -public struct SyncPlaySetPlaylistItemBody2: Codable { - - /** Gets or sets the playlist identifier of the playing item. */ - public var playlistItemId: UUID? - - public init(playlistItemId: UUID? = nil) { - self.playlistItemId = playlistItemId - } - - public enum CodingKeys: String, CodingKey { - case playlistItemId = "PlaylistItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlaySetRepeatModeBody.swift b/JellyfinPlayer/Swaggers/Models/SyncPlaySetRepeatModeBody.swift deleted file mode 100644 index 02790bef..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlaySetRepeatModeBody.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlaySetRepeatModeBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The new repeat mode. */ - -public struct SyncPlaySetRepeatModeBody: Codable { - - /** Gets or sets the repeat mode. */ - public var mode: Any? - - public init(mode: Any? = nil) { - self.mode = mode - } - - public enum CodingKeys: String, CodingKey { - case mode = "Mode" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlaySetRepeatModeBody1.swift b/JellyfinPlayer/Swaggers/Models/SyncPlaySetRepeatModeBody1.swift deleted file mode 100644 index 7b0bebe8..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlaySetRepeatModeBody1.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlaySetRepeatModeBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The new repeat mode. */ - -public struct SyncPlaySetRepeatModeBody1: Codable { - - /** Gets or sets the repeat mode. */ - public var mode: Any? - - public init(mode: Any? = nil) { - self.mode = mode - } - - public enum CodingKeys: String, CodingKey { - case mode = "Mode" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlaySetRepeatModeBody2.swift b/JellyfinPlayer/Swaggers/Models/SyncPlaySetRepeatModeBody2.swift deleted file mode 100644 index 7b298fc0..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlaySetRepeatModeBody2.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlaySetRepeatModeBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The new repeat mode. */ - -public struct SyncPlaySetRepeatModeBody2: Codable { - - /** Gets or sets the repeat mode. */ - public var mode: Any? - - public init(mode: Any? = nil) { - self.mode = mode - } - - public enum CodingKeys: String, CodingKey { - case mode = "Mode" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlaySetShuffleModeBody.swift b/JellyfinPlayer/Swaggers/Models/SyncPlaySetShuffleModeBody.swift deleted file mode 100644 index 38333c2f..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlaySetShuffleModeBody.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlaySetShuffleModeBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The new shuffle mode. */ - -public struct SyncPlaySetShuffleModeBody: Codable { - - /** Gets or sets the shuffle mode. */ - public var mode: Any? - - public init(mode: Any? = nil) { - self.mode = mode - } - - public enum CodingKeys: String, CodingKey { - case mode = "Mode" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlaySetShuffleModeBody1.swift b/JellyfinPlayer/Swaggers/Models/SyncPlaySetShuffleModeBody1.swift deleted file mode 100644 index 93a4e459..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlaySetShuffleModeBody1.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlaySetShuffleModeBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The new shuffle mode. */ - -public struct SyncPlaySetShuffleModeBody1: Codable { - - /** Gets or sets the shuffle mode. */ - public var mode: Any? - - public init(mode: Any? = nil) { - self.mode = mode - } - - public enum CodingKeys: String, CodingKey { - case mode = "Mode" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlaySetShuffleModeBody2.swift b/JellyfinPlayer/Swaggers/Models/SyncPlaySetShuffleModeBody2.swift deleted file mode 100644 index 80057498..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlaySetShuffleModeBody2.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// SyncPlaySetShuffleModeBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The new shuffle mode. */ - -public struct SyncPlaySetShuffleModeBody2: Codable { - - /** Gets or sets the shuffle mode. */ - public var mode: Any? - - public init(mode: Any? = nil) { - self.mode = mode - } - - public enum CodingKeys: String, CodingKey { - case mode = "Mode" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SyncPlayUserAccessType.swift b/JellyfinPlayer/Swaggers/Models/SyncPlayUserAccessType.swift deleted file mode 100644 index 681ceefa..00000000 --- a/JellyfinPlayer/Swaggers/Models/SyncPlayUserAccessType.swift +++ /dev/null @@ -1,16 +0,0 @@ -// -// SyncPlayUserAccessType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Enum SyncPlayUserAccessType. */ -public enum SyncPlayUserAccessType: String, Codable { - case createAndJoinGroups = "CreateAndJoinGroups" - case joinGroups = "JoinGroups" - case _none = "None" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/SystemConfigurationBody.swift b/JellyfinPlayer/Swaggers/Models/SystemConfigurationBody.swift deleted file mode 100644 index 4ea720d6..00000000 --- a/JellyfinPlayer/Swaggers/Models/SystemConfigurationBody.swift +++ /dev/null @@ -1,333 +0,0 @@ -// -// SystemConfigurationBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Configuration. */ - -public struct SystemConfigurationBody: Codable { - - /** Gets or sets the number of days we should retain log files. */ - public var logFileRetentionDays: Int? - /** Gets or sets a value indicating whether this instance is first run. */ - public var isStartupWizardCompleted: Bool? - /** Gets or sets the cache path. */ - public var cachePath: String? - /** Gets or sets the last known version that was ran using the configuration. */ - public var previousVersion: Any? - /** Gets or sets the stringified PreviousVersion to be stored/loaded, because System.Version itself isn't xml-serializable. */ - public var previousVersionStr: String? - /** Gets or sets a value indicating whether to enable automatic port forwarding. */ - public var enableUPnP: Bool? - /** Gets or sets a value indicating whether to enable prometheus metrics exporting. */ - public var enableMetrics: Bool? - /** Gets or sets the public mapped port. */ - public var publicPort: Int? - /** Gets or sets a value indicating whether the http port should be mapped as part of UPnP automatic port forwarding. */ - public var uPnPCreateHttpPortMap: Bool? - /** Gets or sets client udp port range. */ - public var uDPPortRange: String? - /** Gets or sets a value indicating whether IPV6 capability is enabled. */ - public var enableIPV6: Bool? - /** Gets or sets a value indicating whether IPV4 capability is enabled. */ - public var enableIPV4: Bool? - /** Gets or sets a value indicating whether detailed ssdp logs are sent to the console/log. \"Emby.Dlna\": \"Debug\" must be set in logging.default.json for this property to work. */ - public var enableSSDPTracing: Bool? - /** Gets or sets a value indicating whether an IP address is to be used to filter the detailed ssdp logs that are being sent to the console/log. If the setting \"Emby.Dlna\": \"Debug\" msut be set in logging.default.json for this property to work. */ - public var sSDPTracingFilter: String? - /** Gets or sets the number of times SSDP UDP messages are sent. */ - public var uDPSendCount: Int? - /** Gets or sets the delay between each groups of SSDP messages (in ms). */ - public var uDPSendDelay: Int? - /** Gets or sets a value indicating whether address names that match MediaBrowser.Model.Configuration.ServerConfiguration.VirtualInterfaceNames should be Ignore for the purposes of binding. */ - public var ignoreVirtualInterfaces: Bool? - /** Gets or sets a value indicating the interfaces that should be ignored. The list can be comma separated. <seealso cref=\"P:MediaBrowser.Model.Configuration.ServerConfiguration.IgnoreVirtualInterfaces\" />. */ - public var virtualInterfaceNames: String? - /** Gets or sets the time (in seconds) between the pings of SSDP gateway monitor. */ - public var gatewayMonitorPeriod: Int? - /** Gets a value indicating whether multi-socket binding is available. */ - public var enableMultiSocketBinding: Bool? - /** Gets or sets a value indicating whether all IPv6 interfaces should be treated as on the internal network. Depending on the address range implemented ULA ranges might not be used. */ - public var trustAllIP6Interfaces: Bool? - /** Gets or sets the ports that HDHomerun uses. */ - public var hDHomerunPortRange: String? - /** Gets or sets PublishedServerUri to advertise for specific subnets. */ - public var publishedServerUriBySubnet: [String]? - /** Gets or sets a value indicating whether Autodiscovery tracing is enabled. */ - public var autoDiscoveryTracing: Bool? - /** Gets or sets a value indicating whether Autodiscovery is enabled. */ - public var autoDiscovery: Bool? - /** Gets or sets the public HTTPS port. */ - public var publicHttpsPort: Int? - /** Gets or sets the HTTP server port number. */ - public var httpServerPortNumber: Int? - /** Gets or sets the HTTPS server port number. */ - public var httpsPortNumber: Int? - /** Gets or sets a value indicating whether to use HTTPS. */ - public var enableHttps: Bool? - public var enableNormalizedItemByNameIds: Bool? - /** Gets or sets the filesystem path of an X.509 certificate to use for SSL. */ - public var certificatePath: String? - /** Gets or sets the password required to access the X.509 certificate data in the file specified by MediaBrowser.Model.Configuration.ServerConfiguration.CertificatePath. */ - public var certificatePassword: String? - /** Gets or sets a value indicating whether this instance is port authorized. */ - public var isPortAuthorized: Bool? - /** Gets or sets a value indicating whether quick connect is available for use on this server. */ - public var quickConnectAvailable: Bool? - /** Gets or sets a value indicating whether access outside of the LAN is permitted. */ - public var enableRemoteAccess: Bool? - /** Gets or sets a value indicating whether [enable case sensitive item ids]. */ - public var enableCaseSensitiveItemIds: Bool? - public var disableLiveTvChannelUserDataName: Bool? - /** Gets or sets the metadata path. */ - public var metadataPath: String? - public var metadataNetworkPath: String? - /** Gets or sets the preferred metadata language. */ - public var preferredMetadataLanguage: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - /** Gets or sets characters to be replaced with a ' ' in strings to create a sort name. */ - public var sortReplaceCharacters: [String]? - /** Gets or sets characters to be removed from strings to create a sort name. */ - public var sortRemoveCharacters: [String]? - /** Gets or sets words to be removed from strings to create a sort name. */ - public var sortRemoveWords: [String]? - /** Gets or sets the minimum percentage of an item that must be played in order for playstate to be updated. */ - public var minResumePct: Int? - /** Gets or sets the maximum percentage of an item that can be played while still saving playstate. If this percentage is crossed playstate will be reset to the beginning and the item will be marked watched. */ - public var maxResumePct: Int? - /** Gets or sets the minimum duration that an item must have in order to be eligible for playstate updates.. */ - public var minResumeDurationSeconds: Int? - /** Gets or sets the minimum minutes of a book that must be played in order for playstate to be updated. */ - public var minAudiobookResume: Int? - /** Gets or sets the remaining minutes of a book that can be played while still saving playstate. If this percentage is crossed playstate will be reset to the beginning and the item will be marked watched. */ - public var maxAudiobookResume: Int? - /** Gets or sets the delay in seconds that we will wait after a file system change to try and discover what has been added/removed Some delay is necessary with some items because their creation is not atomic. It involves the creation of several different directories and files. */ - public var libraryMonitorDelay: Int? - /** Gets or sets a value indicating whether [enable dashboard response caching]. Allows potential contributors without visual studio to modify production dashboard code and test changes. */ - public var enableDashboardResponseCaching: Bool? - /** Gets or sets the image saving convention. */ - public var imageSavingConvention: Any? - public var metadataOptions: [MetadataOptions]? - public var skipDeserializationForBasicTypes: Bool? - public var serverName: String? - public var baseUrl: String? - public var uICulture: String? - public var saveMetadataHidden: Bool? - public var contentTypes: [NameValuePair]? - public var remoteClientBitrateLimit: Int? - public var enableFolderView: Bool? - public var enableGroupingIntoCollections: Bool? - public var displaySpecialsWithinSeasons: Bool? - /** Gets or sets the subnets that are deemed to make up the LAN. */ - public var localNetworkSubnets: [String]? - /** Gets or sets the interface addresses which Jellyfin will bind to. If empty, all interfaces will be used. */ - public var localNetworkAddresses: [String]? - public var codecsUsed: [String]? - public var pluginRepositories: [RepositoryInfo]? - public var enableExternalContentInSuggestions: Bool? - /** Gets or sets a value indicating whether the server should force connections over HTTPS. */ - public var requireHttps: Bool? - public var enableNewOmdbSupport: Bool? - /** Gets or sets the filter for remote IP connectivity. Used in conjuntion with <seealso cref=\"P:MediaBrowser.Model.Configuration.ServerConfiguration.IsRemoteIPFilterBlacklist\" />. */ - public var remoteIPFilter: [String]? - /** Gets or sets a value indicating whether <seealso cref=\"P:MediaBrowser.Model.Configuration.ServerConfiguration.RemoteIPFilter\" /> contains a blacklist or a whitelist. Default is a whitelist. */ - public var isRemoteIPFilterBlacklist: Bool? - public var imageExtractionTimeoutMs: Int? - public var pathSubstitutions: [PathSubstitution]? - public var uninstalledPlugins: [String]? - /** Gets or sets a value indicating whether slow server responses should be logged as a warning. */ - public var enableSlowResponseWarning: Bool? - /** Gets or sets the threshold for the slow response time warning in ms. */ - public var slowResponseThresholdMs: Int64? - /** Gets or sets the cors hosts. */ - public var corsHosts: [String]? - /** Gets or sets the known proxies. */ - public var knownProxies: [String]? - /** Gets or sets the number of days we should retain activity logs. */ - public var activityLogRetentionDays: Int? - /** Gets or sets the how the library scan fans out. */ - public var libraryScanFanoutConcurrency: Int? - /** Gets or sets the how many metadata refreshes can run concurrently. */ - public var libraryMetadataRefreshConcurrency: Int? - /** Gets or sets a value indicating whether older plugins should automatically be deleted from the plugin folder. */ - public var removeOldPlugins: Bool? - - public init(logFileRetentionDays: Int? = nil, isStartupWizardCompleted: Bool? = nil, cachePath: String? = nil, previousVersion: Any? = nil, previousVersionStr: String? = nil, enableUPnP: Bool? = nil, enableMetrics: Bool? = nil, publicPort: Int? = nil, uPnPCreateHttpPortMap: Bool? = nil, uDPPortRange: String? = nil, enableIPV6: Bool? = nil, enableIPV4: Bool? = nil, enableSSDPTracing: Bool? = nil, sSDPTracingFilter: String? = nil, uDPSendCount: Int? = nil, uDPSendDelay: Int? = nil, ignoreVirtualInterfaces: Bool? = nil, virtualInterfaceNames: String? = nil, gatewayMonitorPeriod: Int? = nil, enableMultiSocketBinding: Bool? = nil, trustAllIP6Interfaces: Bool? = nil, hDHomerunPortRange: String? = nil, publishedServerUriBySubnet: [String]? = nil, autoDiscoveryTracing: Bool? = nil, autoDiscovery: Bool? = nil, publicHttpsPort: Int? = nil, httpServerPortNumber: Int? = nil, httpsPortNumber: Int? = nil, enableHttps: Bool? = nil, enableNormalizedItemByNameIds: Bool? = nil, certificatePath: String? = nil, certificatePassword: String? = nil, isPortAuthorized: Bool? = nil, quickConnectAvailable: Bool? = nil, enableRemoteAccess: Bool? = nil, enableCaseSensitiveItemIds: Bool? = nil, disableLiveTvChannelUserDataName: Bool? = nil, metadataPath: String? = nil, metadataNetworkPath: String? = nil, preferredMetadataLanguage: String? = nil, metadataCountryCode: String? = nil, sortReplaceCharacters: [String]? = nil, sortRemoveCharacters: [String]? = nil, sortRemoveWords: [String]? = nil, minResumePct: Int? = nil, maxResumePct: Int? = nil, minResumeDurationSeconds: Int? = nil, minAudiobookResume: Int? = nil, maxAudiobookResume: Int? = nil, libraryMonitorDelay: Int? = nil, enableDashboardResponseCaching: Bool? = nil, imageSavingConvention: Any? = nil, metadataOptions: [MetadataOptions]? = nil, skipDeserializationForBasicTypes: Bool? = nil, serverName: String? = nil, baseUrl: String? = nil, uICulture: String? = nil, saveMetadataHidden: Bool? = nil, contentTypes: [NameValuePair]? = nil, remoteClientBitrateLimit: Int? = nil, enableFolderView: Bool? = nil, enableGroupingIntoCollections: Bool? = nil, displaySpecialsWithinSeasons: Bool? = nil, localNetworkSubnets: [String]? = nil, localNetworkAddresses: [String]? = nil, codecsUsed: [String]? = nil, pluginRepositories: [RepositoryInfo]? = nil, enableExternalContentInSuggestions: Bool? = nil, requireHttps: Bool? = nil, enableNewOmdbSupport: Bool? = nil, remoteIPFilter: [String]? = nil, isRemoteIPFilterBlacklist: Bool? = nil, imageExtractionTimeoutMs: Int? = nil, pathSubstitutions: [PathSubstitution]? = nil, uninstalledPlugins: [String]? = nil, enableSlowResponseWarning: Bool? = nil, slowResponseThresholdMs: Int64? = nil, corsHosts: [String]? = nil, knownProxies: [String]? = nil, activityLogRetentionDays: Int? = nil, libraryScanFanoutConcurrency: Int? = nil, libraryMetadataRefreshConcurrency: Int? = nil, removeOldPlugins: Bool? = nil) { - self.logFileRetentionDays = logFileRetentionDays - self.isStartupWizardCompleted = isStartupWizardCompleted - self.cachePath = cachePath - self.previousVersion = previousVersion - self.previousVersionStr = previousVersionStr - self.enableUPnP = enableUPnP - self.enableMetrics = enableMetrics - self.publicPort = publicPort - self.uPnPCreateHttpPortMap = uPnPCreateHttpPortMap - self.uDPPortRange = uDPPortRange - self.enableIPV6 = enableIPV6 - self.enableIPV4 = enableIPV4 - self.enableSSDPTracing = enableSSDPTracing - self.sSDPTracingFilter = sSDPTracingFilter - self.uDPSendCount = uDPSendCount - self.uDPSendDelay = uDPSendDelay - self.ignoreVirtualInterfaces = ignoreVirtualInterfaces - self.virtualInterfaceNames = virtualInterfaceNames - self.gatewayMonitorPeriod = gatewayMonitorPeriod - self.enableMultiSocketBinding = enableMultiSocketBinding - self.trustAllIP6Interfaces = trustAllIP6Interfaces - self.hDHomerunPortRange = hDHomerunPortRange - self.publishedServerUriBySubnet = publishedServerUriBySubnet - self.autoDiscoveryTracing = autoDiscoveryTracing - self.autoDiscovery = autoDiscovery - self.publicHttpsPort = publicHttpsPort - self.httpServerPortNumber = httpServerPortNumber - self.httpsPortNumber = httpsPortNumber - self.enableHttps = enableHttps - self.enableNormalizedItemByNameIds = enableNormalizedItemByNameIds - self.certificatePath = certificatePath - self.certificatePassword = certificatePassword - self.isPortAuthorized = isPortAuthorized - self.quickConnectAvailable = quickConnectAvailable - self.enableRemoteAccess = enableRemoteAccess - self.enableCaseSensitiveItemIds = enableCaseSensitiveItemIds - self.disableLiveTvChannelUserDataName = disableLiveTvChannelUserDataName - self.metadataPath = metadataPath - self.metadataNetworkPath = metadataNetworkPath - self.preferredMetadataLanguage = preferredMetadataLanguage - self.metadataCountryCode = metadataCountryCode - self.sortReplaceCharacters = sortReplaceCharacters - self.sortRemoveCharacters = sortRemoveCharacters - self.sortRemoveWords = sortRemoveWords - self.minResumePct = minResumePct - self.maxResumePct = maxResumePct - self.minResumeDurationSeconds = minResumeDurationSeconds - self.minAudiobookResume = minAudiobookResume - self.maxAudiobookResume = maxAudiobookResume - self.libraryMonitorDelay = libraryMonitorDelay - self.enableDashboardResponseCaching = enableDashboardResponseCaching - self.imageSavingConvention = imageSavingConvention - self.metadataOptions = metadataOptions - self.skipDeserializationForBasicTypes = skipDeserializationForBasicTypes - self.serverName = serverName - self.baseUrl = baseUrl - self.uICulture = uICulture - self.saveMetadataHidden = saveMetadataHidden - self.contentTypes = contentTypes - self.remoteClientBitrateLimit = remoteClientBitrateLimit - self.enableFolderView = enableFolderView - self.enableGroupingIntoCollections = enableGroupingIntoCollections - self.displaySpecialsWithinSeasons = displaySpecialsWithinSeasons - self.localNetworkSubnets = localNetworkSubnets - self.localNetworkAddresses = localNetworkAddresses - self.codecsUsed = codecsUsed - self.pluginRepositories = pluginRepositories - self.enableExternalContentInSuggestions = enableExternalContentInSuggestions - self.requireHttps = requireHttps - self.enableNewOmdbSupport = enableNewOmdbSupport - self.remoteIPFilter = remoteIPFilter - self.isRemoteIPFilterBlacklist = isRemoteIPFilterBlacklist - self.imageExtractionTimeoutMs = imageExtractionTimeoutMs - self.pathSubstitutions = pathSubstitutions - self.uninstalledPlugins = uninstalledPlugins - self.enableSlowResponseWarning = enableSlowResponseWarning - self.slowResponseThresholdMs = slowResponseThresholdMs - self.corsHosts = corsHosts - self.knownProxies = knownProxies - self.activityLogRetentionDays = activityLogRetentionDays - self.libraryScanFanoutConcurrency = libraryScanFanoutConcurrency - self.libraryMetadataRefreshConcurrency = libraryMetadataRefreshConcurrency - self.removeOldPlugins = removeOldPlugins - } - - public enum CodingKeys: String, CodingKey { - case logFileRetentionDays = "LogFileRetentionDays" - case isStartupWizardCompleted = "IsStartupWizardCompleted" - case cachePath = "CachePath" - case previousVersion = "PreviousVersion" - case previousVersionStr = "PreviousVersionStr" - case enableUPnP = "EnableUPnP" - case enableMetrics = "EnableMetrics" - case publicPort = "PublicPort" - case uPnPCreateHttpPortMap = "UPnPCreateHttpPortMap" - case uDPPortRange = "UDPPortRange" - case enableIPV6 = "EnableIPV6" - case enableIPV4 = "EnableIPV4" - case enableSSDPTracing = "EnableSSDPTracing" - case sSDPTracingFilter = "SSDPTracingFilter" - case uDPSendCount = "UDPSendCount" - case uDPSendDelay = "UDPSendDelay" - case ignoreVirtualInterfaces = "IgnoreVirtualInterfaces" - case virtualInterfaceNames = "VirtualInterfaceNames" - case gatewayMonitorPeriod = "GatewayMonitorPeriod" - case enableMultiSocketBinding = "EnableMultiSocketBinding" - case trustAllIP6Interfaces = "TrustAllIP6Interfaces" - case hDHomerunPortRange = "HDHomerunPortRange" - case publishedServerUriBySubnet = "PublishedServerUriBySubnet" - case autoDiscoveryTracing = "AutoDiscoveryTracing" - case autoDiscovery = "AutoDiscovery" - case publicHttpsPort = "PublicHttpsPort" - case httpServerPortNumber = "HttpServerPortNumber" - case httpsPortNumber = "HttpsPortNumber" - case enableHttps = "EnableHttps" - case enableNormalizedItemByNameIds = "EnableNormalizedItemByNameIds" - case certificatePath = "CertificatePath" - case certificatePassword = "CertificatePassword" - case isPortAuthorized = "IsPortAuthorized" - case quickConnectAvailable = "QuickConnectAvailable" - case enableRemoteAccess = "EnableRemoteAccess" - case enableCaseSensitiveItemIds = "EnableCaseSensitiveItemIds" - case disableLiveTvChannelUserDataName = "DisableLiveTvChannelUserDataName" - case metadataPath = "MetadataPath" - case metadataNetworkPath = "MetadataNetworkPath" - case preferredMetadataLanguage = "PreferredMetadataLanguage" - case metadataCountryCode = "MetadataCountryCode" - case sortReplaceCharacters = "SortReplaceCharacters" - case sortRemoveCharacters = "SortRemoveCharacters" - case sortRemoveWords = "SortRemoveWords" - case minResumePct = "MinResumePct" - case maxResumePct = "MaxResumePct" - case minResumeDurationSeconds = "MinResumeDurationSeconds" - case minAudiobookResume = "MinAudiobookResume" - case maxAudiobookResume = "MaxAudiobookResume" - case libraryMonitorDelay = "LibraryMonitorDelay" - case enableDashboardResponseCaching = "EnableDashboardResponseCaching" - case imageSavingConvention = "ImageSavingConvention" - case metadataOptions = "MetadataOptions" - case skipDeserializationForBasicTypes = "SkipDeserializationForBasicTypes" - case serverName = "ServerName" - case baseUrl = "BaseUrl" - case uICulture = "UICulture" - case saveMetadataHidden = "SaveMetadataHidden" - case contentTypes = "ContentTypes" - case remoteClientBitrateLimit = "RemoteClientBitrateLimit" - case enableFolderView = "EnableFolderView" - case enableGroupingIntoCollections = "EnableGroupingIntoCollections" - case displaySpecialsWithinSeasons = "DisplaySpecialsWithinSeasons" - case localNetworkSubnets = "LocalNetworkSubnets" - case localNetworkAddresses = "LocalNetworkAddresses" - case codecsUsed = "CodecsUsed" - case pluginRepositories = "PluginRepositories" - case enableExternalContentInSuggestions = "EnableExternalContentInSuggestions" - case requireHttps = "RequireHttps" - case enableNewOmdbSupport = "EnableNewOmdbSupport" - case remoteIPFilter = "RemoteIPFilter" - case isRemoteIPFilterBlacklist = "IsRemoteIPFilterBlacklist" - case imageExtractionTimeoutMs = "ImageExtractionTimeoutMs" - case pathSubstitutions = "PathSubstitutions" - case uninstalledPlugins = "UninstalledPlugins" - case enableSlowResponseWarning = "EnableSlowResponseWarning" - case slowResponseThresholdMs = "SlowResponseThresholdMs" - case corsHosts = "CorsHosts" - case knownProxies = "KnownProxies" - case activityLogRetentionDays = "ActivityLogRetentionDays" - case libraryScanFanoutConcurrency = "LibraryScanFanoutConcurrency" - case libraryMetadataRefreshConcurrency = "LibraryMetadataRefreshConcurrency" - case removeOldPlugins = "RemoveOldPlugins" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SystemConfigurationBody1.swift b/JellyfinPlayer/Swaggers/Models/SystemConfigurationBody1.swift deleted file mode 100644 index c9f302ff..00000000 --- a/JellyfinPlayer/Swaggers/Models/SystemConfigurationBody1.swift +++ /dev/null @@ -1,333 +0,0 @@ -// -// SystemConfigurationBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Configuration. */ - -public struct SystemConfigurationBody1: Codable { - - /** Gets or sets the number of days we should retain log files. */ - public var logFileRetentionDays: Int? - /** Gets or sets a value indicating whether this instance is first run. */ - public var isStartupWizardCompleted: Bool? - /** Gets or sets the cache path. */ - public var cachePath: String? - /** Gets or sets the last known version that was ran using the configuration. */ - public var previousVersion: Any? - /** Gets or sets the stringified PreviousVersion to be stored/loaded, because System.Version itself isn't xml-serializable. */ - public var previousVersionStr: String? - /** Gets or sets a value indicating whether to enable automatic port forwarding. */ - public var enableUPnP: Bool? - /** Gets or sets a value indicating whether to enable prometheus metrics exporting. */ - public var enableMetrics: Bool? - /** Gets or sets the public mapped port. */ - public var publicPort: Int? - /** Gets or sets a value indicating whether the http port should be mapped as part of UPnP automatic port forwarding. */ - public var uPnPCreateHttpPortMap: Bool? - /** Gets or sets client udp port range. */ - public var uDPPortRange: String? - /** Gets or sets a value indicating whether IPV6 capability is enabled. */ - public var enableIPV6: Bool? - /** Gets or sets a value indicating whether IPV4 capability is enabled. */ - public var enableIPV4: Bool? - /** Gets or sets a value indicating whether detailed ssdp logs are sent to the console/log. \"Emby.Dlna\": \"Debug\" must be set in logging.default.json for this property to work. */ - public var enableSSDPTracing: Bool? - /** Gets or sets a value indicating whether an IP address is to be used to filter the detailed ssdp logs that are being sent to the console/log. If the setting \"Emby.Dlna\": \"Debug\" msut be set in logging.default.json for this property to work. */ - public var sSDPTracingFilter: String? - /** Gets or sets the number of times SSDP UDP messages are sent. */ - public var uDPSendCount: Int? - /** Gets or sets the delay between each groups of SSDP messages (in ms). */ - public var uDPSendDelay: Int? - /** Gets or sets a value indicating whether address names that match MediaBrowser.Model.Configuration.ServerConfiguration.VirtualInterfaceNames should be Ignore for the purposes of binding. */ - public var ignoreVirtualInterfaces: Bool? - /** Gets or sets a value indicating the interfaces that should be ignored. The list can be comma separated. <seealso cref=\"P:MediaBrowser.Model.Configuration.ServerConfiguration.IgnoreVirtualInterfaces\" />. */ - public var virtualInterfaceNames: String? - /** Gets or sets the time (in seconds) between the pings of SSDP gateway monitor. */ - public var gatewayMonitorPeriod: Int? - /** Gets a value indicating whether multi-socket binding is available. */ - public var enableMultiSocketBinding: Bool? - /** Gets or sets a value indicating whether all IPv6 interfaces should be treated as on the internal network. Depending on the address range implemented ULA ranges might not be used. */ - public var trustAllIP6Interfaces: Bool? - /** Gets or sets the ports that HDHomerun uses. */ - public var hDHomerunPortRange: String? - /** Gets or sets PublishedServerUri to advertise for specific subnets. */ - public var publishedServerUriBySubnet: [String]? - /** Gets or sets a value indicating whether Autodiscovery tracing is enabled. */ - public var autoDiscoveryTracing: Bool? - /** Gets or sets a value indicating whether Autodiscovery is enabled. */ - public var autoDiscovery: Bool? - /** Gets or sets the public HTTPS port. */ - public var publicHttpsPort: Int? - /** Gets or sets the HTTP server port number. */ - public var httpServerPortNumber: Int? - /** Gets or sets the HTTPS server port number. */ - public var httpsPortNumber: Int? - /** Gets or sets a value indicating whether to use HTTPS. */ - public var enableHttps: Bool? - public var enableNormalizedItemByNameIds: Bool? - /** Gets or sets the filesystem path of an X.509 certificate to use for SSL. */ - public var certificatePath: String? - /** Gets or sets the password required to access the X.509 certificate data in the file specified by MediaBrowser.Model.Configuration.ServerConfiguration.CertificatePath. */ - public var certificatePassword: String? - /** Gets or sets a value indicating whether this instance is port authorized. */ - public var isPortAuthorized: Bool? - /** Gets or sets a value indicating whether quick connect is available for use on this server. */ - public var quickConnectAvailable: Bool? - /** Gets or sets a value indicating whether access outside of the LAN is permitted. */ - public var enableRemoteAccess: Bool? - /** Gets or sets a value indicating whether [enable case sensitive item ids]. */ - public var enableCaseSensitiveItemIds: Bool? - public var disableLiveTvChannelUserDataName: Bool? - /** Gets or sets the metadata path. */ - public var metadataPath: String? - public var metadataNetworkPath: String? - /** Gets or sets the preferred metadata language. */ - public var preferredMetadataLanguage: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - /** Gets or sets characters to be replaced with a ' ' in strings to create a sort name. */ - public var sortReplaceCharacters: [String]? - /** Gets or sets characters to be removed from strings to create a sort name. */ - public var sortRemoveCharacters: [String]? - /** Gets or sets words to be removed from strings to create a sort name. */ - public var sortRemoveWords: [String]? - /** Gets or sets the minimum percentage of an item that must be played in order for playstate to be updated. */ - public var minResumePct: Int? - /** Gets or sets the maximum percentage of an item that can be played while still saving playstate. If this percentage is crossed playstate will be reset to the beginning and the item will be marked watched. */ - public var maxResumePct: Int? - /** Gets or sets the minimum duration that an item must have in order to be eligible for playstate updates.. */ - public var minResumeDurationSeconds: Int? - /** Gets or sets the minimum minutes of a book that must be played in order for playstate to be updated. */ - public var minAudiobookResume: Int? - /** Gets or sets the remaining minutes of a book that can be played while still saving playstate. If this percentage is crossed playstate will be reset to the beginning and the item will be marked watched. */ - public var maxAudiobookResume: Int? - /** Gets or sets the delay in seconds that we will wait after a file system change to try and discover what has been added/removed Some delay is necessary with some items because their creation is not atomic. It involves the creation of several different directories and files. */ - public var libraryMonitorDelay: Int? - /** Gets or sets a value indicating whether [enable dashboard response caching]. Allows potential contributors without visual studio to modify production dashboard code and test changes. */ - public var enableDashboardResponseCaching: Bool? - /** Gets or sets the image saving convention. */ - public var imageSavingConvention: Any? - public var metadataOptions: [MetadataOptions]? - public var skipDeserializationForBasicTypes: Bool? - public var serverName: String? - public var baseUrl: String? - public var uICulture: String? - public var saveMetadataHidden: Bool? - public var contentTypes: [NameValuePair]? - public var remoteClientBitrateLimit: Int? - public var enableFolderView: Bool? - public var enableGroupingIntoCollections: Bool? - public var displaySpecialsWithinSeasons: Bool? - /** Gets or sets the subnets that are deemed to make up the LAN. */ - public var localNetworkSubnets: [String]? - /** Gets or sets the interface addresses which Jellyfin will bind to. If empty, all interfaces will be used. */ - public var localNetworkAddresses: [String]? - public var codecsUsed: [String]? - public var pluginRepositories: [RepositoryInfo]? - public var enableExternalContentInSuggestions: Bool? - /** Gets or sets a value indicating whether the server should force connections over HTTPS. */ - public var requireHttps: Bool? - public var enableNewOmdbSupport: Bool? - /** Gets or sets the filter for remote IP connectivity. Used in conjuntion with <seealso cref=\"P:MediaBrowser.Model.Configuration.ServerConfiguration.IsRemoteIPFilterBlacklist\" />. */ - public var remoteIPFilter: [String]? - /** Gets or sets a value indicating whether <seealso cref=\"P:MediaBrowser.Model.Configuration.ServerConfiguration.RemoteIPFilter\" /> contains a blacklist or a whitelist. Default is a whitelist. */ - public var isRemoteIPFilterBlacklist: Bool? - public var imageExtractionTimeoutMs: Int? - public var pathSubstitutions: [PathSubstitution]? - public var uninstalledPlugins: [String]? - /** Gets or sets a value indicating whether slow server responses should be logged as a warning. */ - public var enableSlowResponseWarning: Bool? - /** Gets or sets the threshold for the slow response time warning in ms. */ - public var slowResponseThresholdMs: Int64? - /** Gets or sets the cors hosts. */ - public var corsHosts: [String]? - /** Gets or sets the known proxies. */ - public var knownProxies: [String]? - /** Gets or sets the number of days we should retain activity logs. */ - public var activityLogRetentionDays: Int? - /** Gets or sets the how the library scan fans out. */ - public var libraryScanFanoutConcurrency: Int? - /** Gets or sets the how many metadata refreshes can run concurrently. */ - public var libraryMetadataRefreshConcurrency: Int? - /** Gets or sets a value indicating whether older plugins should automatically be deleted from the plugin folder. */ - public var removeOldPlugins: Bool? - - public init(logFileRetentionDays: Int? = nil, isStartupWizardCompleted: Bool? = nil, cachePath: String? = nil, previousVersion: Any? = nil, previousVersionStr: String? = nil, enableUPnP: Bool? = nil, enableMetrics: Bool? = nil, publicPort: Int? = nil, uPnPCreateHttpPortMap: Bool? = nil, uDPPortRange: String? = nil, enableIPV6: Bool? = nil, enableIPV4: Bool? = nil, enableSSDPTracing: Bool? = nil, sSDPTracingFilter: String? = nil, uDPSendCount: Int? = nil, uDPSendDelay: Int? = nil, ignoreVirtualInterfaces: Bool? = nil, virtualInterfaceNames: String? = nil, gatewayMonitorPeriod: Int? = nil, enableMultiSocketBinding: Bool? = nil, trustAllIP6Interfaces: Bool? = nil, hDHomerunPortRange: String? = nil, publishedServerUriBySubnet: [String]? = nil, autoDiscoveryTracing: Bool? = nil, autoDiscovery: Bool? = nil, publicHttpsPort: Int? = nil, httpServerPortNumber: Int? = nil, httpsPortNumber: Int? = nil, enableHttps: Bool? = nil, enableNormalizedItemByNameIds: Bool? = nil, certificatePath: String? = nil, certificatePassword: String? = nil, isPortAuthorized: Bool? = nil, quickConnectAvailable: Bool? = nil, enableRemoteAccess: Bool? = nil, enableCaseSensitiveItemIds: Bool? = nil, disableLiveTvChannelUserDataName: Bool? = nil, metadataPath: String? = nil, metadataNetworkPath: String? = nil, preferredMetadataLanguage: String? = nil, metadataCountryCode: String? = nil, sortReplaceCharacters: [String]? = nil, sortRemoveCharacters: [String]? = nil, sortRemoveWords: [String]? = nil, minResumePct: Int? = nil, maxResumePct: Int? = nil, minResumeDurationSeconds: Int? = nil, minAudiobookResume: Int? = nil, maxAudiobookResume: Int? = nil, libraryMonitorDelay: Int? = nil, enableDashboardResponseCaching: Bool? = nil, imageSavingConvention: Any? = nil, metadataOptions: [MetadataOptions]? = nil, skipDeserializationForBasicTypes: Bool? = nil, serverName: String? = nil, baseUrl: String? = nil, uICulture: String? = nil, saveMetadataHidden: Bool? = nil, contentTypes: [NameValuePair]? = nil, remoteClientBitrateLimit: Int? = nil, enableFolderView: Bool? = nil, enableGroupingIntoCollections: Bool? = nil, displaySpecialsWithinSeasons: Bool? = nil, localNetworkSubnets: [String]? = nil, localNetworkAddresses: [String]? = nil, codecsUsed: [String]? = nil, pluginRepositories: [RepositoryInfo]? = nil, enableExternalContentInSuggestions: Bool? = nil, requireHttps: Bool? = nil, enableNewOmdbSupport: Bool? = nil, remoteIPFilter: [String]? = nil, isRemoteIPFilterBlacklist: Bool? = nil, imageExtractionTimeoutMs: Int? = nil, pathSubstitutions: [PathSubstitution]? = nil, uninstalledPlugins: [String]? = nil, enableSlowResponseWarning: Bool? = nil, slowResponseThresholdMs: Int64? = nil, corsHosts: [String]? = nil, knownProxies: [String]? = nil, activityLogRetentionDays: Int? = nil, libraryScanFanoutConcurrency: Int? = nil, libraryMetadataRefreshConcurrency: Int? = nil, removeOldPlugins: Bool? = nil) { - self.logFileRetentionDays = logFileRetentionDays - self.isStartupWizardCompleted = isStartupWizardCompleted - self.cachePath = cachePath - self.previousVersion = previousVersion - self.previousVersionStr = previousVersionStr - self.enableUPnP = enableUPnP - self.enableMetrics = enableMetrics - self.publicPort = publicPort - self.uPnPCreateHttpPortMap = uPnPCreateHttpPortMap - self.uDPPortRange = uDPPortRange - self.enableIPV6 = enableIPV6 - self.enableIPV4 = enableIPV4 - self.enableSSDPTracing = enableSSDPTracing - self.sSDPTracingFilter = sSDPTracingFilter - self.uDPSendCount = uDPSendCount - self.uDPSendDelay = uDPSendDelay - self.ignoreVirtualInterfaces = ignoreVirtualInterfaces - self.virtualInterfaceNames = virtualInterfaceNames - self.gatewayMonitorPeriod = gatewayMonitorPeriod - self.enableMultiSocketBinding = enableMultiSocketBinding - self.trustAllIP6Interfaces = trustAllIP6Interfaces - self.hDHomerunPortRange = hDHomerunPortRange - self.publishedServerUriBySubnet = publishedServerUriBySubnet - self.autoDiscoveryTracing = autoDiscoveryTracing - self.autoDiscovery = autoDiscovery - self.publicHttpsPort = publicHttpsPort - self.httpServerPortNumber = httpServerPortNumber - self.httpsPortNumber = httpsPortNumber - self.enableHttps = enableHttps - self.enableNormalizedItemByNameIds = enableNormalizedItemByNameIds - self.certificatePath = certificatePath - self.certificatePassword = certificatePassword - self.isPortAuthorized = isPortAuthorized - self.quickConnectAvailable = quickConnectAvailable - self.enableRemoteAccess = enableRemoteAccess - self.enableCaseSensitiveItemIds = enableCaseSensitiveItemIds - self.disableLiveTvChannelUserDataName = disableLiveTvChannelUserDataName - self.metadataPath = metadataPath - self.metadataNetworkPath = metadataNetworkPath - self.preferredMetadataLanguage = preferredMetadataLanguage - self.metadataCountryCode = metadataCountryCode - self.sortReplaceCharacters = sortReplaceCharacters - self.sortRemoveCharacters = sortRemoveCharacters - self.sortRemoveWords = sortRemoveWords - self.minResumePct = minResumePct - self.maxResumePct = maxResumePct - self.minResumeDurationSeconds = minResumeDurationSeconds - self.minAudiobookResume = minAudiobookResume - self.maxAudiobookResume = maxAudiobookResume - self.libraryMonitorDelay = libraryMonitorDelay - self.enableDashboardResponseCaching = enableDashboardResponseCaching - self.imageSavingConvention = imageSavingConvention - self.metadataOptions = metadataOptions - self.skipDeserializationForBasicTypes = skipDeserializationForBasicTypes - self.serverName = serverName - self.baseUrl = baseUrl - self.uICulture = uICulture - self.saveMetadataHidden = saveMetadataHidden - self.contentTypes = contentTypes - self.remoteClientBitrateLimit = remoteClientBitrateLimit - self.enableFolderView = enableFolderView - self.enableGroupingIntoCollections = enableGroupingIntoCollections - self.displaySpecialsWithinSeasons = displaySpecialsWithinSeasons - self.localNetworkSubnets = localNetworkSubnets - self.localNetworkAddresses = localNetworkAddresses - self.codecsUsed = codecsUsed - self.pluginRepositories = pluginRepositories - self.enableExternalContentInSuggestions = enableExternalContentInSuggestions - self.requireHttps = requireHttps - self.enableNewOmdbSupport = enableNewOmdbSupport - self.remoteIPFilter = remoteIPFilter - self.isRemoteIPFilterBlacklist = isRemoteIPFilterBlacklist - self.imageExtractionTimeoutMs = imageExtractionTimeoutMs - self.pathSubstitutions = pathSubstitutions - self.uninstalledPlugins = uninstalledPlugins - self.enableSlowResponseWarning = enableSlowResponseWarning - self.slowResponseThresholdMs = slowResponseThresholdMs - self.corsHosts = corsHosts - self.knownProxies = knownProxies - self.activityLogRetentionDays = activityLogRetentionDays - self.libraryScanFanoutConcurrency = libraryScanFanoutConcurrency - self.libraryMetadataRefreshConcurrency = libraryMetadataRefreshConcurrency - self.removeOldPlugins = removeOldPlugins - } - - public enum CodingKeys: String, CodingKey { - case logFileRetentionDays = "LogFileRetentionDays" - case isStartupWizardCompleted = "IsStartupWizardCompleted" - case cachePath = "CachePath" - case previousVersion = "PreviousVersion" - case previousVersionStr = "PreviousVersionStr" - case enableUPnP = "EnableUPnP" - case enableMetrics = "EnableMetrics" - case publicPort = "PublicPort" - case uPnPCreateHttpPortMap = "UPnPCreateHttpPortMap" - case uDPPortRange = "UDPPortRange" - case enableIPV6 = "EnableIPV6" - case enableIPV4 = "EnableIPV4" - case enableSSDPTracing = "EnableSSDPTracing" - case sSDPTracingFilter = "SSDPTracingFilter" - case uDPSendCount = "UDPSendCount" - case uDPSendDelay = "UDPSendDelay" - case ignoreVirtualInterfaces = "IgnoreVirtualInterfaces" - case virtualInterfaceNames = "VirtualInterfaceNames" - case gatewayMonitorPeriod = "GatewayMonitorPeriod" - case enableMultiSocketBinding = "EnableMultiSocketBinding" - case trustAllIP6Interfaces = "TrustAllIP6Interfaces" - case hDHomerunPortRange = "HDHomerunPortRange" - case publishedServerUriBySubnet = "PublishedServerUriBySubnet" - case autoDiscoveryTracing = "AutoDiscoveryTracing" - case autoDiscovery = "AutoDiscovery" - case publicHttpsPort = "PublicHttpsPort" - case httpServerPortNumber = "HttpServerPortNumber" - case httpsPortNumber = "HttpsPortNumber" - case enableHttps = "EnableHttps" - case enableNormalizedItemByNameIds = "EnableNormalizedItemByNameIds" - case certificatePath = "CertificatePath" - case certificatePassword = "CertificatePassword" - case isPortAuthorized = "IsPortAuthorized" - case quickConnectAvailable = "QuickConnectAvailable" - case enableRemoteAccess = "EnableRemoteAccess" - case enableCaseSensitiveItemIds = "EnableCaseSensitiveItemIds" - case disableLiveTvChannelUserDataName = "DisableLiveTvChannelUserDataName" - case metadataPath = "MetadataPath" - case metadataNetworkPath = "MetadataNetworkPath" - case preferredMetadataLanguage = "PreferredMetadataLanguage" - case metadataCountryCode = "MetadataCountryCode" - case sortReplaceCharacters = "SortReplaceCharacters" - case sortRemoveCharacters = "SortRemoveCharacters" - case sortRemoveWords = "SortRemoveWords" - case minResumePct = "MinResumePct" - case maxResumePct = "MaxResumePct" - case minResumeDurationSeconds = "MinResumeDurationSeconds" - case minAudiobookResume = "MinAudiobookResume" - case maxAudiobookResume = "MaxAudiobookResume" - case libraryMonitorDelay = "LibraryMonitorDelay" - case enableDashboardResponseCaching = "EnableDashboardResponseCaching" - case imageSavingConvention = "ImageSavingConvention" - case metadataOptions = "MetadataOptions" - case skipDeserializationForBasicTypes = "SkipDeserializationForBasicTypes" - case serverName = "ServerName" - case baseUrl = "BaseUrl" - case uICulture = "UICulture" - case saveMetadataHidden = "SaveMetadataHidden" - case contentTypes = "ContentTypes" - case remoteClientBitrateLimit = "RemoteClientBitrateLimit" - case enableFolderView = "EnableFolderView" - case enableGroupingIntoCollections = "EnableGroupingIntoCollections" - case displaySpecialsWithinSeasons = "DisplaySpecialsWithinSeasons" - case localNetworkSubnets = "LocalNetworkSubnets" - case localNetworkAddresses = "LocalNetworkAddresses" - case codecsUsed = "CodecsUsed" - case pluginRepositories = "PluginRepositories" - case enableExternalContentInSuggestions = "EnableExternalContentInSuggestions" - case requireHttps = "RequireHttps" - case enableNewOmdbSupport = "EnableNewOmdbSupport" - case remoteIPFilter = "RemoteIPFilter" - case isRemoteIPFilterBlacklist = "IsRemoteIPFilterBlacklist" - case imageExtractionTimeoutMs = "ImageExtractionTimeoutMs" - case pathSubstitutions = "PathSubstitutions" - case uninstalledPlugins = "UninstalledPlugins" - case enableSlowResponseWarning = "EnableSlowResponseWarning" - case slowResponseThresholdMs = "SlowResponseThresholdMs" - case corsHosts = "CorsHosts" - case knownProxies = "KnownProxies" - case activityLogRetentionDays = "ActivityLogRetentionDays" - case libraryScanFanoutConcurrency = "LibraryScanFanoutConcurrency" - case libraryMetadataRefreshConcurrency = "LibraryMetadataRefreshConcurrency" - case removeOldPlugins = "RemoveOldPlugins" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SystemConfigurationBody2.swift b/JellyfinPlayer/Swaggers/Models/SystemConfigurationBody2.swift deleted file mode 100644 index 4e948dd8..00000000 --- a/JellyfinPlayer/Swaggers/Models/SystemConfigurationBody2.swift +++ /dev/null @@ -1,333 +0,0 @@ -// -// SystemConfigurationBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Configuration. */ - -public struct SystemConfigurationBody2: Codable { - - /** Gets or sets the number of days we should retain log files. */ - public var logFileRetentionDays: Int? - /** Gets or sets a value indicating whether this instance is first run. */ - public var isStartupWizardCompleted: Bool? - /** Gets or sets the cache path. */ - public var cachePath: String? - /** Gets or sets the last known version that was ran using the configuration. */ - public var previousVersion: Any? - /** Gets or sets the stringified PreviousVersion to be stored/loaded, because System.Version itself isn't xml-serializable. */ - public var previousVersionStr: String? - /** Gets or sets a value indicating whether to enable automatic port forwarding. */ - public var enableUPnP: Bool? - /** Gets or sets a value indicating whether to enable prometheus metrics exporting. */ - public var enableMetrics: Bool? - /** Gets or sets the public mapped port. */ - public var publicPort: Int? - /** Gets or sets a value indicating whether the http port should be mapped as part of UPnP automatic port forwarding. */ - public var uPnPCreateHttpPortMap: Bool? - /** Gets or sets client udp port range. */ - public var uDPPortRange: String? - /** Gets or sets a value indicating whether IPV6 capability is enabled. */ - public var enableIPV6: Bool? - /** Gets or sets a value indicating whether IPV4 capability is enabled. */ - public var enableIPV4: Bool? - /** Gets or sets a value indicating whether detailed ssdp logs are sent to the console/log. \"Emby.Dlna\": \"Debug\" must be set in logging.default.json for this property to work. */ - public var enableSSDPTracing: Bool? - /** Gets or sets a value indicating whether an IP address is to be used to filter the detailed ssdp logs that are being sent to the console/log. If the setting \"Emby.Dlna\": \"Debug\" msut be set in logging.default.json for this property to work. */ - public var sSDPTracingFilter: String? - /** Gets or sets the number of times SSDP UDP messages are sent. */ - public var uDPSendCount: Int? - /** Gets or sets the delay between each groups of SSDP messages (in ms). */ - public var uDPSendDelay: Int? - /** Gets or sets a value indicating whether address names that match MediaBrowser.Model.Configuration.ServerConfiguration.VirtualInterfaceNames should be Ignore for the purposes of binding. */ - public var ignoreVirtualInterfaces: Bool? - /** Gets or sets a value indicating the interfaces that should be ignored. The list can be comma separated. <seealso cref=\"P:MediaBrowser.Model.Configuration.ServerConfiguration.IgnoreVirtualInterfaces\" />. */ - public var virtualInterfaceNames: String? - /** Gets or sets the time (in seconds) between the pings of SSDP gateway monitor. */ - public var gatewayMonitorPeriod: Int? - /** Gets a value indicating whether multi-socket binding is available. */ - public var enableMultiSocketBinding: Bool? - /** Gets or sets a value indicating whether all IPv6 interfaces should be treated as on the internal network. Depending on the address range implemented ULA ranges might not be used. */ - public var trustAllIP6Interfaces: Bool? - /** Gets or sets the ports that HDHomerun uses. */ - public var hDHomerunPortRange: String? - /** Gets or sets PublishedServerUri to advertise for specific subnets. */ - public var publishedServerUriBySubnet: [String]? - /** Gets or sets a value indicating whether Autodiscovery tracing is enabled. */ - public var autoDiscoveryTracing: Bool? - /** Gets or sets a value indicating whether Autodiscovery is enabled. */ - public var autoDiscovery: Bool? - /** Gets or sets the public HTTPS port. */ - public var publicHttpsPort: Int? - /** Gets or sets the HTTP server port number. */ - public var httpServerPortNumber: Int? - /** Gets or sets the HTTPS server port number. */ - public var httpsPortNumber: Int? - /** Gets or sets a value indicating whether to use HTTPS. */ - public var enableHttps: Bool? - public var enableNormalizedItemByNameIds: Bool? - /** Gets or sets the filesystem path of an X.509 certificate to use for SSL. */ - public var certificatePath: String? - /** Gets or sets the password required to access the X.509 certificate data in the file specified by MediaBrowser.Model.Configuration.ServerConfiguration.CertificatePath. */ - public var certificatePassword: String? - /** Gets or sets a value indicating whether this instance is port authorized. */ - public var isPortAuthorized: Bool? - /** Gets or sets a value indicating whether quick connect is available for use on this server. */ - public var quickConnectAvailable: Bool? - /** Gets or sets a value indicating whether access outside of the LAN is permitted. */ - public var enableRemoteAccess: Bool? - /** Gets or sets a value indicating whether [enable case sensitive item ids]. */ - public var enableCaseSensitiveItemIds: Bool? - public var disableLiveTvChannelUserDataName: Bool? - /** Gets or sets the metadata path. */ - public var metadataPath: String? - public var metadataNetworkPath: String? - /** Gets or sets the preferred metadata language. */ - public var preferredMetadataLanguage: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - /** Gets or sets characters to be replaced with a ' ' in strings to create a sort name. */ - public var sortReplaceCharacters: [String]? - /** Gets or sets characters to be removed from strings to create a sort name. */ - public var sortRemoveCharacters: [String]? - /** Gets or sets words to be removed from strings to create a sort name. */ - public var sortRemoveWords: [String]? - /** Gets or sets the minimum percentage of an item that must be played in order for playstate to be updated. */ - public var minResumePct: Int? - /** Gets or sets the maximum percentage of an item that can be played while still saving playstate. If this percentage is crossed playstate will be reset to the beginning and the item will be marked watched. */ - public var maxResumePct: Int? - /** Gets or sets the minimum duration that an item must have in order to be eligible for playstate updates.. */ - public var minResumeDurationSeconds: Int? - /** Gets or sets the minimum minutes of a book that must be played in order for playstate to be updated. */ - public var minAudiobookResume: Int? - /** Gets or sets the remaining minutes of a book that can be played while still saving playstate. If this percentage is crossed playstate will be reset to the beginning and the item will be marked watched. */ - public var maxAudiobookResume: Int? - /** Gets or sets the delay in seconds that we will wait after a file system change to try and discover what has been added/removed Some delay is necessary with some items because their creation is not atomic. It involves the creation of several different directories and files. */ - public var libraryMonitorDelay: Int? - /** Gets or sets a value indicating whether [enable dashboard response caching]. Allows potential contributors without visual studio to modify production dashboard code and test changes. */ - public var enableDashboardResponseCaching: Bool? - /** Gets or sets the image saving convention. */ - public var imageSavingConvention: Any? - public var metadataOptions: [MetadataOptions]? - public var skipDeserializationForBasicTypes: Bool? - public var serverName: String? - public var baseUrl: String? - public var uICulture: String? - public var saveMetadataHidden: Bool? - public var contentTypes: [NameValuePair]? - public var remoteClientBitrateLimit: Int? - public var enableFolderView: Bool? - public var enableGroupingIntoCollections: Bool? - public var displaySpecialsWithinSeasons: Bool? - /** Gets or sets the subnets that are deemed to make up the LAN. */ - public var localNetworkSubnets: [String]? - /** Gets or sets the interface addresses which Jellyfin will bind to. If empty, all interfaces will be used. */ - public var localNetworkAddresses: [String]? - public var codecsUsed: [String]? - public var pluginRepositories: [RepositoryInfo]? - public var enableExternalContentInSuggestions: Bool? - /** Gets or sets a value indicating whether the server should force connections over HTTPS. */ - public var requireHttps: Bool? - public var enableNewOmdbSupport: Bool? - /** Gets or sets the filter for remote IP connectivity. Used in conjuntion with <seealso cref=\"P:MediaBrowser.Model.Configuration.ServerConfiguration.IsRemoteIPFilterBlacklist\" />. */ - public var remoteIPFilter: [String]? - /** Gets or sets a value indicating whether <seealso cref=\"P:MediaBrowser.Model.Configuration.ServerConfiguration.RemoteIPFilter\" /> contains a blacklist or a whitelist. Default is a whitelist. */ - public var isRemoteIPFilterBlacklist: Bool? - public var imageExtractionTimeoutMs: Int? - public var pathSubstitutions: [PathSubstitution]? - public var uninstalledPlugins: [String]? - /** Gets or sets a value indicating whether slow server responses should be logged as a warning. */ - public var enableSlowResponseWarning: Bool? - /** Gets or sets the threshold for the slow response time warning in ms. */ - public var slowResponseThresholdMs: Int64? - /** Gets or sets the cors hosts. */ - public var corsHosts: [String]? - /** Gets or sets the known proxies. */ - public var knownProxies: [String]? - /** Gets or sets the number of days we should retain activity logs. */ - public var activityLogRetentionDays: Int? - /** Gets or sets the how the library scan fans out. */ - public var libraryScanFanoutConcurrency: Int? - /** Gets or sets the how many metadata refreshes can run concurrently. */ - public var libraryMetadataRefreshConcurrency: Int? - /** Gets or sets a value indicating whether older plugins should automatically be deleted from the plugin folder. */ - public var removeOldPlugins: Bool? - - public init(logFileRetentionDays: Int? = nil, isStartupWizardCompleted: Bool? = nil, cachePath: String? = nil, previousVersion: Any? = nil, previousVersionStr: String? = nil, enableUPnP: Bool? = nil, enableMetrics: Bool? = nil, publicPort: Int? = nil, uPnPCreateHttpPortMap: Bool? = nil, uDPPortRange: String? = nil, enableIPV6: Bool? = nil, enableIPV4: Bool? = nil, enableSSDPTracing: Bool? = nil, sSDPTracingFilter: String? = nil, uDPSendCount: Int? = nil, uDPSendDelay: Int? = nil, ignoreVirtualInterfaces: Bool? = nil, virtualInterfaceNames: String? = nil, gatewayMonitorPeriod: Int? = nil, enableMultiSocketBinding: Bool? = nil, trustAllIP6Interfaces: Bool? = nil, hDHomerunPortRange: String? = nil, publishedServerUriBySubnet: [String]? = nil, autoDiscoveryTracing: Bool? = nil, autoDiscovery: Bool? = nil, publicHttpsPort: Int? = nil, httpServerPortNumber: Int? = nil, httpsPortNumber: Int? = nil, enableHttps: Bool? = nil, enableNormalizedItemByNameIds: Bool? = nil, certificatePath: String? = nil, certificatePassword: String? = nil, isPortAuthorized: Bool? = nil, quickConnectAvailable: Bool? = nil, enableRemoteAccess: Bool? = nil, enableCaseSensitiveItemIds: Bool? = nil, disableLiveTvChannelUserDataName: Bool? = nil, metadataPath: String? = nil, metadataNetworkPath: String? = nil, preferredMetadataLanguage: String? = nil, metadataCountryCode: String? = nil, sortReplaceCharacters: [String]? = nil, sortRemoveCharacters: [String]? = nil, sortRemoveWords: [String]? = nil, minResumePct: Int? = nil, maxResumePct: Int? = nil, minResumeDurationSeconds: Int? = nil, minAudiobookResume: Int? = nil, maxAudiobookResume: Int? = nil, libraryMonitorDelay: Int? = nil, enableDashboardResponseCaching: Bool? = nil, imageSavingConvention: Any? = nil, metadataOptions: [MetadataOptions]? = nil, skipDeserializationForBasicTypes: Bool? = nil, serverName: String? = nil, baseUrl: String? = nil, uICulture: String? = nil, saveMetadataHidden: Bool? = nil, contentTypes: [NameValuePair]? = nil, remoteClientBitrateLimit: Int? = nil, enableFolderView: Bool? = nil, enableGroupingIntoCollections: Bool? = nil, displaySpecialsWithinSeasons: Bool? = nil, localNetworkSubnets: [String]? = nil, localNetworkAddresses: [String]? = nil, codecsUsed: [String]? = nil, pluginRepositories: [RepositoryInfo]? = nil, enableExternalContentInSuggestions: Bool? = nil, requireHttps: Bool? = nil, enableNewOmdbSupport: Bool? = nil, remoteIPFilter: [String]? = nil, isRemoteIPFilterBlacklist: Bool? = nil, imageExtractionTimeoutMs: Int? = nil, pathSubstitutions: [PathSubstitution]? = nil, uninstalledPlugins: [String]? = nil, enableSlowResponseWarning: Bool? = nil, slowResponseThresholdMs: Int64? = nil, corsHosts: [String]? = nil, knownProxies: [String]? = nil, activityLogRetentionDays: Int? = nil, libraryScanFanoutConcurrency: Int? = nil, libraryMetadataRefreshConcurrency: Int? = nil, removeOldPlugins: Bool? = nil) { - self.logFileRetentionDays = logFileRetentionDays - self.isStartupWizardCompleted = isStartupWizardCompleted - self.cachePath = cachePath - self.previousVersion = previousVersion - self.previousVersionStr = previousVersionStr - self.enableUPnP = enableUPnP - self.enableMetrics = enableMetrics - self.publicPort = publicPort - self.uPnPCreateHttpPortMap = uPnPCreateHttpPortMap - self.uDPPortRange = uDPPortRange - self.enableIPV6 = enableIPV6 - self.enableIPV4 = enableIPV4 - self.enableSSDPTracing = enableSSDPTracing - self.sSDPTracingFilter = sSDPTracingFilter - self.uDPSendCount = uDPSendCount - self.uDPSendDelay = uDPSendDelay - self.ignoreVirtualInterfaces = ignoreVirtualInterfaces - self.virtualInterfaceNames = virtualInterfaceNames - self.gatewayMonitorPeriod = gatewayMonitorPeriod - self.enableMultiSocketBinding = enableMultiSocketBinding - self.trustAllIP6Interfaces = trustAllIP6Interfaces - self.hDHomerunPortRange = hDHomerunPortRange - self.publishedServerUriBySubnet = publishedServerUriBySubnet - self.autoDiscoveryTracing = autoDiscoveryTracing - self.autoDiscovery = autoDiscovery - self.publicHttpsPort = publicHttpsPort - self.httpServerPortNumber = httpServerPortNumber - self.httpsPortNumber = httpsPortNumber - self.enableHttps = enableHttps - self.enableNormalizedItemByNameIds = enableNormalizedItemByNameIds - self.certificatePath = certificatePath - self.certificatePassword = certificatePassword - self.isPortAuthorized = isPortAuthorized - self.quickConnectAvailable = quickConnectAvailable - self.enableRemoteAccess = enableRemoteAccess - self.enableCaseSensitiveItemIds = enableCaseSensitiveItemIds - self.disableLiveTvChannelUserDataName = disableLiveTvChannelUserDataName - self.metadataPath = metadataPath - self.metadataNetworkPath = metadataNetworkPath - self.preferredMetadataLanguage = preferredMetadataLanguage - self.metadataCountryCode = metadataCountryCode - self.sortReplaceCharacters = sortReplaceCharacters - self.sortRemoveCharacters = sortRemoveCharacters - self.sortRemoveWords = sortRemoveWords - self.minResumePct = minResumePct - self.maxResumePct = maxResumePct - self.minResumeDurationSeconds = minResumeDurationSeconds - self.minAudiobookResume = minAudiobookResume - self.maxAudiobookResume = maxAudiobookResume - self.libraryMonitorDelay = libraryMonitorDelay - self.enableDashboardResponseCaching = enableDashboardResponseCaching - self.imageSavingConvention = imageSavingConvention - self.metadataOptions = metadataOptions - self.skipDeserializationForBasicTypes = skipDeserializationForBasicTypes - self.serverName = serverName - self.baseUrl = baseUrl - self.uICulture = uICulture - self.saveMetadataHidden = saveMetadataHidden - self.contentTypes = contentTypes - self.remoteClientBitrateLimit = remoteClientBitrateLimit - self.enableFolderView = enableFolderView - self.enableGroupingIntoCollections = enableGroupingIntoCollections - self.displaySpecialsWithinSeasons = displaySpecialsWithinSeasons - self.localNetworkSubnets = localNetworkSubnets - self.localNetworkAddresses = localNetworkAddresses - self.codecsUsed = codecsUsed - self.pluginRepositories = pluginRepositories - self.enableExternalContentInSuggestions = enableExternalContentInSuggestions - self.requireHttps = requireHttps - self.enableNewOmdbSupport = enableNewOmdbSupport - self.remoteIPFilter = remoteIPFilter - self.isRemoteIPFilterBlacklist = isRemoteIPFilterBlacklist - self.imageExtractionTimeoutMs = imageExtractionTimeoutMs - self.pathSubstitutions = pathSubstitutions - self.uninstalledPlugins = uninstalledPlugins - self.enableSlowResponseWarning = enableSlowResponseWarning - self.slowResponseThresholdMs = slowResponseThresholdMs - self.corsHosts = corsHosts - self.knownProxies = knownProxies - self.activityLogRetentionDays = activityLogRetentionDays - self.libraryScanFanoutConcurrency = libraryScanFanoutConcurrency - self.libraryMetadataRefreshConcurrency = libraryMetadataRefreshConcurrency - self.removeOldPlugins = removeOldPlugins - } - - public enum CodingKeys: String, CodingKey { - case logFileRetentionDays = "LogFileRetentionDays" - case isStartupWizardCompleted = "IsStartupWizardCompleted" - case cachePath = "CachePath" - case previousVersion = "PreviousVersion" - case previousVersionStr = "PreviousVersionStr" - case enableUPnP = "EnableUPnP" - case enableMetrics = "EnableMetrics" - case publicPort = "PublicPort" - case uPnPCreateHttpPortMap = "UPnPCreateHttpPortMap" - case uDPPortRange = "UDPPortRange" - case enableIPV6 = "EnableIPV6" - case enableIPV4 = "EnableIPV4" - case enableSSDPTracing = "EnableSSDPTracing" - case sSDPTracingFilter = "SSDPTracingFilter" - case uDPSendCount = "UDPSendCount" - case uDPSendDelay = "UDPSendDelay" - case ignoreVirtualInterfaces = "IgnoreVirtualInterfaces" - case virtualInterfaceNames = "VirtualInterfaceNames" - case gatewayMonitorPeriod = "GatewayMonitorPeriod" - case enableMultiSocketBinding = "EnableMultiSocketBinding" - case trustAllIP6Interfaces = "TrustAllIP6Interfaces" - case hDHomerunPortRange = "HDHomerunPortRange" - case publishedServerUriBySubnet = "PublishedServerUriBySubnet" - case autoDiscoveryTracing = "AutoDiscoveryTracing" - case autoDiscovery = "AutoDiscovery" - case publicHttpsPort = "PublicHttpsPort" - case httpServerPortNumber = "HttpServerPortNumber" - case httpsPortNumber = "HttpsPortNumber" - case enableHttps = "EnableHttps" - case enableNormalizedItemByNameIds = "EnableNormalizedItemByNameIds" - case certificatePath = "CertificatePath" - case certificatePassword = "CertificatePassword" - case isPortAuthorized = "IsPortAuthorized" - case quickConnectAvailable = "QuickConnectAvailable" - case enableRemoteAccess = "EnableRemoteAccess" - case enableCaseSensitiveItemIds = "EnableCaseSensitiveItemIds" - case disableLiveTvChannelUserDataName = "DisableLiveTvChannelUserDataName" - case metadataPath = "MetadataPath" - case metadataNetworkPath = "MetadataNetworkPath" - case preferredMetadataLanguage = "PreferredMetadataLanguage" - case metadataCountryCode = "MetadataCountryCode" - case sortReplaceCharacters = "SortReplaceCharacters" - case sortRemoveCharacters = "SortRemoveCharacters" - case sortRemoveWords = "SortRemoveWords" - case minResumePct = "MinResumePct" - case maxResumePct = "MaxResumePct" - case minResumeDurationSeconds = "MinResumeDurationSeconds" - case minAudiobookResume = "MinAudiobookResume" - case maxAudiobookResume = "MaxAudiobookResume" - case libraryMonitorDelay = "LibraryMonitorDelay" - case enableDashboardResponseCaching = "EnableDashboardResponseCaching" - case imageSavingConvention = "ImageSavingConvention" - case metadataOptions = "MetadataOptions" - case skipDeserializationForBasicTypes = "SkipDeserializationForBasicTypes" - case serverName = "ServerName" - case baseUrl = "BaseUrl" - case uICulture = "UICulture" - case saveMetadataHidden = "SaveMetadataHidden" - case contentTypes = "ContentTypes" - case remoteClientBitrateLimit = "RemoteClientBitrateLimit" - case enableFolderView = "EnableFolderView" - case enableGroupingIntoCollections = "EnableGroupingIntoCollections" - case displaySpecialsWithinSeasons = "DisplaySpecialsWithinSeasons" - case localNetworkSubnets = "LocalNetworkSubnets" - case localNetworkAddresses = "LocalNetworkAddresses" - case codecsUsed = "CodecsUsed" - case pluginRepositories = "PluginRepositories" - case enableExternalContentInSuggestions = "EnableExternalContentInSuggestions" - case requireHttps = "RequireHttps" - case enableNewOmdbSupport = "EnableNewOmdbSupport" - case remoteIPFilter = "RemoteIPFilter" - case isRemoteIPFilterBlacklist = "IsRemoteIPFilterBlacklist" - case imageExtractionTimeoutMs = "ImageExtractionTimeoutMs" - case pathSubstitutions = "PathSubstitutions" - case uninstalledPlugins = "UninstalledPlugins" - case enableSlowResponseWarning = "EnableSlowResponseWarning" - case slowResponseThresholdMs = "SlowResponseThresholdMs" - case corsHosts = "CorsHosts" - case knownProxies = "KnownProxies" - case activityLogRetentionDays = "ActivityLogRetentionDays" - case libraryScanFanoutConcurrency = "LibraryScanFanoutConcurrency" - case libraryMetadataRefreshConcurrency = "LibraryMetadataRefreshConcurrency" - case removeOldPlugins = "RemoveOldPlugins" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/SystemInfo.swift b/JellyfinPlayer/Swaggers/Models/SystemInfo.swift deleted file mode 100644 index ce4fb3ce..00000000 --- a/JellyfinPlayer/Swaggers/Models/SystemInfo.swift +++ /dev/null @@ -1,123 +0,0 @@ -// -// SystemInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class SystemInfo. */ - -public struct SystemInfo: Codable { - - /** Gets or sets the local address. */ - public var localAddress: String? - /** Gets or sets the name of the server. */ - public var serverName: String? - /** Gets or sets the server version. */ - public var version: String? - /** Gets or sets the product name. This is the AssemblyProduct name. */ - public var productName: String? - /** Gets or sets the operating system. */ - public var operatingSystem: String? - /** Gets or sets the id. */ - public var _id: String? - /** Gets or sets a value indicating whether the startup wizard is completed. */ - public var startupWizardCompleted: Bool? - /** Gets or sets the display name of the operating system. */ - public var operatingSystemDisplayName: String? - /** Get or sets the package name. */ - public var packageName: String? - /** Gets or sets a value indicating whether this instance has pending restart. */ - public var hasPendingRestart: Bool? - public var isShuttingDown: Bool? - /** Gets or sets a value indicating whether [supports library monitor]. */ - public var supportsLibraryMonitor: Bool? - /** Gets or sets the web socket port number. */ - public var webSocketPortNumber: Int? - /** Gets or sets the completed installations. */ - public var completedInstallations: [InstallationInfo]? - /** Gets or sets a value indicating whether this instance can self restart. */ - public var canSelfRestart: Bool? - public var canLaunchWebBrowser: Bool? - /** Gets or sets the program data path. */ - public var programDataPath: String? - /** Gets or sets the web UI resources path. */ - public var webPath: String? - /** Gets or sets the items by name path. */ - public var itemsByNamePath: String? - /** Gets or sets the cache path. */ - public var cachePath: String? - /** Gets or sets the log path. */ - public var logPath: String? - /** Gets or sets the internal metadata path. */ - public var internalMetadataPath: String? - /** Gets or sets the transcode path. */ - public var transcodingTempPath: String? - /** Gets or sets a value indicating whether this instance has update available. */ - public var hasUpdateAvailable: Bool? - /** Enum describing the location of the FFmpeg tool. */ - public var encoderLocation: AllOfSystemInfoEncoderLocation? - public var systemArchitecture: AllOfSystemInfoSystemArchitecture? - - public init(localAddress: String? = nil, serverName: String? = nil, version: String? = nil, productName: String? = nil, operatingSystem: String? = nil, _id: String? = nil, startupWizardCompleted: Bool? = nil, operatingSystemDisplayName: String? = nil, packageName: String? = nil, hasPendingRestart: Bool? = nil, isShuttingDown: Bool? = nil, supportsLibraryMonitor: Bool? = nil, webSocketPortNumber: Int? = nil, completedInstallations: [InstallationInfo]? = nil, canSelfRestart: Bool? = nil, canLaunchWebBrowser: Bool? = nil, programDataPath: String? = nil, webPath: String? = nil, itemsByNamePath: String? = nil, cachePath: String? = nil, logPath: String? = nil, internalMetadataPath: String? = nil, transcodingTempPath: String? = nil, hasUpdateAvailable: Bool? = nil, encoderLocation: AllOfSystemInfoEncoderLocation? = nil, systemArchitecture: AllOfSystemInfoSystemArchitecture? = nil) { - self.localAddress = localAddress - self.serverName = serverName - self.version = version - self.productName = productName - self.operatingSystem = operatingSystem - self._id = _id - self.startupWizardCompleted = startupWizardCompleted - self.operatingSystemDisplayName = operatingSystemDisplayName - self.packageName = packageName - self.hasPendingRestart = hasPendingRestart - self.isShuttingDown = isShuttingDown - self.supportsLibraryMonitor = supportsLibraryMonitor - self.webSocketPortNumber = webSocketPortNumber - self.completedInstallations = completedInstallations - self.canSelfRestart = canSelfRestart - self.canLaunchWebBrowser = canLaunchWebBrowser - self.programDataPath = programDataPath - self.webPath = webPath - self.itemsByNamePath = itemsByNamePath - self.cachePath = cachePath - self.logPath = logPath - self.internalMetadataPath = internalMetadataPath - self.transcodingTempPath = transcodingTempPath - self.hasUpdateAvailable = hasUpdateAvailable - self.encoderLocation = encoderLocation - self.systemArchitecture = systemArchitecture - } - - public enum CodingKeys: String, CodingKey { - case localAddress = "LocalAddress" - case serverName = "ServerName" - case version = "Version" - case productName = "ProductName" - case operatingSystem = "OperatingSystem" - case _id = "Id" - case startupWizardCompleted = "StartupWizardCompleted" - case operatingSystemDisplayName = "OperatingSystemDisplayName" - case packageName = "PackageName" - case hasPendingRestart = "HasPendingRestart" - case isShuttingDown = "IsShuttingDown" - case supportsLibraryMonitor = "SupportsLibraryMonitor" - case webSocketPortNumber = "WebSocketPortNumber" - case completedInstallations = "CompletedInstallations" - case canSelfRestart = "CanSelfRestart" - case canLaunchWebBrowser = "CanLaunchWebBrowser" - case programDataPath = "ProgramDataPath" - case webPath = "WebPath" - case itemsByNamePath = "ItemsByNamePath" - case cachePath = "CachePath" - case logPath = "LogPath" - case internalMetadataPath = "InternalMetadataPath" - case transcodingTempPath = "TranscodingTempPath" - case hasUpdateAvailable = "HasUpdateAvailable" - case encoderLocation = "EncoderLocation" - case systemArchitecture = "SystemArchitecture" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/TaskCompletionStatus.swift b/JellyfinPlayer/Swaggers/Models/TaskCompletionStatus.swift deleted file mode 100644 index 2b191652..00000000 --- a/JellyfinPlayer/Swaggers/Models/TaskCompletionStatus.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// TaskCompletionStatus.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Enum TaskCompletionStatus. */ -public enum TaskCompletionStatus: String, Codable { - case completed = "Completed" - case failed = "Failed" - case cancelled = "Cancelled" - case aborted = "Aborted" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/TaskInfo.swift b/JellyfinPlayer/Swaggers/Models/TaskInfo.swift deleted file mode 100644 index e5bcccad..00000000 --- a/JellyfinPlayer/Swaggers/Models/TaskInfo.swift +++ /dev/null @@ -1,62 +0,0 @@ -// -// TaskInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class TaskInfo. */ - -public struct TaskInfo: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the state of the task. */ - public var state: AllOfTaskInfoState? - /** Gets or sets the progress. */ - public var currentProgressPercentage: Double? - /** Gets or sets the id. */ - public var _id: String? - /** Gets or sets the last execution result. */ - public var lastExecutionResult: AllOfTaskInfoLastExecutionResult? - /** Gets or sets the triggers. */ - public var triggers: [TaskTriggerInfo]? - /** Gets or sets the description. */ - public var _description: String? - /** Gets or sets the category. */ - public var category: String? - /** Gets or sets a value indicating whether this instance is hidden. */ - public var isHidden: Bool? - /** Gets or sets the key. */ - public var key: String? - - public init(name: String? = nil, state: AllOfTaskInfoState? = nil, currentProgressPercentage: Double? = nil, _id: String? = nil, lastExecutionResult: AllOfTaskInfoLastExecutionResult? = nil, triggers: [TaskTriggerInfo]? = nil, _description: String? = nil, category: String? = nil, isHidden: Bool? = nil, key: String? = nil) { - self.name = name - self.state = state - self.currentProgressPercentage = currentProgressPercentage - self._id = _id - self.lastExecutionResult = lastExecutionResult - self.triggers = triggers - self._description = _description - self.category = category - self.isHidden = isHidden - self.key = key - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case state = "State" - case currentProgressPercentage = "CurrentProgressPercentage" - case _id = "Id" - case lastExecutionResult = "LastExecutionResult" - case triggers = "Triggers" - case _description = "Description" - case category = "Category" - case isHidden = "IsHidden" - case key = "Key" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/TaskResult.swift b/JellyfinPlayer/Swaggers/Models/TaskResult.swift deleted file mode 100644 index 5fd0ddcd..00000000 --- a/JellyfinPlayer/Swaggers/Models/TaskResult.swift +++ /dev/null @@ -1,54 +0,0 @@ -// -// TaskResult.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class TaskExecutionInfo. */ - -public struct TaskResult: Codable { - - /** Gets or sets the start time UTC. */ - public var startTimeUtc: Date? - /** Gets or sets the end time UTC. */ - public var endTimeUtc: Date? - /** Gets or sets the status. */ - public var status: AllOfTaskResultStatus? - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the key. */ - public var key: String? - /** Gets or sets the id. */ - public var _id: String? - /** Gets or sets the error message. */ - public var errorMessage: String? - /** Gets or sets the long error message. */ - public var longErrorMessage: String? - - public init(startTimeUtc: Date? = nil, endTimeUtc: Date? = nil, status: AllOfTaskResultStatus? = nil, name: String? = nil, key: String? = nil, _id: String? = nil, errorMessage: String? = nil, longErrorMessage: String? = nil) { - self.startTimeUtc = startTimeUtc - self.endTimeUtc = endTimeUtc - self.status = status - self.name = name - self.key = key - self._id = _id - self.errorMessage = errorMessage - self.longErrorMessage = longErrorMessage - } - - public enum CodingKeys: String, CodingKey { - case startTimeUtc = "StartTimeUtc" - case endTimeUtc = "EndTimeUtc" - case status = "Status" - case name = "Name" - case key = "Key" - case _id = "Id" - case errorMessage = "ErrorMessage" - case longErrorMessage = "LongErrorMessage" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/TaskState.swift b/JellyfinPlayer/Swaggers/Models/TaskState.swift deleted file mode 100644 index 5adeee82..00000000 --- a/JellyfinPlayer/Swaggers/Models/TaskState.swift +++ /dev/null @@ -1,16 +0,0 @@ -// -// TaskState.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Enum TaskState. */ -public enum TaskState: String, Codable { - case idle = "Idle" - case cancelling = "Cancelling" - case running = "Running" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/TaskTriggerInfo.swift b/JellyfinPlayer/Swaggers/Models/TaskTriggerInfo.swift deleted file mode 100644 index 8ad0a087..00000000 --- a/JellyfinPlayer/Swaggers/Models/TaskTriggerInfo.swift +++ /dev/null @@ -1,42 +0,0 @@ -// -// TaskTriggerInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class TaskTriggerInfo. */ - -public struct TaskTriggerInfo: Codable { - - /** Gets or sets the type. */ - public var type: String? - /** Gets or sets the time of day. */ - public var timeOfDayTicks: Int64? - /** Gets or sets the interval. */ - public var intervalTicks: Int64? - /** Gets or sets the day of week. */ - public var dayOfWeek: AllOfTaskTriggerInfoDayOfWeek? - /** Gets or sets the maximum runtime ticks. */ - public var maxRuntimeTicks: Int64? - - public init(type: String? = nil, timeOfDayTicks: Int64? = nil, intervalTicks: Int64? = nil, dayOfWeek: AllOfTaskTriggerInfoDayOfWeek? = nil, maxRuntimeTicks: Int64? = nil) { - self.type = type - self.timeOfDayTicks = timeOfDayTicks - self.intervalTicks = intervalTicks - self.dayOfWeek = dayOfWeek - self.maxRuntimeTicks = maxRuntimeTicks - } - - public enum CodingKeys: String, CodingKey { - case type = "Type" - case timeOfDayTicks = "TimeOfDayTicks" - case intervalTicks = "IntervalTicks" - case dayOfWeek = "DayOfWeek" - case maxRuntimeTicks = "MaxRuntimeTicks" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ThemeMediaResult.swift b/JellyfinPlayer/Swaggers/Models/ThemeMediaResult.swift deleted file mode 100644 index d46fac7e..00000000 --- a/JellyfinPlayer/Swaggers/Models/ThemeMediaResult.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// ThemeMediaResult.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class ThemeMediaResult. */ - -public struct ThemeMediaResult: Codable { - - /** Gets or sets the items. */ - public var items: [BaseItemDto]? - /** The total number of records available. */ - public var totalRecordCount: Int? - /** The index of the first record in Items. */ - public var startIndex: Int? - /** Gets or sets the owner id. */ - public var ownerId: UUID? - - public init(items: [BaseItemDto]? = nil, totalRecordCount: Int? = nil, startIndex: Int? = nil, ownerId: UUID? = nil) { - self.items = items - self.totalRecordCount = totalRecordCount - self.startIndex = startIndex - self.ownerId = ownerId - } - - public enum CodingKeys: String, CodingKey { - case items = "Items" - case totalRecordCount = "TotalRecordCount" - case startIndex = "StartIndex" - case ownerId = "OwnerId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/TimerEventInfo.swift b/JellyfinPlayer/Swaggers/Models/TimerEventInfo.swift deleted file mode 100644 index 1df6b0ed..00000000 --- a/JellyfinPlayer/Swaggers/Models/TimerEventInfo.swift +++ /dev/null @@ -1,27 +0,0 @@ -// -// TimerEventInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct TimerEventInfo: Codable { - - public var _id: String? - public var programId: UUID? - - public init(_id: String? = nil, programId: UUID? = nil) { - self._id = _id - self.programId = programId - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case programId = "ProgramId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/TimerInfoDto.swift b/JellyfinPlayer/Swaggers/Models/TimerInfoDto.swift deleted file mode 100644 index ae1331a5..00000000 --- a/JellyfinPlayer/Swaggers/Models/TimerInfoDto.swift +++ /dev/null @@ -1,130 +0,0 @@ -// -// TimerInfoDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct TimerInfoDto: Codable { - - /** Id of the recording. */ - public var _id: String? - public var type: String? - /** Gets or sets the server identifier. */ - public var serverId: String? - /** Gets or sets the external identifier. */ - public var externalId: String? - /** ChannelId of the recording. */ - public var channelId: UUID? - /** Gets or sets the external channel identifier. */ - public var externalChannelId: String? - /** ChannelName of the recording. */ - public var channelName: String? - public var channelPrimaryImageTag: String? - /** Gets or sets the program identifier. */ - public var programId: String? - /** Gets or sets the external program identifier. */ - public var externalProgramId: String? - /** Name of the recording. */ - public var name: String? - /** Description of the recording. */ - public var overview: String? - /** The start date of the recording, in UTC. */ - public var startDate: Date? - /** The end date of the recording, in UTC. */ - public var endDate: Date? - /** Gets or sets the name of the service. */ - public var serviceName: String? - /** Gets or sets the priority. */ - public var priority: Int? - /** Gets or sets the pre padding seconds. */ - public var prePaddingSeconds: Int? - /** Gets or sets the post padding seconds. */ - public var postPaddingSeconds: Int? - /** Gets or sets a value indicating whether this instance is pre padding required. */ - public var isPrePaddingRequired: Bool? - /** If the item does not have any backdrops, this will hold the Id of the Parent that has one. */ - public var parentBackdropItemId: String? - /** Gets or sets the parent backdrop image tags. */ - public var parentBackdropImageTags: [String]? - /** Gets or sets a value indicating whether this instance is post padding required. */ - public var isPostPaddingRequired: Bool? - public var keepUntil: AllOfTimerInfoDtoKeepUntil? - /** Gets or sets the status. */ - public var status: AllOfTimerInfoDtoStatus? - /** Gets or sets the series timer identifier. */ - public var seriesTimerId: String? - /** Gets or sets the external series timer identifier. */ - public var externalSeriesTimerId: String? - /** Gets or sets the run time ticks. */ - public var runTimeTicks: Int64? - /** Gets or sets the program information. */ - public var programInfo: AllOfTimerInfoDtoProgramInfo? - - public init(_id: String? = nil, type: String? = nil, serverId: String? = nil, externalId: String? = nil, channelId: UUID? = nil, externalChannelId: String? = nil, channelName: String? = nil, channelPrimaryImageTag: String? = nil, programId: String? = nil, externalProgramId: String? = nil, name: String? = nil, overview: String? = nil, startDate: Date? = nil, endDate: Date? = nil, serviceName: String? = nil, priority: Int? = nil, prePaddingSeconds: Int? = nil, postPaddingSeconds: Int? = nil, isPrePaddingRequired: Bool? = nil, parentBackdropItemId: String? = nil, parentBackdropImageTags: [String]? = nil, isPostPaddingRequired: Bool? = nil, keepUntil: AllOfTimerInfoDtoKeepUntil? = nil, status: AllOfTimerInfoDtoStatus? = nil, seriesTimerId: String? = nil, externalSeriesTimerId: String? = nil, runTimeTicks: Int64? = nil, programInfo: AllOfTimerInfoDtoProgramInfo? = nil) { - self._id = _id - self.type = type - self.serverId = serverId - self.externalId = externalId - self.channelId = channelId - self.externalChannelId = externalChannelId - self.channelName = channelName - self.channelPrimaryImageTag = channelPrimaryImageTag - self.programId = programId - self.externalProgramId = externalProgramId - self.name = name - self.overview = overview - self.startDate = startDate - self.endDate = endDate - self.serviceName = serviceName - self.priority = priority - self.prePaddingSeconds = prePaddingSeconds - self.postPaddingSeconds = postPaddingSeconds - self.isPrePaddingRequired = isPrePaddingRequired - self.parentBackdropItemId = parentBackdropItemId - self.parentBackdropImageTags = parentBackdropImageTags - self.isPostPaddingRequired = isPostPaddingRequired - self.keepUntil = keepUntil - self.status = status - self.seriesTimerId = seriesTimerId - self.externalSeriesTimerId = externalSeriesTimerId - self.runTimeTicks = runTimeTicks - self.programInfo = programInfo - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case type = "Type" - case serverId = "ServerId" - case externalId = "ExternalId" - case channelId = "ChannelId" - case externalChannelId = "ExternalChannelId" - case channelName = "ChannelName" - case channelPrimaryImageTag = "ChannelPrimaryImageTag" - case programId = "ProgramId" - case externalProgramId = "ExternalProgramId" - case name = "Name" - case overview = "Overview" - case startDate = "StartDate" - case endDate = "EndDate" - case serviceName = "ServiceName" - case priority = "Priority" - case prePaddingSeconds = "PrePaddingSeconds" - case postPaddingSeconds = "PostPaddingSeconds" - case isPrePaddingRequired = "IsPrePaddingRequired" - case parentBackdropItemId = "ParentBackdropItemId" - case parentBackdropImageTags = "ParentBackdropImageTags" - case isPostPaddingRequired = "IsPostPaddingRequired" - case keepUntil = "KeepUntil" - case status = "Status" - case seriesTimerId = "SeriesTimerId" - case externalSeriesTimerId = "ExternalSeriesTimerId" - case runTimeTicks = "RunTimeTicks" - case programInfo = "ProgramInfo" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/TimerInfoDtoQueryResult.swift b/JellyfinPlayer/Swaggers/Models/TimerInfoDtoQueryResult.swift deleted file mode 100644 index 98e27f9d..00000000 --- a/JellyfinPlayer/Swaggers/Models/TimerInfoDtoQueryResult.swift +++ /dev/null @@ -1,33 +0,0 @@ -// -// TimerInfoDtoQueryResult.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct TimerInfoDtoQueryResult: Codable { - - /** Gets or sets the items. */ - public var items: [TimerInfoDto]? - /** The total number of records available. */ - public var totalRecordCount: Int? - /** The index of the first record in Items. */ - public var startIndex: Int? - - public init(items: [TimerInfoDto]? = nil, totalRecordCount: Int? = nil, startIndex: Int? = nil) { - self.items = items - self.totalRecordCount = totalRecordCount - self.startIndex = startIndex - } - - public enum CodingKeys: String, CodingKey { - case items = "Items" - case totalRecordCount = "TotalRecordCount" - case startIndex = "StartIndex" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/TimersTimerIdBody.swift b/JellyfinPlayer/Swaggers/Models/TimersTimerIdBody.swift deleted file mode 100644 index 8cd8385d..00000000 --- a/JellyfinPlayer/Swaggers/Models/TimersTimerIdBody.swift +++ /dev/null @@ -1,131 +0,0 @@ -// -// TimersTimerIdBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** New timer info. */ - -public struct TimersTimerIdBody: Codable { - - /** Id of the recording. */ - public var _id: String? - public var type: String? - /** Gets or sets the server identifier. */ - public var serverId: String? - /** Gets or sets the external identifier. */ - public var externalId: String? - /** ChannelId of the recording. */ - public var channelId: UUID? - /** Gets or sets the external channel identifier. */ - public var externalChannelId: String? - /** ChannelName of the recording. */ - public var channelName: String? - public var channelPrimaryImageTag: String? - /** Gets or sets the program identifier. */ - public var programId: String? - /** Gets or sets the external program identifier. */ - public var externalProgramId: String? - /** Name of the recording. */ - public var name: String? - /** Description of the recording. */ - public var overview: String? - /** The start date of the recording, in UTC. */ - public var startDate: Date? - /** The end date of the recording, in UTC. */ - public var endDate: Date? - /** Gets or sets the name of the service. */ - public var serviceName: String? - /** Gets or sets the priority. */ - public var priority: Int? - /** Gets or sets the pre padding seconds. */ - public var prePaddingSeconds: Int? - /** Gets or sets the post padding seconds. */ - public var postPaddingSeconds: Int? - /** Gets or sets a value indicating whether this instance is pre padding required. */ - public var isPrePaddingRequired: Bool? - /** If the item does not have any backdrops, this will hold the Id of the Parent that has one. */ - public var parentBackdropItemId: String? - /** Gets or sets the parent backdrop image tags. */ - public var parentBackdropImageTags: [String]? - /** Gets or sets a value indicating whether this instance is post padding required. */ - public var isPostPaddingRequired: Bool? - public var keepUntil: Any? - /** Gets or sets the status. */ - public var status: Any? - /** Gets or sets the series timer identifier. */ - public var seriesTimerId: String? - /** Gets or sets the external series timer identifier. */ - public var externalSeriesTimerId: String? - /** Gets or sets the run time ticks. */ - public var runTimeTicks: Int64? - /** Gets or sets the program information. */ - public var programInfo: Any? - - public init(_id: String? = nil, type: String? = nil, serverId: String? = nil, externalId: String? = nil, channelId: UUID? = nil, externalChannelId: String? = nil, channelName: String? = nil, channelPrimaryImageTag: String? = nil, programId: String? = nil, externalProgramId: String? = nil, name: String? = nil, overview: String? = nil, startDate: Date? = nil, endDate: Date? = nil, serviceName: String? = nil, priority: Int? = nil, prePaddingSeconds: Int? = nil, postPaddingSeconds: Int? = nil, isPrePaddingRequired: Bool? = nil, parentBackdropItemId: String? = nil, parentBackdropImageTags: [String]? = nil, isPostPaddingRequired: Bool? = nil, keepUntil: Any? = nil, status: Any? = nil, seriesTimerId: String? = nil, externalSeriesTimerId: String? = nil, runTimeTicks: Int64? = nil, programInfo: Any? = nil) { - self._id = _id - self.type = type - self.serverId = serverId - self.externalId = externalId - self.channelId = channelId - self.externalChannelId = externalChannelId - self.channelName = channelName - self.channelPrimaryImageTag = channelPrimaryImageTag - self.programId = programId - self.externalProgramId = externalProgramId - self.name = name - self.overview = overview - self.startDate = startDate - self.endDate = endDate - self.serviceName = serviceName - self.priority = priority - self.prePaddingSeconds = prePaddingSeconds - self.postPaddingSeconds = postPaddingSeconds - self.isPrePaddingRequired = isPrePaddingRequired - self.parentBackdropItemId = parentBackdropItemId - self.parentBackdropImageTags = parentBackdropImageTags - self.isPostPaddingRequired = isPostPaddingRequired - self.keepUntil = keepUntil - self.status = status - self.seriesTimerId = seriesTimerId - self.externalSeriesTimerId = externalSeriesTimerId - self.runTimeTicks = runTimeTicks - self.programInfo = programInfo - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case type = "Type" - case serverId = "ServerId" - case externalId = "ExternalId" - case channelId = "ChannelId" - case externalChannelId = "ExternalChannelId" - case channelName = "ChannelName" - case channelPrimaryImageTag = "ChannelPrimaryImageTag" - case programId = "ProgramId" - case externalProgramId = "ExternalProgramId" - case name = "Name" - case overview = "Overview" - case startDate = "StartDate" - case endDate = "EndDate" - case serviceName = "ServiceName" - case priority = "Priority" - case prePaddingSeconds = "PrePaddingSeconds" - case postPaddingSeconds = "PostPaddingSeconds" - case isPrePaddingRequired = "IsPrePaddingRequired" - case parentBackdropItemId = "ParentBackdropItemId" - case parentBackdropImageTags = "ParentBackdropImageTags" - case isPostPaddingRequired = "IsPostPaddingRequired" - case keepUntil = "KeepUntil" - case status = "Status" - case seriesTimerId = "SeriesTimerId" - case externalSeriesTimerId = "ExternalSeriesTimerId" - case runTimeTicks = "RunTimeTicks" - case programInfo = "ProgramInfo" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/TimersTimerIdBody1.swift b/JellyfinPlayer/Swaggers/Models/TimersTimerIdBody1.swift deleted file mode 100644 index 7727b1b1..00000000 --- a/JellyfinPlayer/Swaggers/Models/TimersTimerIdBody1.swift +++ /dev/null @@ -1,131 +0,0 @@ -// -// TimersTimerIdBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** New timer info. */ - -public struct TimersTimerIdBody1: Codable { - - /** Id of the recording. */ - public var _id: String? - public var type: String? - /** Gets or sets the server identifier. */ - public var serverId: String? - /** Gets or sets the external identifier. */ - public var externalId: String? - /** ChannelId of the recording. */ - public var channelId: UUID? - /** Gets or sets the external channel identifier. */ - public var externalChannelId: String? - /** ChannelName of the recording. */ - public var channelName: String? - public var channelPrimaryImageTag: String? - /** Gets or sets the program identifier. */ - public var programId: String? - /** Gets or sets the external program identifier. */ - public var externalProgramId: String? - /** Name of the recording. */ - public var name: String? - /** Description of the recording. */ - public var overview: String? - /** The start date of the recording, in UTC. */ - public var startDate: Date? - /** The end date of the recording, in UTC. */ - public var endDate: Date? - /** Gets or sets the name of the service. */ - public var serviceName: String? - /** Gets or sets the priority. */ - public var priority: Int? - /** Gets or sets the pre padding seconds. */ - public var prePaddingSeconds: Int? - /** Gets or sets the post padding seconds. */ - public var postPaddingSeconds: Int? - /** Gets or sets a value indicating whether this instance is pre padding required. */ - public var isPrePaddingRequired: Bool? - /** If the item does not have any backdrops, this will hold the Id of the Parent that has one. */ - public var parentBackdropItemId: String? - /** Gets or sets the parent backdrop image tags. */ - public var parentBackdropImageTags: [String]? - /** Gets or sets a value indicating whether this instance is post padding required. */ - public var isPostPaddingRequired: Bool? - public var keepUntil: Any? - /** Gets or sets the status. */ - public var status: Any? - /** Gets or sets the series timer identifier. */ - public var seriesTimerId: String? - /** Gets or sets the external series timer identifier. */ - public var externalSeriesTimerId: String? - /** Gets or sets the run time ticks. */ - public var runTimeTicks: Int64? - /** Gets or sets the program information. */ - public var programInfo: Any? - - public init(_id: String? = nil, type: String? = nil, serverId: String? = nil, externalId: String? = nil, channelId: UUID? = nil, externalChannelId: String? = nil, channelName: String? = nil, channelPrimaryImageTag: String? = nil, programId: String? = nil, externalProgramId: String? = nil, name: String? = nil, overview: String? = nil, startDate: Date? = nil, endDate: Date? = nil, serviceName: String? = nil, priority: Int? = nil, prePaddingSeconds: Int? = nil, postPaddingSeconds: Int? = nil, isPrePaddingRequired: Bool? = nil, parentBackdropItemId: String? = nil, parentBackdropImageTags: [String]? = nil, isPostPaddingRequired: Bool? = nil, keepUntil: Any? = nil, status: Any? = nil, seriesTimerId: String? = nil, externalSeriesTimerId: String? = nil, runTimeTicks: Int64? = nil, programInfo: Any? = nil) { - self._id = _id - self.type = type - self.serverId = serverId - self.externalId = externalId - self.channelId = channelId - self.externalChannelId = externalChannelId - self.channelName = channelName - self.channelPrimaryImageTag = channelPrimaryImageTag - self.programId = programId - self.externalProgramId = externalProgramId - self.name = name - self.overview = overview - self.startDate = startDate - self.endDate = endDate - self.serviceName = serviceName - self.priority = priority - self.prePaddingSeconds = prePaddingSeconds - self.postPaddingSeconds = postPaddingSeconds - self.isPrePaddingRequired = isPrePaddingRequired - self.parentBackdropItemId = parentBackdropItemId - self.parentBackdropImageTags = parentBackdropImageTags - self.isPostPaddingRequired = isPostPaddingRequired - self.keepUntil = keepUntil - self.status = status - self.seriesTimerId = seriesTimerId - self.externalSeriesTimerId = externalSeriesTimerId - self.runTimeTicks = runTimeTicks - self.programInfo = programInfo - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case type = "Type" - case serverId = "ServerId" - case externalId = "ExternalId" - case channelId = "ChannelId" - case externalChannelId = "ExternalChannelId" - case channelName = "ChannelName" - case channelPrimaryImageTag = "ChannelPrimaryImageTag" - case programId = "ProgramId" - case externalProgramId = "ExternalProgramId" - case name = "Name" - case overview = "Overview" - case startDate = "StartDate" - case endDate = "EndDate" - case serviceName = "ServiceName" - case priority = "Priority" - case prePaddingSeconds = "PrePaddingSeconds" - case postPaddingSeconds = "PostPaddingSeconds" - case isPrePaddingRequired = "IsPrePaddingRequired" - case parentBackdropItemId = "ParentBackdropItemId" - case parentBackdropImageTags = "ParentBackdropImageTags" - case isPostPaddingRequired = "IsPostPaddingRequired" - case keepUntil = "KeepUntil" - case status = "Status" - case seriesTimerId = "SeriesTimerId" - case externalSeriesTimerId = "ExternalSeriesTimerId" - case runTimeTicks = "RunTimeTicks" - case programInfo = "ProgramInfo" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/TimersTimerIdBody2.swift b/JellyfinPlayer/Swaggers/Models/TimersTimerIdBody2.swift deleted file mode 100644 index 018dfead..00000000 --- a/JellyfinPlayer/Swaggers/Models/TimersTimerIdBody2.swift +++ /dev/null @@ -1,131 +0,0 @@ -// -// TimersTimerIdBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** New timer info. */ - -public struct TimersTimerIdBody2: Codable { - - /** Id of the recording. */ - public var _id: String? - public var type: String? - /** Gets or sets the server identifier. */ - public var serverId: String? - /** Gets or sets the external identifier. */ - public var externalId: String? - /** ChannelId of the recording. */ - public var channelId: UUID? - /** Gets or sets the external channel identifier. */ - public var externalChannelId: String? - /** ChannelName of the recording. */ - public var channelName: String? - public var channelPrimaryImageTag: String? - /** Gets or sets the program identifier. */ - public var programId: String? - /** Gets or sets the external program identifier. */ - public var externalProgramId: String? - /** Name of the recording. */ - public var name: String? - /** Description of the recording. */ - public var overview: String? - /** The start date of the recording, in UTC. */ - public var startDate: Date? - /** The end date of the recording, in UTC. */ - public var endDate: Date? - /** Gets or sets the name of the service. */ - public var serviceName: String? - /** Gets or sets the priority. */ - public var priority: Int? - /** Gets or sets the pre padding seconds. */ - public var prePaddingSeconds: Int? - /** Gets or sets the post padding seconds. */ - public var postPaddingSeconds: Int? - /** Gets or sets a value indicating whether this instance is pre padding required. */ - public var isPrePaddingRequired: Bool? - /** If the item does not have any backdrops, this will hold the Id of the Parent that has one. */ - public var parentBackdropItemId: String? - /** Gets or sets the parent backdrop image tags. */ - public var parentBackdropImageTags: [String]? - /** Gets or sets a value indicating whether this instance is post padding required. */ - public var isPostPaddingRequired: Bool? - public var keepUntil: Any? - /** Gets or sets the status. */ - public var status: Any? - /** Gets or sets the series timer identifier. */ - public var seriesTimerId: String? - /** Gets or sets the external series timer identifier. */ - public var externalSeriesTimerId: String? - /** Gets or sets the run time ticks. */ - public var runTimeTicks: Int64? - /** Gets or sets the program information. */ - public var programInfo: Any? - - public init(_id: String? = nil, type: String? = nil, serverId: String? = nil, externalId: String? = nil, channelId: UUID? = nil, externalChannelId: String? = nil, channelName: String? = nil, channelPrimaryImageTag: String? = nil, programId: String? = nil, externalProgramId: String? = nil, name: String? = nil, overview: String? = nil, startDate: Date? = nil, endDate: Date? = nil, serviceName: String? = nil, priority: Int? = nil, prePaddingSeconds: Int? = nil, postPaddingSeconds: Int? = nil, isPrePaddingRequired: Bool? = nil, parentBackdropItemId: String? = nil, parentBackdropImageTags: [String]? = nil, isPostPaddingRequired: Bool? = nil, keepUntil: Any? = nil, status: Any? = nil, seriesTimerId: String? = nil, externalSeriesTimerId: String? = nil, runTimeTicks: Int64? = nil, programInfo: Any? = nil) { - self._id = _id - self.type = type - self.serverId = serverId - self.externalId = externalId - self.channelId = channelId - self.externalChannelId = externalChannelId - self.channelName = channelName - self.channelPrimaryImageTag = channelPrimaryImageTag - self.programId = programId - self.externalProgramId = externalProgramId - self.name = name - self.overview = overview - self.startDate = startDate - self.endDate = endDate - self.serviceName = serviceName - self.priority = priority - self.prePaddingSeconds = prePaddingSeconds - self.postPaddingSeconds = postPaddingSeconds - self.isPrePaddingRequired = isPrePaddingRequired - self.parentBackdropItemId = parentBackdropItemId - self.parentBackdropImageTags = parentBackdropImageTags - self.isPostPaddingRequired = isPostPaddingRequired - self.keepUntil = keepUntil - self.status = status - self.seriesTimerId = seriesTimerId - self.externalSeriesTimerId = externalSeriesTimerId - self.runTimeTicks = runTimeTicks - self.programInfo = programInfo - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case type = "Type" - case serverId = "ServerId" - case externalId = "ExternalId" - case channelId = "ChannelId" - case externalChannelId = "ExternalChannelId" - case channelName = "ChannelName" - case channelPrimaryImageTag = "ChannelPrimaryImageTag" - case programId = "ProgramId" - case externalProgramId = "ExternalProgramId" - case name = "Name" - case overview = "Overview" - case startDate = "StartDate" - case endDate = "EndDate" - case serviceName = "ServiceName" - case priority = "Priority" - case prePaddingSeconds = "PrePaddingSeconds" - case postPaddingSeconds = "PostPaddingSeconds" - case isPrePaddingRequired = "IsPrePaddingRequired" - case parentBackdropItemId = "ParentBackdropItemId" - case parentBackdropImageTags = "ParentBackdropImageTags" - case isPostPaddingRequired = "IsPostPaddingRequired" - case keepUntil = "KeepUntil" - case status = "Status" - case seriesTimerId = "SeriesTimerId" - case externalSeriesTimerId = "ExternalSeriesTimerId" - case runTimeTicks = "RunTimeTicks" - case programInfo = "ProgramInfo" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/TrailerInfo.swift b/JellyfinPlayer/Swaggers/Models/TrailerInfo.swift deleted file mode 100644 index 289ba9f4..00000000 --- a/JellyfinPlayer/Swaggers/Models/TrailerInfo.swift +++ /dev/null @@ -1,57 +0,0 @@ -// -// TrailerInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct TrailerInfo: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the path. */ - public var path: String? - /** Gets or sets the metadata language. */ - public var metadataLanguage: String? - /** Gets or sets the metadata country code. */ - public var metadataCountryCode: String? - /** Gets or sets the provider ids. */ - public var providerIds: [String:String]? - /** Gets or sets the year. */ - public var year: Int? - public var indexNumber: Int? - public var parentIndexNumber: Int? - public var premiereDate: Date? - public var isAutomated: Bool? - - public init(name: String? = nil, path: String? = nil, metadataLanguage: String? = nil, metadataCountryCode: String? = nil, providerIds: [String:String]? = nil, year: Int? = nil, indexNumber: Int? = nil, parentIndexNumber: Int? = nil, premiereDate: Date? = nil, isAutomated: Bool? = nil) { - self.name = name - self.path = path - self.metadataLanguage = metadataLanguage - self.metadataCountryCode = metadataCountryCode - self.providerIds = providerIds - self.year = year - self.indexNumber = indexNumber - self.parentIndexNumber = parentIndexNumber - self.premiereDate = premiereDate - self.isAutomated = isAutomated - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case path = "Path" - case metadataLanguage = "MetadataLanguage" - case metadataCountryCode = "MetadataCountryCode" - case providerIds = "ProviderIds" - case year = "Year" - case indexNumber = "IndexNumber" - case parentIndexNumber = "ParentIndexNumber" - case premiereDate = "PremiereDate" - case isAutomated = "IsAutomated" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/TrailerInfoRemoteSearchQuery.swift b/JellyfinPlayer/Swaggers/Models/TrailerInfoRemoteSearchQuery.swift deleted file mode 100644 index 0d861baa..00000000 --- a/JellyfinPlayer/Swaggers/Models/TrailerInfoRemoteSearchQuery.swift +++ /dev/null @@ -1,35 +0,0 @@ -// -// TrailerInfoRemoteSearchQuery.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct TrailerInfoRemoteSearchQuery: Codable { - - public var searchInfo: AllOfTrailerInfoRemoteSearchQuerySearchInfo? - public var itemId: UUID? - /** Will only search within the given provider when set. */ - public var searchProviderName: String? - /** Gets or sets a value indicating whether disabled providers should be included. */ - public var includeDisabledProviders: Bool? - - public init(searchInfo: AllOfTrailerInfoRemoteSearchQuerySearchInfo? = nil, itemId: UUID? = nil, searchProviderName: String? = nil, includeDisabledProviders: Bool? = nil) { - self.searchInfo = searchInfo - self.itemId = itemId - self.searchProviderName = searchProviderName - self.includeDisabledProviders = includeDisabledProviders - } - - public enum CodingKeys: String, CodingKey { - case searchInfo = "SearchInfo" - case itemId = "ItemId" - case searchProviderName = "SearchProviderName" - case includeDisabledProviders = "IncludeDisabledProviders" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/TranscodeReason.swift b/JellyfinPlayer/Swaggers/Models/TranscodeReason.swift deleted file mode 100644 index d613ed8e..00000000 --- a/JellyfinPlayer/Swaggers/Models/TranscodeReason.swift +++ /dev/null @@ -1,35 +0,0 @@ -// -// TranscodeReason.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum TranscodeReason: String, Codable { - case containerNotSupported = "ContainerNotSupported" - case videoCodecNotSupported = "VideoCodecNotSupported" - case audioCodecNotSupported = "AudioCodecNotSupported" - case containerBitrateExceedsLimit = "ContainerBitrateExceedsLimit" - case audioBitrateNotSupported = "AudioBitrateNotSupported" - case audioChannelsNotSupported = "AudioChannelsNotSupported" - case videoResolutionNotSupported = "VideoResolutionNotSupported" - case unknownVideoStreamInfo = "UnknownVideoStreamInfo" - case unknownAudioStreamInfo = "UnknownAudioStreamInfo" - case audioProfileNotSupported = "AudioProfileNotSupported" - case audioSampleRateNotSupported = "AudioSampleRateNotSupported" - case anamorphicVideoNotSupported = "AnamorphicVideoNotSupported" - case interlacedVideoNotSupported = "InterlacedVideoNotSupported" - case secondaryAudioNotSupported = "SecondaryAudioNotSupported" - case refFramesNotSupported = "RefFramesNotSupported" - case videoBitDepthNotSupported = "VideoBitDepthNotSupported" - case videoBitrateNotSupported = "VideoBitrateNotSupported" - case videoFramerateNotSupported = "VideoFramerateNotSupported" - case videoLevelNotSupported = "VideoLevelNotSupported" - case videoProfileNotSupported = "VideoProfileNotSupported" - case audioBitDepthNotSupported = "AudioBitDepthNotSupported" - case subtitleCodecNotSupported = "SubtitleCodecNotSupported" - case directPlayError = "DirectPlayError" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/TranscodeSeekInfo.swift b/JellyfinPlayer/Swaggers/Models/TranscodeSeekInfo.swift deleted file mode 100644 index 98a84980..00000000 --- a/JellyfinPlayer/Swaggers/Models/TranscodeSeekInfo.swift +++ /dev/null @@ -1,14 +0,0 @@ -// -// TranscodeSeekInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum TranscodeSeekInfo: String, Codable { - case auto = "Auto" - case bytes = "Bytes" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/TranscodingInfo.swift b/JellyfinPlayer/Swaggers/Models/TranscodingInfo.swift deleted file mode 100644 index c4b18bd9..00000000 --- a/JellyfinPlayer/Swaggers/Models/TranscodingInfo.swift +++ /dev/null @@ -1,57 +0,0 @@ -// -// TranscodingInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct TranscodingInfo: Codable { - - public var audioCodec: String? - public var videoCodec: String? - public var container: String? - public var isVideoDirect: Bool? - public var isAudioDirect: Bool? - public var bitrate: Int? - public var framerate: Float? - public var completionPercentage: Double? - public var width: Int? - public var height: Int? - public var audioChannels: Int? - public var transcodeReasons: [TranscodeReason]? - - public init(audioCodec: String? = nil, videoCodec: String? = nil, container: String? = nil, isVideoDirect: Bool? = nil, isAudioDirect: Bool? = nil, bitrate: Int? = nil, framerate: Float? = nil, completionPercentage: Double? = nil, width: Int? = nil, height: Int? = nil, audioChannels: Int? = nil, transcodeReasons: [TranscodeReason]? = nil) { - self.audioCodec = audioCodec - self.videoCodec = videoCodec - self.container = container - self.isVideoDirect = isVideoDirect - self.isAudioDirect = isAudioDirect - self.bitrate = bitrate - self.framerate = framerate - self.completionPercentage = completionPercentage - self.width = width - self.height = height - self.audioChannels = audioChannels - self.transcodeReasons = transcodeReasons - } - - public enum CodingKeys: String, CodingKey { - case audioCodec = "AudioCodec" - case videoCodec = "VideoCodec" - case container = "Container" - case isVideoDirect = "IsVideoDirect" - case isAudioDirect = "IsAudioDirect" - case bitrate = "Bitrate" - case framerate = "Framerate" - case completionPercentage = "CompletionPercentage" - case width = "Width" - case height = "Height" - case audioChannels = "AudioChannels" - case transcodeReasons = "TranscodeReasons" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/TranscodingProfile.swift b/JellyfinPlayer/Swaggers/Models/TranscodingProfile.swift deleted file mode 100644 index 027d47ab..00000000 --- a/JellyfinPlayer/Swaggers/Models/TranscodingProfile.swift +++ /dev/null @@ -1,66 +0,0 @@ -// -// TranscodingProfile.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct TranscodingProfile: Codable { - - public var container: String? - public var type: AllOfTranscodingProfileModelType? - public var videoCodec: String? - public var audioCodec: String? - public var _protocol: String? - public var estimateContentLength: Bool? - public var enableMpegtsM2TsMode: Bool? - public var transcodeSeekInfo: AllOfTranscodingProfileTranscodeSeekInfo? - public var copyTimestamps: Bool? - public var context: AllOfTranscodingProfileContext? - public var enableSubtitlesInManifest: Bool? - public var maxAudioChannels: String? - public var minSegments: Int? - public var segmentLength: Int? - public var breakOnNonKeyFrames: Bool? - - public init(container: String? = nil, type: AllOfTranscodingProfileModelType? = nil, videoCodec: String? = nil, audioCodec: String? = nil, _protocol: String? = nil, estimateContentLength: Bool? = nil, enableMpegtsM2TsMode: Bool? = nil, transcodeSeekInfo: AllOfTranscodingProfileTranscodeSeekInfo? = nil, copyTimestamps: Bool? = nil, context: AllOfTranscodingProfileContext? = nil, enableSubtitlesInManifest: Bool? = nil, maxAudioChannels: String? = nil, minSegments: Int? = nil, segmentLength: Int? = nil, breakOnNonKeyFrames: Bool? = nil) { - self.container = container - self.type = type - self.videoCodec = videoCodec - self.audioCodec = audioCodec - self._protocol = _protocol - self.estimateContentLength = estimateContentLength - self.enableMpegtsM2TsMode = enableMpegtsM2TsMode - self.transcodeSeekInfo = transcodeSeekInfo - self.copyTimestamps = copyTimestamps - self.context = context - self.enableSubtitlesInManifest = enableSubtitlesInManifest - self.maxAudioChannels = maxAudioChannels - self.minSegments = minSegments - self.segmentLength = segmentLength - self.breakOnNonKeyFrames = breakOnNonKeyFrames - } - - public enum CodingKeys: String, CodingKey { - case container = "Container" - case type = "Type" - case videoCodec = "VideoCodec" - case audioCodec = "AudioCodec" - case _protocol = "Protocol" - case estimateContentLength = "EstimateContentLength" - case enableMpegtsM2TsMode = "EnableMpegtsM2TsMode" - case transcodeSeekInfo = "TranscodeSeekInfo" - case copyTimestamps = "CopyTimestamps" - case context = "Context" - case enableSubtitlesInManifest = "EnableSubtitlesInManifest" - case maxAudioChannels = "MaxAudioChannels" - case minSegments = "MinSegments" - case segmentLength = "SegmentLength" - case breakOnNonKeyFrames = "BreakOnNonKeyFrames" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/TransportStreamTimestamp.swift b/JellyfinPlayer/Swaggers/Models/TransportStreamTimestamp.swift deleted file mode 100644 index 0ab84d12..00000000 --- a/JellyfinPlayer/Swaggers/Models/TransportStreamTimestamp.swift +++ /dev/null @@ -1,15 +0,0 @@ -// -// TransportStreamTimestamp.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum TransportStreamTimestamp: String, Codable { - case _none = "None" - case zero = "Zero" - case valid = "Valid" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/TunerChannelMapping.swift b/JellyfinPlayer/Swaggers/Models/TunerChannelMapping.swift deleted file mode 100644 index 2f9a5d0f..00000000 --- a/JellyfinPlayer/Swaggers/Models/TunerChannelMapping.swift +++ /dev/null @@ -1,33 +0,0 @@ -// -// TunerChannelMapping.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct TunerChannelMapping: Codable { - - public var name: String? - public var providerChannelName: String? - public var providerChannelId: String? - public var _id: String? - - public init(name: String? = nil, providerChannelName: String? = nil, providerChannelId: String? = nil, _id: String? = nil) { - self.name = name - self.providerChannelName = providerChannelName - self.providerChannelId = providerChannelId - self._id = _id - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case providerChannelName = "ProviderChannelName" - case providerChannelId = "ProviderChannelId" - case _id = "Id" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/TunerHostInfo.swift b/JellyfinPlayer/Swaggers/Models/TunerHostInfo.swift deleted file mode 100644 index 2a3179a8..00000000 --- a/JellyfinPlayer/Swaggers/Models/TunerHostInfo.swift +++ /dev/null @@ -1,54 +0,0 @@ -// -// TunerHostInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct TunerHostInfo: Codable { - - public var _id: String? - public var url: String? - public var type: String? - public var deviceId: String? - public var friendlyName: String? - public var importFavoritesOnly: Bool? - public var allowHWTranscoding: Bool? - public var enableStreamLooping: Bool? - public var source: String? - public var tunerCount: Int? - public var userAgent: String? - - public init(_id: String? = nil, url: String? = nil, type: String? = nil, deviceId: String? = nil, friendlyName: String? = nil, importFavoritesOnly: Bool? = nil, allowHWTranscoding: Bool? = nil, enableStreamLooping: Bool? = nil, source: String? = nil, tunerCount: Int? = nil, userAgent: String? = nil) { - self._id = _id - self.url = url - self.type = type - self.deviceId = deviceId - self.friendlyName = friendlyName - self.importFavoritesOnly = importFavoritesOnly - self.allowHWTranscoding = allowHWTranscoding - self.enableStreamLooping = enableStreamLooping - self.source = source - self.tunerCount = tunerCount - self.userAgent = userAgent - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case url = "Url" - case type = "Type" - case deviceId = "DeviceId" - case friendlyName = "FriendlyName" - case importFavoritesOnly = "ImportFavoritesOnly" - case allowHWTranscoding = "AllowHWTranscoding" - case enableStreamLooping = "EnableStreamLooping" - case source = "Source" - case tunerCount = "TunerCount" - case userAgent = "UserAgent" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/Type1.swift b/JellyfinPlayer/Swaggers/Models/Type1.swift deleted file mode 100644 index add57cde..00000000 --- a/JellyfinPlayer/Swaggers/Models/Type1.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Type1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The image type. */ - -public struct Type1: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/Type2.swift b/JellyfinPlayer/Swaggers/Models/Type2.swift deleted file mode 100644 index 27e057ad..00000000 --- a/JellyfinPlayer/Swaggers/Models/Type2.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// Type2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The image type. */ - -public struct Type2: Codable { - - - - -} diff --git a/JellyfinPlayer/Swaggers/Models/TypeOptions.swift b/JellyfinPlayer/Swaggers/Models/TypeOptions.swift deleted file mode 100644 index fa9d4fa2..00000000 --- a/JellyfinPlayer/Swaggers/Models/TypeOptions.swift +++ /dev/null @@ -1,39 +0,0 @@ -// -// TypeOptions.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct TypeOptions: Codable { - - public var type: String? - public var metadataFetchers: [String]? - public var metadataFetcherOrder: [String]? - public var imageFetchers: [String]? - public var imageFetcherOrder: [String]? - public var imageOptions: [ImageOption]? - - public init(type: String? = nil, metadataFetchers: [String]? = nil, metadataFetcherOrder: [String]? = nil, imageFetchers: [String]? = nil, imageFetcherOrder: [String]? = nil, imageOptions: [ImageOption]? = nil) { - self.type = type - self.metadataFetchers = metadataFetchers - self.metadataFetcherOrder = metadataFetcherOrder - self.imageFetchers = imageFetchers - self.imageFetcherOrder = imageFetcherOrder - self.imageOptions = imageOptions - } - - public enum CodingKeys: String, CodingKey { - case type = "Type" - case metadataFetchers = "MetadataFetchers" - case metadataFetcherOrder = "MetadataFetcherOrder" - case imageFetchers = "ImageFetchers" - case imageFetcherOrder = "ImageFetcherOrder" - case imageOptions = "ImageOptions" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UnratedItem.swift b/JellyfinPlayer/Swaggers/Models/UnratedItem.swift deleted file mode 100644 index b1572f51..00000000 --- a/JellyfinPlayer/Swaggers/Models/UnratedItem.swift +++ /dev/null @@ -1,22 +0,0 @@ -// -// UnratedItem.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** An enum representing an unrated item. */ -public enum UnratedItem: String, Codable { - case movie = "Movie" - case trailer = "Trailer" - case series = "Series" - case music = "Music" - case book = "Book" - case liveTvChannel = "LiveTvChannel" - case liveTvProgram = "LiveTvProgram" - case channelContent = "ChannelContent" - case other = "Other" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/UpdateLibraryOptionsDto.swift b/JellyfinPlayer/Swaggers/Models/UpdateLibraryOptionsDto.swift deleted file mode 100644 index 6bb98f22..00000000 --- a/JellyfinPlayer/Swaggers/Models/UpdateLibraryOptionsDto.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// UpdateLibraryOptionsDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Update library options dto. */ - -public struct UpdateLibraryOptionsDto: Codable { - - /** Gets or sets the library item id. */ - public var _id: UUID? - /** Gets or sets library options. */ - public var libraryOptions: AllOfUpdateLibraryOptionsDtoLibraryOptions? - - public init(_id: UUID? = nil, libraryOptions: AllOfUpdateLibraryOptionsDtoLibraryOptions? = nil) { - self._id = _id - self.libraryOptions = libraryOptions - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case libraryOptions = "LibraryOptions" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UpdateMediaPathRequestDto.swift b/JellyfinPlayer/Swaggers/Models/UpdateMediaPathRequestDto.swift deleted file mode 100644 index 65ca0ed6..00000000 --- a/JellyfinPlayer/Swaggers/Models/UpdateMediaPathRequestDto.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// UpdateMediaPathRequestDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Update library options dto. */ - -public struct UpdateMediaPathRequestDto: Codable { - - /** Gets or sets the library name. */ - public var name: String - /** Gets or sets library folder path information. */ - public var pathInfo: AllOfUpdateMediaPathRequestDtoPathInfo - - public init(name: String, pathInfo: AllOfUpdateMediaPathRequestDtoPathInfo) { - self.name = name - self.pathInfo = pathInfo - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case pathInfo = "PathInfo" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UpdateUserEasyPassword.swift b/JellyfinPlayer/Swaggers/Models/UpdateUserEasyPassword.swift deleted file mode 100644 index adfc5a5c..00000000 --- a/JellyfinPlayer/Swaggers/Models/UpdateUserEasyPassword.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// UpdateUserEasyPassword.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The update user easy password request body. */ - -public struct UpdateUserEasyPassword: Codable { - - /** Gets or sets the new sha1-hashed password. */ - public var newPassword: String? - /** Gets or sets the new password. */ - public var newPw: String? - /** Gets or sets a value indicating whether to reset the password. */ - public var resetPassword: Bool? - - public init(newPassword: String? = nil, newPw: String? = nil, resetPassword: Bool? = nil) { - self.newPassword = newPassword - self.newPw = newPw - self.resetPassword = resetPassword - } - - public enum CodingKeys: String, CodingKey { - case newPassword = "NewPassword" - case newPw = "NewPw" - case resetPassword = "ResetPassword" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UpdateUserPassword.swift b/JellyfinPlayer/Swaggers/Models/UpdateUserPassword.swift deleted file mode 100644 index 81646c68..00000000 --- a/JellyfinPlayer/Swaggers/Models/UpdateUserPassword.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// UpdateUserPassword.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The update user password request body. */ - -public struct UpdateUserPassword: Codable { - - /** Gets or sets the current sha1-hashed password. */ - public var currentPassword: String? - /** Gets or sets the current plain text password. */ - public var currentPw: String? - /** Gets or sets the new plain text password. */ - public var newPw: String? - /** Gets or sets a value indicating whether to reset the password. */ - public var resetPassword: Bool? - - public init(currentPassword: String? = nil, currentPw: String? = nil, newPw: String? = nil, resetPassword: Bool? = nil) { - self.currentPassword = currentPassword - self.currentPw = currentPw - self.newPw = newPw - self.resetPassword = resetPassword - } - - public enum CodingKeys: String, CodingKey { - case currentPassword = "CurrentPassword" - case currentPw = "CurrentPw" - case newPw = "NewPw" - case resetPassword = "ResetPassword" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UploadSubtitleDto.swift b/JellyfinPlayer/Swaggers/Models/UploadSubtitleDto.swift deleted file mode 100644 index 274b58bd..00000000 --- a/JellyfinPlayer/Swaggers/Models/UploadSubtitleDto.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// UploadSubtitleDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Upload subtitles dto. */ - -public struct UploadSubtitleDto: Codable { - - /** Gets or sets the subtitle language. */ - public var language: String - /** Gets or sets the subtitle format. */ - public var format: String - /** Gets or sets a value indicating whether the subtitle is forced. */ - public var isForced: Bool - /** Gets or sets the subtitle data. */ - public var data: String - - public init(language: String, format: String, isForced: Bool, data: String) { - self.language = language - self.format = format - self.isForced = isForced - self.data = data - } - - public enum CodingKeys: String, CodingKey { - case language = "Language" - case format = "Format" - case isForced = "IsForced" - case data = "Data" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UserConfiguration.swift b/JellyfinPlayer/Swaggers/Models/UserConfiguration.swift deleted file mode 100644 index f873f692..00000000 --- a/JellyfinPlayer/Swaggers/Models/UserConfiguration.swift +++ /dev/null @@ -1,71 +0,0 @@ -// -// UserConfiguration.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class UserConfiguration. */ - -public struct UserConfiguration: Codable { - - /** Gets or sets the audio language preference. */ - public var audioLanguagePreference: String? - /** Gets or sets a value indicating whether [play default audio track]. */ - public var playDefaultAudioTrack: Bool? - /** Gets or sets the subtitle language preference. */ - public var subtitleLanguagePreference: String? - public var displayMissingEpisodes: Bool? - public var groupedFolders: [String]? - /** An enum representing a subtitle playback mode. */ - public var subtitleMode: AllOfUserConfigurationSubtitleMode? - public var displayCollectionsView: Bool? - public var enableLocalPassword: Bool? - public var orderedViews: [String]? - public var latestItemsExcludes: [String]? - public var myMediaExcludes: [String]? - public var hidePlayedInLatest: Bool? - public var rememberAudioSelections: Bool? - public var rememberSubtitleSelections: Bool? - public var enableNextEpisodeAutoPlay: Bool? - - public init(audioLanguagePreference: String? = nil, playDefaultAudioTrack: Bool? = nil, subtitleLanguagePreference: String? = nil, displayMissingEpisodes: Bool? = nil, groupedFolders: [String]? = nil, subtitleMode: AllOfUserConfigurationSubtitleMode? = nil, displayCollectionsView: Bool? = nil, enableLocalPassword: Bool? = nil, orderedViews: [String]? = nil, latestItemsExcludes: [String]? = nil, myMediaExcludes: [String]? = nil, hidePlayedInLatest: Bool? = nil, rememberAudioSelections: Bool? = nil, rememberSubtitleSelections: Bool? = nil, enableNextEpisodeAutoPlay: Bool? = nil) { - self.audioLanguagePreference = audioLanguagePreference - self.playDefaultAudioTrack = playDefaultAudioTrack - self.subtitleLanguagePreference = subtitleLanguagePreference - self.displayMissingEpisodes = displayMissingEpisodes - self.groupedFolders = groupedFolders - self.subtitleMode = subtitleMode - self.displayCollectionsView = displayCollectionsView - self.enableLocalPassword = enableLocalPassword - self.orderedViews = orderedViews - self.latestItemsExcludes = latestItemsExcludes - self.myMediaExcludes = myMediaExcludes - self.hidePlayedInLatest = hidePlayedInLatest - self.rememberAudioSelections = rememberAudioSelections - self.rememberSubtitleSelections = rememberSubtitleSelections - self.enableNextEpisodeAutoPlay = enableNextEpisodeAutoPlay - } - - public enum CodingKeys: String, CodingKey { - case audioLanguagePreference = "AudioLanguagePreference" - case playDefaultAudioTrack = "PlayDefaultAudioTrack" - case subtitleLanguagePreference = "SubtitleLanguagePreference" - case displayMissingEpisodes = "DisplayMissingEpisodes" - case groupedFolders = "GroupedFolders" - case subtitleMode = "SubtitleMode" - case displayCollectionsView = "DisplayCollectionsView" - case enableLocalPassword = "EnableLocalPassword" - case orderedViews = "OrderedViews" - case latestItemsExcludes = "LatestItemsExcludes" - case myMediaExcludes = "MyMediaExcludes" - case hidePlayedInLatest = "HidePlayedInLatest" - case rememberAudioSelections = "RememberAudioSelections" - case rememberSubtitleSelections = "RememberSubtitleSelections" - case enableNextEpisodeAutoPlay = "EnableNextEpisodeAutoPlay" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UserDto.swift b/JellyfinPlayer/Swaggers/Models/UserDto.swift deleted file mode 100644 index 1dbedacb..00000000 --- a/JellyfinPlayer/Swaggers/Models/UserDto.swift +++ /dev/null @@ -1,78 +0,0 @@ -// -// UserDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class UserDto. */ - -public struct UserDto: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the server identifier. */ - public var serverId: String? - /** Gets or sets the name of the server. This is not used by the server and is for client-side usage only. */ - public var serverName: String? - /** Gets or sets the id. */ - public var _id: UUID? - /** Gets or sets the primary image tag. */ - public var primaryImageTag: String? - /** Gets or sets a value indicating whether this instance has password. */ - public var hasPassword: Bool? - /** Gets or sets a value indicating whether this instance has configured password. */ - public var hasConfiguredPassword: Bool? - /** Gets or sets a value indicating whether this instance has configured easy password. */ - public var hasConfiguredEasyPassword: Bool? - /** Gets or sets whether async login is enabled or not. */ - public var enableAutoLogin: Bool? - /** Gets or sets the last login date. */ - public var lastLoginDate: Date? - /** Gets or sets the last activity date. */ - public var lastActivityDate: Date? - /** Gets or sets the configuration. */ - public var configuration: AllOfUserDtoConfiguration? - /** Gets or sets the policy. */ - public var policy: AllOfUserDtoPolicy? - /** Gets or sets the primary image aspect ratio. */ - public var primaryImageAspectRatio: Double? - - public init(name: String? = nil, serverId: String? = nil, serverName: String? = nil, _id: UUID? = nil, primaryImageTag: String? = nil, hasPassword: Bool? = nil, hasConfiguredPassword: Bool? = nil, hasConfiguredEasyPassword: Bool? = nil, enableAutoLogin: Bool? = nil, lastLoginDate: Date? = nil, lastActivityDate: Date? = nil, configuration: AllOfUserDtoConfiguration? = nil, policy: AllOfUserDtoPolicy? = nil, primaryImageAspectRatio: Double? = nil) { - self.name = name - self.serverId = serverId - self.serverName = serverName - self._id = _id - self.primaryImageTag = primaryImageTag - self.hasPassword = hasPassword - self.hasConfiguredPassword = hasConfiguredPassword - self.hasConfiguredEasyPassword = hasConfiguredEasyPassword - self.enableAutoLogin = enableAutoLogin - self.lastLoginDate = lastLoginDate - self.lastActivityDate = lastActivityDate - self.configuration = configuration - self.policy = policy - self.primaryImageAspectRatio = primaryImageAspectRatio - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case serverId = "ServerId" - case serverName = "ServerName" - case _id = "Id" - case primaryImageTag = "PrimaryImageTag" - case hasPassword = "HasPassword" - case hasConfiguredPassword = "HasConfiguredPassword" - case hasConfiguredEasyPassword = "HasConfiguredEasyPassword" - case enableAutoLogin = "EnableAutoLogin" - case lastLoginDate = "LastLoginDate" - case lastActivityDate = "LastActivityDate" - case configuration = "Configuration" - case policy = "Policy" - case primaryImageAspectRatio = "PrimaryImageAspectRatio" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UserIdConfigurationBody.swift b/JellyfinPlayer/Swaggers/Models/UserIdConfigurationBody.swift deleted file mode 100644 index 0b888e86..00000000 --- a/JellyfinPlayer/Swaggers/Models/UserIdConfigurationBody.swift +++ /dev/null @@ -1,71 +0,0 @@ -// -// UserIdConfigurationBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The new user configuration. */ - -public struct UserIdConfigurationBody: Codable { - - /** Gets or sets the audio language preference. */ - public var audioLanguagePreference: String? - /** Gets or sets a value indicating whether [play default audio track]. */ - public var playDefaultAudioTrack: Bool? - /** Gets or sets the subtitle language preference. */ - public var subtitleLanguagePreference: String? - public var displayMissingEpisodes: Bool? - public var groupedFolders: [String]? - /** An enum representing a subtitle playback mode. */ - public var subtitleMode: Any? - public var displayCollectionsView: Bool? - public var enableLocalPassword: Bool? - public var orderedViews: [String]? - public var latestItemsExcludes: [String]? - public var myMediaExcludes: [String]? - public var hidePlayedInLatest: Bool? - public var rememberAudioSelections: Bool? - public var rememberSubtitleSelections: Bool? - public var enableNextEpisodeAutoPlay: Bool? - - public init(audioLanguagePreference: String? = nil, playDefaultAudioTrack: Bool? = nil, subtitleLanguagePreference: String? = nil, displayMissingEpisodes: Bool? = nil, groupedFolders: [String]? = nil, subtitleMode: Any? = nil, displayCollectionsView: Bool? = nil, enableLocalPassword: Bool? = nil, orderedViews: [String]? = nil, latestItemsExcludes: [String]? = nil, myMediaExcludes: [String]? = nil, hidePlayedInLatest: Bool? = nil, rememberAudioSelections: Bool? = nil, rememberSubtitleSelections: Bool? = nil, enableNextEpisodeAutoPlay: Bool? = nil) { - self.audioLanguagePreference = audioLanguagePreference - self.playDefaultAudioTrack = playDefaultAudioTrack - self.subtitleLanguagePreference = subtitleLanguagePreference - self.displayMissingEpisodes = displayMissingEpisodes - self.groupedFolders = groupedFolders - self.subtitleMode = subtitleMode - self.displayCollectionsView = displayCollectionsView - self.enableLocalPassword = enableLocalPassword - self.orderedViews = orderedViews - self.latestItemsExcludes = latestItemsExcludes - self.myMediaExcludes = myMediaExcludes - self.hidePlayedInLatest = hidePlayedInLatest - self.rememberAudioSelections = rememberAudioSelections - self.rememberSubtitleSelections = rememberSubtitleSelections - self.enableNextEpisodeAutoPlay = enableNextEpisodeAutoPlay - } - - public enum CodingKeys: String, CodingKey { - case audioLanguagePreference = "AudioLanguagePreference" - case playDefaultAudioTrack = "PlayDefaultAudioTrack" - case subtitleLanguagePreference = "SubtitleLanguagePreference" - case displayMissingEpisodes = "DisplayMissingEpisodes" - case groupedFolders = "GroupedFolders" - case subtitleMode = "SubtitleMode" - case displayCollectionsView = "DisplayCollectionsView" - case enableLocalPassword = "EnableLocalPassword" - case orderedViews = "OrderedViews" - case latestItemsExcludes = "LatestItemsExcludes" - case myMediaExcludes = "MyMediaExcludes" - case hidePlayedInLatest = "HidePlayedInLatest" - case rememberAudioSelections = "RememberAudioSelections" - case rememberSubtitleSelections = "RememberSubtitleSelections" - case enableNextEpisodeAutoPlay = "EnableNextEpisodeAutoPlay" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UserIdConfigurationBody1.swift b/JellyfinPlayer/Swaggers/Models/UserIdConfigurationBody1.swift deleted file mode 100644 index df52fefa..00000000 --- a/JellyfinPlayer/Swaggers/Models/UserIdConfigurationBody1.swift +++ /dev/null @@ -1,71 +0,0 @@ -// -// UserIdConfigurationBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The new user configuration. */ - -public struct UserIdConfigurationBody1: Codable { - - /** Gets or sets the audio language preference. */ - public var audioLanguagePreference: String? - /** Gets or sets a value indicating whether [play default audio track]. */ - public var playDefaultAudioTrack: Bool? - /** Gets or sets the subtitle language preference. */ - public var subtitleLanguagePreference: String? - public var displayMissingEpisodes: Bool? - public var groupedFolders: [String]? - /** An enum representing a subtitle playback mode. */ - public var subtitleMode: Any? - public var displayCollectionsView: Bool? - public var enableLocalPassword: Bool? - public var orderedViews: [String]? - public var latestItemsExcludes: [String]? - public var myMediaExcludes: [String]? - public var hidePlayedInLatest: Bool? - public var rememberAudioSelections: Bool? - public var rememberSubtitleSelections: Bool? - public var enableNextEpisodeAutoPlay: Bool? - - public init(audioLanguagePreference: String? = nil, playDefaultAudioTrack: Bool? = nil, subtitleLanguagePreference: String? = nil, displayMissingEpisodes: Bool? = nil, groupedFolders: [String]? = nil, subtitleMode: Any? = nil, displayCollectionsView: Bool? = nil, enableLocalPassword: Bool? = nil, orderedViews: [String]? = nil, latestItemsExcludes: [String]? = nil, myMediaExcludes: [String]? = nil, hidePlayedInLatest: Bool? = nil, rememberAudioSelections: Bool? = nil, rememberSubtitleSelections: Bool? = nil, enableNextEpisodeAutoPlay: Bool? = nil) { - self.audioLanguagePreference = audioLanguagePreference - self.playDefaultAudioTrack = playDefaultAudioTrack - self.subtitleLanguagePreference = subtitleLanguagePreference - self.displayMissingEpisodes = displayMissingEpisodes - self.groupedFolders = groupedFolders - self.subtitleMode = subtitleMode - self.displayCollectionsView = displayCollectionsView - self.enableLocalPassword = enableLocalPassword - self.orderedViews = orderedViews - self.latestItemsExcludes = latestItemsExcludes - self.myMediaExcludes = myMediaExcludes - self.hidePlayedInLatest = hidePlayedInLatest - self.rememberAudioSelections = rememberAudioSelections - self.rememberSubtitleSelections = rememberSubtitleSelections - self.enableNextEpisodeAutoPlay = enableNextEpisodeAutoPlay - } - - public enum CodingKeys: String, CodingKey { - case audioLanguagePreference = "AudioLanguagePreference" - case playDefaultAudioTrack = "PlayDefaultAudioTrack" - case subtitleLanguagePreference = "SubtitleLanguagePreference" - case displayMissingEpisodes = "DisplayMissingEpisodes" - case groupedFolders = "GroupedFolders" - case subtitleMode = "SubtitleMode" - case displayCollectionsView = "DisplayCollectionsView" - case enableLocalPassword = "EnableLocalPassword" - case orderedViews = "OrderedViews" - case latestItemsExcludes = "LatestItemsExcludes" - case myMediaExcludes = "MyMediaExcludes" - case hidePlayedInLatest = "HidePlayedInLatest" - case rememberAudioSelections = "RememberAudioSelections" - case rememberSubtitleSelections = "RememberSubtitleSelections" - case enableNextEpisodeAutoPlay = "EnableNextEpisodeAutoPlay" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UserIdConfigurationBody2.swift b/JellyfinPlayer/Swaggers/Models/UserIdConfigurationBody2.swift deleted file mode 100644 index 8b938977..00000000 --- a/JellyfinPlayer/Swaggers/Models/UserIdConfigurationBody2.swift +++ /dev/null @@ -1,71 +0,0 @@ -// -// UserIdConfigurationBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The new user configuration. */ - -public struct UserIdConfigurationBody2: Codable { - - /** Gets or sets the audio language preference. */ - public var audioLanguagePreference: String? - /** Gets or sets a value indicating whether [play default audio track]. */ - public var playDefaultAudioTrack: Bool? - /** Gets or sets the subtitle language preference. */ - public var subtitleLanguagePreference: String? - public var displayMissingEpisodes: Bool? - public var groupedFolders: [String]? - /** An enum representing a subtitle playback mode. */ - public var subtitleMode: Any? - public var displayCollectionsView: Bool? - public var enableLocalPassword: Bool? - public var orderedViews: [String]? - public var latestItemsExcludes: [String]? - public var myMediaExcludes: [String]? - public var hidePlayedInLatest: Bool? - public var rememberAudioSelections: Bool? - public var rememberSubtitleSelections: Bool? - public var enableNextEpisodeAutoPlay: Bool? - - public init(audioLanguagePreference: String? = nil, playDefaultAudioTrack: Bool? = nil, subtitleLanguagePreference: String? = nil, displayMissingEpisodes: Bool? = nil, groupedFolders: [String]? = nil, subtitleMode: Any? = nil, displayCollectionsView: Bool? = nil, enableLocalPassword: Bool? = nil, orderedViews: [String]? = nil, latestItemsExcludes: [String]? = nil, myMediaExcludes: [String]? = nil, hidePlayedInLatest: Bool? = nil, rememberAudioSelections: Bool? = nil, rememberSubtitleSelections: Bool? = nil, enableNextEpisodeAutoPlay: Bool? = nil) { - self.audioLanguagePreference = audioLanguagePreference - self.playDefaultAudioTrack = playDefaultAudioTrack - self.subtitleLanguagePreference = subtitleLanguagePreference - self.displayMissingEpisodes = displayMissingEpisodes - self.groupedFolders = groupedFolders - self.subtitleMode = subtitleMode - self.displayCollectionsView = displayCollectionsView - self.enableLocalPassword = enableLocalPassword - self.orderedViews = orderedViews - self.latestItemsExcludes = latestItemsExcludes - self.myMediaExcludes = myMediaExcludes - self.hidePlayedInLatest = hidePlayedInLatest - self.rememberAudioSelections = rememberAudioSelections - self.rememberSubtitleSelections = rememberSubtitleSelections - self.enableNextEpisodeAutoPlay = enableNextEpisodeAutoPlay - } - - public enum CodingKeys: String, CodingKey { - case audioLanguagePreference = "AudioLanguagePreference" - case playDefaultAudioTrack = "PlayDefaultAudioTrack" - case subtitleLanguagePreference = "SubtitleLanguagePreference" - case displayMissingEpisodes = "DisplayMissingEpisodes" - case groupedFolders = "GroupedFolders" - case subtitleMode = "SubtitleMode" - case displayCollectionsView = "DisplayCollectionsView" - case enableLocalPassword = "EnableLocalPassword" - case orderedViews = "OrderedViews" - case latestItemsExcludes = "LatestItemsExcludes" - case myMediaExcludes = "MyMediaExcludes" - case hidePlayedInLatest = "HidePlayedInLatest" - case rememberAudioSelections = "RememberAudioSelections" - case rememberSubtitleSelections = "RememberSubtitleSelections" - case enableNextEpisodeAutoPlay = "EnableNextEpisodeAutoPlay" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UserIdEasyPasswordBody.swift b/JellyfinPlayer/Swaggers/Models/UserIdEasyPasswordBody.swift deleted file mode 100644 index e2b3ba60..00000000 --- a/JellyfinPlayer/Swaggers/Models/UserIdEasyPasswordBody.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// UserIdEasyPasswordBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The M:Jellyfin.Api.Controllers.UserController.UpdateUserEasyPassword(System.Guid,Jellyfin.Api.Models.UserDtos.UpdateUserEasyPassword) request. */ - -public struct UserIdEasyPasswordBody: Codable { - - /** Gets or sets the new sha1-hashed password. */ - public var newPassword: String? - /** Gets or sets the new password. */ - public var newPw: String? - /** Gets or sets a value indicating whether to reset the password. */ - public var resetPassword: Bool? - - public init(newPassword: String? = nil, newPw: String? = nil, resetPassword: Bool? = nil) { - self.newPassword = newPassword - self.newPw = newPw - self.resetPassword = resetPassword - } - - public enum CodingKeys: String, CodingKey { - case newPassword = "NewPassword" - case newPw = "NewPw" - case resetPassword = "ResetPassword" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UserIdEasyPasswordBody1.swift b/JellyfinPlayer/Swaggers/Models/UserIdEasyPasswordBody1.swift deleted file mode 100644 index e0868316..00000000 --- a/JellyfinPlayer/Swaggers/Models/UserIdEasyPasswordBody1.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// UserIdEasyPasswordBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The M:Jellyfin.Api.Controllers.UserController.UpdateUserEasyPassword(System.Guid,Jellyfin.Api.Models.UserDtos.UpdateUserEasyPassword) request. */ - -public struct UserIdEasyPasswordBody1: Codable { - - /** Gets or sets the new sha1-hashed password. */ - public var newPassword: String? - /** Gets or sets the new password. */ - public var newPw: String? - /** Gets or sets a value indicating whether to reset the password. */ - public var resetPassword: Bool? - - public init(newPassword: String? = nil, newPw: String? = nil, resetPassword: Bool? = nil) { - self.newPassword = newPassword - self.newPw = newPw - self.resetPassword = resetPassword - } - - public enum CodingKeys: String, CodingKey { - case newPassword = "NewPassword" - case newPw = "NewPw" - case resetPassword = "ResetPassword" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UserIdEasyPasswordBody2.swift b/JellyfinPlayer/Swaggers/Models/UserIdEasyPasswordBody2.swift deleted file mode 100644 index 6fc3fa52..00000000 --- a/JellyfinPlayer/Swaggers/Models/UserIdEasyPasswordBody2.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// UserIdEasyPasswordBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The M:Jellyfin.Api.Controllers.UserController.UpdateUserEasyPassword(System.Guid,Jellyfin.Api.Models.UserDtos.UpdateUserEasyPassword) request. */ - -public struct UserIdEasyPasswordBody2: Codable { - - /** Gets or sets the new sha1-hashed password. */ - public var newPassword: String? - /** Gets or sets the new password. */ - public var newPw: String? - /** Gets or sets a value indicating whether to reset the password. */ - public var resetPassword: Bool? - - public init(newPassword: String? = nil, newPw: String? = nil, resetPassword: Bool? = nil) { - self.newPassword = newPassword - self.newPw = newPw - self.resetPassword = resetPassword - } - - public enum CodingKeys: String, CodingKey { - case newPassword = "NewPassword" - case newPw = "NewPw" - case resetPassword = "ResetPassword" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UserIdPasswordBody.swift b/JellyfinPlayer/Swaggers/Models/UserIdPasswordBody.swift deleted file mode 100644 index 7f518a9c..00000000 --- a/JellyfinPlayer/Swaggers/Models/UserIdPasswordBody.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// UserIdPasswordBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The M:Jellyfin.Api.Controllers.UserController.UpdateUserPassword(System.Guid,Jellyfin.Api.Models.UserDtos.UpdateUserPassword) request. */ - -public struct UserIdPasswordBody: Codable { - - /** Gets or sets the current sha1-hashed password. */ - public var currentPassword: String? - /** Gets or sets the current plain text password. */ - public var currentPw: String? - /** Gets or sets the new plain text password. */ - public var newPw: String? - /** Gets or sets a value indicating whether to reset the password. */ - public var resetPassword: Bool? - - public init(currentPassword: String? = nil, currentPw: String? = nil, newPw: String? = nil, resetPassword: Bool? = nil) { - self.currentPassword = currentPassword - self.currentPw = currentPw - self.newPw = newPw - self.resetPassword = resetPassword - } - - public enum CodingKeys: String, CodingKey { - case currentPassword = "CurrentPassword" - case currentPw = "CurrentPw" - case newPw = "NewPw" - case resetPassword = "ResetPassword" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UserIdPasswordBody1.swift b/JellyfinPlayer/Swaggers/Models/UserIdPasswordBody1.swift deleted file mode 100644 index 7d7e2e0e..00000000 --- a/JellyfinPlayer/Swaggers/Models/UserIdPasswordBody1.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// UserIdPasswordBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The M:Jellyfin.Api.Controllers.UserController.UpdateUserPassword(System.Guid,Jellyfin.Api.Models.UserDtos.UpdateUserPassword) request. */ - -public struct UserIdPasswordBody1: Codable { - - /** Gets or sets the current sha1-hashed password. */ - public var currentPassword: String? - /** Gets or sets the current plain text password. */ - public var currentPw: String? - /** Gets or sets the new plain text password. */ - public var newPw: String? - /** Gets or sets a value indicating whether to reset the password. */ - public var resetPassword: Bool? - - public init(currentPassword: String? = nil, currentPw: String? = nil, newPw: String? = nil, resetPassword: Bool? = nil) { - self.currentPassword = currentPassword - self.currentPw = currentPw - self.newPw = newPw - self.resetPassword = resetPassword - } - - public enum CodingKeys: String, CodingKey { - case currentPassword = "CurrentPassword" - case currentPw = "CurrentPw" - case newPw = "NewPw" - case resetPassword = "ResetPassword" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UserIdPasswordBody2.swift b/JellyfinPlayer/Swaggers/Models/UserIdPasswordBody2.swift deleted file mode 100644 index 8aecbb85..00000000 --- a/JellyfinPlayer/Swaggers/Models/UserIdPasswordBody2.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// UserIdPasswordBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The M:Jellyfin.Api.Controllers.UserController.UpdateUserPassword(System.Guid,Jellyfin.Api.Models.UserDtos.UpdateUserPassword) request. */ - -public struct UserIdPasswordBody2: Codable { - - /** Gets or sets the current sha1-hashed password. */ - public var currentPassword: String? - /** Gets or sets the current plain text password. */ - public var currentPw: String? - /** Gets or sets the new plain text password. */ - public var newPw: String? - /** Gets or sets a value indicating whether to reset the password. */ - public var resetPassword: Bool? - - public init(currentPassword: String? = nil, currentPw: String? = nil, newPw: String? = nil, resetPassword: Bool? = nil) { - self.currentPassword = currentPassword - self.currentPw = currentPw - self.newPw = newPw - self.resetPassword = resetPassword - } - - public enum CodingKeys: String, CodingKey { - case currentPassword = "CurrentPassword" - case currentPw = "CurrentPw" - case newPw = "NewPw" - case resetPassword = "ResetPassword" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UserIdPolicyBody.swift b/JellyfinPlayer/Swaggers/Models/UserIdPolicyBody.swift deleted file mode 100644 index e6bbcc06..00000000 --- a/JellyfinPlayer/Swaggers/Models/UserIdPolicyBody.swift +++ /dev/null @@ -1,145 +0,0 @@ -// -// UserIdPolicyBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The new user policy. */ - -public struct UserIdPolicyBody: Codable { - - /** Gets or sets a value indicating whether this instance is administrator. */ - public var isAdministrator: Bool? - /** Gets or sets a value indicating whether this instance is hidden. */ - public var isHidden: Bool? - /** Gets or sets a value indicating whether this instance is disabled. */ - public var isDisabled: Bool? - /** Gets or sets the max parental rating. */ - public var maxParentalRating: Int? - public var blockedTags: [String]? - public var enableUserPreferenceAccess: Bool? - public var accessSchedules: [AccessSchedule]? - public var blockUnratedItems: [UnratedItem]? - public var enableRemoteControlOfOtherUsers: Bool? - public var enableSharedDeviceControl: Bool? - public var enableRemoteAccess: Bool? - public var enableLiveTvManagement: Bool? - public var enableLiveTvAccess: Bool? - public var enableMediaPlayback: Bool? - public var enableAudioPlaybackTranscoding: Bool? - public var enableVideoPlaybackTranscoding: Bool? - public var enablePlaybackRemuxing: Bool? - public var forceRemoteSourceTranscoding: Bool? - public var enableContentDeletion: Bool? - public var enableContentDeletionFromFolders: [String]? - public var enableContentDownloading: Bool? - /** Gets or sets a value indicating whether [enable synchronize]. */ - public var enableSyncTranscoding: Bool? - public var enableMediaConversion: Bool? - public var enabledDevices: [String]? - public var enableAllDevices: Bool? - public var enabledChannels: [UUID]? - public var enableAllChannels: Bool? - public var enabledFolders: [UUID]? - public var enableAllFolders: Bool? - public var invalidLoginAttemptCount: Int? - public var loginAttemptsBeforeLockout: Int? - public var maxActiveSessions: Int? - public var enablePublicSharing: Bool? - public var blockedMediaFolders: [UUID]? - public var blockedChannels: [UUID]? - public var remoteClientBitrateLimit: Int? - public var authenticationProviderId: String? - public var passwordResetProviderId: String? - /** Enum SyncPlayUserAccessType. */ - public var syncPlayAccess: Any? - - public init(isAdministrator: Bool? = nil, isHidden: Bool? = nil, isDisabled: Bool? = nil, maxParentalRating: Int? = nil, blockedTags: [String]? = nil, enableUserPreferenceAccess: Bool? = nil, accessSchedules: [AccessSchedule]? = nil, blockUnratedItems: [UnratedItem]? = nil, enableRemoteControlOfOtherUsers: Bool? = nil, enableSharedDeviceControl: Bool? = nil, enableRemoteAccess: Bool? = nil, enableLiveTvManagement: Bool? = nil, enableLiveTvAccess: Bool? = nil, enableMediaPlayback: Bool? = nil, enableAudioPlaybackTranscoding: Bool? = nil, enableVideoPlaybackTranscoding: Bool? = nil, enablePlaybackRemuxing: Bool? = nil, forceRemoteSourceTranscoding: Bool? = nil, enableContentDeletion: Bool? = nil, enableContentDeletionFromFolders: [String]? = nil, enableContentDownloading: Bool? = nil, enableSyncTranscoding: Bool? = nil, enableMediaConversion: Bool? = nil, enabledDevices: [String]? = nil, enableAllDevices: Bool? = nil, enabledChannels: [UUID]? = nil, enableAllChannels: Bool? = nil, enabledFolders: [UUID]? = nil, enableAllFolders: Bool? = nil, invalidLoginAttemptCount: Int? = nil, loginAttemptsBeforeLockout: Int? = nil, maxActiveSessions: Int? = nil, enablePublicSharing: Bool? = nil, blockedMediaFolders: [UUID]? = nil, blockedChannels: [UUID]? = nil, remoteClientBitrateLimit: Int? = nil, authenticationProviderId: String? = nil, passwordResetProviderId: String? = nil, syncPlayAccess: Any? = nil) { - self.isAdministrator = isAdministrator - self.isHidden = isHidden - self.isDisabled = isDisabled - self.maxParentalRating = maxParentalRating - self.blockedTags = blockedTags - self.enableUserPreferenceAccess = enableUserPreferenceAccess - self.accessSchedules = accessSchedules - self.blockUnratedItems = blockUnratedItems - self.enableRemoteControlOfOtherUsers = enableRemoteControlOfOtherUsers - self.enableSharedDeviceControl = enableSharedDeviceControl - self.enableRemoteAccess = enableRemoteAccess - self.enableLiveTvManagement = enableLiveTvManagement - self.enableLiveTvAccess = enableLiveTvAccess - self.enableMediaPlayback = enableMediaPlayback - self.enableAudioPlaybackTranscoding = enableAudioPlaybackTranscoding - self.enableVideoPlaybackTranscoding = enableVideoPlaybackTranscoding - self.enablePlaybackRemuxing = enablePlaybackRemuxing - self.forceRemoteSourceTranscoding = forceRemoteSourceTranscoding - self.enableContentDeletion = enableContentDeletion - self.enableContentDeletionFromFolders = enableContentDeletionFromFolders - self.enableContentDownloading = enableContentDownloading - self.enableSyncTranscoding = enableSyncTranscoding - self.enableMediaConversion = enableMediaConversion - self.enabledDevices = enabledDevices - self.enableAllDevices = enableAllDevices - self.enabledChannels = enabledChannels - self.enableAllChannels = enableAllChannels - self.enabledFolders = enabledFolders - self.enableAllFolders = enableAllFolders - self.invalidLoginAttemptCount = invalidLoginAttemptCount - self.loginAttemptsBeforeLockout = loginAttemptsBeforeLockout - self.maxActiveSessions = maxActiveSessions - self.enablePublicSharing = enablePublicSharing - self.blockedMediaFolders = blockedMediaFolders - self.blockedChannels = blockedChannels - self.remoteClientBitrateLimit = remoteClientBitrateLimit - self.authenticationProviderId = authenticationProviderId - self.passwordResetProviderId = passwordResetProviderId - self.syncPlayAccess = syncPlayAccess - } - - public enum CodingKeys: String, CodingKey { - case isAdministrator = "IsAdministrator" - case isHidden = "IsHidden" - case isDisabled = "IsDisabled" - case maxParentalRating = "MaxParentalRating" - case blockedTags = "BlockedTags" - case enableUserPreferenceAccess = "EnableUserPreferenceAccess" - case accessSchedules = "AccessSchedules" - case blockUnratedItems = "BlockUnratedItems" - case enableRemoteControlOfOtherUsers = "EnableRemoteControlOfOtherUsers" - case enableSharedDeviceControl = "EnableSharedDeviceControl" - case enableRemoteAccess = "EnableRemoteAccess" - case enableLiveTvManagement = "EnableLiveTvManagement" - case enableLiveTvAccess = "EnableLiveTvAccess" - case enableMediaPlayback = "EnableMediaPlayback" - case enableAudioPlaybackTranscoding = "EnableAudioPlaybackTranscoding" - case enableVideoPlaybackTranscoding = "EnableVideoPlaybackTranscoding" - case enablePlaybackRemuxing = "EnablePlaybackRemuxing" - case forceRemoteSourceTranscoding = "ForceRemoteSourceTranscoding" - case enableContentDeletion = "EnableContentDeletion" - case enableContentDeletionFromFolders = "EnableContentDeletionFromFolders" - case enableContentDownloading = "EnableContentDownloading" - case enableSyncTranscoding = "EnableSyncTranscoding" - case enableMediaConversion = "EnableMediaConversion" - case enabledDevices = "EnabledDevices" - case enableAllDevices = "EnableAllDevices" - case enabledChannels = "EnabledChannels" - case enableAllChannels = "EnableAllChannels" - case enabledFolders = "EnabledFolders" - case enableAllFolders = "EnableAllFolders" - case invalidLoginAttemptCount = "InvalidLoginAttemptCount" - case loginAttemptsBeforeLockout = "LoginAttemptsBeforeLockout" - case maxActiveSessions = "MaxActiveSessions" - case enablePublicSharing = "EnablePublicSharing" - case blockedMediaFolders = "BlockedMediaFolders" - case blockedChannels = "BlockedChannels" - case remoteClientBitrateLimit = "RemoteClientBitrateLimit" - case authenticationProviderId = "AuthenticationProviderId" - case passwordResetProviderId = "PasswordResetProviderId" - case syncPlayAccess = "SyncPlayAccess" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UserIdPolicyBody1.swift b/JellyfinPlayer/Swaggers/Models/UserIdPolicyBody1.swift deleted file mode 100644 index 6f394fc5..00000000 --- a/JellyfinPlayer/Swaggers/Models/UserIdPolicyBody1.swift +++ /dev/null @@ -1,145 +0,0 @@ -// -// UserIdPolicyBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The new user policy. */ - -public struct UserIdPolicyBody1: Codable { - - /** Gets or sets a value indicating whether this instance is administrator. */ - public var isAdministrator: Bool? - /** Gets or sets a value indicating whether this instance is hidden. */ - public var isHidden: Bool? - /** Gets or sets a value indicating whether this instance is disabled. */ - public var isDisabled: Bool? - /** Gets or sets the max parental rating. */ - public var maxParentalRating: Int? - public var blockedTags: [String]? - public var enableUserPreferenceAccess: Bool? - public var accessSchedules: [AccessSchedule]? - public var blockUnratedItems: [UnratedItem]? - public var enableRemoteControlOfOtherUsers: Bool? - public var enableSharedDeviceControl: Bool? - public var enableRemoteAccess: Bool? - public var enableLiveTvManagement: Bool? - public var enableLiveTvAccess: Bool? - public var enableMediaPlayback: Bool? - public var enableAudioPlaybackTranscoding: Bool? - public var enableVideoPlaybackTranscoding: Bool? - public var enablePlaybackRemuxing: Bool? - public var forceRemoteSourceTranscoding: Bool? - public var enableContentDeletion: Bool? - public var enableContentDeletionFromFolders: [String]? - public var enableContentDownloading: Bool? - /** Gets or sets a value indicating whether [enable synchronize]. */ - public var enableSyncTranscoding: Bool? - public var enableMediaConversion: Bool? - public var enabledDevices: [String]? - public var enableAllDevices: Bool? - public var enabledChannels: [UUID]? - public var enableAllChannels: Bool? - public var enabledFolders: [UUID]? - public var enableAllFolders: Bool? - public var invalidLoginAttemptCount: Int? - public var loginAttemptsBeforeLockout: Int? - public var maxActiveSessions: Int? - public var enablePublicSharing: Bool? - public var blockedMediaFolders: [UUID]? - public var blockedChannels: [UUID]? - public var remoteClientBitrateLimit: Int? - public var authenticationProviderId: String? - public var passwordResetProviderId: String? - /** Enum SyncPlayUserAccessType. */ - public var syncPlayAccess: Any? - - public init(isAdministrator: Bool? = nil, isHidden: Bool? = nil, isDisabled: Bool? = nil, maxParentalRating: Int? = nil, blockedTags: [String]? = nil, enableUserPreferenceAccess: Bool? = nil, accessSchedules: [AccessSchedule]? = nil, blockUnratedItems: [UnratedItem]? = nil, enableRemoteControlOfOtherUsers: Bool? = nil, enableSharedDeviceControl: Bool? = nil, enableRemoteAccess: Bool? = nil, enableLiveTvManagement: Bool? = nil, enableLiveTvAccess: Bool? = nil, enableMediaPlayback: Bool? = nil, enableAudioPlaybackTranscoding: Bool? = nil, enableVideoPlaybackTranscoding: Bool? = nil, enablePlaybackRemuxing: Bool? = nil, forceRemoteSourceTranscoding: Bool? = nil, enableContentDeletion: Bool? = nil, enableContentDeletionFromFolders: [String]? = nil, enableContentDownloading: Bool? = nil, enableSyncTranscoding: Bool? = nil, enableMediaConversion: Bool? = nil, enabledDevices: [String]? = nil, enableAllDevices: Bool? = nil, enabledChannels: [UUID]? = nil, enableAllChannels: Bool? = nil, enabledFolders: [UUID]? = nil, enableAllFolders: Bool? = nil, invalidLoginAttemptCount: Int? = nil, loginAttemptsBeforeLockout: Int? = nil, maxActiveSessions: Int? = nil, enablePublicSharing: Bool? = nil, blockedMediaFolders: [UUID]? = nil, blockedChannels: [UUID]? = nil, remoteClientBitrateLimit: Int? = nil, authenticationProviderId: String? = nil, passwordResetProviderId: String? = nil, syncPlayAccess: Any? = nil) { - self.isAdministrator = isAdministrator - self.isHidden = isHidden - self.isDisabled = isDisabled - self.maxParentalRating = maxParentalRating - self.blockedTags = blockedTags - self.enableUserPreferenceAccess = enableUserPreferenceAccess - self.accessSchedules = accessSchedules - self.blockUnratedItems = blockUnratedItems - self.enableRemoteControlOfOtherUsers = enableRemoteControlOfOtherUsers - self.enableSharedDeviceControl = enableSharedDeviceControl - self.enableRemoteAccess = enableRemoteAccess - self.enableLiveTvManagement = enableLiveTvManagement - self.enableLiveTvAccess = enableLiveTvAccess - self.enableMediaPlayback = enableMediaPlayback - self.enableAudioPlaybackTranscoding = enableAudioPlaybackTranscoding - self.enableVideoPlaybackTranscoding = enableVideoPlaybackTranscoding - self.enablePlaybackRemuxing = enablePlaybackRemuxing - self.forceRemoteSourceTranscoding = forceRemoteSourceTranscoding - self.enableContentDeletion = enableContentDeletion - self.enableContentDeletionFromFolders = enableContentDeletionFromFolders - self.enableContentDownloading = enableContentDownloading - self.enableSyncTranscoding = enableSyncTranscoding - self.enableMediaConversion = enableMediaConversion - self.enabledDevices = enabledDevices - self.enableAllDevices = enableAllDevices - self.enabledChannels = enabledChannels - self.enableAllChannels = enableAllChannels - self.enabledFolders = enabledFolders - self.enableAllFolders = enableAllFolders - self.invalidLoginAttemptCount = invalidLoginAttemptCount - self.loginAttemptsBeforeLockout = loginAttemptsBeforeLockout - self.maxActiveSessions = maxActiveSessions - self.enablePublicSharing = enablePublicSharing - self.blockedMediaFolders = blockedMediaFolders - self.blockedChannels = blockedChannels - self.remoteClientBitrateLimit = remoteClientBitrateLimit - self.authenticationProviderId = authenticationProviderId - self.passwordResetProviderId = passwordResetProviderId - self.syncPlayAccess = syncPlayAccess - } - - public enum CodingKeys: String, CodingKey { - case isAdministrator = "IsAdministrator" - case isHidden = "IsHidden" - case isDisabled = "IsDisabled" - case maxParentalRating = "MaxParentalRating" - case blockedTags = "BlockedTags" - case enableUserPreferenceAccess = "EnableUserPreferenceAccess" - case accessSchedules = "AccessSchedules" - case blockUnratedItems = "BlockUnratedItems" - case enableRemoteControlOfOtherUsers = "EnableRemoteControlOfOtherUsers" - case enableSharedDeviceControl = "EnableSharedDeviceControl" - case enableRemoteAccess = "EnableRemoteAccess" - case enableLiveTvManagement = "EnableLiveTvManagement" - case enableLiveTvAccess = "EnableLiveTvAccess" - case enableMediaPlayback = "EnableMediaPlayback" - case enableAudioPlaybackTranscoding = "EnableAudioPlaybackTranscoding" - case enableVideoPlaybackTranscoding = "EnableVideoPlaybackTranscoding" - case enablePlaybackRemuxing = "EnablePlaybackRemuxing" - case forceRemoteSourceTranscoding = "ForceRemoteSourceTranscoding" - case enableContentDeletion = "EnableContentDeletion" - case enableContentDeletionFromFolders = "EnableContentDeletionFromFolders" - case enableContentDownloading = "EnableContentDownloading" - case enableSyncTranscoding = "EnableSyncTranscoding" - case enableMediaConversion = "EnableMediaConversion" - case enabledDevices = "EnabledDevices" - case enableAllDevices = "EnableAllDevices" - case enabledChannels = "EnabledChannels" - case enableAllChannels = "EnableAllChannels" - case enabledFolders = "EnabledFolders" - case enableAllFolders = "EnableAllFolders" - case invalidLoginAttemptCount = "InvalidLoginAttemptCount" - case loginAttemptsBeforeLockout = "LoginAttemptsBeforeLockout" - case maxActiveSessions = "MaxActiveSessions" - case enablePublicSharing = "EnablePublicSharing" - case blockedMediaFolders = "BlockedMediaFolders" - case blockedChannels = "BlockedChannels" - case remoteClientBitrateLimit = "RemoteClientBitrateLimit" - case authenticationProviderId = "AuthenticationProviderId" - case passwordResetProviderId = "PasswordResetProviderId" - case syncPlayAccess = "SyncPlayAccess" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UserIdPolicyBody2.swift b/JellyfinPlayer/Swaggers/Models/UserIdPolicyBody2.swift deleted file mode 100644 index 887b00b1..00000000 --- a/JellyfinPlayer/Swaggers/Models/UserIdPolicyBody2.swift +++ /dev/null @@ -1,145 +0,0 @@ -// -// UserIdPolicyBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The new user policy. */ - -public struct UserIdPolicyBody2: Codable { - - /** Gets or sets a value indicating whether this instance is administrator. */ - public var isAdministrator: Bool? - /** Gets or sets a value indicating whether this instance is hidden. */ - public var isHidden: Bool? - /** Gets or sets a value indicating whether this instance is disabled. */ - public var isDisabled: Bool? - /** Gets or sets the max parental rating. */ - public var maxParentalRating: Int? - public var blockedTags: [String]? - public var enableUserPreferenceAccess: Bool? - public var accessSchedules: [AccessSchedule]? - public var blockUnratedItems: [UnratedItem]? - public var enableRemoteControlOfOtherUsers: Bool? - public var enableSharedDeviceControl: Bool? - public var enableRemoteAccess: Bool? - public var enableLiveTvManagement: Bool? - public var enableLiveTvAccess: Bool? - public var enableMediaPlayback: Bool? - public var enableAudioPlaybackTranscoding: Bool? - public var enableVideoPlaybackTranscoding: Bool? - public var enablePlaybackRemuxing: Bool? - public var forceRemoteSourceTranscoding: Bool? - public var enableContentDeletion: Bool? - public var enableContentDeletionFromFolders: [String]? - public var enableContentDownloading: Bool? - /** Gets or sets a value indicating whether [enable synchronize]. */ - public var enableSyncTranscoding: Bool? - public var enableMediaConversion: Bool? - public var enabledDevices: [String]? - public var enableAllDevices: Bool? - public var enabledChannels: [UUID]? - public var enableAllChannels: Bool? - public var enabledFolders: [UUID]? - public var enableAllFolders: Bool? - public var invalidLoginAttemptCount: Int? - public var loginAttemptsBeforeLockout: Int? - public var maxActiveSessions: Int? - public var enablePublicSharing: Bool? - public var blockedMediaFolders: [UUID]? - public var blockedChannels: [UUID]? - public var remoteClientBitrateLimit: Int? - public var authenticationProviderId: String? - public var passwordResetProviderId: String? - /** Enum SyncPlayUserAccessType. */ - public var syncPlayAccess: Any? - - public init(isAdministrator: Bool? = nil, isHidden: Bool? = nil, isDisabled: Bool? = nil, maxParentalRating: Int? = nil, blockedTags: [String]? = nil, enableUserPreferenceAccess: Bool? = nil, accessSchedules: [AccessSchedule]? = nil, blockUnratedItems: [UnratedItem]? = nil, enableRemoteControlOfOtherUsers: Bool? = nil, enableSharedDeviceControl: Bool? = nil, enableRemoteAccess: Bool? = nil, enableLiveTvManagement: Bool? = nil, enableLiveTvAccess: Bool? = nil, enableMediaPlayback: Bool? = nil, enableAudioPlaybackTranscoding: Bool? = nil, enableVideoPlaybackTranscoding: Bool? = nil, enablePlaybackRemuxing: Bool? = nil, forceRemoteSourceTranscoding: Bool? = nil, enableContentDeletion: Bool? = nil, enableContentDeletionFromFolders: [String]? = nil, enableContentDownloading: Bool? = nil, enableSyncTranscoding: Bool? = nil, enableMediaConversion: Bool? = nil, enabledDevices: [String]? = nil, enableAllDevices: Bool? = nil, enabledChannels: [UUID]? = nil, enableAllChannels: Bool? = nil, enabledFolders: [UUID]? = nil, enableAllFolders: Bool? = nil, invalidLoginAttemptCount: Int? = nil, loginAttemptsBeforeLockout: Int? = nil, maxActiveSessions: Int? = nil, enablePublicSharing: Bool? = nil, blockedMediaFolders: [UUID]? = nil, blockedChannels: [UUID]? = nil, remoteClientBitrateLimit: Int? = nil, authenticationProviderId: String? = nil, passwordResetProviderId: String? = nil, syncPlayAccess: Any? = nil) { - self.isAdministrator = isAdministrator - self.isHidden = isHidden - self.isDisabled = isDisabled - self.maxParentalRating = maxParentalRating - self.blockedTags = blockedTags - self.enableUserPreferenceAccess = enableUserPreferenceAccess - self.accessSchedules = accessSchedules - self.blockUnratedItems = blockUnratedItems - self.enableRemoteControlOfOtherUsers = enableRemoteControlOfOtherUsers - self.enableSharedDeviceControl = enableSharedDeviceControl - self.enableRemoteAccess = enableRemoteAccess - self.enableLiveTvManagement = enableLiveTvManagement - self.enableLiveTvAccess = enableLiveTvAccess - self.enableMediaPlayback = enableMediaPlayback - self.enableAudioPlaybackTranscoding = enableAudioPlaybackTranscoding - self.enableVideoPlaybackTranscoding = enableVideoPlaybackTranscoding - self.enablePlaybackRemuxing = enablePlaybackRemuxing - self.forceRemoteSourceTranscoding = forceRemoteSourceTranscoding - self.enableContentDeletion = enableContentDeletion - self.enableContentDeletionFromFolders = enableContentDeletionFromFolders - self.enableContentDownloading = enableContentDownloading - self.enableSyncTranscoding = enableSyncTranscoding - self.enableMediaConversion = enableMediaConversion - self.enabledDevices = enabledDevices - self.enableAllDevices = enableAllDevices - self.enabledChannels = enabledChannels - self.enableAllChannels = enableAllChannels - self.enabledFolders = enabledFolders - self.enableAllFolders = enableAllFolders - self.invalidLoginAttemptCount = invalidLoginAttemptCount - self.loginAttemptsBeforeLockout = loginAttemptsBeforeLockout - self.maxActiveSessions = maxActiveSessions - self.enablePublicSharing = enablePublicSharing - self.blockedMediaFolders = blockedMediaFolders - self.blockedChannels = blockedChannels - self.remoteClientBitrateLimit = remoteClientBitrateLimit - self.authenticationProviderId = authenticationProviderId - self.passwordResetProviderId = passwordResetProviderId - self.syncPlayAccess = syncPlayAccess - } - - public enum CodingKeys: String, CodingKey { - case isAdministrator = "IsAdministrator" - case isHidden = "IsHidden" - case isDisabled = "IsDisabled" - case maxParentalRating = "MaxParentalRating" - case blockedTags = "BlockedTags" - case enableUserPreferenceAccess = "EnableUserPreferenceAccess" - case accessSchedules = "AccessSchedules" - case blockUnratedItems = "BlockUnratedItems" - case enableRemoteControlOfOtherUsers = "EnableRemoteControlOfOtherUsers" - case enableSharedDeviceControl = "EnableSharedDeviceControl" - case enableRemoteAccess = "EnableRemoteAccess" - case enableLiveTvManagement = "EnableLiveTvManagement" - case enableLiveTvAccess = "EnableLiveTvAccess" - case enableMediaPlayback = "EnableMediaPlayback" - case enableAudioPlaybackTranscoding = "EnableAudioPlaybackTranscoding" - case enableVideoPlaybackTranscoding = "EnableVideoPlaybackTranscoding" - case enablePlaybackRemuxing = "EnablePlaybackRemuxing" - case forceRemoteSourceTranscoding = "ForceRemoteSourceTranscoding" - case enableContentDeletion = "EnableContentDeletion" - case enableContentDeletionFromFolders = "EnableContentDeletionFromFolders" - case enableContentDownloading = "EnableContentDownloading" - case enableSyncTranscoding = "EnableSyncTranscoding" - case enableMediaConversion = "EnableMediaConversion" - case enabledDevices = "EnabledDevices" - case enableAllDevices = "EnableAllDevices" - case enabledChannels = "EnabledChannels" - case enableAllChannels = "EnableAllChannels" - case enabledFolders = "EnabledFolders" - case enableAllFolders = "EnableAllFolders" - case invalidLoginAttemptCount = "InvalidLoginAttemptCount" - case loginAttemptsBeforeLockout = "LoginAttemptsBeforeLockout" - case maxActiveSessions = "MaxActiveSessions" - case enablePublicSharing = "EnablePublicSharing" - case blockedMediaFolders = "BlockedMediaFolders" - case blockedChannels = "BlockedChannels" - case remoteClientBitrateLimit = "RemoteClientBitrateLimit" - case authenticationProviderId = "AuthenticationProviderId" - case passwordResetProviderId = "PasswordResetProviderId" - case syncPlayAccess = "SyncPlayAccess" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UserItemDataDto.swift b/JellyfinPlayer/Swaggers/Models/UserItemDataDto.swift deleted file mode 100644 index 80818292..00000000 --- a/JellyfinPlayer/Swaggers/Models/UserItemDataDto.swift +++ /dev/null @@ -1,66 +0,0 @@ -// -// UserItemDataDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class UserItemDataDto. */ - -public struct UserItemDataDto: Codable { - - /** Gets or sets the rating. */ - public var rating: Double? - /** Gets or sets the played percentage. */ - public var playedPercentage: Double? - /** Gets or sets the unplayed item count. */ - public var unplayedItemCount: Int? - /** Gets or sets the playback position ticks. */ - public var playbackPositionTicks: Int64? - /** Gets or sets the play count. */ - public var playCount: Int? - /** Gets or sets a value indicating whether this instance is favorite. */ - public var isFavorite: Bool? - /** Gets or sets a value indicating whether this MediaBrowser.Model.Dto.UserItemDataDto is likes. */ - public var likes: Bool? - /** Gets or sets the last played date. */ - public var lastPlayedDate: Date? - /** Gets or sets a value indicating whether this MediaBrowser.Model.Dto.UserItemDataDto is played. */ - public var played: Bool? - /** Gets or sets the key. */ - public var key: String? - /** Gets or sets the item identifier. */ - public var itemId: String? - - public init(rating: Double? = nil, playedPercentage: Double? = nil, unplayedItemCount: Int? = nil, playbackPositionTicks: Int64? = nil, playCount: Int? = nil, isFavorite: Bool? = nil, likes: Bool? = nil, lastPlayedDate: Date? = nil, played: Bool? = nil, key: String? = nil, itemId: String? = nil) { - self.rating = rating - self.playedPercentage = playedPercentage - self.unplayedItemCount = unplayedItemCount - self.playbackPositionTicks = playbackPositionTicks - self.playCount = playCount - self.isFavorite = isFavorite - self.likes = likes - self.lastPlayedDate = lastPlayedDate - self.played = played - self.key = key - self.itemId = itemId - } - - public enum CodingKeys: String, CodingKey { - case rating = "Rating" - case playedPercentage = "PlayedPercentage" - case unplayedItemCount = "UnplayedItemCount" - case playbackPositionTicks = "PlaybackPositionTicks" - case playCount = "PlayCount" - case isFavorite = "IsFavorite" - case likes = "Likes" - case lastPlayedDate = "LastPlayedDate" - case played = "Played" - case key = "Key" - case itemId = "ItemId" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UserPolicy.swift b/JellyfinPlayer/Swaggers/Models/UserPolicy.swift deleted file mode 100644 index 4884c116..00000000 --- a/JellyfinPlayer/Swaggers/Models/UserPolicy.swift +++ /dev/null @@ -1,144 +0,0 @@ -// -// UserPolicy.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - - -public struct UserPolicy: Codable { - - /** Gets or sets a value indicating whether this instance is administrator. */ - public var isAdministrator: Bool? - /** Gets or sets a value indicating whether this instance is hidden. */ - public var isHidden: Bool? - /** Gets or sets a value indicating whether this instance is disabled. */ - public var isDisabled: Bool? - /** Gets or sets the max parental rating. */ - public var maxParentalRating: Int? - public var blockedTags: [String]? - public var enableUserPreferenceAccess: Bool? - public var accessSchedules: [AccessSchedule]? - public var blockUnratedItems: [UnratedItem]? - public var enableRemoteControlOfOtherUsers: Bool? - public var enableSharedDeviceControl: Bool? - public var enableRemoteAccess: Bool? - public var enableLiveTvManagement: Bool? - public var enableLiveTvAccess: Bool? - public var enableMediaPlayback: Bool? - public var enableAudioPlaybackTranscoding: Bool? - public var enableVideoPlaybackTranscoding: Bool? - public var enablePlaybackRemuxing: Bool? - public var forceRemoteSourceTranscoding: Bool? - public var enableContentDeletion: Bool? - public var enableContentDeletionFromFolders: [String]? - public var enableContentDownloading: Bool? - /** Gets or sets a value indicating whether [enable synchronize]. */ - public var enableSyncTranscoding: Bool? - public var enableMediaConversion: Bool? - public var enabledDevices: [String]? - public var enableAllDevices: Bool? - public var enabledChannels: [UUID]? - public var enableAllChannels: Bool? - public var enabledFolders: [UUID]? - public var enableAllFolders: Bool? - public var invalidLoginAttemptCount: Int? - public var loginAttemptsBeforeLockout: Int? - public var maxActiveSessions: Int? - public var enablePublicSharing: Bool? - public var blockedMediaFolders: [UUID]? - public var blockedChannels: [UUID]? - public var remoteClientBitrateLimit: Int? - public var authenticationProviderId: String? - public var passwordResetProviderId: String? - /** Enum SyncPlayUserAccessType. */ - public var syncPlayAccess: AllOfUserPolicySyncPlayAccess? - - public init(isAdministrator: Bool? = nil, isHidden: Bool? = nil, isDisabled: Bool? = nil, maxParentalRating: Int? = nil, blockedTags: [String]? = nil, enableUserPreferenceAccess: Bool? = nil, accessSchedules: [AccessSchedule]? = nil, blockUnratedItems: [UnratedItem]? = nil, enableRemoteControlOfOtherUsers: Bool? = nil, enableSharedDeviceControl: Bool? = nil, enableRemoteAccess: Bool? = nil, enableLiveTvManagement: Bool? = nil, enableLiveTvAccess: Bool? = nil, enableMediaPlayback: Bool? = nil, enableAudioPlaybackTranscoding: Bool? = nil, enableVideoPlaybackTranscoding: Bool? = nil, enablePlaybackRemuxing: Bool? = nil, forceRemoteSourceTranscoding: Bool? = nil, enableContentDeletion: Bool? = nil, enableContentDeletionFromFolders: [String]? = nil, enableContentDownloading: Bool? = nil, enableSyncTranscoding: Bool? = nil, enableMediaConversion: Bool? = nil, enabledDevices: [String]? = nil, enableAllDevices: Bool? = nil, enabledChannels: [UUID]? = nil, enableAllChannels: Bool? = nil, enabledFolders: [UUID]? = nil, enableAllFolders: Bool? = nil, invalidLoginAttemptCount: Int? = nil, loginAttemptsBeforeLockout: Int? = nil, maxActiveSessions: Int? = nil, enablePublicSharing: Bool? = nil, blockedMediaFolders: [UUID]? = nil, blockedChannels: [UUID]? = nil, remoteClientBitrateLimit: Int? = nil, authenticationProviderId: String? = nil, passwordResetProviderId: String? = nil, syncPlayAccess: AllOfUserPolicySyncPlayAccess? = nil) { - self.isAdministrator = isAdministrator - self.isHidden = isHidden - self.isDisabled = isDisabled - self.maxParentalRating = maxParentalRating - self.blockedTags = blockedTags - self.enableUserPreferenceAccess = enableUserPreferenceAccess - self.accessSchedules = accessSchedules - self.blockUnratedItems = blockUnratedItems - self.enableRemoteControlOfOtherUsers = enableRemoteControlOfOtherUsers - self.enableSharedDeviceControl = enableSharedDeviceControl - self.enableRemoteAccess = enableRemoteAccess - self.enableLiveTvManagement = enableLiveTvManagement - self.enableLiveTvAccess = enableLiveTvAccess - self.enableMediaPlayback = enableMediaPlayback - self.enableAudioPlaybackTranscoding = enableAudioPlaybackTranscoding - self.enableVideoPlaybackTranscoding = enableVideoPlaybackTranscoding - self.enablePlaybackRemuxing = enablePlaybackRemuxing - self.forceRemoteSourceTranscoding = forceRemoteSourceTranscoding - self.enableContentDeletion = enableContentDeletion - self.enableContentDeletionFromFolders = enableContentDeletionFromFolders - self.enableContentDownloading = enableContentDownloading - self.enableSyncTranscoding = enableSyncTranscoding - self.enableMediaConversion = enableMediaConversion - self.enabledDevices = enabledDevices - self.enableAllDevices = enableAllDevices - self.enabledChannels = enabledChannels - self.enableAllChannels = enableAllChannels - self.enabledFolders = enabledFolders - self.enableAllFolders = enableAllFolders - self.invalidLoginAttemptCount = invalidLoginAttemptCount - self.loginAttemptsBeforeLockout = loginAttemptsBeforeLockout - self.maxActiveSessions = maxActiveSessions - self.enablePublicSharing = enablePublicSharing - self.blockedMediaFolders = blockedMediaFolders - self.blockedChannels = blockedChannels - self.remoteClientBitrateLimit = remoteClientBitrateLimit - self.authenticationProviderId = authenticationProviderId - self.passwordResetProviderId = passwordResetProviderId - self.syncPlayAccess = syncPlayAccess - } - - public enum CodingKeys: String, CodingKey { - case isAdministrator = "IsAdministrator" - case isHidden = "IsHidden" - case isDisabled = "IsDisabled" - case maxParentalRating = "MaxParentalRating" - case blockedTags = "BlockedTags" - case enableUserPreferenceAccess = "EnableUserPreferenceAccess" - case accessSchedules = "AccessSchedules" - case blockUnratedItems = "BlockUnratedItems" - case enableRemoteControlOfOtherUsers = "EnableRemoteControlOfOtherUsers" - case enableSharedDeviceControl = "EnableSharedDeviceControl" - case enableRemoteAccess = "EnableRemoteAccess" - case enableLiveTvManagement = "EnableLiveTvManagement" - case enableLiveTvAccess = "EnableLiveTvAccess" - case enableMediaPlayback = "EnableMediaPlayback" - case enableAudioPlaybackTranscoding = "EnableAudioPlaybackTranscoding" - case enableVideoPlaybackTranscoding = "EnableVideoPlaybackTranscoding" - case enablePlaybackRemuxing = "EnablePlaybackRemuxing" - case forceRemoteSourceTranscoding = "ForceRemoteSourceTranscoding" - case enableContentDeletion = "EnableContentDeletion" - case enableContentDeletionFromFolders = "EnableContentDeletionFromFolders" - case enableContentDownloading = "EnableContentDownloading" - case enableSyncTranscoding = "EnableSyncTranscoding" - case enableMediaConversion = "EnableMediaConversion" - case enabledDevices = "EnabledDevices" - case enableAllDevices = "EnableAllDevices" - case enabledChannels = "EnabledChannels" - case enableAllChannels = "EnableAllChannels" - case enabledFolders = "EnabledFolders" - case enableAllFolders = "EnableAllFolders" - case invalidLoginAttemptCount = "InvalidLoginAttemptCount" - case loginAttemptsBeforeLockout = "LoginAttemptsBeforeLockout" - case maxActiveSessions = "MaxActiveSessions" - case enablePublicSharing = "EnablePublicSharing" - case blockedMediaFolders = "BlockedMediaFolders" - case blockedChannels = "BlockedChannels" - case remoteClientBitrateLimit = "RemoteClientBitrateLimit" - case authenticationProviderId = "AuthenticationProviderId" - case passwordResetProviderId = "PasswordResetProviderId" - case syncPlayAccess = "SyncPlayAccess" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UsersAuthenticateByNameBody.swift b/JellyfinPlayer/Swaggers/Models/UsersAuthenticateByNameBody.swift deleted file mode 100644 index 96bd3b78..00000000 --- a/JellyfinPlayer/Swaggers/Models/UsersAuthenticateByNameBody.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// UsersAuthenticateByNameBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The M:Jellyfin.Api.Controllers.UserController.AuthenticateUserByName(Jellyfin.Api.Models.UserDtos.AuthenticateUserByName) request. */ - -public struct UsersAuthenticateByNameBody: Codable { - - /** Gets or sets the username. */ - public var username: String? - /** Gets or sets the plain text password. */ - public var pw: String? - /** Gets or sets the sha1-hashed password. */ - public var password: String? - - public init(username: String? = nil, pw: String? = nil, password: String? = nil) { - self.username = username - self.pw = pw - self.password = password - } - - public enum CodingKeys: String, CodingKey { - case username = "Username" - case pw = "Pw" - case password = "Password" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UsersAuthenticateByNameBody1.swift b/JellyfinPlayer/Swaggers/Models/UsersAuthenticateByNameBody1.swift deleted file mode 100644 index fb4f87c8..00000000 --- a/JellyfinPlayer/Swaggers/Models/UsersAuthenticateByNameBody1.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// UsersAuthenticateByNameBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The M:Jellyfin.Api.Controllers.UserController.AuthenticateUserByName(Jellyfin.Api.Models.UserDtos.AuthenticateUserByName) request. */ - -public struct UsersAuthenticateByNameBody1: Codable { - - /** Gets or sets the username. */ - public var username: String? - /** Gets or sets the plain text password. */ - public var pw: String? - /** Gets or sets the sha1-hashed password. */ - public var password: String? - - public init(username: String? = nil, pw: String? = nil, password: String? = nil) { - self.username = username - self.pw = pw - self.password = password - } - - public enum CodingKeys: String, CodingKey { - case username = "Username" - case pw = "Pw" - case password = "Password" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UsersAuthenticateByNameBody2.swift b/JellyfinPlayer/Swaggers/Models/UsersAuthenticateByNameBody2.swift deleted file mode 100644 index 45cf4502..00000000 --- a/JellyfinPlayer/Swaggers/Models/UsersAuthenticateByNameBody2.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// UsersAuthenticateByNameBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The M:Jellyfin.Api.Controllers.UserController.AuthenticateUserByName(Jellyfin.Api.Models.UserDtos.AuthenticateUserByName) request. */ - -public struct UsersAuthenticateByNameBody2: Codable { - - /** Gets or sets the username. */ - public var username: String? - /** Gets or sets the plain text password. */ - public var pw: String? - /** Gets or sets the sha1-hashed password. */ - public var password: String? - - public init(username: String? = nil, pw: String? = nil, password: String? = nil) { - self.username = username - self.pw = pw - self.password = password - } - - public enum CodingKeys: String, CodingKey { - case username = "Username" - case pw = "Pw" - case password = "Password" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UsersAuthenticateWithQuickConnectBody.swift b/JellyfinPlayer/Swaggers/Models/UsersAuthenticateWithQuickConnectBody.swift deleted file mode 100644 index 270517ee..00000000 --- a/JellyfinPlayer/Swaggers/Models/UsersAuthenticateWithQuickConnectBody.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// UsersAuthenticateWithQuickConnectBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The Jellyfin.Api.Models.UserDtos.QuickConnectDto request. */ - -public struct UsersAuthenticateWithQuickConnectBody: Codable { - - /** Gets or sets the quick connect token. */ - public var token: String - - public init(token: String) { - self.token = token - } - - public enum CodingKeys: String, CodingKey { - case token = "Token" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UsersAuthenticateWithQuickConnectBody1.swift b/JellyfinPlayer/Swaggers/Models/UsersAuthenticateWithQuickConnectBody1.swift deleted file mode 100644 index 51236921..00000000 --- a/JellyfinPlayer/Swaggers/Models/UsersAuthenticateWithQuickConnectBody1.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// UsersAuthenticateWithQuickConnectBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The Jellyfin.Api.Models.UserDtos.QuickConnectDto request. */ - -public struct UsersAuthenticateWithQuickConnectBody1: Codable { - - /** Gets or sets the quick connect token. */ - public var token: String - - public init(token: String) { - self.token = token - } - - public enum CodingKeys: String, CodingKey { - case token = "Token" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UsersAuthenticateWithQuickConnectBody2.swift b/JellyfinPlayer/Swaggers/Models/UsersAuthenticateWithQuickConnectBody2.swift deleted file mode 100644 index cd5611b8..00000000 --- a/JellyfinPlayer/Swaggers/Models/UsersAuthenticateWithQuickConnectBody2.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// UsersAuthenticateWithQuickConnectBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The Jellyfin.Api.Models.UserDtos.QuickConnectDto request. */ - -public struct UsersAuthenticateWithQuickConnectBody2: Codable { - - /** Gets or sets the quick connect token. */ - public var token: String - - public init(token: String) { - self.token = token - } - - public enum CodingKeys: String, CodingKey { - case token = "Token" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UsersForgotPasswordBody.swift b/JellyfinPlayer/Swaggers/Models/UsersForgotPasswordBody.swift deleted file mode 100644 index 4efcc942..00000000 --- a/JellyfinPlayer/Swaggers/Models/UsersForgotPasswordBody.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// UsersForgotPasswordBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The forgot password request containing the entered username. */ - -public struct UsersForgotPasswordBody: Codable { - - /** Gets or sets the entered username to have its password reset. */ - public var enteredUsername: String - - public init(enteredUsername: String) { - self.enteredUsername = enteredUsername - } - - public enum CodingKeys: String, CodingKey { - case enteredUsername = "EnteredUsername" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UsersForgotPasswordBody1.swift b/JellyfinPlayer/Swaggers/Models/UsersForgotPasswordBody1.swift deleted file mode 100644 index 732581d3..00000000 --- a/JellyfinPlayer/Swaggers/Models/UsersForgotPasswordBody1.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// UsersForgotPasswordBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The forgot password request containing the entered username. */ - -public struct UsersForgotPasswordBody1: Codable { - - /** Gets or sets the entered username to have its password reset. */ - public var enteredUsername: String - - public init(enteredUsername: String) { - self.enteredUsername = enteredUsername - } - - public enum CodingKeys: String, CodingKey { - case enteredUsername = "EnteredUsername" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UsersForgotPasswordBody2.swift b/JellyfinPlayer/Swaggers/Models/UsersForgotPasswordBody2.swift deleted file mode 100644 index 263bd766..00000000 --- a/JellyfinPlayer/Swaggers/Models/UsersForgotPasswordBody2.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// UsersForgotPasswordBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The forgot password request containing the entered username. */ - -public struct UsersForgotPasswordBody2: Codable { - - /** Gets or sets the entered username to have its password reset. */ - public var enteredUsername: String - - public init(enteredUsername: String) { - self.enteredUsername = enteredUsername - } - - public enum CodingKeys: String, CodingKey { - case enteredUsername = "EnteredUsername" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UsersNewBody.swift b/JellyfinPlayer/Swaggers/Models/UsersNewBody.swift deleted file mode 100644 index eb062ef8..00000000 --- a/JellyfinPlayer/Swaggers/Models/UsersNewBody.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// UsersNewBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The create user by name request body. */ - -public struct UsersNewBody: Codable { - - /** Gets or sets the username. */ - public var name: String? - /** Gets or sets the password. */ - public var password: String? - - public init(name: String? = nil, password: String? = nil) { - self.name = name - self.password = password - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case password = "Password" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UsersNewBody1.swift b/JellyfinPlayer/Swaggers/Models/UsersNewBody1.swift deleted file mode 100644 index 3968461a..00000000 --- a/JellyfinPlayer/Swaggers/Models/UsersNewBody1.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// UsersNewBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The create user by name request body. */ - -public struct UsersNewBody1: Codable { - - /** Gets or sets the username. */ - public var name: String? - /** Gets or sets the password. */ - public var password: String? - - public init(name: String? = nil, password: String? = nil) { - self.name = name - self.password = password - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case password = "Password" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UsersNewBody2.swift b/JellyfinPlayer/Swaggers/Models/UsersNewBody2.swift deleted file mode 100644 index ef51a36d..00000000 --- a/JellyfinPlayer/Swaggers/Models/UsersNewBody2.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// UsersNewBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The create user by name request body. */ - -public struct UsersNewBody2: Codable { - - /** Gets or sets the username. */ - public var name: String? - /** Gets or sets the password. */ - public var password: String? - - public init(name: String? = nil, password: String? = nil) { - self.name = name - self.password = password - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case password = "Password" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UsersUserIdBody.swift b/JellyfinPlayer/Swaggers/Models/UsersUserIdBody.swift deleted file mode 100644 index cf4a3e82..00000000 --- a/JellyfinPlayer/Swaggers/Models/UsersUserIdBody.swift +++ /dev/null @@ -1,78 +0,0 @@ -// -// UsersUserIdBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The updated user model. */ - -public struct UsersUserIdBody: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the server identifier. */ - public var serverId: String? - /** Gets or sets the name of the server. This is not used by the server and is for client-side usage only. */ - public var serverName: String? - /** Gets or sets the id. */ - public var _id: UUID? - /** Gets or sets the primary image tag. */ - public var primaryImageTag: String? - /** Gets or sets a value indicating whether this instance has password. */ - public var hasPassword: Bool? - /** Gets or sets a value indicating whether this instance has configured password. */ - public var hasConfiguredPassword: Bool? - /** Gets or sets a value indicating whether this instance has configured easy password. */ - public var hasConfiguredEasyPassword: Bool? - /** Gets or sets whether async login is enabled or not. */ - public var enableAutoLogin: Bool? - /** Gets or sets the last login date. */ - public var lastLoginDate: Date? - /** Gets or sets the last activity date. */ - public var lastActivityDate: Date? - /** Gets or sets the configuration. */ - public var configuration: Any? - /** Gets or sets the policy. */ - public var policy: Any? - /** Gets or sets the primary image aspect ratio. */ - public var primaryImageAspectRatio: Double? - - public init(name: String? = nil, serverId: String? = nil, serverName: String? = nil, _id: UUID? = nil, primaryImageTag: String? = nil, hasPassword: Bool? = nil, hasConfiguredPassword: Bool? = nil, hasConfiguredEasyPassword: Bool? = nil, enableAutoLogin: Bool? = nil, lastLoginDate: Date? = nil, lastActivityDate: Date? = nil, configuration: Any? = nil, policy: Any? = nil, primaryImageAspectRatio: Double? = nil) { - self.name = name - self.serverId = serverId - self.serverName = serverName - self._id = _id - self.primaryImageTag = primaryImageTag - self.hasPassword = hasPassword - self.hasConfiguredPassword = hasConfiguredPassword - self.hasConfiguredEasyPassword = hasConfiguredEasyPassword - self.enableAutoLogin = enableAutoLogin - self.lastLoginDate = lastLoginDate - self.lastActivityDate = lastActivityDate - self.configuration = configuration - self.policy = policy - self.primaryImageAspectRatio = primaryImageAspectRatio - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case serverId = "ServerId" - case serverName = "ServerName" - case _id = "Id" - case primaryImageTag = "PrimaryImageTag" - case hasPassword = "HasPassword" - case hasConfiguredPassword = "HasConfiguredPassword" - case hasConfiguredEasyPassword = "HasConfiguredEasyPassword" - case enableAutoLogin = "EnableAutoLogin" - case lastLoginDate = "LastLoginDate" - case lastActivityDate = "LastActivityDate" - case configuration = "Configuration" - case policy = "Policy" - case primaryImageAspectRatio = "PrimaryImageAspectRatio" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UsersUserIdBody1.swift b/JellyfinPlayer/Swaggers/Models/UsersUserIdBody1.swift deleted file mode 100644 index 48cfb695..00000000 --- a/JellyfinPlayer/Swaggers/Models/UsersUserIdBody1.swift +++ /dev/null @@ -1,78 +0,0 @@ -// -// UsersUserIdBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The updated user model. */ - -public struct UsersUserIdBody1: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the server identifier. */ - public var serverId: String? - /** Gets or sets the name of the server. This is not used by the server and is for client-side usage only. */ - public var serverName: String? - /** Gets or sets the id. */ - public var _id: UUID? - /** Gets or sets the primary image tag. */ - public var primaryImageTag: String? - /** Gets or sets a value indicating whether this instance has password. */ - public var hasPassword: Bool? - /** Gets or sets a value indicating whether this instance has configured password. */ - public var hasConfiguredPassword: Bool? - /** Gets or sets a value indicating whether this instance has configured easy password. */ - public var hasConfiguredEasyPassword: Bool? - /** Gets or sets whether async login is enabled or not. */ - public var enableAutoLogin: Bool? - /** Gets or sets the last login date. */ - public var lastLoginDate: Date? - /** Gets or sets the last activity date. */ - public var lastActivityDate: Date? - /** Gets or sets the configuration. */ - public var configuration: Any? - /** Gets or sets the policy. */ - public var policy: Any? - /** Gets or sets the primary image aspect ratio. */ - public var primaryImageAspectRatio: Double? - - public init(name: String? = nil, serverId: String? = nil, serverName: String? = nil, _id: UUID? = nil, primaryImageTag: String? = nil, hasPassword: Bool? = nil, hasConfiguredPassword: Bool? = nil, hasConfiguredEasyPassword: Bool? = nil, enableAutoLogin: Bool? = nil, lastLoginDate: Date? = nil, lastActivityDate: Date? = nil, configuration: Any? = nil, policy: Any? = nil, primaryImageAspectRatio: Double? = nil) { - self.name = name - self.serverId = serverId - self.serverName = serverName - self._id = _id - self.primaryImageTag = primaryImageTag - self.hasPassword = hasPassword - self.hasConfiguredPassword = hasConfiguredPassword - self.hasConfiguredEasyPassword = hasConfiguredEasyPassword - self.enableAutoLogin = enableAutoLogin - self.lastLoginDate = lastLoginDate - self.lastActivityDate = lastActivityDate - self.configuration = configuration - self.policy = policy - self.primaryImageAspectRatio = primaryImageAspectRatio - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case serverId = "ServerId" - case serverName = "ServerName" - case _id = "Id" - case primaryImageTag = "PrimaryImageTag" - case hasPassword = "HasPassword" - case hasConfiguredPassword = "HasConfiguredPassword" - case hasConfiguredEasyPassword = "HasConfiguredEasyPassword" - case enableAutoLogin = "EnableAutoLogin" - case lastLoginDate = "LastLoginDate" - case lastActivityDate = "LastActivityDate" - case configuration = "Configuration" - case policy = "Policy" - case primaryImageAspectRatio = "PrimaryImageAspectRatio" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UsersUserIdBody2.swift b/JellyfinPlayer/Swaggers/Models/UsersUserIdBody2.swift deleted file mode 100644 index 8cc65a7f..00000000 --- a/JellyfinPlayer/Swaggers/Models/UsersUserIdBody2.swift +++ /dev/null @@ -1,78 +0,0 @@ -// -// UsersUserIdBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The updated user model. */ - -public struct UsersUserIdBody2: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the server identifier. */ - public var serverId: String? - /** Gets or sets the name of the server. This is not used by the server and is for client-side usage only. */ - public var serverName: String? - /** Gets or sets the id. */ - public var _id: UUID? - /** Gets or sets the primary image tag. */ - public var primaryImageTag: String? - /** Gets or sets a value indicating whether this instance has password. */ - public var hasPassword: Bool? - /** Gets or sets a value indicating whether this instance has configured password. */ - public var hasConfiguredPassword: Bool? - /** Gets or sets a value indicating whether this instance has configured easy password. */ - public var hasConfiguredEasyPassword: Bool? - /** Gets or sets whether async login is enabled or not. */ - public var enableAutoLogin: Bool? - /** Gets or sets the last login date. */ - public var lastLoginDate: Date? - /** Gets or sets the last activity date. */ - public var lastActivityDate: Date? - /** Gets or sets the configuration. */ - public var configuration: Any? - /** Gets or sets the policy. */ - public var policy: Any? - /** Gets or sets the primary image aspect ratio. */ - public var primaryImageAspectRatio: Double? - - public init(name: String? = nil, serverId: String? = nil, serverName: String? = nil, _id: UUID? = nil, primaryImageTag: String? = nil, hasPassword: Bool? = nil, hasConfiguredPassword: Bool? = nil, hasConfiguredEasyPassword: Bool? = nil, enableAutoLogin: Bool? = nil, lastLoginDate: Date? = nil, lastActivityDate: Date? = nil, configuration: Any? = nil, policy: Any? = nil, primaryImageAspectRatio: Double? = nil) { - self.name = name - self.serverId = serverId - self.serverName = serverName - self._id = _id - self.primaryImageTag = primaryImageTag - self.hasPassword = hasPassword - self.hasConfiguredPassword = hasConfiguredPassword - self.hasConfiguredEasyPassword = hasConfiguredEasyPassword - self.enableAutoLogin = enableAutoLogin - self.lastLoginDate = lastLoginDate - self.lastActivityDate = lastActivityDate - self.configuration = configuration - self.policy = policy - self.primaryImageAspectRatio = primaryImageAspectRatio - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case serverId = "ServerId" - case serverName = "ServerName" - case _id = "Id" - case primaryImageTag = "PrimaryImageTag" - case hasPassword = "HasPassword" - case hasConfiguredPassword = "HasConfiguredPassword" - case hasConfiguredEasyPassword = "HasConfiguredEasyPassword" - case enableAutoLogin = "EnableAutoLogin" - case lastLoginDate = "LastLoginDate" - case lastActivityDate = "LastActivityDate" - case configuration = "Configuration" - case policy = "Policy" - case primaryImageAspectRatio = "PrimaryImageAspectRatio" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/UtcTimeResponse.swift b/JellyfinPlayer/Swaggers/Models/UtcTimeResponse.swift deleted file mode 100644 index 74d79b20..00000000 --- a/JellyfinPlayer/Swaggers/Models/UtcTimeResponse.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// UtcTimeResponse.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Class UtcTimeResponse. */ - -public struct UtcTimeResponse: Codable { - - /** Gets the UTC time when request has been received. */ - public var requestReceptionTime: Date? - /** Gets the UTC time when response has been sent. */ - public var responseTransmissionTime: Date? - - public init(requestReceptionTime: Date? = nil, responseTransmissionTime: Date? = nil) { - self.requestReceptionTime = requestReceptionTime - self.responseTransmissionTime = responseTransmissionTime - } - - public enum CodingKeys: String, CodingKey { - case requestReceptionTime = "RequestReceptionTime" - case responseTransmissionTime = "ResponseTransmissionTime" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/ValidatePathDto.swift b/JellyfinPlayer/Swaggers/Models/ValidatePathDto.swift deleted file mode 100644 index 0b28e7fa..00000000 --- a/JellyfinPlayer/Swaggers/Models/ValidatePathDto.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// ValidatePathDto.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Validate path object. */ - -public struct ValidatePathDto: Codable { - - /** Gets or sets a value indicating whether validate if path is writable. */ - public var validateWritable: Bool? - /** Gets or sets the path. */ - public var path: String? - /** Gets or sets is path file. */ - public var isFile: Bool? - - public init(validateWritable: Bool? = nil, path: String? = nil, isFile: Bool? = nil) { - self.validateWritable = validateWritable - self.path = path - self.isFile = isFile - } - - public enum CodingKeys: String, CodingKey { - case validateWritable = "ValidateWritable" - case path = "Path" - case isFile = "IsFile" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/Version.swift b/JellyfinPlayer/Swaggers/Models/Version.swift deleted file mode 100644 index 6dfdbd6b..00000000 --- a/JellyfinPlayer/Swaggers/Models/Version.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// Version.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Plugin version. */ - -public struct Version: Codable { - - public var major: Int? - public var minor: Int? - public var build: Int? - public var revision: Int? - public var majorRevision: Int? - public var minorRevision: Int? - - public init(major: Int? = nil, minor: Int? = nil, build: Int? = nil, revision: Int? = nil, majorRevision: Int? = nil, minorRevision: Int? = nil) { - self.major = major - self.minor = minor - self.build = build - self.revision = revision - self.majorRevision = majorRevision - self.minorRevision = minorRevision - } - - public enum CodingKeys: String, CodingKey { - case major = "Major" - case minor = "Minor" - case build = "Build" - case revision = "Revision" - case majorRevision = "MajorRevision" - case minorRevision = "MinorRevision" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/Version1.swift b/JellyfinPlayer/Swaggers/Models/Version1.swift deleted file mode 100644 index 69296844..00000000 --- a/JellyfinPlayer/Swaggers/Models/Version1.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// Version1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Plugin version. */ - -public struct Version1: Codable { - - public var major: Int? - public var minor: Int? - public var build: Int? - public var revision: Int? - public var majorRevision: Int? - public var minorRevision: Int? - - public init(major: Int? = nil, minor: Int? = nil, build: Int? = nil, revision: Int? = nil, majorRevision: Int? = nil, minorRevision: Int? = nil) { - self.major = major - self.minor = minor - self.build = build - self.revision = revision - self.majorRevision = majorRevision - self.minorRevision = minorRevision - } - - public enum CodingKeys: String, CodingKey { - case major = "Major" - case minor = "Minor" - case build = "Build" - case revision = "Revision" - case majorRevision = "MajorRevision" - case minorRevision = "MinorRevision" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/Version2.swift b/JellyfinPlayer/Swaggers/Models/Version2.swift deleted file mode 100644 index 27401e81..00000000 --- a/JellyfinPlayer/Swaggers/Models/Version2.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// Version2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Plugin version. */ - -public struct Version2: Codable { - - public var major: Int? - public var minor: Int? - public var build: Int? - public var revision: Int? - public var majorRevision: Int? - public var minorRevision: Int? - - public init(major: Int? = nil, minor: Int? = nil, build: Int? = nil, revision: Int? = nil, majorRevision: Int? = nil, minorRevision: Int? = nil) { - self.major = major - self.minor = minor - self.build = build - self.revision = revision - self.majorRevision = majorRevision - self.minorRevision = minorRevision - } - - public enum CodingKeys: String, CodingKey { - case major = "Major" - case minor = "Minor" - case build = "Build" - case revision = "Revision" - case majorRevision = "MajorRevision" - case minorRevision = "MinorRevision" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/Version3.swift b/JellyfinPlayer/Swaggers/Models/Version3.swift deleted file mode 100644 index b92a462c..00000000 --- a/JellyfinPlayer/Swaggers/Models/Version3.swift +++ /dev/null @@ -1,40 +0,0 @@ -// -// Version3.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Plugin version. */ - -public struct Version3: Codable { - - public var major: Int? - public var minor: Int? - public var build: Int? - public var revision: Int? - public var majorRevision: Int? - public var minorRevision: Int? - - public init(major: Int? = nil, minor: Int? = nil, build: Int? = nil, revision: Int? = nil, majorRevision: Int? = nil, minorRevision: Int? = nil) { - self.major = major - self.minor = minor - self.build = build - self.revision = revision - self.majorRevision = majorRevision - self.minorRevision = minorRevision - } - - public enum CodingKeys: String, CodingKey { - case major = "Major" - case minor = "Minor" - case build = "Build" - case revision = "Revision" - case majorRevision = "MajorRevision" - case minorRevision = "MinorRevision" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/VersionInfo.swift b/JellyfinPlayer/Swaggers/Models/VersionInfo.swift deleted file mode 100644 index fa07626c..00000000 --- a/JellyfinPlayer/Swaggers/Models/VersionInfo.swift +++ /dev/null @@ -1,58 +0,0 @@ -// -// VersionInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Defines the MediaBrowser.Model.Updates.VersionInfo class. */ - -public struct VersionInfo: Codable { - - /** Gets or sets the version. */ - public var version: String? - /** Gets the version as a System.Version. */ - public var versionNumber: AllOfVersionInfoVersionNumber? - /** Gets or sets the changelog for this version. */ - public var changelog: String? - /** Gets or sets the ABI that this version was built against. */ - public var targetAbi: String? - /** Gets or sets the source URL. */ - public var sourceUrl: String? - /** Gets or sets a checksum for the binary. */ - public var checksum: String? - /** Gets or sets a timestamp of when the binary was built. */ - public var timestamp: String? - /** Gets or sets the repository name. */ - public var repositoryName: String? - /** Gets or sets the repository url. */ - public var repositoryUrl: String? - - public init(version: String? = nil, versionNumber: AllOfVersionInfoVersionNumber? = nil, changelog: String? = nil, targetAbi: String? = nil, sourceUrl: String? = nil, checksum: String? = nil, timestamp: String? = nil, repositoryName: String? = nil, repositoryUrl: String? = nil) { - self.version = version - self.versionNumber = versionNumber - self.changelog = changelog - self.targetAbi = targetAbi - self.sourceUrl = sourceUrl - self.checksum = checksum - self.timestamp = timestamp - self.repositoryName = repositoryName - self.repositoryUrl = repositoryUrl - } - - public enum CodingKeys: String, CodingKey { - case version - case versionNumber = "VersionNumber" - case changelog - case targetAbi - case sourceUrl - case checksum - case timestamp - case repositoryName - case repositoryUrl - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/Video3DFormat.swift b/JellyfinPlayer/Swaggers/Models/Video3DFormat.swift deleted file mode 100644 index 815fff00..00000000 --- a/JellyfinPlayer/Swaggers/Models/Video3DFormat.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// Video3DFormat.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -public enum Video3DFormat: String, Codable { - case halfSideBySide = "HalfSideBySide" - case fullSideBySide = "FullSideBySide" - case fullTopAndBottom = "FullTopAndBottom" - case halfTopAndBottom = "HalfTopAndBottom" - case mvc = "MVC" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/VideoType.swift b/JellyfinPlayer/Swaggers/Models/VideoType.swift deleted file mode 100644 index 0dde9403..00000000 --- a/JellyfinPlayer/Swaggers/Models/VideoType.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// VideoType.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Enum VideoType. */ -public enum VideoType: String, Codable { - case videoFile = "VideoFile" - case iso = "Iso" - case dvd = "Dvd" - case bluRay = "BluRay" -} \ No newline at end of file diff --git a/JellyfinPlayer/Swaggers/Models/VirtualFolderInfo.swift b/JellyfinPlayer/Swaggers/Models/VirtualFolderInfo.swift deleted file mode 100644 index c9f8c31c..00000000 --- a/JellyfinPlayer/Swaggers/Models/VirtualFolderInfo.swift +++ /dev/null @@ -1,51 +0,0 @@ -// -// VirtualFolderInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Used to hold information about a user's list of configured virtual folders. */ - -public struct VirtualFolderInfo: Codable { - - /** Gets or sets the name. */ - public var name: String? - /** Gets or sets the locations. */ - public var locations: [String]? - /** Gets or sets the type of the collection. */ - public var collectionType: AllOfVirtualFolderInfoCollectionType? - public var libraryOptions: AllOfVirtualFolderInfoLibraryOptions? - /** Gets or sets the item identifier. */ - public var itemId: String? - /** Gets or sets the primary image item identifier. */ - public var primaryImageItemId: String? - public var refreshProgress: Double? - public var refreshStatus: String? - - public init(name: String? = nil, locations: [String]? = nil, collectionType: AllOfVirtualFolderInfoCollectionType? = nil, libraryOptions: AllOfVirtualFolderInfoLibraryOptions? = nil, itemId: String? = nil, primaryImageItemId: String? = nil, refreshProgress: Double? = nil, refreshStatus: String? = nil) { - self.name = name - self.locations = locations - self.collectionType = collectionType - self.libraryOptions = libraryOptions - self.itemId = itemId - self.primaryImageItemId = primaryImageItemId - self.refreshProgress = refreshProgress - self.refreshStatus = refreshStatus - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case locations = "Locations" - case collectionType = "CollectionType" - case libraryOptions = "LibraryOptions" - case itemId = "ItemId" - case primaryImageItemId = "PrimaryImageItemId" - case refreshProgress = "RefreshProgress" - case refreshStatus = "RefreshStatus" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/VirtualFoldersLibraryOptionsBody.swift b/JellyfinPlayer/Swaggers/Models/VirtualFoldersLibraryOptionsBody.swift deleted file mode 100644 index 809d0405..00000000 --- a/JellyfinPlayer/Swaggers/Models/VirtualFoldersLibraryOptionsBody.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// VirtualFoldersLibraryOptionsBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The library name and options. */ - -public struct VirtualFoldersLibraryOptionsBody: Codable { - - /** Gets or sets the library item id. */ - public var _id: UUID? - /** Gets or sets library options. */ - public var libraryOptions: Any? - - public init(_id: UUID? = nil, libraryOptions: Any? = nil) { - self._id = _id - self.libraryOptions = libraryOptions - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case libraryOptions = "LibraryOptions" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/VirtualFoldersLibraryOptionsBody1.swift b/JellyfinPlayer/Swaggers/Models/VirtualFoldersLibraryOptionsBody1.swift deleted file mode 100644 index cffabcf4..00000000 --- a/JellyfinPlayer/Swaggers/Models/VirtualFoldersLibraryOptionsBody1.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// VirtualFoldersLibraryOptionsBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The library name and options. */ - -public struct VirtualFoldersLibraryOptionsBody1: Codable { - - /** Gets or sets the library item id. */ - public var _id: UUID? - /** Gets or sets library options. */ - public var libraryOptions: Any? - - public init(_id: UUID? = nil, libraryOptions: Any? = nil) { - self._id = _id - self.libraryOptions = libraryOptions - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case libraryOptions = "LibraryOptions" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/VirtualFoldersLibraryOptionsBody2.swift b/JellyfinPlayer/Swaggers/Models/VirtualFoldersLibraryOptionsBody2.swift deleted file mode 100644 index 8a242f20..00000000 --- a/JellyfinPlayer/Swaggers/Models/VirtualFoldersLibraryOptionsBody2.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// VirtualFoldersLibraryOptionsBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The library name and options. */ - -public struct VirtualFoldersLibraryOptionsBody2: Codable { - - /** Gets or sets the library item id. */ - public var _id: UUID? - /** Gets or sets library options. */ - public var libraryOptions: Any? - - public init(_id: UUID? = nil, libraryOptions: Any? = nil) { - self._id = _id - self.libraryOptions = libraryOptions - } - - public enum CodingKeys: String, CodingKey { - case _id = "Id" - case libraryOptions = "LibraryOptions" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/VirtualFoldersPathsBody.swift b/JellyfinPlayer/Swaggers/Models/VirtualFoldersPathsBody.swift deleted file mode 100644 index 9964a3ef..00000000 --- a/JellyfinPlayer/Swaggers/Models/VirtualFoldersPathsBody.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// VirtualFoldersPathsBody.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The media path dto. */ - -public struct VirtualFoldersPathsBody: Codable { - - /** Gets or sets the name of the library. */ - public var name: String - /** Gets or sets the path to add. */ - public var path: String? - /** Gets or sets the path info. */ - public var pathInfo: Any? - - public init(name: String, path: String? = nil, pathInfo: Any? = nil) { - self.name = name - self.path = path - self.pathInfo = pathInfo - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case path = "Path" - case pathInfo = "PathInfo" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/VirtualFoldersPathsBody1.swift b/JellyfinPlayer/Swaggers/Models/VirtualFoldersPathsBody1.swift deleted file mode 100644 index 41aec943..00000000 --- a/JellyfinPlayer/Swaggers/Models/VirtualFoldersPathsBody1.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// VirtualFoldersPathsBody1.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The media path dto. */ - -public struct VirtualFoldersPathsBody1: Codable { - - /** Gets or sets the name of the library. */ - public var name: String - /** Gets or sets the path to add. */ - public var path: String? - /** Gets or sets the path info. */ - public var pathInfo: Any? - - public init(name: String, path: String? = nil, pathInfo: Any? = nil) { - self.name = name - self.path = path - self.pathInfo = pathInfo - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case path = "Path" - case pathInfo = "PathInfo" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/VirtualFoldersPathsBody2.swift b/JellyfinPlayer/Swaggers/Models/VirtualFoldersPathsBody2.swift deleted file mode 100644 index a3e19503..00000000 --- a/JellyfinPlayer/Swaggers/Models/VirtualFoldersPathsBody2.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// VirtualFoldersPathsBody2.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** The media path dto. */ - -public struct VirtualFoldersPathsBody2: Codable { - - /** Gets or sets the name of the library. */ - public var name: String - /** Gets or sets the path to add. */ - public var path: String? - /** Gets or sets the path info. */ - public var pathInfo: Any? - - public init(name: String, path: String? = nil, pathInfo: Any? = nil) { - self.name = name - self.path = path - self.pathInfo = pathInfo - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case path = "Path" - case pathInfo = "PathInfo" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/WakeOnLanInfo.swift b/JellyfinPlayer/Swaggers/Models/WakeOnLanInfo.swift deleted file mode 100644 index 002c0368..00000000 --- a/JellyfinPlayer/Swaggers/Models/WakeOnLanInfo.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// WakeOnLanInfo.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Provides the MAC address and port for wake-on-LAN functionality. */ - -public struct WakeOnLanInfo: Codable { - - /** Gets the MAC address of the device. */ - public var macAddress: String? - /** Gets or sets the wake-on-LAN port. */ - public var port: Int? - - public init(macAddress: String? = nil, port: Int? = nil) { - self.macAddress = macAddress - self.port = port - } - - public enum CodingKeys: String, CodingKey { - case macAddress = "MacAddress" - case port = "Port" - } - -} diff --git a/JellyfinPlayer/Swaggers/Models/XmlAttribute.swift b/JellyfinPlayer/Swaggers/Models/XmlAttribute.swift deleted file mode 100644 index ba7acfa7..00000000 --- a/JellyfinPlayer/Swaggers/Models/XmlAttribute.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// XmlAttribute.swift -// -// Generated by swagger-codegen -// https://github.com/swagger-api/swagger-codegen -// - -import Foundation - - -/** Defines the MediaBrowser.Model.Dlna.XmlAttribute. */ - -public struct XmlAttribute: Codable { - - /** Gets or sets the name of the attribute. */ - public var name: String? - /** Gets or sets the value of the attribute. */ - public var value: String? - - public init(name: String? = nil, value: String? = nil) { - self.name = name - self.value = value - } - - public enum CodingKeys: String, CodingKey { - case name = "Name" - case value = "Value" - } - -}