mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 01:24:44 +01:00
Added IHasBudget
This commit is contained in:
@@ -19,7 +19,12 @@ namespace MediaBrowser.Server.Implementations.Sorting
|
||||
|
||||
private double GetValue(BaseItem x)
|
||||
{
|
||||
return x.Budget ?? 0;
|
||||
var hasBudget = x as IHasBudget;
|
||||
if (hasBudget != null)
|
||||
{
|
||||
return hasBudget.Budget ?? 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -19,7 +19,12 @@ namespace MediaBrowser.Server.Implementations.Sorting
|
||||
|
||||
private double GetValue(BaseItem x)
|
||||
{
|
||||
return x.Revenue ?? 0;
|
||||
var hasBudget = x as IHasBudget;
|
||||
if (hasBudget != null)
|
||||
{
|
||||
return hasBudget.Revenue ?? 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user