Class BaseItem
Inheritance
System.Object
BaseItem
Assembly: MediaBrowser.Controller.dll
public abstract class BaseItem : IHasProviderIds, IHasLookupInfo<ItemLookupInfo>
Constructors
Declaration
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>> |
|
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; set; }
Property Value
Type |
Description |
System.Int64 |
|
Declaration
public static IServerApplicationHost ApplicationHost { get; set; }
Property Value
Declaration
[IgnoreDataMember]
public int? AudioStreamIndex { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Int32> |
|
Declaration
public static IChannelManager ChannelManager { 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 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]
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
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
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
[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
[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 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> |
|
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 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 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
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)
Parameters
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 bool ContainsTag(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public string CreatePresentationUniqueKey()
Returns
Type |
Description |
System.String |
|
Declaration
public virtual string CreatePresentationUniqueKey(BaseItem[] collectionFolders, LibraryOptions libraryOptions)
Parameters
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()
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, BaseItemDto itemDto, User user, DtoOptions options)
Parameters
Finds a parent of a given type
Declaration
public T FindParent<T>()
where T : BaseItem
Returns
Type Parameters
Declaration
public long[] GetAdditionalPartIds()
Returns
Type |
Description |
System.Int64[] |
|
Declaration
public BaseItem[] GetAdditionalParts(DtoOptions options, User user)
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 string GetApiImageUrl(ItemImageInfo imageInfo, int imageIndex, ApiImageOptions options, string serverUrl)
Parameters
Returns
Type |
Description |
System.String |
|
Declaration
protected virtual BaseItem[] GetChildrenForValidation()
Returns
Declaration
public BaseItem[] GetChildrenForValidationSorted()
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 static BaseItem[] GetExtras(long internalId, ExtraType[] extraTypes, DtoOptions options)
Parameters
Returns
Declaration
public BaseItem[] GetExtras(long internalId, string presentationUniqueKey, ExtraType[] extraTypes, DtoOptions options)
Parameters
Type |
Name |
Description |
System.Int64 |
internalId |
|
System.String |
presentationUniqueKey |
|
ExtraType[] |
extraTypes |
|
DtoOptions |
options |
|
Returns
Declaration
public ExtraType[] GetExtraTypes(ExtraType[] extraTypes)
Parameters
Returns
Declaration
public virtual FileSystemMetadata[] GetFileSystemChildren(IDirectoryService directoryService)
Parameters
Returns
Declaration
public virtual long[] GetIdsForAncestorIdsQuery(User user = null)
Parameters
Type |
Name |
Description |
User |
user |
|
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()
Returns
Only used by plugins at this point
Declaration
public int? GetInheritedParentalRatingValue()
Returns
Type |
Description |
System.Nullable<System.Int32> |
|
Declaration
public List<long> GetInternalAncestorIds()
Returns
Type |
Description |
System.Collections.Generic.List<System.Int64> |
|
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
Declaration
public virtual BaseItem[] GetItemsForAncestorIdsQuery(User user = null)
Parameters
Type |
Name |
Description |
User |
user |
|
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 virtual string GetMediaContainingFolderPath(LibraryOptions libraryOptions)
Parameters
Returns
Type |
Description |
System.String |
|
Declaration
public virtual List<MediaSourceInfo> GetMediaSources(User user, bool enableAlternateMediaSources, bool enablePathSubstitution, LibraryOptions libraryOptions)
Parameters
Type |
Name |
Description |
User |
user |
|
System.Boolean |
enableAlternateMediaSources |
|
System.Boolean |
enablePathSubstitution |
|
LibraryOptions |
libraryOptions |
|
Returns
GetMediaSources
This overload is for CoverArt
Declaration
public virtual List<MediaSourceInfo> GetMediaSources(bool enableAlternateMediaSources, bool enablePathSubstitution, LibraryOptions libraryOptions)
Parameters
Type |
Name |
Description |
System.Boolean |
enableAlternateMediaSources |
|
System.Boolean |
enablePathSubstitution |
|
LibraryOptions |
libraryOptions |
|
Returns
Declaration
public virtual List<MediaStream> GetMediaStreams()
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, LibraryOptions libraryOptions)
Parameters
Returns
Type |
Description |
System.Collections.Generic.List<BaseItem> |
|
Declaration
public BaseItem GetParent()
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> |
|
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.
|
Declaration
public string GetPresentationUniqueKey()
Returns
Type |
Description |
System.String |
|
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)
Parameters
Type |
Name |
Description |
User |
user |
|
Returns
Declaration
public virtual string GetStandaloneDisplayName()
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)
Parameters
Returns
Declaration
public BaseItem[] GetThemeVideos(DtoOptions options)
Parameters
Returns
Declaration
public BaseItem GetTopParent()
Returns
Declaration
public ProviderIdDictionary GetUniquelyIdentifiableProviderIds()
Returns
Declaration
public string GetUserDataKey()
Returns
Type |
Description |
System.String |
|
Declaration
protected virtual string GetUserDataKeyInternal()
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 IsSaveLocalMetadataEnabled(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 |
The user.
|
BaseItem[] |
collectionFolders |
|
System.Nullable<System.DateTimeOffset> |
datePlayed |
The date played.
|
System.Boolean |
resetPosition |
if set to true [reset position].
|
Exceptions
Type |
Condition |
System.ArgumentNullException |
|
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 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 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
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 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 |
|
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 |
The progress.
|
System.Threading.CancellationToken |
cancellationToken |
The cancellation token.
|
System.Boolean |
recursive |
if set to true [recursive].
|
System.Boolean |
refreshChildMetadata |
if set to true [refresh child metadata].
|
BaseItem[] |
collectionFolders |
|
LibraryOptions |
libraryOptions |
|
System.Collections.Generic.Dictionary<System.Int64, System.Boolean> |
newItemIds |
|
MetadataRefreshOptions |
refreshOptions |
The refresh options.
|
IDirectoryService |
directoryService |
The directory service.
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
Task.
|
Explicit Interface Implementations
Declaration
ItemLookupInfo IHasLookupInfo<ItemLookupInfo>.GetLookupInfo(LibraryOptions libraryOptions)
Parameters
Returns
Implements
Extension Methods