Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Lidarr/commit/08b2e293d3f1d1d43023b1e4740ad01f96ed1868
You should set ROOT_URL correctly, otherwise the web may not work correctly.
4 changed files with
48 additions and
5 deletions
@ -0,0 +1,44 @@
using System ;
using System.IO ;
using FizzWare.NBuilder ;
using Moq ;
using NUnit.Framework ;
using NzbDrone.Common.Disk ;
using NzbDrone.Core.MediaFiles ;
using NzbDrone.Core.MediaFiles.Commands ;
using NzbDrone.Core.Messaging.Commands ;
using NzbDrone.Core.Test.Framework ;
using NzbDrone.Core.Tv ;
using NzbDrone.Test.Common ;
namespace NzbDrone.Core.Test.MediaFiles.DiskScanServiceTests
{
[TestFixture]
public class ScanFixture : CoreTest < DiskScanService >
{
private Series _series ;
[SetUp]
public void Setup ( )
{
_series = Builder < Series > . CreateNew ( )
. With ( s = > s . Path = @"C:\Test\TV\Series" )
. Build ( ) ;
Mocker . GetMock < IDiskProvider > ( )
. Setup ( s = > s . GetParentFolder ( It . IsAny < String > ( ) ) )
. Returns ( ( String path ) = > Directory . GetParent ( path ) . FullName ) ;
}
[Test]
public void should_not_scan_if_series_root_folder_does_not_exist ( )
{
Subject . Scan ( _series ) ;
ExceptionVerification . ExpectedWarns ( 1 ) ;
Mocker . GetMock < ICommandExecutor > ( )
. Verify ( v = > v . PublishCommand ( It . IsAny < CleanMediaFileDb > ( ) ) , Times . Never ( ) ) ;
}
}
}
@ -155,6 +155,7 @@
<Compile Include= "JobTests\TestJobs.cs" />
<Compile Include= "MediaCoverTests\CoverExistsSpecificationFixture.cs" />
<Compile Include= "MediaCoverTests\MediaCoverServiceFixture.cs" />
<Compile Include= "MediaFiles\DiskScanServiceTests\ScanFixture.cs" />
<Compile Include= "MediaFiles\EpisodeFileMovingServiceTests\MoveEpisodeFileFixture.cs" />
<Compile Include= "MediaFiles\EpisodeImport\Specifications\FullSeasonSpecificationFixture.cs" />
<Compile Include= "MediaFiles\EpisodeImport\Specifications\FreeSpaceSpecificationFixture.cs" />
@ -168,9 +168,9 @@ namespace NzbDrone.Core.Configuration
{
get
{
var urlBase = GetValue ( "UrlBase" , "" ) ;
var urlBase = GetValue ( "UrlBase" , "" ) .Trim ( '/' ) ;
if ( String. IsNullOrEmpty ( urlBase ) )
if ( urlBase. IsNullOrWhiteSpace ( ) )
{
return urlBase ;
}
@ -1,6 +1,4 @@
using System ;
using System.Collections.Generic ;
using System.Diagnostics ;
using System.Diagnostics ;
using System.IO ;
using System.Linq ;
using NLog ;