Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #7525 - being unable to save post-processing config #7526

Merged
merged 2 commits into from
Dec 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- Fix adding Anime with white/black listed release groups ([#7507](https://github.com/pymedusa/Medusa/pull/7507))
- Fix Schedule page and Forced Search on Schedule page ([#7512](https://github.com/pymedusa/Medusa/pull/7512))
- Fix manual search page release name bug ([#7517](https://github.com/pymedusa/Medusa/pull/7517))
- Fix being unable to save post-processing config ([#7526](https://github.com/pymedusa/Medusa/pull/7526))

-----

Expand Down
1 change: 0 additions & 1 deletion medusa/server/api/v2/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ class ConfigHandler(BaseRequestHandler):
'postProcessing.syncFiles': ListField(app, 'SYNC_FILES'),
'postProcessing.fileTimestampTimezone': StringField(app, 'FILE_TIMESTAMP_TIMEZONE'),
'postProcessing.extraScripts': ListField(app, 'EXTRA_SCRIPTS'),
'postProcessing.extraScriptsUrl': StringField(app, 'EXTRA_SCRIPTS_URL'),
'postProcessing.naming.pattern': StringField(app, 'NAMING_PATTERN'),
'postProcessing.naming.enableCustomNamingAnime': BooleanField(app, 'NAMING_CUSTOM_ANIME'),
'postProcessing.naming.enableCustomNamingSports': BooleanField(app, 'NAMING_CUSTOM_SPORTS'),
Expand Down
4 changes: 2 additions & 2 deletions themes-default/slim/src/components/config-post-processing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -459,12 +459,12 @@ export default {

// Clone the config into a new object
const config = Object.assign({}, {
postprocessing,
postProcessing: postprocessing,
metadata
});

// Use destructuring to remove the unwanted keys.
const { multiEpStrings, reflinkAvailable, ...rest } = postprocessing;
const { multiEpStrings, reflinkAvailable, extraScriptsUrl, ...rest } = postprocessing;
// Assign the object with the keys removed to our copied object.
config.postProcessing = rest;

Expand Down
Loading