Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Sonarr/commit/177e4b850eabec09a94fa05c41e1bc239bb612ee You should set ROOT_URL correctly, otherwise the web may not work correctly.

Fixed the broken tests

pull/25/head
Mark McDowall 12 years ago
parent 1c5e30bbd0
commit 177e4b850e

@ -65,6 +65,8 @@ namespace NzbDrone.Core.RootFolders
public virtual RootFolder Add(RootFolder rootFolder)
{
var all = All();
if (String.IsNullOrWhiteSpace(rootFolder.Path) || !Path.IsPathRooted(rootFolder.Path))
throw new ArgumentException("Invalid path");
@ -74,7 +76,8 @@ namespace NzbDrone.Core.RootFolders
if (All().Exists(r => DiskProvider.PathEquals(r.Path, rootFolder.Path)))
throw new InvalidOperationException("Recent directory already exist.");
if (DiskProvider.PathEquals(_configService.DownloadedEpisodesFolder, rootFolder.Path))
if (!String.IsNullOrWhiteSpace(_configService.DownloadedEpisodesFolder) &&
DiskProvider.PathEquals(_configService.DownloadedEpisodesFolder, rootFolder.Path))
throw new InvalidOperationException("Drone Factory folder cannot be used.");
_rootFolderRepository.Insert(rootFolder);

Loading…
Cancel
Save