mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-28 13:01:57 +00:00
only call savers for file system items
This commit is contained in:
@@ -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)))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user