fixed movie provide running against non-file system items

This commit is contained in:
Luke Pulverenti 2013-10-14 21:30:45 -04:00
parent ec9fe34d66
commit 5480815022

View File

@ -4,6 +4,7 @@ using MediaBrowser.Controller.Entities.Movies;
using MediaBrowser.Controller.IO; using MediaBrowser.Controller.IO;
using MediaBrowser.Controller.Persistence; using MediaBrowser.Controller.Persistence;
using MediaBrowser.Controller.Providers; using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Logging; using MediaBrowser.Model.Logging;
using MediaBrowser.Providers.Savers; using MediaBrowser.Providers.Savers;
using System; using System;
@ -35,6 +36,11 @@ namespace MediaBrowser.Providers.Movies
/// <returns><c>true</c> if XXXX, <c>false</c> otherwise</returns> /// <returns><c>true</c> if XXXX, <c>false</c> otherwise</returns>
public override bool Supports(BaseItem item) public override bool Supports(BaseItem item)
{ {
if (item.LocationType != LocationType.FileSystem)
{
return false;
}
var trailer = item as Trailer; var trailer = item as Trailer;
if (trailer != null) if (trailer != null)