only call savers for file system items
This commit is contained in:
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.Entities.Movies;
|
||||||
using MediaBrowser.Controller.Library;
|
using MediaBrowser.Controller.Library;
|
||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
|
@ -43,6 +44,12 @@ namespace MediaBrowser.Providers.Savers
|
||||||
/// <returns>Task.</returns>
|
/// <returns>Task.</returns>
|
||||||
public Task Save(BaseItem item, CancellationToken cancellationToken)
|
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(() => { });
|
return Task.Run(() => { });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1374,7 +1374,7 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||||
/// <returns>Task.</returns>
|
/// <returns>Task.</returns>
|
||||||
private async Task OnItemUpdated(BaseItem item, CancellationToken cancellationToken)
|
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)))
|
foreach (var saver in Savers.Where(i => i.Supports(item)))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user