jellyflood/JellyfinPlayer/Swaggers/APIs/UserLibraryAPI.swift

6883 lines
196 KiB
Swift

//
// 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<UserItemDataDto>
*/
open class func deleteUserItemRatingWithRequestBuilder(userId: UUID, itemId: UUID) -> RequestBuilder<UserItemDataDto> {
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<UserItemDataDto>.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<BaseItemDtoQueryResult>
*/
open class func getIntrosWithRequestBuilder(userId: UUID, itemId: UUID) -> RequestBuilder<BaseItemDtoQueryResult> {
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<BaseItemDtoQueryResult>.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<BaseItemDto>
*/
open class func getItemWithRequestBuilder(userId: UUID, itemId: UUID) -> RequestBuilder<BaseItemDto> {
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<BaseItemDto>.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<BaseItemDto>
*/
open class func getRootFolderWithRequestBuilder(userId: UUID) -> RequestBuilder<BaseItemDto> {
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<BaseItemDto>.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<UserItemDataDto>
*/
open class func markFavoriteItemWithRequestBuilder(userId: UUID, itemId: UUID) -> RequestBuilder<UserItemDataDto> {
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<UserItemDataDto>.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<UserItemDataDto>
*/
open class func unmarkFavoriteItemWithRequestBuilder(userId: UUID, itemId: UUID) -> RequestBuilder<UserItemDataDto> {
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<UserItemDataDto>.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<UserItemDataDto>
*/
open class func updateUserItemRatingWithRequestBuilder(userId: UUID, itemId: UUID, likes: Bool? = nil) -> RequestBuilder<UserItemDataDto> {
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<UserItemDataDto>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder()
return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false)
}
}