fixed save path for side by side movies

This commit is contained in:
Luke Pulverenti 2013-07-01 12:05:21 -04:00
parent d94c8495b8
commit ca85af834e

View File

@ -1,13 +1,12 @@
using System.Globalization; using MediaBrowser.Controller.Configuration;
using System.Security;
using MediaBrowser.Controller.Configuration;
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.IO; using System.IO;
using System.Security;
using System.Text; using System.Text;
using System.Threading; using System.Threading;
@ -97,11 +96,12 @@ namespace MediaBrowser.Providers.Savers
public string GetSavePath(BaseItem item) public string GetSavePath(BaseItem item)
{ {
var video = (Video)item; if (item.ResolveArgs.IsDirectory)
{
return Path.Combine(item.Path, "movie.xml");
}
var directory = video.VideoType == VideoType.Iso || video.VideoType == VideoType.VideoFile ? Path.GetDirectoryName(video.Path) : video.Path; return Path.ChangeExtension(item.Path, ".xml");
return Path.Combine(directory, "movie.xml");
} }
} }
} }