mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-19 12:44:19 +01:00
added a virtual season image provider
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using MediaBrowser.Controller.Configuration;
|
||||
using MediaBrowser.Controller.Entities;
|
||||
using MediaBrowser.Controller.Entities.TV;
|
||||
using MediaBrowser.Controller.Providers;
|
||||
using MediaBrowser.Model.Entities;
|
||||
using MediaBrowser.Model.Logging;
|
||||
@@ -20,6 +21,22 @@ namespace MediaBrowser.Providers
|
||||
{
|
||||
var locationType = item.LocationType;
|
||||
|
||||
// The regular provider will get virtual seasons
|
||||
if (item.LocationType == LocationType.Virtual)
|
||||
{
|
||||
var season = item as Season;
|
||||
|
||||
if (season != null)
|
||||
{
|
||||
var series = season.Series;
|
||||
|
||||
if (series != null && series.LocationType == LocationType.FileSystem)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return locationType == LocationType.Virtual ||
|
||||
locationType == LocationType.Remote;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user