This commit is contained in:
Luke Pulverenti 2013-07-19 14:37:26 -04:00
parent 74c37cd8fa
commit 9463c45e6d
2 changed files with 4 additions and 11 deletions

View File

@ -2,7 +2,6 @@
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Entities.Movies;
using MediaBrowser.Controller.Library;
using MediaBrowser.Model.Entities;
using MediaBrowser.Providers.Movies;
using System;
using System.Globalization;
@ -113,15 +112,9 @@ namespace MediaBrowser.Providers.Savers
public string GetSavePath(BaseItem item)
{
if (item.ResolveArgs.IsDirectory)
{
var video = (Video)item;
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");
return item.ResolveArgs.IsDirectory ?
Path.Combine(item.MetaLocation, "movie.xml") :
Path.ChangeExtension(item.Path, ".xml");
}
}
}

View File

@ -97,7 +97,7 @@ namespace MediaBrowser.Providers.TV
/// <summary>
/// The LOCA l_ MET a_ FIL e_ NAME
/// </summary>
protected const string LocalMetaFileName = "Series.xml";
protected const string LocalMetaFileName = "series.xml";
/// <summary>
/// Supportses the specified item.