Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Readarr/commit/af1f389f8e2ebd872f7e1e76be52394885f3295a
You should set ROOT_URL correctly, otherwise the web may not work correctly.
9 changed files with
29 additions and
26 deletions
@ -8,6 +8,7 @@ import TagListConnector from 'Components/TagListConnector';
import { createMetadataProfileSelectorForHook } from 'Store/Selectors/createMetadataProfileSelector' ;
import { createQualityProfileSelectorForHook } from 'Store/Selectors/createQualityProfileSelector' ;
import { SelectStateInputProps } from 'typings/props' ;
import translate from 'Utilities/String/translate' ;
import styles from './ManageImportListsModalRow.css' ;
interface ManageImportListsModalRowProps {
@ -70,7 +71,7 @@ function ManageImportListsModalRow(props: ManageImportListsModalRowProps) {
< / TableRowCell >
< TableRowCell className = { styles . qualityProfileId } >
{ qualityProfile ? . name ? ? 'None' }
{ qualityProfile ? . name ? ? translate ( 'None' ) }
< / TableRowCell >
< TableRowCell className = { styles . metadataProfileId } >
@ -82,7 +83,7 @@ function ManageImportListsModalRow(props: ManageImportListsModalRowProps) {
< / TableRowCell >
< TableRowCell className = { styles . enableAutomaticAdd } >
{ enableAutomaticAdd ? 'Yes' : 'No' }
{ enableAutomaticAdd ? translate ( 'Yes' ) : translate ( 'No' ) }
< / TableRowCell >
< TableRowCell className = { styles . tags } >
@ -75,12 +75,12 @@ class RootFolder extends Component {
{ path }
< / L a b e l >
< Label kind = { kinds. SUCCESS } >
{ qualityProfile . name }
< Label kind = { qualityProfile? . name ? kinds. SUCCESS : kinds . DANGER } >
{ qualityProfile ? . name || translate ( 'None' ) }
< / L a b e l >
< Label kind = { kinds. SUCCESS } >
{ metadataProfile . name }
< Label kind = { metadataProfile? . name ? kinds. SUCCESS : kinds . DANGER } >
{ metadataProfile ? . name || translate ( 'None' ) }
< / L a b e l >
< / d i v >
@ -15,18 +15,18 @@ namespace NzbDrone.Core.Books
public class BookCutoffService : IBookCutoffService
{
private readonly IBookRepository _bookRepository ;
private readonly I ProfileService _p rofileService;
private readonly I QualityProfileService _qualityP rofileService;
public BookCutoffService ( IBookRepository bookRepository , I ProfileService p rofileService)
public BookCutoffService ( IBookRepository bookRepository , I QualityProfileService qualityP rofileService)
{
_bookRepository = bookRepository ;
_ profileService = p rofileService;
_ qualityProfileService = qualityP rofileService;
}
public PagingSpec < Book > BooksWhereCutoffUnmet ( PagingSpec < Book > pagingSpec )
{
var qualitiesBelowCutoff = new List < QualitiesBelowCutoff > ( ) ;
var profiles = _ p rofileService. All ( ) ;
var profiles = _ qualityP rofileService. All ( ) ;
//Get all items less than the cutoff
foreach ( var profile in profiles )
@ -53,7 +53,7 @@ namespace NzbDrone.Core.MediaFiles.BookImport
private readonly IAugmentingService _augmentingService ;
private readonly IIdentificationService _identificationService ;
private readonly IRootFolderService _rootFolderService ;
private readonly I ProfileService _qualityProfileService ;
private readonly I Quality ProfileService _qualityProfileService ;
private readonly Logger _logger ;
public ImportDecisionMaker ( IEnumerable < IImportDecisionEngineSpecification < LocalBook > > trackSpecifications ,
@ -63,7 +63,7 @@ namespace NzbDrone.Core.MediaFiles.BookImport
IAugmentingService augmentingService ,
IIdentificationService identificationService ,
IRootFolderService rootFolderService ,
I ProfileService qualityProfileService ,
I Quality ProfileService qualityProfileService ,
Logger logger )
{
_trackSpecifications = trackSpecifications ;
@ -13,7 +13,7 @@ using NzbDrone.Core.RootFolders;
namespace NzbDrone.Core.Profiles.Qualities
{
public interface I ProfileService
public interface I Quality ProfileService
{
QualityProfile Add ( QualityProfile profile ) ;
void Update ( QualityProfile profile ) ;
@ -24,7 +24,7 @@ namespace NzbDrone.Core.Profiles.Qualities
QualityProfile GetDefaultProfile ( string name , Quality cutoff = null , params Quality [ ] allowed ) ;
}
public class QualityProfileService : I ProfileService,
public class QualityProfileService : I Quality ProfileService,
IHandle < ApplicationStartedEvent > ,
IHandle < CustomFormatAddedEvent > ,
IHandle < CustomFormatDeletedEvent >
@ -5,11 +5,11 @@ namespace NzbDrone.Core.Validation
{
public class QualityProfileExistsValidator : PropertyValidator
{
private readonly I ProfileService _p rofileService;
private readonly I QualityProfileService _qualityP rofileService;
public QualityProfileExistsValidator ( I ProfileService p rofileService)
public QualityProfileExistsValidator ( I QualityProfileService qualityP rofileService)
{
_ profileService = p rofileService;
_ qualityProfileService = qualityP rofileService;
}
protected override string GetDefaultMessageTemplate ( ) = > "Quality Profile does not exist" ;
@ -21,7 +21,7 @@ namespace NzbDrone.Core.Validation
return true ;
}
return _ p rofileService. Exists ( ( int ) context . PropertyValue ) ;
return _ qualityP rofileService. Exists ( ( int ) context . PropertyValue ) ;
}
}
}
@ -14,10 +14,10 @@ namespace Readarr.Api.V1.Profiles.Quality
[V1ApiController]
public class QualityProfileController : RestController < QualityProfileResource >
{
private readonly I ProfileService _qualityProfileService ;
private readonly I Quality ProfileService _qualityProfileService ;
private readonly ICustomFormatService _formatService ;
public QualityProfileController ( I ProfileService qualityProfileService , ICustomFormatService formatService )
public QualityProfileController ( I Quality ProfileService qualityProfileService , ICustomFormatService formatService )
{
_qualityProfileService = qualityProfileService ;
_formatService = formatService ;
@ -7,17 +7,17 @@ namespace Readarr.Api.V1.Profiles.Quality
[V1ApiController("qualityprofile/schema")]
public class QualityProfileSchemaController : Controller
{
private readonly I ProfileService _p rofileService;
private readonly I QualityProfileService _qualityP rofileService;
public QualityProfileSchemaController ( I ProfileService p rofileService)
public QualityProfileSchemaController ( I QualityProfileService qualityP rofileService)
{
_ profileService = p rofileService;
_ qualityProfileService = qualityP rofileService;
}
[HttpGet]
public QualityProfileResource GetSchema ( )
{
var qualityProfile = _ p rofileService. GetDefaultProfile ( string . Empty ) ;
var qualityProfile = _ qualityP rofileService. GetDefaultProfile ( string . Empty ) ;
return qualityProfile . ToResource ( ) ;
}
@ -60,10 +60,12 @@ namespace Readarr.Api.V1.RootFolders
SharedValidator . RuleFor ( c = > c . Name )
. NotEmpty ( ) ;
SharedValidator . RuleFor ( c = > c . DefaultMetadataProfileId )
SharedValidator . RuleFor ( c = > c . DefaultMetadataProfileId ) . Cascade ( CascadeMode . Stop )
. ValidId ( )
. SetValidator ( metadataProfileExistsValidator ) ;
SharedValidator . RuleFor ( c = > c . DefaultQualityProfileId )
SharedValidator . RuleFor ( c = > c . DefaultQualityProfileId ) . Cascade ( CascadeMode . Stop )
. ValidId ( )
. SetValidator ( qualityProfileExistsValidator ) ;
SharedValidator . RuleFor ( c = > c . Host ) . ValidHost ( ) . When ( x = > x . IsCalibreLibrary ) ;