mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-15 18:53:27 +01:00
added sync job database
This commit is contained in:
@@ -88,7 +88,7 @@ namespace MediaBrowser.XbmcMetadata.Images
|
||||
if (item is Episode)
|
||||
{
|
||||
var seasonFolder = Path.GetDirectoryName(item.Path);
|
||||
|
||||
|
||||
var imageFilename = Path.GetFileNameWithoutExtension(item.Path) + "-thumb" + extension;
|
||||
|
||||
return new[] { Path.Combine(seasonFolder, imageFilename) };
|
||||
|
||||
@@ -35,18 +35,18 @@ namespace MediaBrowser.XbmcMetadata.Providers
|
||||
|
||||
protected override FileSystemInfo GetXmlFile(ItemInfo info, IDirectoryService directoryService)
|
||||
{
|
||||
var path = GetMovieSavePath(info);
|
||||
var path = GetMovieSavePath(info, FileSystem);
|
||||
|
||||
return directoryService.GetFile(path);
|
||||
}
|
||||
|
||||
public static string GetMovieSavePath(ItemInfo item)
|
||||
public static string GetMovieSavePath(ItemInfo item, IFileSystem fileSystem)
|
||||
{
|
||||
if (Directory.Exists(item.Path))
|
||||
{
|
||||
var path = item.Path;
|
||||
|
||||
return Path.Combine(path, Path.GetFileNameWithoutExtension(path) + ".nfo");
|
||||
return Path.Combine(path, fileSystem.GetFileNameWithoutExtension(path) + ".nfo");
|
||||
}
|
||||
|
||||
return Path.ChangeExtension(item.Path, ".nfo");
|
||||
|
||||
@@ -21,10 +21,10 @@ namespace MediaBrowser.XbmcMetadata.Savers
|
||||
|
||||
public override string GetSavePath(IHasMetadata item)
|
||||
{
|
||||
return GetMovieSavePath(item);
|
||||
return GetMovieSavePath(item, FileSystem);
|
||||
}
|
||||
|
||||
public static string GetMovieSavePath(IHasMetadata item)
|
||||
public static string GetMovieSavePath(IHasMetadata item, IFileSystem fileSystem)
|
||||
{
|
||||
var video = (Video)item;
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace MediaBrowser.XbmcMetadata.Savers
|
||||
{
|
||||
var path = item.ContainingFolderPath;
|
||||
|
||||
return Path.Combine(path, Path.GetFileNameWithoutExtension(path) + ".nfo");
|
||||
return Path.Combine(path, fileSystem.GetFileNameWithoutExtension(path) + ".nfo");
|
||||
}
|
||||
|
||||
return Path.ChangeExtension(item.Path, ".nfo");
|
||||
|
||||
Reference in New Issue
Block a user