Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Readarr/commit/e1465f533653b697f9d67b484e9b20b82087e81a
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
7 additions and
0 deletions
@ -33,6 +33,10 @@ namespace NzbDrone.Core.Test.MediaFiles
Mocker . GetMock < IAuthorService > ( )
. Setup ( s = > s . GetAuthor ( _author . Id ) )
. Returns ( _author ) ;
Mocker . GetMock < IMediaFileService > ( )
. Setup ( s = > s . GetFilesByAuthor ( _author . Id ) )
. Returns ( _trackFiles ) ;
}
private void GivenNoTrackFiles ( )
@ -113,12 +113,15 @@ namespace NzbDrone.Core.MediaFiles
private void RenameFiles ( List < BookFile > bookFiles , Author author )
{
var allFiles = _mediaFileService . GetFilesByAuthor ( author . Id ) ;
var counts = allFiles . GroupBy ( x = > x . EditionId ) . ToDictionary ( g = > g . Key , g = > g . Count ( ) ) ;
var renamed = new List < BookFile > ( ) ;
// Don't rename Calibre files
foreach ( var bookFile in bookFiles . Where ( x = > x . CalibreId = = 0 ) )
{
var bookFilePath = bookFile . Path ;
bookFile . PartCount = counts [ bookFile . EditionId ] ;
try
{