fixed indexing

This commit is contained in:
Luke Pulverenti 2013-04-30 10:30:10 -04:00
parent 93ad0e469c
commit a0e8a079b4
3 changed files with 29 additions and 0 deletions

View file

@ -731,6 +731,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 +794,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 +857,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