Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Prowlarr/commit/f2ce5bef184698ed15fb287fabdd955e88925292
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
21 additions and
4 deletions
@ -60,8 +60,22 @@ namespace NzbDrone.Core.Providers.Jobs
notification . CurrentMessage = String . Format ( "Scanning disk for '{0}' files" , updatedSeries . Title ) ;
_mediaFileProvider . Scan ( _seriesProvider . GetSeries ( updatedSeries . SeriesId ) ) ;
}
if ( _mediaFileProvider . GetSeriesFiles ( currentSeries . SeriesId ) . Count ( ) ! = 0 )
{
Logger . Debug ( "Looking for seasons to ignore" ) ;
foreach ( var season in updatedSeries . Seasons )
{
if ( season . SeasonNumber ! = updatedSeries . Seasons . Max ( s = > s . SeasonNumber ) & & _mediaFileProvider . GetSeasonFiles ( season . SeasonId ) . Count ( ) = = 0 )
{
Logger . Info ( "Season {0} of {1} doesn't have any files on disk. season will not be monitored." , season . SeasonNumber , updatedSeries . Title ) ;
season . Monitored = false ;
_seasonProvider . SaveSeason ( season ) ;
}
}
}
}
catch ( Exception e )
{
Logger . ErrorException ( e . Message , e ) ;
@ -182,11 +182,14 @@ namespace NzbDrone.Core.Providers
return _repository . All < EpisodeFile > ( ) . ToList ( ) ;
}
public virtual List < EpisodeFile > GetSeasonFiles ( int seasonId )
public virtual IEnumerable < EpisodeFile > GetSeasonFiles ( int seasonId )
{
var res = _seasonProvider . GetSeason ( seasonId ) . Episodes . Where ( c = > c . EpisodeFile ! = null ) . Select ( c = > c . EpisodeFile ) ;
return _seasonProvider . GetSeason ( seasonId ) . Episodes . Where ( c = > c . EpisodeFile ! = null ) . Select ( c = > c . EpisodeFile ) ;
}
return res . ToList ( ) ;
public virtual IEnumerable < EpisodeFile > GetSeriesFiles ( int seriesId )
{
return _seriesProvider . GetSeries ( seriesId ) . Episodes . Where ( c = > c . EpisodeFile ! = null ) . Select ( c = > c . EpisodeFile ) ;
}
private List < string > GetMediaFileList ( string path )