mirror of https://github.com/Radarr/Radarr
Fixed an issue where RootPaths with a slash at the end would have double slash when adding a new Series.
This commit is contained in:
parent
9f5b461274
commit
b6178c9eef
|
@ -126,10 +126,10 @@ namespace NzbDrone.Web.Controllers
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var path =
|
var path = Path.Combine(rootPath.Replace('|', Path.DirectorySeparatorChar)
|
||||||
rootPath.Replace('|', Path.DirectorySeparatorChar).Replace('^', Path.VolumeSeparatorChar).Replace(
|
.Replace('^', Path.VolumeSeparatorChar)
|
||||||
'`', '\'') +
|
.Replace('`', '\''),
|
||||||
Path.DirectorySeparatorChar + MediaFileProvider.CleanFilename(seriesName);
|
MediaFileProvider.CleanFilename(seriesName));
|
||||||
|
|
||||||
//Create the folder for the new series and then Add it
|
//Create the folder for the new series and then Add it
|
||||||
_diskProvider.CreateDirectory(path);
|
_diskProvider.CreateDirectory(path);
|
||||||
|
|
Loading…
Reference in New Issue