From 362369f5fa0b1c7c869fbea150a0999674f9f25a Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 9 Jun 2013 21:40:53 -0400 Subject: [PATCH] only call savers for file system items --- MediaBrowser.Providers/Savers/MovieXmlSaver.cs | 9 ++++++++- .../Library/LibraryManager.cs | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/MediaBrowser.Providers/Savers/MovieXmlSaver.cs b/MediaBrowser.Providers/Savers/MovieXmlSaver.cs index 1bf040849..35dba678e 100644 --- a/MediaBrowser.Providers/Savers/MovieXmlSaver.cs +++ b/MediaBrowser.Providers/Savers/MovieXmlSaver.cs @@ -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 /// Task. 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(() => { }); } } diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs index 0ba149940..472ea963c 100644 --- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs +++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs @@ -1374,7 +1374,7 @@ namespace MediaBrowser.Server.Implementations.Library /// Task. 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))) {