mirror of
https://github.com/Lidarr/Lidarr
synced 2025-12-30 20:28:35 +01:00
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
1 changed files with 4 additions and 4 deletions
|
|
@ -126,10 +126,10 @@ public JsonResult AddNewSeries(string rootPath, string seriesName, int seriesId,
|
|||
{
|
||||
try
|
||||
{
|
||||
var path =
|
||||
rootPath.Replace('|', Path.DirectorySeparatorChar).Replace('^', Path.VolumeSeparatorChar).Replace(
|
||||
'`', '\'') +
|
||||
Path.DirectorySeparatorChar + MediaFileProvider.CleanFilename(seriesName);
|
||||
var path = Path.Combine(rootPath.Replace('|', Path.DirectorySeparatorChar)
|
||||
.Replace('^', Path.VolumeSeparatorChar)
|
||||
.Replace('`', '\''),
|
||||
MediaFileProvider.CleanFilename(seriesName));
|
||||
|
||||
//Create the folder for the new series and then Add it
|
||||
_diskProvider.CreateDirectory(path);
|
||||
|
|
|
|||
Loading…
Reference in a new issue