This commit is contained in:
Eric Reed 2013-04-30 11:25:43 -04:00
commit c9038fec27
3 changed files with 32 additions and 0 deletions

View file

@ -32,6 +32,9 @@ namespace MediaBrowser.Controller.Entities
People = new List<PersonInfo>();
CriticReviews = new List<ItemReview>();
Taglines = new List<string>();
ScreenshotImagePaths = new List<string>();
BackdropImagePaths = new List<string>();
ProductionLocations = new List<string>();
}
/// <summary>
@ -731,6 +734,11 @@ namespace MediaBrowser.Controller.Entities
/// <returns>List{Video}.</returns>
private List<Trailer> LoadLocalTrailers()
{
if (LocationType != LocationType.FileSystem)
{
return new List<Trailer>();
}
ItemResolveArgs resolveArgs;
try
@ -789,6 +797,11 @@ namespace MediaBrowser.Controller.Entities
/// <returns>List{Audio.Audio}.</returns>
private List<Audio.Audio> LoadThemeSongs()
{
if (LocationType != LocationType.FileSystem)
{
return new List<Audio.Audio>();
}
ItemResolveArgs resolveArgs;
try
@ -847,6 +860,11 @@ namespace MediaBrowser.Controller.Entities
/// <returns>List{Video}.</returns>
private List<Video> LoadThemeVideos()
{
if (LocationType != LocationType.FileSystem)
{
return new List<Video>();
}
ItemResolveArgs resolveArgs;
try

View file

@ -5,6 +5,7 @@ using System.Linq;
using System.Runtime.Serialization;
using System.Threading;
using System.Threading.Tasks;
using MediaBrowser.Model.Entities;
namespace MediaBrowser.Controller.Entities
{
@ -64,6 +65,14 @@ namespace MediaBrowser.Controller.Entities
}
}
public override LocationType LocationType
{
get
{
return LocationType.Virtual;
}
}
/// <summary>
/// Override this to return the folder that should be used to construct a container
/// for this item in an index. GroupInIndex should be true as well.

View file

@ -115,6 +115,11 @@ namespace MediaBrowser.Controller.Entities.Movies
/// <returns>IEnumerable{Video}.</returns>
private IEnumerable<Video> LoadSpecialFeatures()
{
if (LocationType != LocationType.FileSystem)
{
return new List<Video>();
}
FileSystemInfo folder;
try