Repository: pymedusa/Medusa

Issue:
Config patch ignored {'postprocessing' ....
A warning is generated whenever I make any changes to and save the Post Processing Settings page

Warning Message:

`2019-12-25 00:29:50 WARNING  Thread-25 :: [d0c136d] Config patch ignored {'postprocessing': {'allowedExtensions': ['srt', 'nfo', 'sub', 'idx'], 'unpack': False, 'deleteRarContent': False, 'syncFiles': ['!sync', 'lftp-pget-status', 'part', 'bts', '!qb', '!qB'], 'postponeIfNoSubs': False, 'airdateEpisodes': True, 'addShowsWithoutDir': False, 'nfoRename': True, 'createMissingShowDirs': True, 'extraScripts': [], 'reflinkAvailable': False, 'multiEpStrings': {'4': 'Duplicate', '16': 'Repeat (Separated)', '2': 'Extend', '8': 'Extend (Limited)', '64': 'Extend (Limited, e-prefixed)', '1': 'Repeat', '32': 'Extend (Limited, E-prefixed)'}, 'showDownloadDir': '/download', 'autoPostprocessorFrequency': 10, 'moveAssociatedFiles': True, 'processMethod': 'move', 'extraScriptsUrl': 'https://github.com/pymedusa/Medusa/wiki/Post-Processing#extra-scripts', 'postponeIfSyncFiles': True, 'naming': {'animeMultiEp': 1, 'stripYear': False, 'pattern': 'Season %S/%Sx%0E - %EN', 'patternAirByDate': '%SN - %A.D - %EN', 'patternAnime': 'Season %0S/%SN - S%0SE%0E - %EN', 'enableCustomNamingAnime': False, 'patternSports': '%SN - %A-D - %EN', 'animeNamingType': 3, 'enableCustomNamingSports': False, 'multiEp': 1, 'enableCustomNamingAirByDate': False}, 'fileTimestampTimezone': 'network', 'noDelete': False, 'renameEpisodes': True, 'processAutomatically': True}}`


I don't know much about the inner workings of Medusa but analyzing that warning message's output the only thing that stands out to me is that All the values of the "Multi-Episode Style" drop down (multiEpStrings) are getting included there regardless of what I choose there and thats the only option that does not stick after a save.

Config patch ignored {'postprocessing' ....
A warning is generated whenever I make any changes to and save the Post Processing Settings page

Warning Message:

`2019-12-25 00:29:50 WARNING  Thread-25 :: [d0c136d] Config patch ignored {'postprocessing': {'allowedExtensions': ['srt', 'nfo', 'sub', 'idx'], 'unpack': False, 'deleteRarContent': False, 'syncFiles': ['!sync', 'lftp-pget-status', 'part', 'bts', '!qb', '!qB'], 'postponeIfNoSubs': False, 'airdateEpisodes': True, 'addShowsWithoutDir': False, 'nfoRename': True, 'createMissingShowDirs': True, 'extraScripts': [], 'reflinkAvailable': False, 'multiEpStrings': {'4': 'Duplicate', '16': 'Repeat (Separated)', '2': 'Extend', '8': 'Extend (Limited)', '64': 'Extend (Limited, e-prefixed)', '1': 'Repeat', '32': 'Extend (Limited, E-prefixed)'}, 'showDownloadDir': '/download', 'autoPostprocessorFrequency': 10, 'moveAssociatedFiles': True, 'processMethod': 'move', 'extraScriptsUrl': 'https://github.com/pymedusa/Medusa/wiki/Post-Processing#extra-scripts', 'postponeIfSyncFiles': True, 'naming': {'animeMultiEp': 1, 'stripYear': False, 'pattern': 'Season %S/%Sx%0E - %EN', 'patternAirByDate': '%SN - %A.D - %EN', 'patternAnime': 'Season %0S/%SN - S%0SE%0E - %EN', 'enableCustomNamingAnime': False, 'patternSports': '%SN - %A-D - %EN', 'animeNamingType': 3, 'enableCustomNamingSports': False, 'multiEp': 1, 'enableCustomNamingAirByDate': False}, 'fileTimestampTimezone': 'network', 'noDelete': False, 'renameEpisodes': True, 'processAutomatically': True}}`


I don't know much about the inner workings of Medusa but analyzing that warning message's output the only thing that stands out to me is that All the values of the "Multi-Episode Style" drop down (multiEpStrings) are getting included there regardless of what I choose there and thats the only option that does not stick after a save.



Discussion:

Resolving patch:
diff --git a/medusa/server/api/v2/config.py b/medusa/server/api/v2/config.py
--- a/medusa/server/api/v2/config.py
+++ b/medusa/server/api/v2/config.py
@@ -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'),


Test patch: