mirror of https://github.com/jellyfin/jellyfin.git
comments
This commit is contained in:
parent
74c37cd8fa
commit
9463c45e6d
|
@ -2,7 +2,6 @@
|
||||||
using MediaBrowser.Controller.Entities;
|
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.Providers.Movies;
|
using MediaBrowser.Providers.Movies;
|
||||||
using System;
|
using System;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
|
@ -113,15 +112,9 @@ namespace MediaBrowser.Providers.Savers
|
||||||
|
|
||||||
public string GetSavePath(BaseItem item)
|
public string GetSavePath(BaseItem item)
|
||||||
{
|
{
|
||||||
if (item.ResolveArgs.IsDirectory)
|
return item.ResolveArgs.IsDirectory ?
|
||||||
{
|
Path.Combine(item.MetaLocation, "movie.xml") :
|
||||||
var video = (Video)item;
|
Path.ChangeExtension(item.Path, ".xml");
|
||||||
var path = video.VideoType == VideoType.VideoFile || video.VideoType == VideoType.Iso ? Path.GetDirectoryName(item.Path) : item.Path;
|
|
||||||
|
|
||||||
return Path.Combine(path, "movie.xml");
|
|
||||||
}
|
|
||||||
|
|
||||||
return Path.ChangeExtension(item.Path, ".xml");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,7 +97,7 @@ namespace MediaBrowser.Providers.TV
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The LOCA l_ MET a_ FIL e_ NAME
|
/// The LOCA l_ MET a_ FIL e_ NAME
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected const string LocalMetaFileName = "Series.xml";
|
protected const string LocalMetaFileName = "series.xml";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Supportses the specified item.
|
/// Supportses the specified item.
|
||||||
|
|
Loading…
Reference in New Issue