only call savers for file system items

pull/702/head
Luke Pulverenti 12 years ago
parent 38a7717824
commit 362369f5fa

@ -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(() => { });
}
}

@ -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)))
{

Loading…
Cancel
Save