Additional fixes for multiple movies per folder. Added a provider shell

This commit is contained in:
Luke Pulverenti
2013-08-15 12:21:32 -04:00
parent e934783b95
commit 34bf41721a
5 changed files with 115 additions and 6 deletions

View File

@@ -242,13 +242,16 @@ namespace MediaBrowser.Server.Implementations.Providers
if (saveLocally)
{
var video = item as Video;
if (video != null && video.IsInMixedFolder)
if (!(item is Episode))
{
var folder = Path.GetDirectoryName(video.Path);
var video = item as Video;
path = Path.Combine(folder, Path.GetFileNameWithoutExtension(video.Path) + "-" + filename);
if (video != null && video.IsInMixedFolder)
{
var folder = Path.GetDirectoryName(video.Path);
path = Path.Combine(folder, Path.GetFileNameWithoutExtension(video.Path) + "-" + filename);
}
}
if (string.IsNullOrEmpty(path) && !string.IsNullOrEmpty(item.MetaLocation))