1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-30 11:55:18 +00:00

Fixed: Pass AdvancedSettings to Metadata Fields

This commit is contained in:
Qstick 2020-07-30 23:05:58 -04:00
parent 55e6605ed8
commit 8ddaf348f1
3 changed files with 7 additions and 2 deletions

View file

@ -15,6 +15,7 @@ import { inputTypes } from 'Helpers/Props';
function EditMetadataModalContent(props) {
const {
advancedSettings,
isSaving,
saveError,
item,
@ -56,6 +57,7 @@ function EditMetadataModalContent(props) {
return (
<ProviderFieldFormGroup
key={field.name}
advancedSettings={advancedSettings}
provider="metadata"
{...field}
isDisabled={!enable.value}
@ -88,6 +90,7 @@ function EditMetadataModalContent(props) {
}
EditMetadataModalContent.propTypes = {
advancedSettings: PropTypes.bool.isRequired,
isSaving: PropTypes.bool.isRequired,
saveError: PropTypes.object,
item: PropTypes.object.isRequired,

View file

@ -9,9 +9,10 @@ import EditMetadataModalContent from './EditMetadataModalContent';
function createMapStateToProps() {
return createSelector(
(state) => state.settings.advancedSettings,
(state, { id }) => id,
(state) => state.settings.metadata,
(id, metadata) => {
(advancedSettings, id, metadata) => {
const {
isSaving,
saveError,
@ -22,6 +23,7 @@ function createMapStateToProps() {
const settings = selectSettings(_.find(items, { id }), pendingChanges, saveError);
return {
advancedSettings,
id,
isSaving,
saveError,

View file

@ -19,7 +19,7 @@ public class XbmcMetadataSettings : IProviderConfig
public XbmcMetadataSettings()
{
MovieMetadata = true;
MovieMetadataURL = true;
MovieMetadataURL = false;
MovieImages = true;
UseMovieNfo = false;
}