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 saving specific processing method. #10350

Merged
merged 1 commit into from
Feb 16, 2022
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: 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.