mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 09:34:44 +01:00
add hevc cuvid
This commit is contained in:
@@ -211,33 +211,6 @@ namespace MediaBrowser.Controller.Entities
|
||||
item.SetParent(null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the valid set of index by options for this folder type.
|
||||
/// Override or extend to modify.
|
||||
/// </summary>
|
||||
/// <returns>Dictionary{System.StringFunc{UserIEnumerable{BaseItem}}}.</returns>
|
||||
protected virtual IEnumerable<string> GetIndexByOptions()
|
||||
{
|
||||
return new List<string> {
|
||||
{"None"},
|
||||
{"Performer"},
|
||||
{"Genre"},
|
||||
{"Director"},
|
||||
{"Year"},
|
||||
{"Studio"}
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get the list of indexy by choices for this folder (localized).
|
||||
/// </summary>
|
||||
/// <value>The index by option strings.</value>
|
||||
[IgnoreDataMember]
|
||||
public IEnumerable<string> IndexByOptionStrings
|
||||
{
|
||||
get { return GetIndexByOptions(); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the actual children.
|
||||
/// </summary>
|
||||
|
||||
@@ -66,17 +66,6 @@ namespace MediaBrowser.Controller.Entities.TV
|
||||
return series == null ? SeriesName : series.SortName;
|
||||
}
|
||||
|
||||
// Genre, Rating and Stuido will all be the same
|
||||
protected override IEnumerable<string> GetIndexByOptions()
|
||||
{
|
||||
return new List<string> {
|
||||
{"None"},
|
||||
{"Performer"},
|
||||
{"Director"},
|
||||
{"Year"},
|
||||
};
|
||||
}
|
||||
|
||||
public override List<string> GetUserDataKeys()
|
||||
{
|
||||
var list = base.GetUserDataKeys();
|
||||
|
||||
@@ -227,17 +227,6 @@ namespace MediaBrowser.Controller.Entities.TV
|
||||
return list;
|
||||
}
|
||||
|
||||
// Studio, Genre and Rating will all be the same so makes no sense to index by these
|
||||
protected override IEnumerable<string> GetIndexByOptions()
|
||||
{
|
||||
return new List<string> {
|
||||
{"None"},
|
||||
{"Performer"},
|
||||
{"Director"},
|
||||
{"Year"},
|
||||
};
|
||||
}
|
||||
|
||||
[IgnoreDataMember]
|
||||
public bool ContainsEpisodesWithoutSeasonFolders
|
||||
{
|
||||
|
||||
@@ -57,8 +57,13 @@ namespace MediaBrowser.Controller.LiveTv
|
||||
|
||||
return value;
|
||||
}
|
||||
else
|
||||
{
|
||||
double value = 2;
|
||||
value /= 3;
|
||||
|
||||
return null;
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
[IgnoreDataMember]
|
||||
|
||||
Reference in New Issue
Block a user