only call savers for file system items

This commit is contained in:
Luke Pulverenti 2013-06-09 21:40:53 -04:00
parent 38a7717824
commit 362369f5fa
2 changed files with 9 additions and 2 deletions

View File

@ -1,4 +1,5 @@
using MediaBrowser.Controller.Entities;
using System.IO;
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Entities.Movies;
using MediaBrowser.Controller.Library;
using MediaBrowser.Model.Entities;
@ -43,6 +44,12 @@ namespace MediaBrowser.Providers.Savers
/// <returns>Task.</returns>
public Task Save(BaseItem item, CancellationToken cancellationToken)
{
var video = (Video)item;
var directory = video.VideoType == VideoType.Iso || video.VideoType == VideoType.VideoFile ? Path.GetDirectoryName(video.Path) : video.Path;
var xmlFilePath = Path.Combine(directory, "movie.xml");
return Task.Run(() => { });
}
}

View File

@ -1374,7 +1374,7 @@ namespace MediaBrowser.Server.Implementations.Library
/// <returns>Task.</returns>
private async Task OnItemUpdated(BaseItem item, CancellationToken cancellationToken)
{
if (ConfigurationManager.Configuration.SaveLocalMeta)
if (ConfigurationManager.Configuration.SaveLocalMeta && item.LocationType == LocationType.FileSystem)
{
foreach (var saver in Savers.Where(i => i.Supports(item)))
{