Class BaseItem
Inheritance
System.Object
BaseItem
Assembly: MediaBrowser.Controller.dll
public abstract class BaseItem : IHasProviderIds, IHasLookupInfo<ItemLookupInfo>
Fields
Declaration
public static ExtraType[] DisplayExtraTypes
Field Value
Declaration
public static readonly Dictionary<string, ExtraType?> ExtrasSubFolders
Field Value
| Type |
Description |
| System.Collections.Generic.Dictionary<System.String, System.Nullable<ExtraType>> |
|
Declaration
public static string MediaSourceIdPrefix
Field Value
| Type |
Description |
| System.String |
|
The supported image extensions
Declaration
public static readonly string[] SupportedImageExtensions
Field Value
| Type |
Description |
| System.String[] |
|
Declaration
public static ReadOnlyMemory<char> ThemeSongFilename
Field Value
| Type |
Description |
| System.ReadOnlyMemory<System.Char> |
|
Declaration
public static ReadOnlyMemory<char> ThemeSongsFolderName
Field Value
| Type |
Description |
| System.ReadOnlyMemory<System.Char> |
|
Declaration
public static ReadOnlyMemory<char> ThemeVideosFolderName
Field Value
| Type |
Description |
| System.ReadOnlyMemory<System.Char> |
|
Declaration
public static ReadOnlyMemory<char> TrailerFolderName
Field Value
| Type |
Description |
| System.ReadOnlyMemory<System.Char> |
|
Properties
Declaration
[IgnoreDataMember]
public int? AdditionalPartCount { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Int32> |
|
Declaration
[IgnoreDataMember]
public string Album { get; set; }
Property Value
| Type |
Description |
| System.String |
The album.
|
Declaration
[IgnoreDataMember]
public long AlbumId { get; }
Property Value
| Type |
Description |
| System.Int64 |
|
Gets or sets the artists.
Declaration
[IgnoreDataMember]
public LinkedItemInfo AlbumItem { get; set; }
Property Value
Declaration
[IgnoreDataMember]
public virtual bool AllowRecursiveCounts { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
public static IServerApplicationHost ApplicationHost { get; set; }
Property Value
Declaration
[IgnoreDataMember]
public string AudioCodec { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Declaration
[IgnoreDataMember]
public int? AudioStreamIndex { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Int32> |
|
Declaration
[IgnoreDataMember]
public float? AverageFrameRate { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Single> |
|
Declaration
public static IChannelManager ChannelManager { get; set; }
Property Value
Declaration
[IgnoreDataMember]
public int? ChildCount { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Int32> |
|
Declaration
[IgnoreDataMember]
public Folder[] CollectionFolders { get; set; }
Property Value
Gets or sets the collections.
Declaration
[IgnoreDataMember]
public LinkedItemInfo[] Collections { get; set; }
Property Value
Gets or sets the community rating.
Declaration
[IgnoreDataMember]
public float? CommunityRating { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Single> |
The community rating.
|
Declaration
public static IServerConfigurationManager ConfigurationManager { get; set; }
Property Value
Declaration
[IgnoreDataMember]
public string Container { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Returns the folder containing the item.
If the item is a folder, it returns the folder itself
Declaration
[IgnoreDataMember]
public virtual string ContainingFolderPath { get; }
Property Value
| Type |
Description |
| System.String |
|
Gets or sets the critic rating.
Declaration
[IgnoreDataMember]
public float? CriticRating { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Single> |
The critic rating.
|
Gets or sets the custom rating.
Declaration
[IgnoreDataMember]
public string CustomRating { get; set; }
Property Value
| Type |
Description |
| System.String |
The custom rating.
|
Declaration
[IgnoreDataMember]
public ReadOnlySpan<char> CustomRatingForComparison { get; }
Property Value
| Type |
Description |
| System.ReadOnlySpan<System.Char> |
|
Gets or sets the date created.
Declaration
public DateTimeOffset DateCreated { get; set; }
Property Value
| Type |
Description |
| System.DateTimeOffset |
The date created.
|
Declaration
[IgnoreDataMember]
public DateTimeOffset DateLastRefreshed { get; set; }
Property Value
| Type |
Description |
| System.DateTimeOffset |
|
Declaration
[IgnoreDataMember]
public DateTimeOffset DateLastSaved { get; set; }
Property Value
| Type |
Description |
| System.DateTimeOffset |
|
Gets or sets the date modified.
Declaration
[IgnoreDataMember]
public DateTimeOffset DateModified { get; set; }
Property Value
| Type |
Description |
| System.DateTimeOffset |
The date modified.
|
Declaration
[IgnoreDataMember]
public BaseItem DisplayParent { get; }
Property Value
Declaration
[IgnoreDataMember]
public virtual long DisplayParentId { get; }
Property Value
| Type |
Description |
| System.Int64 |
|
Return the id that should be used to key display prefs for this item.
Default is based on the type for everything except actual generic folders.
Declaration
[IgnoreDataMember]
public virtual Guid DisplayPreferencesId { get; }
Property Value
| Type |
Description |
| System.Guid |
The display prefs id.
|
Declaration
[IgnoreDataMember]
public virtual bool EnableAlphaNumericSorting { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public virtual bool EnableInternalIdsExternally { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public virtual bool EnableRememberingTrackSelections { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Gets or sets the end date.
Declaration
[IgnoreDataMember]
public DateTimeOffset? EndDate { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.DateTimeOffset> |
The end date.
|
If this content came from an external service, the id of the content on that service
Declaration
[IgnoreDataMember]
public string ExternalId { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Declaration
[IgnoreDataMember]
public ExtraType? ExtraType { get; set; }
Property Value
Declaration
public static IFeatureManager FeatureManager { get; set; }
Property Value
Declaration
[IgnoreDataMember]
public virtual string FileName { get; }
Property Value
| Type |
Description |
| System.String |
|
FileNameWithoutExtension
Declaration
[IgnoreDataMember]
public virtual string FileNameWithoutExtension { get; }
Property Value
| Type |
Description |
| System.String |
|
Declaration
public static IFileSystem FileSystem { get; set; }
Property Value
Declaration
[IgnoreDataMember]
public virtual bool ForceDefaultAspectRatio { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public LinkedItemInfo[] GenreItems { get; set; }
Property Value
Declaration
[IgnoreDataMember]
public string[] Genres { get; set; }
Property Value
| Type |
Description |
| System.String[] |
|
Declaration
[IgnoreDataMember]
public bool HasPathProtocol { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public int Height { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
Declaration
[IgnoreDataMember]
public Guid Id { get; set; }
Property Value
| Type |
Description |
| System.Guid |
The id.
|
Declaration
[IgnoreDataMember]
public virtual long ImageDisplayParentId { get; }
Property Value
| Type |
Description |
| System.Int64 |
|
Declaration
[IgnoreDataMember]
public virtual ItemImageInfo[] ImageInfos { get; set; }
Property Value
Declaration
public LinkedItemInfo[] ImportedCollections { get; set; }
Property Value
If the item is part of a series, this is it's number in the series.
This could be episode number, album track number, etc.
Declaration
[IgnoreDataMember]
public int? IndexNumber { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Int32> |
The index number.
|
Declaration
[IgnoreDataMember]
public long InternalAlbumId { get; set; }
Property Value
| Type |
Description |
| System.Int64 |
|
Declaration
[IgnoreDataMember]
public long InternalId { get; set; }
Property Value
| Type |
Description |
| System.Int64 |
|
Declaration
[IgnoreDataMember]
public bool IsCompleteMedia { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public virtual bool IsDisplayedAsFolder { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public bool IsFavorite { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public bool IsFileProtocol { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Gets a value indicating whether this instance is folder.
Declaration
[IgnoreDataMember]
[Obsolete("Check is Folder by type or IsDisplayedAsFolder, depending on your use case.")]
public virtual bool IsFolder { get; }
Property Value
| Type |
Description |
| System.Boolean |
true if this instance is folder; otherwise, false.
|
Declaration
[IgnoreDataMember]
public bool IsHD { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public virtual bool IsHidden { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Gets a value indicating whether this instance is in mixed folder.
Declaration
[IgnoreDataMember]
public bool IsInMixedFolder { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
true if this instance is in mixed folder; otherwise, false.
|
Declaration
[IgnoreDataMember]
public bool IsLocked { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public virtual bool IsMedia { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
public bool IsNameParsedFromFolder { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public bool IsPlaceHolder { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public bool IsPublic { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public virtual bool IsResolvedToFolder { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public bool IsSecondaryMergedItemInSameFolder { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public bool IsShortcut { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public bool IsThemeMedia { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public virtual bool IsTopParent { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public bool IsUnaired { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public bool IsVirtualItem { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
public static IItemRepository ItemRepository { get; set; }
Property Value
Declaration
[IgnoreDataMember]
public DateTimeOffset? LastPlayedDate { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.DateTimeOffset> |
|
Declaration
[IgnoreDataMember]
public virtual long LatestItemsContainerId { get; }
Property Value
| Type |
Description |
| System.Int64 |
|
Declaration
public static ILibraryManager LibraryManager { get; set; }
Property Value
Declaration
[IgnoreDataMember]
public LibraryOptions LibraryOptions { get; set; }
Property Value
ListItemEntryId
Declaration
[IgnoreDataMember]
public long ListItemEntryId { get; set; }
Property Value
| Type |
Description |
| System.Int64 |
|
Declaration
public static ILiveTvManager LiveTvManager { get; set; }
Property Value
Declaration
public static ILocalizationManager LocalizationManager { get; set; }
Property Value
Declaration
[IgnoreDataMember]
public int? LocalTrailerCount { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Int32> |
|
Declaration
[IgnoreDataMember]
public Guid[] LocalTrailerIds { get; }
Property Value
| Type |
Description |
| System.Guid[] |
|
Gets or sets the type of the location.
Declaration
[IgnoreDataMember]
public virtual LocationType LocationType { get; }
Property Value
Gets or sets the locked fields.
Declaration
[IgnoreDataMember]
public MetadataFields[] LockedFields { get; set; }
Property Value
Declaration
public static ILogger Logger { get; set; }
Property Value
Declaration
[IgnoreDataMember]
public MediaContainers? MediaContainer { get; }
Property Value
Declaration
public static IMediaSourceManager MediaSourceManager { get; set; }
Property Value
Declaration
[IgnoreDataMember]
public List<MediaStream> MediaStreams { get; set; }
Property Value
| Type |
Description |
| System.Collections.Generic.List<MediaStream> |
|
Gets the type of the media.
Declaration
[IgnoreDataMember]
public virtual string MediaType { get; }
Property Value
| Type |
Description |
| System.String |
The type of the media.
|
Declaration
[IgnoreDataMember]
public virtual string Name { get; set; }
Property Value
| Type |
Description |
| System.String |
The name.
|
Declaration
public static INetworkManager NetworkManager { get; set; }
Property Value
Gets or sets the official rating.
Declaration
[IgnoreDataMember]
public string OfficialRating { get; set; }
Property Value
| Type |
Description |
| System.String |
The official rating.
|
Declaration
[IgnoreDataMember]
public ReadOnlySpan<char> OfficialRatingForComparison { get; }
Property Value
| Type |
Description |
| System.ReadOnlySpan<System.Char> |
|
Declaration
public string OriginalParsedName { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Declaration
[IgnoreDataMember]
public string OriginalTitle { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Gets or sets the overview.
Declaration
[IgnoreDataMember]
public string Overview { get; set; }
Property Value
| Type |
Description |
| System.String |
The overview.
|
Declaration
[IgnoreDataMember]
public bool OwnsFolder { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public Folder Parent { get; set; }
Property Value
| Type |
Description |
| Folder |
The parent.
|
Declaration
[IgnoreDataMember]
public long ParentId { get; set; }
Property Value
| Type |
Description |
| System.Int64 |
|
For an episode this could be the season number, or for a song this could be the disc number.
Declaration
[IgnoreDataMember]
public int? ParentIndexNumber { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Int32> |
The parent index number.
|
Declaration
protected virtual bool ParseNameBeforeMetadataRefresh { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public virtual string Path { get; set; }
Property Value
| Type |
Description |
| System.String |
The path.
|
Declaration
[IgnoreDataMember]
public MediaProtocol? PathProtocol { get; }
Property Value
Declaration
[IgnoreDataMember]
public long PlaybackPositionTicks { get; set; }
Property Value
| Type |
Description |
| System.Int64 |
|
Declaration
[IgnoreDataMember]
public int PlayCount { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
Declaration
[IgnoreDataMember]
public bool Played { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
public double? PlayedPercentage { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Double> |
|
Declaration
[IgnoreDataMember]
public string PreferredMetadataCountryCode { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Declaration
[IgnoreDataMember]
public string PreferredMetadataLanguage { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Declaration
[IgnoreDataMember]
public string Prefix { get; set; }
Property Value
| Type |
Description |
| System.String |
|
When the item first debuted. For movies this could be premiere date, episodes would be first aired
Declaration
[IgnoreDataMember]
public DateTimeOffset? PremiereDate { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.DateTimeOffset> |
The premiere date.
|
Declaration
[IgnoreDataMember]
public string PresentationUniqueKey { get; set; }
Property Value
| Type |
Description |
| System.String |
|
This is just a helper for convenience
Declaration
[IgnoreDataMember]
public string PrimaryImagePath { get; }
Property Value
| Type |
Description |
| System.String |
The primary image path.
|
Declaration
[IgnoreDataMember]
public string[] ProductionLocations { get; set; }
Property Value
| Type |
Description |
| System.String[] |
|
Gets or sets the production year.
Declaration
[IgnoreDataMember]
public int? ProductionYear { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Int32> |
The production year.
|
Gets or sets the provider ids.
Declaration
[IgnoreDataMember]
public ProviderIdDictionary ProviderIds { get; set; }
Property Value
Declaration
public static IProviderManager ProviderManager { get; set; }
Property Value
Declaration
[IgnoreDataMember]
public float? RealFrameRate { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Single> |
|
Declaration
public virtual bool RecursiveChildCountEqualsChildCount { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public int? RecursiveItemCount { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Int32> |
|
Declaration
[IgnoreDataMember]
public string[] RemoteTrailers { get; set; }
Property Value
| Type |
Description |
| System.String[] |
|
Declaration
[IgnoreDataMember]
public List<BaseItem> ResolvedExtras { get; set; }
Property Value
| Type |
Description |
| System.Collections.Generic.List<BaseItem> |
|
Declaration
public string ResolvedPresentationUniqueKey { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Gets or sets the run time ticks.
Declaration
[IgnoreDataMember]
public long? RunTimeTicks { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Int64> |
The run time ticks.
|
Declaration
[IgnoreDataMember]
public long SeriesId { get; set; }
Property Value
| Type |
Description |
| System.Int64 |
|
Declaration
[IgnoreDataMember]
public string SeriesPresentationUniqueKey { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Declaration
[IgnoreDataMember]
public UserItemShareLevel? ShareLevel { get; set; }
Property Value
Declaration
[IgnoreDataMember]
public long Size { get; set; }
Property Value
| Type |
Description |
| System.Int64 |
|
Gets the name of the sort.
Declaration
[IgnoreDataMember]
public string SortName { get; set; }
Property Value
| Type |
Description |
| System.String |
The name of the sort.
|
Declaration
[IgnoreDataMember]
public int? SpecialFeatureCount { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Int32> |
|
Gets or sets the studios.
Declaration
[IgnoreDataMember]
public LinkedItemInfo[] StudioItems { get; set; }
Property Value
Declaration
[IgnoreDataMember]
public string[] Studios { get; set; }
Property Value
| Type |
Description |
| System.String[] |
|
Declaration
[IgnoreDataMember]
public int? SubtitleStreamIndex { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Int32> |
|
Declaration
[IgnoreDataMember]
public virtual bool SupportsAdditionalParts { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public virtual bool SupportsAncestors { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public virtual bool SupportsCollections { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public virtual bool SupportsEditingAlbum { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public virtual bool SupportsExternalTransfer { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public virtual bool SupportsExtras { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public virtual bool SupportsGenres { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public virtual bool SupportsInheritedParentImages { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public virtual bool SupportsLocalTrailers { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public virtual bool SupportsOwnedItems { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public virtual bool SupportsPeople { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public virtual bool SupportsRemoteImageDownloading { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public virtual bool SupportsResetMetadata { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public virtual bool SupportsStudios { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public virtual bool SupportsTags { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public virtual bool SupportsThemeMedia { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public virtual bool SupportsUserData { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public SyncJobItemStatus? SyncStatus { get; set; }
Property Value
Declaration
[IgnoreDataMember]
public LinkedItemInfo[] TagItems { get; set; }
Property Value
Declaration
[IgnoreDataMember]
public string Tagline { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Declaration
[IgnoreDataMember]
public string[] Tags { get; set; }
Property Value
| Type |
Description |
| System.String[] |
|
Declaration
[IgnoreDataMember]
public Guid[] ThemeSongIds { get; }
Property Value
| Type |
Description |
| System.Guid[] |
|
Declaration
[IgnoreDataMember]
public Guid[] ThemeVideoIds { get; }
Property Value
| Type |
Description |
| System.Guid[] |
|
Declaration
[IgnoreDataMember]
public int TotalBitrate { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
Declaration
[IgnoreDataMember]
public int? UnplayedItemCount { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Int32> |
|
Declaration
[IgnoreDataMember]
public string UserDataKey { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Declaration
public static IUserDataManager UserDataManager { get; set; }
Property Value
Declaration
[IgnoreDataMember]
public bool UserDataSet { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
public static IUserManager UserManager { get; set; }
Property Value
Declaration
[IgnoreDataMember]
public double? UserRating { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Double> |
|
Declaration
[IgnoreDataMember]
protected virtual bool ValidatesChildren { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
[IgnoreDataMember]
public string VideoCodec { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Declaration
[IgnoreDataMember]
public int Width { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
Methods
Declaration
public bool AddCollection(BoxSet newEntry)
Parameters
| Type |
Name |
Description |
| BoxSet |
newEntry |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public void AddCollection(LinkedItemInfo newEntry)
Parameters
Declaration
public LinkedItemInfo AddCollection(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
Returns
Declaration
public bool AddCollectionInfo(LinkedItemInfo newEntry)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public void AddGenre(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
The name.
|
Exceptions
| Type |
Condition |
| System.ArgumentNullException |
|
Declaration
public void AddImage(FileSystemMetadata file, ImageType type)
Parameters
Declaration
public bool AddImages(ImageType imageType, List<FileSystemMetadata> images, bool deleteMissingImages)
Parameters
| Type |
Name |
Description |
| ImageType |
imageType |
|
| System.Collections.Generic.List<FileSystemMetadata> |
images |
|
| System.Boolean |
deleteMissingImages |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public void AddImportedCollections(LinkedItemInfo[] collections)
Parameters
Declaration
public static LinkedItemInfo[] AddLinkedItem(LinkedItemInfo[] items, LinkedItemInfo newEntry)
Parameters
Returns
Declaration
public static LinkedItemInfo[] AddLinkedItem(LinkedItemInfo[] items, LinkedItemInfo newEntry, out LinkedItemInfo addedOrUpdatedItem, out bool listChanged)
Parameters
Returns
Declaration
public static LinkedItemInfo[] AddLinkedItem(LinkedItemInfo[] items, string name)
Parameters
Returns
Declaration
public static LinkedItemInfo[] AddLinkedItem(LinkedItemInfo[] items, string name, out LinkedItemInfo addedOrUpdatedItem, out bool listChanged)
Parameters
Returns
Declaration
protected string AddProviderIdsToName(string name, string[] providerIds)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
| System.String[] |
providerIds |
|
Returns
| Type |
Description |
| System.String |
|
Adds a studio to the item
Declaration
public void AddStudio(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
The name.
|
Exceptions
| Type |
Condition |
| System.ArgumentNullException |
|
Declaration
public void AfterMetadataRefresh()
Declaration
public virtual bool AllowEditingField(MetadataFields field)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public bool AllowsMultipleImages(ImageType type)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public void AssertHasMinimumShareLevel(User user, UserItemShareLevel shareLevel, CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| User |
user |
|
| UserItemShareLevel |
shareLevel |
|
| System.Threading.CancellationToken |
cancellationToken |
|
This is called before any metadata refresh and returns true or false indicating if changes were made
Declaration
public virtual bool BeforeMetadataRefresh(bool replaceAllMetdata)
Parameters
| Type |
Name |
Description |
| System.Boolean |
replaceAllMetdata |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public virtual bool CanDelete()
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public bool CanDelete(User user, Folder[] collectionFolders)
Parameters
| Type |
Name |
Description |
| User |
user |
|
| Folder[] |
collectionFolders |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public bool CanDelete(User user, UserItemShareLevel shareLevel, Folder[] collectionFolders)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public virtual bool CanDownload()
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public bool CanDownload(User user)
Parameters
| Type |
Name |
Description |
| User |
user |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
protected virtual bool CanDownloadAsFolder()
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
protected virtual bool CanDownloadAsSingleMedia()
Returns
| Type |
Description |
| System.Boolean |
|
CanLeaveSharedContent(User, UserItemShareLevel)
Declaration
public virtual bool CanLeaveSharedContent(User user, UserItemShareLevel shareLevel)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public bool CanMakePrivate(User user)
Parameters
| Type |
Name |
Description |
| User |
user |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public bool CanMakePrivate(UserItemShareLevel shareLevel)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public bool CanMakePublic(User user)
Parameters
| Type |
Name |
Description |
| User |
user |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public bool CanMakePublic(UserItemShareLevel shareLevel)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public virtual bool CanManageAccess(User user, UserItemShareLevel shareLevel)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public void ClearProviderIds()
Finds a parent of a given type
Declaration
public T Closest<T>()
where T : BaseItem
Returns
Type Parameters
Declaration
public bool ContainsTag(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
Returns
| Type |
Description |
| System.Boolean |
|
CreatePresentationUniqueKey(BaseItem[], LibraryOptions, IDataContext, CancellationToken)
Declaration
public virtual string CreatePresentationUniqueKey(BaseItem[] collectionFolders, LibraryOptions libraryOptions, IDataContext dataContext, CancellationToken cancellationToken)
Parameters
Returns
| Type |
Description |
| System.String |
|
CreatePresentationUniqueKey(IDataContext, CancellationToken)
Declaration
public string CreatePresentationUniqueKey(IDataContext dataContext, CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| IDataContext |
dataContext |
|
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| System.String |
|
Creates the name of the sort.
Declaration
protected virtual ReadOnlySpan<char> CreateSortName()
Returns
| Type |
Description |
| System.ReadOnlySpan<System.Char> |
System.String.
|
Declaration
protected ReadOnlySpan<char> CreateSortName(ReadOnlySpan<char> text)
Parameters
| Type |
Name |
Description |
| System.ReadOnlySpan<System.Char> |
text |
|
Returns
| Type |
Description |
| System.ReadOnlySpan<System.Char> |
|
Declaration
public void DeleteImage(ImageType type, int index)
Parameters
| Type |
Name |
Description |
| ImageType |
type |
The type.
|
| System.Int32 |
index |
The index.
|
Declaration
public virtual bool EnableImageCaching(LibraryOptions libraryOptions)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public void EnsureTaggedItemsLoaded()
EnsureTaggedItemsLoaded(IDataContext)
Declaration
public void EnsureTaggedItemsLoaded(IDataContext dataContext)
Parameters
Declaration
public virtual void FillItemLinks(List<(ItemLinkType, string, long)> itemLinks)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.List<System.ValueTuple<ItemLinkType, System.String, System.Int64>> |
itemLinks |
|
Declaration
public virtual void FillUserDataDtoValues(UserItemDataDto dto, User user, DtoOptions options, LibraryOptions libraryOptions, CancellationToken cancellationToken)
Parameters
FillUserDataValues(User, DtoOptions, LibraryOptions, IDataContext, CancellationToken)
Declaration
public virtual void FillUserDataValues(User user, DtoOptions options, LibraryOptions libraryOptions, IDataContext dataContext, CancellationToken cancellationToken)
Parameters
Declaration
public T FindParent<T>()
where T : BaseItem
Returns
Type Parameters
FindParent<T>(IDataContext)
Declaration
public T FindParent<T>(IDataContext dataContext)
where T : BaseItem
Parameters
Returns
Type Parameters
Declaration
public long[] GetAdditionalPartIds()
Returns
| Type |
Description |
| System.Int64[] |
|
Declaration
public BaseItem[] GetAdditionalParts(DtoOptions options, User user)
Parameters
Returns
GetAlbumId(IDataContext)
Declaration
public long GetAlbumId(IDataContext dataContext)
Parameters
Returns
| Type |
Description |
| System.Int64 |
|
GetAlbumItem(IDataContext)
Declaration
public LinkedItemInfo GetAlbumItem(IDataContext dataContext)
Parameters
Returns
Declaration
protected virtual List<Tuple<BaseItem, MediaSourceType>> GetAllItemsForMediaSources(User user, bool enableAlternateMediaSources)
Parameters
| Type |
Name |
Description |
| User |
user |
|
| System.Boolean |
enableAlternateMediaSources |
|
Returns
Declaration
public List<LinkedItemInfo> GetAllKnownCollections()
Returns
Declaration
public List<LinkedItemInfo> GetAllKnownCollections(CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
Declaration
public string GetApiImageUrl(ItemImageInfo imageInfo, int imageIndex, ApiImageOptions options, string serverUrl)
Parameters
Returns
| Type |
Description |
| System.String |
|
Declaration
public BaseItem GetCachedParent()
Returns
GetChildCount(User, IDataContext, CancellationToken)
Declaration
public virtual int GetChildCount(User user, IDataContext dataContext, CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| User |
user |
|
| IDataContext |
dataContext |
|
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| System.Int32 |
|
Declaration
protected virtual BaseItem[] GetChildrenForValidation(CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
Declaration
public BaseItem[] GetChildrenForValidationSorted(CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
Declaration
public string GetClientId()
Returns
| Type |
Description |
| System.String |
|
Declaration
public virtual string GetClientTypeName()
Returns
| Type |
Description |
| System.String |
|
Declaration
public string GetDefaultMediaSourceId()
Returns
| Type |
Description |
| System.String |
|
Declaration
protected string GetDefaultPresentationUniqueKey()
Returns
| Type |
Description |
| System.String |
|
Declaration
public virtual double GetDefaultPrimaryImageAspectRatio()
Returns
| Type |
Description |
| System.Double |
|
Gets the file system path to delete when the item is to be deleted
Declaration
public virtual List<FileSystemMetadata> GetDeletePaths(bool mediaFilesOnly, BaseItem[] collectionFolders)
Parameters
| Type |
Name |
Description |
| System.Boolean |
mediaFilesOnly |
|
| BaseItem[] |
collectionFolders |
|
Returns
Declaration
public long[] GetDisplayExtraIds()
Returns
| Type |
Description |
| System.Int64[] |
|
Declaration
public virtual int? GetDisplayOrderIntValue()
Returns
| Type |
Description |
| System.Nullable<System.Int32> |
|
Declaration
public string GetEtag(User user)
Parameters
| Type |
Name |
Description |
| User |
user |
|
Returns
| Type |
Description |
| System.String |
|
Declaration
protected virtual List<string> GetEtagValues(User user)
Parameters
| Type |
Name |
Description |
| User |
user |
|
Returns
| Type |
Description |
| System.Collections.Generic.List<System.String> |
|
Declaration
public Guid[] GetExtraGuids(ExtraType[] extraTypes)
Parameters
Returns
| Type |
Description |
| System.Guid[] |
|
Declaration
public long[] GetExtraIds(ExtraType[] extraTypes)
Parameters
Returns
| Type |
Description |
| System.Int64[] |
|
Declaration
public BaseItem[] GetExtras(ExtraType[] extraTypes)
Parameters
Returns
Declaration
public BaseItem[] GetExtras(ExtraType[] extraTypes, DtoOptions options)
Parameters
Returns
Declaration
public BaseItem[] GetExtras(ExtraType[] extraTypes, DtoOptions options, CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| ExtraType[] |
extraTypes |
|
| DtoOptions |
options |
|
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
Declaration
public static BaseItem[] GetExtras(long internalId, User user, ExtraType[] extraTypes, DtoOptions options, CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| System.Int64 |
internalId |
|
| User |
user |
|
| ExtraType[] |
extraTypes |
|
| DtoOptions |
options |
|
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
Declaration
public BaseItem[] GetExtras(long internalId, string presentationUniqueKey, ExtraType[] extraTypes, DtoOptions options, CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| System.Int64 |
internalId |
|
| System.String |
presentationUniqueKey |
|
| ExtraType[] |
extraTypes |
|
| DtoOptions |
options |
|
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
Declaration
public ExtraType[] GetExtraTypes(ExtraType[] extraTypes, CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| ExtraType[] |
extraTypes |
|
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
Declaration
public virtual FileSystemMetadata[] GetFileSystemChildren(IDirectoryService directoryService)
Parameters
Returns
GetIdsForAncestorIdsQuery(User, IDataContext, CancellationToken)
Declaration
public virtual long[] GetIdsForAncestorIdsQuery(User user, IDataContext dataContext, CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| User |
user |
|
| IDataContext |
dataContext |
|
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| System.Int64[] |
|
Gets the image information.
Declaration
public ItemImageInfo GetImageInfo(ImageType imageType, int imageIndex)
Parameters
| Type |
Name |
Description |
| ImageType |
imageType |
Type of the image.
|
| System.Int32 |
imageIndex |
Index of the image.
|
Returns
Declaration
public string GetImagePath(ImageType imageType, int imageIndex)
Parameters
| Type |
Name |
Description |
| ImageType |
imageType |
Type of the image.
|
| System.Int32 |
imageIndex |
Index of the image.
|
Returns
| Type |
Description |
| System.String |
System.String.
|
Exceptions
| Type |
Condition |
| System.InvalidOperationException |
|
| System.ArgumentNullException |
item
|
Declaration
public IEnumerable<ItemImageInfo> GetImages(ImageType imageType)
Parameters
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<ItemImageInfo> |
|
Declaration
public LinkedItemInfo[] GetImportedCollections(CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
Only used by plugins at this point
Declaration
public int? GetInheritedParentalRatingValue()
Returns
| Type |
Description |
| System.Nullable<System.Int32> |
|
Declaration
public string GetInternalMetadataPath()
Returns
| Type |
Description |
| System.String |
|
Declaration
protected static string GetInternalMetadataPath(Guid itemId, string basePath)
Parameters
| Type |
Name |
Description |
| System.Guid |
itemId |
|
| System.String |
basePath |
|
Returns
| Type |
Description |
| System.String |
|
Declaration
protected virtual string GetInternalMetadataPath(string basePath)
Parameters
| Type |
Name |
Description |
| System.String |
basePath |
|
Returns
| Type |
Description |
| System.String |
|
Declaration
protected T GetItemLookupInfo<T>(LibraryOptions libraryOptions)
where T : ItemLookupInfo, new()
Parameters
Returns
Type Parameters
GetItemsForAncestorIdsQuery(User, IDataContext, CancellationToken)
Declaration
public virtual BaseItem[] GetItemsForAncestorIdsQuery(User user, IDataContext dataContext, CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| User |
user |
|
| IDataContext |
dataContext |
|
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
Declaration
public async Task<string> GetLocalApiImageUrl(ItemImageInfo imageInfo, int imageIndex, ApiImageOptions options, CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| ItemImageInfo |
imageInfo |
|
| System.Int32 |
imageIndex |
|
| ApiImageOptions |
options |
|
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<System.String> |
|
Declaration
protected static string GetMappedPath(string path, MediaProtocol? protocol, LibraryOptions libraryOptions)
Parameters
Returns
| Type |
Description |
| System.String |
|
Declaration
public string GetMediaContainingFolderPath(LibraryOptions libraryOptions)
Parameters
Returns
| Type |
Description |
| System.String |
|
Declaration
public virtual string GetMediaContainingFolderPath(LibraryOptions libraryOptions, CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| LibraryOptions |
libraryOptions |
|
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| System.String |
|
Declaration
public virtual List<MediaSourceInfo> GetMediaSources(User user, bool enableAlternateMediaSources, bool enablePathSubstitution, bool fillMediaStreams, bool fillChapters, BaseItem[] collectionFolders, LibraryOptions libraryOptions, CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| User |
user |
|
| System.Boolean |
enableAlternateMediaSources |
|
| System.Boolean |
enablePathSubstitution |
|
| System.Boolean |
fillMediaStreams |
|
| System.Boolean |
fillChapters |
|
| BaseItem[] |
collectionFolders |
|
| LibraryOptions |
libraryOptions |
|
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
GetMediaSources
This overload is for CoverArt
Declaration
public List<MediaSourceInfo> GetMediaSources(bool enableAlternateMediaSources, bool enablePathSubstitution, LibraryOptions libraryOptions)
Parameters
| Type |
Name |
Description |
| System.Boolean |
enableAlternateMediaSources |
|
| System.Boolean |
enablePathSubstitution |
|
| LibraryOptions |
libraryOptions |
|
Returns
Declaration
public List<MediaStream> GetMediaStreams()
Returns
| Type |
Description |
| System.Collections.Generic.List<MediaStream> |
|
Declaration
public virtual List<MediaStream> GetMediaStreams(CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| System.Collections.Generic.List<MediaStream> |
|
Declaration
protected virtual string GetNameForMetadataLookup()
Returns
| Type |
Description |
| System.String |
|
Get the children of this folder from the actual file system
Declaration
protected virtual List<BaseItem> GetNonCachedChildren(IDirectoryService directoryService, BaseItem[] collectionFolders, LibraryOptions libraryOptions)
Parameters
Returns
| Type |
Description |
| System.Collections.Generic.List<BaseItem> |
|
Declaration
public BaseItem GetParent()
Returns
GetParent(IDataContext)
Declaration
public BaseItem GetParent(IDataContext dataContext)
Parameters
Returns
Declaration
public int? GetParentalRatingValue()
Returns
| Type |
Description |
| System.Nullable<System.Int32> |
|
Declaration
public IEnumerable<BaseItem> GetParents()
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<BaseItem> |
|
GetParents(IDataContext)
Declaration
public IEnumerable<BaseItem> GetParents(IDataContext dataContext)
Parameters
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<BaseItem> |
|
Declaration
public string GetPreferredImageLanguage(LibraryOptions libraryOptions)
Parameters
Returns
| Type |
Description |
| System.String |
|
Declaration
public string GetPreferredMetadataCountryCode()
Returns
| Type |
Description |
| System.String |
|
Gets the preferred metadata language.
Declaration
public string GetPreferredMetadataCountryCode(LibraryOptions libraryOptions)
Parameters
Returns
| Type |
Description |
| System.String |
System.String.
|
Declaration
public string GetPreferredMetadataLanguage()
Returns
| Type |
Description |
| System.String |
|
Gets the preferred metadata language.
Declaration
public string GetPreferredMetadataLanguage(LibraryOptions libraryOptions)
Parameters
Returns
| Type |
Description |
| System.String |
System.String.
|
GetPreferredMetadataLanguage(LibraryOptions, IDataContext)
Declaration
public string GetPreferredMetadataLanguage(LibraryOptions libraryOptions, IDataContext dataContext)
Parameters
Returns
| Type |
Description |
| System.String |
|
Declaration
public string GetPresentationUniqueKey()
Returns
| Type |
Description |
| System.String |
|
GetPresentationUniqueKey(BaseItem[], LibraryOptions, IDataContext, CancellationToken)
Declaration
public string GetPresentationUniqueKey(BaseItem[] collectionFolders, LibraryOptions libraryOptions, IDataContext dataContext, CancellationToken cancellationToken)
Parameters
Returns
| Type |
Description |
| System.String |
|
GetPresentationUniqueKey(IDataContext, CancellationToken)
Declaration
public string GetPresentationUniqueKey(IDataContext dataContext, CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| IDataContext |
dataContext |
|
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| System.String |
|
GetRecursiveChildCount(User, IDataContext, CancellationToken)
Declaration
public virtual int GetRecursiveChildCount(User user, IDataContext dataContext, CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| User |
user |
|
| IDataContext |
dataContext |
|
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| System.Int32 |
|
Declaration
public virtual double? GetRefreshProgress()
Returns
| Type |
Description |
| System.Nullable<System.Double> |
|
Declaration
public virtual List<ExternalUrl> GetRelatedUrls()
Returns
| Type |
Description |
| System.Collections.Generic.List<ExternalUrl> |
|
Declaration
public string GetRemoteApiImageUrl(ItemImageInfo imageInfo, int imageIndex, ApiImageOptions options)
Parameters
Returns
| Type |
Description |
| System.String |
|
Declaration
public virtual long GetRunTimeTicksForPlayState()
Returns
| Type |
Description |
| System.Int64 |
|
Declaration
public UserItemShareLevel GetShareLevel(User user, CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| User |
user |
|
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
Declaration
public virtual string GetStandaloneDisplayName()
Returns
| Type |
Description |
| System.String |
|
Declaration
public static string GetStandaloneDisplayName(string name, string seriesName, int? indexNumber, int? parentIndexNumber)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
| System.String |
seriesName |
|
| System.Nullable<System.Int32> |
indexNumber |
|
| System.Nullable<System.Int32> |
parentIndexNumber |
|
Returns
| Type |
Description |
| System.String |
|
Declaration
public virtual List<ItemLinkType> GetSupportedItemLinkTypes()
Returns
| Type |
Description |
| System.Collections.Generic.List<ItemLinkType> |
|
Declaration
public virtual bool GetSupportsPositionTicksResume(LibraryOptions libraryOptions)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public BaseItem[] GetThemeSongs(DtoOptions options, CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| DtoOptions |
options |
|
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
Declaration
public BaseItem[] GetThemeVideos(DtoOptions options, CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| DtoOptions |
options |
|
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
Declaration
public BaseItem GetTopParent()
Returns
Declaration
public ProviderIdDictionary GetUniquelyIdentifiableProviderIds()
Returns
GetUserDataKey(IDataContext)
Declaration
public string GetUserDataKey(IDataContext dataContext)
Parameters
Returns
| Type |
Description |
| System.String |
|
GetUserDataKeyInternal(IDataContext)
Declaration
protected virtual string GetUserDataKeyInternal(IDataContext dataContext)
Parameters
Returns
| Type |
Description |
| System.String |
|
Declaration
public static bool HasDateChanged(DateTimeOffset date, DateTimeOffset newValue)
Parameters
| Type |
Name |
Description |
| System.DateTimeOffset |
date |
|
| System.DateTimeOffset |
newValue |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public static bool HasDateChanged(DateTimeOffset? date, DateTimeOffset newValue)
Parameters
| Type |
Name |
Description |
| System.Nullable<System.DateTimeOffset> |
date |
|
| System.DateTimeOffset |
newValue |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public static bool HasDateChanged(DateTimeOffset? date, DateTimeOffset? newValue)
Parameters
| Type |
Name |
Description |
| System.Nullable<System.DateTimeOffset> |
date |
|
| System.Nullable<System.DateTimeOffset> |
newValue |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public bool HasDateModifiedChanged(DateTimeOffset newValue)
Parameters
| Type |
Name |
Description |
| System.DateTimeOffset |
newValue |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public bool HasImage(ImageType type, int imageIndex)
Parameters
| Type |
Name |
Description |
| ImageType |
type |
The type.
|
| System.Int32 |
imageIndex |
Index of the image.
|
Returns
| Type |
Description |
| System.Boolean |
true if the specified type has image; otherwise, false.
|
Exceptions
| Type |
Condition |
| System.ArgumentException |
Backdrops should be accessed using Item.Backdrops
|
Declaration
public virtual bool HasPlaceholderMatadata()
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public virtual bool IsActiveRecording()
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public virtual bool IsAuthorizedToDelete(User user, UserItemShareLevel shareLevel, Folder[] collectionFolders)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public virtual bool IsAuthorizedToDownload(User user)
Parameters
| Type |
Name |
Description |
| User |
user |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public bool IsFavoriteOrLiked(User user)
Parameters
| Type |
Name |
Description |
| User |
user |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public bool IsFieldLocked(MetadataFields field)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public static bool IsFileShortcut(string path)
Parameters
| Type |
Name |
Description |
| System.String |
path |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public bool IsGreaterThanDateLastSaved(DateTimeOffset newValue)
Parameters
| Type |
Name |
Description |
| System.DateTimeOffset |
newValue |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public bool IsImageFetcherEnabled(LibraryOptions libraryOptions, string name)
Parameters
| Type |
Name |
Description |
| LibraryOptions |
libraryOptions |
|
| System.String |
name |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public virtual bool IsLocalMetadataReaderEnabled(LibraryOptions libraryOptions, string name)
Parameters
| Type |
Name |
Description |
| LibraryOptions |
libraryOptions |
|
| System.String |
name |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public bool IsMetadataFetcherEnabled(LibraryOptions libraryOptions, string name)
Parameters
| Type |
Name |
Description |
| LibraryOptions |
libraryOptions |
|
| System.String |
name |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public bool IsPathProtocol(MediaProtocol protocol)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public virtual bool IsPlayed(User user)
Parameters
| Type |
Name |
Description |
| User |
user |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public virtual bool IsSaveLocalImagesEnabled(LibraryOptions libraryOptions)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public virtual bool IsUnplayed(User user)
Parameters
| Type |
Name |
Description |
| User |
user |
|
Returns
| Type |
Description |
| System.Boolean |
|
Determines if this folder should be visible to a given user.
Default is just parental allowed. Can be overridden for more functionality.
Declaration
public virtual bool IsVisible(User user)
Parameters
| Type |
Name |
Description |
| User |
user |
The user.
|
Returns
| Type |
Description |
| System.Boolean |
true if the specified user is visible; otherwise, false.
|
Exceptions
| Type |
Condition |
| System.ArgumentNullException |
user
|
Declaration
public bool IsVisibleStandalone(User user)
Parameters
| Type |
Name |
Description |
| User |
user |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public virtual void MarkPlayed(User user, BaseItem[] collectionFolders, DateTimeOffset? datePlayed, bool resetPosition)
Parameters
| Type |
Name |
Description |
| User |
user |
|
| BaseItem[] |
collectionFolders |
|
| System.Nullable<System.DateTimeOffset> |
datePlayed |
|
| System.Boolean |
resetPosition |
|
Declaration
public void MarkPlayed(User user, DateTimeOffset? datePlayed, bool resetPosition)
Parameters
| Type |
Name |
Description |
| User |
user |
|
| System.Nullable<System.DateTimeOffset> |
datePlayed |
|
| System.Boolean |
resetPosition |
|
Declaration
public void MarkTaggedItemsLoaded()
Declaration
public virtual void MarkUnplayed(User user)
Parameters
| Type |
Name |
Description |
| User |
user |
The user.
|
Exceptions
| Type |
Condition |
| System.ArgumentNullException |
|
Declaration
public void MoveFiles(string[] list1, string[] list2)
Parameters
| Type |
Name |
Description |
| System.String[] |
list1 |
|
| System.String[] |
list2 |
|
Declaration
public Task RefreshMetadata(BaseItem[] collectionFolders, LibraryOptions libraryOptions, CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| BaseItem[] |
collectionFolders |
|
| LibraryOptions |
libraryOptions |
|
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Declaration
public async Task<ItemUpdateType> RefreshMetadata(MetadataRefreshOptions options, BaseItem[] collectionFolders, LibraryOptions libraryOptions, CancellationToken cancellationToken)
Parameters
Returns
Overrides the base implementation to refresh metadata for local trailers
Declaration
public Task<ItemUpdateType> RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| MetadataRefreshOptions |
options |
The options.
|
| System.Threading.CancellationToken |
cancellationToken |
The cancellation token.
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<ItemUpdateType> |
true if a provider reports we changed
|
Declaration
public Task RefreshMetadata(CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Declaration
public bool RemoveCollection(long collectionId)
Parameters
| Type |
Name |
Description |
| System.Int64 |
collectionId |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public void RemoveImage(ItemImageInfo image)
Parameters
Declaration
public void RemoveImage(ImageType type, string path)
Parameters
| Type |
Name |
Description |
| ImageType |
type |
|
| System.String |
path |
|
Declaration
public void RemoveImages(List<ItemImageInfo> deletedImages)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.List<ItemImageInfo> |
deletedImages |
|
Declaration
public static LinkedItemInfo[] RemoveLinkedItem(LinkedItemInfo[] items, LinkedItemInfo itemToRemove)
Parameters
Returns
Declaration
public static LinkedItemInfo[] RemoveLinkedItem(LinkedItemInfo[] items, string name)
Parameters
Returns
Declaration
public void ReorderImage(ImageType type, int originalIndex, int newIndex)
Parameters
| Type |
Name |
Description |
| ImageType |
type |
|
| System.Int32 |
originalIndex |
|
| System.Int32 |
newIndex |
|
Declaration
public void ResetMetadata()
Declaration
protected virtual void ResetMetadataInternal()
Declaration
public void SetAlbumItem(BaseItem item)
Parameters
Declaration
protected virtual void SetAutoSorting(InternalItemsQuery query, List<(string, SortOrder)> orderBy)
Parameters
Declaration
protected void SetAutoSortingIfNeeded(InternalItemsQuery query)
Parameters
Declaration
public void SetCachedParent(BaseItem parent)
Parameters
Declaration
public void SetCollections(IEnumerable<string> names)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.IEnumerable<System.String> |
names |
|
Declaration
public virtual void SetDisplayOrder(string value)
Parameters
| Type |
Name |
Description |
| System.String |
value |
|
Declaration
public void SetGenres(IEnumerable<string> names)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.IEnumerable<System.String> |
names |
|
Declaration
public void SetImage(ItemImageInfo image, int index)
Parameters
Declaration
public void SetImage(ItemImageInfo image, int index, bool deleteExistingImage)
Parameters
| Type |
Name |
Description |
| ItemImageInfo |
image |
|
| System.Int32 |
index |
|
| System.Boolean |
deleteExistingImage |
|
Declaration
public void SetParent(BaseItem parent)
Parameters
Declaration
public void SetProviderIds(ProviderIdDictionary dict)
Parameters
Declaration
public void SetSeriesItem(BaseItem item)
Parameters
An optimization to avoid processing a value that's already been processed
Declaration
public void SetSortNameDirect(string sortName)
Parameters
| Type |
Name |
Description |
| System.String |
sortName |
|
Declaration
public void SetStudios(IEnumerable<string> names)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.IEnumerable<System.String> |
names |
|
Declaration
public void SetTagItemsDirect(LinkedItemInfo[] items)
Parameters
Declaration
public void SetTags(IEnumerable<string> names)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.IEnumerable<System.String> |
names |
|
Declaration
protected virtual BaseItem[] SortChildrenForValidation(BaseItem[] children)
Parameters
| Type |
Name |
Description |
| BaseItem[] |
children |
|
Returns
Declaration
public virtual bool SupportsMakePublicOrPrivate()
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public virtual bool SupportsManageAccess()
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public virtual bool SupportsPlayedStatus()
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public LinkedItemInfo ToLinkedItemInfo()
Returns
Returns a System.String that represents this instance.
Declaration
public override string ToString()
Returns
| Type |
Description |
| System.String |
A System.String that represents this instance.
|
Overrides
System.Object.ToString()
Declaration
protected virtual void TriggerOnRefreshComplete()
Declaration
protected virtual void TriggerOnRefreshStart()
Declaration
public virtual void UpdateHideFromResume(User user, UserItemData userData, BaseItem[] collectionFolders, bool hide)
Parameters
Declaration
public void UpdateHideFromResume(User user, UserItemData userData, bool hide)
Parameters
Updates the official rating based on content and returns true or false indicating if it changed.
Declaration
public bool UpdateRatingToItems(BaseItem[] children)
Parameters
| Type |
Name |
Description |
| BaseItem[] |
children |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public void UpdateToRepository(ItemUpdateType updateReason)
Parameters
Declaration
public void UpdateToRepository(ItemUpdateType updateReason, BaseItem parent)
Parameters
Declaration
public virtual void UpdateToRepository(ItemUpdateType updateReason, BaseItem parent, MetadataRefreshOptions metadataRefreshOptions)
Parameters
Declaration
public virtual void UpdateToRepository(ItemUpdateType updateReason, MetadataRefreshOptions metadataRefreshOptions)
Parameters
Validates that the children of the folder still exist
Declaration
public Task ValidateChildren(IProgress<double> progress, CancellationToken cancellationToken, MetadataRefreshOptions metadataRefreshOptions, bool recursive = true)
Parameters
| Type |
Name |
Description |
| System.IProgress<System.Double> |
progress |
|
| System.Threading.CancellationToken |
cancellationToken |
|
| MetadataRefreshOptions |
metadataRefreshOptions |
|
| System.Boolean |
recursive |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Validates the children internal.
Declaration
protected virtual async Task ValidateChildrenInternal(IProgress<double> progress, CancellationToken cancellationToken, bool recursive, bool refreshChildMetadata, BaseItem[] collectionFolders, LibraryOptions libraryOptions, Dictionary<long, bool> newItemIds, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService)
Parameters
| Type |
Name |
Description |
| System.IProgress<System.Double> |
progress |
|
| System.Threading.CancellationToken |
cancellationToken |
|
| System.Boolean |
recursive |
|
| System.Boolean |
refreshChildMetadata |
|
| BaseItem[] |
collectionFolders |
|
| LibraryOptions |
libraryOptions |
|
| System.Collections.Generic.Dictionary<System.Int64, System.Boolean> |
newItemIds |
|
| MetadataRefreshOptions |
refreshOptions |
|
| IDirectoryService |
directoryService |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Explicit Interface Implementations
Declaration
ItemLookupInfo IHasLookupInfo<ItemLookupInfo>.GetLookupInfo(LibraryOptions libraryOptions)
Parameters
Returns
Implements
Extension Methods