Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Readarr/commit/83207a0bafa871fe4a1d50edef50a0e5636bfa85
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
5 additions and
9 deletions
@ -73,8 +73,9 @@ namespace NzbDrone.Core.MediaFiles
private IEnumerable < RenameEpisodeFilePreview > GetPreviews ( Series series , List < Episode > episodes , List < EpisodeFile > files )
{
foreach ( var f ile in files )
foreach ( var f in files )
{
var file = f ;
var episodesInFile = episodes . Where ( e = > e . EpisodeFileId = = file . Id ) . ToList ( ) ;
if ( ! episodesInFile . Any ( ) )
@ -95,18 +96,13 @@ namespace NzbDrone.Core.MediaFiles
SeasonNumber = seasonNumber ,
EpisodeNumbers = episodesInFile . Select ( e = > e . EpisodeNumber ) . ToList ( ) ,
EpisodeFileId = file . Id ,
ExistingPath = GetRelativePath( series . Path , file . Path ) ,
NewPath = GetRelativePath( series . Path , newPath )
ExistingPath = series. Path . GetRelativePath ( file . Path ) ,
NewPath = series. Path . GetRelativePath ( newPath )
} ;
}
}
}
private string GetRelativePath ( string seriesPath , string path )
{
return path . Substring ( seriesPath . Length + 1 ) ;
}
private void RenameFiles ( List < EpisodeFile > episodeFiles , Series series )
{
var renamed = new List < EpisodeFile > ( ) ;
@ -55,7 +55,7 @@ define(
_importSeries : function ( ) {
this . rootFolderLayout = new RootFolderLayout ( ) ;
this . rootFolderLayout. on ( 'folderSelected' , this . _folderSelected , this ) ;
this . listenTo( this . rootFolderLayout , 'folderSelected' , this . _folderSelected ) ;
AppLayout . modalRegion . show ( this . rootFolderLayout ) ;
} ,