Skip to content

Commit

Permalink
Fix saving specific processing method. (#10350)
Browse files Browse the repository at this point in the history
  • Loading branch information
p0psicles authored Feb 16, 2022
1 parent 7b6f9d1 commit 9fa3571
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
1 change: 0 additions & 1 deletion medusa/server/api/v2/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ class ConfigHandler(BaseRequestHandler):
'clients.nzb.sabnzbd.password': StringField(app, 'SAB_PASSWORD'),
'clients.nzb.sabnzbd.username': StringField(app, 'SAB_USERNAME'),


'postProcessing.showDownloadDir': StringField(app, 'TV_DOWNLOAD_DIR'),
'postProcessing.defaultClientPath': StringField(app, 'DEFAULT_CLIENT_PATH'),
'postProcessing.processAutomatically': BooleanField(app, 'PROCESS_AUTOMATICALLY'),
Expand Down
6 changes: 3 additions & 3 deletions themes-default/slim/src/components/config-post-processing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@
<p v-if="postprocessing.processMethod == 'reflink'">To use reference linking, the <app-link href="https://pypi.python.org/pypi/reflink/0.1.4">reflink package</app-link> needs to be installed.</p>
</config-template>

<config-toggle-slider v-model="postprocessing.specificPostProcessing" label="Specific postprocessing methods" id="specific_post_processing">
<config-toggle-slider v-model="postprocessing.specificProcessMethod" label="Specific postprocessing methods" id="specific_post_processing">
<span>Enable this option if you want to use different processing methods (copy, move, etc..) for torrent and nzb downloads.</span>
<p><b>Note:</b>This option is only used by the <a href="config/postProcessing/#automated-download-handling">Automated Download Handling</a> option</p>
</config-toggle-slider>

<config-template v-if="postprocessing.specificPostProcessing" label-for="processing_method_torrent" label="Processing Method Torrent">
<config-template v-if="postprocessing.specificProcessMethod" label-for="processing_method_torrent" label="Processing Method Torrent">
<select id="processing_method_torrent" name="processing_method_torrent" v-model="postprocessing.processMethodTorrent" class="form-control input-sm">
<option :value="option.value" v-for="option in processMethods" :key="option.value">{{ option.text }}</option>
</select>
Expand All @@ -109,7 +109,7 @@
<p v-if="postprocessing.processMethod == 'reflink'">To use reference linking, the <app-link href="https://pypi.python.org/pypi/reflink/0.1.4">reflink package</app-link> needs to be installed.</p>
</config-template>

<config-template v-if="postprocessing.specificPostProcessing" label-for="processing_method_nzb" label="Processing Method Nzb">
<config-template v-if="postprocessing.specificProcessMethod" label-for="processing_method_nzb" label="Processing Method Nzb">
<select id="processing_method_nzb" name="processing_method_nzb" v-model="postprocessing.processMethodNzb" class="form-control input-sm">
<option :value="option.value" v-for="option in processMethods" :key="option.value">{{ option.text }}</option>
</select>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ const state = {
showDownloadDir: null,
processAutomatically: null,
processMethod: null,
specificProcessMethod: null,
processMethodTorrent: null,
processMethodNzb: null,
deleteRarContent: null,
unpack: null,
noDelete: null,
Expand Down
4 changes: 2 additions & 2 deletions themes/dark/assets/js/medusa-runtime.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions themes/light/assets/js/medusa-runtime.js

Large diffs are not rendered by default.

0 comments on commit 9fa3571

Please sign in to comment.