Skip to content

Commit

Permalink
Fix #7525 - being unable to save post-processing config (#7526)
Browse files Browse the repository at this point in the history
* Fix being unable to save post-processing config

* Update changelog
  • Loading branch information
sharkykh authored and p0psicles committed Dec 28, 2019
1 parent 1647a3b commit 102486d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
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

0 comments on commit 102486d

Please sign in to comment.