From 8e7fcc063a2d58b41f21877c734d1d9bba21b23d Mon Sep 17 00:00:00 2001 From: p0ps Date: Tue, 24 Aug 2021 12:36:43 +0200 Subject: [PATCH] Fix store negative value for search delay (#9822) * Improve explanation * Fix search delay negative value --- medusa/server/api/v2/providers.py | 2 +- .../slim/src/components/helpers/config-provider-nzb.vue | 3 ++- .../src/components/helpers/config-provider-torrent.vue | 5 +++-- themes/dark/assets/js/medusa-runtime.js | 8 ++++---- themes/light/assets/js/medusa-runtime.js | 8 ++++---- 5 files changed, 14 insertions(+), 12 deletions(-) diff --git a/medusa/server/api/v2/providers.py b/medusa/server/api/v2/providers.py index a46ff123d3..537f4260ee 100644 --- a/medusa/server/api/v2/providers.py +++ b/medusa/server/api/v2/providers.py @@ -476,7 +476,7 @@ def _set_common_settings(provider, config): if hasattr(provider, 'search_delay'): try: search_delay = float(config['search']['delay']['duration']) - provider.search_delay = (search_delay, 30)[search_delay < 30] + provider.search_delay = search_delay except (AttributeError, KeyError, ValueError): provider.search_delay = 480 diff --git a/themes-default/slim/src/components/helpers/config-provider-nzb.vue b/themes-default/slim/src/components/helpers/config-provider-nzb.vue index 6434d0bb84..fdac49d463 100644 --- a/themes-default/slim/src/components/helpers/config-provider-nzb.vue +++ b/themes-default/slim/src/components/helpers/config-provider-nzb.vue @@ -45,7 +45,8 @@

Enable to delay downloads for this provider for an x amount of hours. The provider will start snatching results for a specific episode after a delay has expired, compared to when it first got a result for the specific episode.

-

Searches for PROPER releases are exempted from the delay.

+

A negative value will have the daily search accepts results before the episode scheduled air date/time.

+

Proper and Backlog searches are exempted from the delay.

Enable to delay downloads for this provider for an x amount of hours. The provider will start snatching results for a specific episode after a delay has expired, compared to when it first got a result for the specific episode.

-

Searches for PROPER releases are exempted from the delay.

+

A negative value will have the daily search accepts results before the episode scheduled air date/time.

+

Proper and Backlog searches are exempted from the delay.

Amount of hours to wait for downloading a result compared to the first result for a specific episode.

diff --git a/themes/dark/assets/js/medusa-runtime.js b/themes/dark/assets/js/medusa-runtime.js index cfb76c3dd0..de46d3a690 100644 --- a/themes/dark/assets/js/medusa-runtime.js +++ b/themes/dark/assets/js/medusa-runtime.js @@ -279,7 +279,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../api */ \"./src/api.js\");\n/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! . */ \"./src/components/helpers/index.js\");\n/* harmony import */ var _test_provider_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./test-provider.vue */ \"./src/components/helpers/test-provider.vue\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n // Putting this import with the rest from index.js, results in an error. Don't know why.\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: 'config-provider-nzb',\n components: {\n ConfigTextbox: ___WEBPACK_IMPORTED_MODULE_1__.ConfigTextbox,\n ConfigTextboxNumber: ___WEBPACK_IMPORTED_MODULE_1__.ConfigTextboxNumber,\n ConfigTemplate: ___WEBPACK_IMPORTED_MODULE_1__.ConfigTemplate,\n ConfigToggleSlider: ___WEBPACK_IMPORTED_MODULE_1__.ConfigToggleSlider,\n TestProvider: _test_provider_vue__WEBPACK_IMPORTED_MODULE_2__.default\n },\n props: {\n provider: {\n type: Object,\n required: true\n }\n },\n\n data() {\n return {\n saving: false,\n editProvider: {}\n };\n },\n\n mounted() {\n const {\n provider\n } = this;\n this.editProvider = { ...provider\n };\n },\n\n methods: {\n async save() {\n const {\n editProvider\n } = this; // Disable the save button until we're done.\n\n this.saving = true;\n\n try {\n await _api__WEBPACK_IMPORTED_MODULE_0__.api.patch(`providers/${editProvider.id}`, editProvider.config);\n this.$snotify.success(`Saved provider ${editProvider.name}`, 'Saved', {\n timeout: 5000\n });\n } catch (error) {\n this.$snotify.error(`Error while trying to save provider ${editProvider.name}`, 'Error');\n } finally {\n this.saving = false;\n }\n }\n\n }\n});\n\n//# sourceURL=webpack://slim/./src/components/helpers/config-provider-nzb.vue?./node_modules/babel-loader/lib/index.js??clonedRuleSet-1%5B0%5D.rules%5B0%5D!./node_modules/vue-loader/lib/index.js??vue-loader-options"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../api */ \"./src/api.js\");\n/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! . */ \"./src/components/helpers/index.js\");\n/* harmony import */ var _test_provider_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./test-provider.vue */ \"./src/components/helpers/test-provider.vue\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n // Putting this import with the rest from index.js, results in an error. Don't know why.\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: 'config-provider-nzb',\n components: {\n ConfigTextbox: ___WEBPACK_IMPORTED_MODULE_1__.ConfigTextbox,\n ConfigTextboxNumber: ___WEBPACK_IMPORTED_MODULE_1__.ConfigTextboxNumber,\n ConfigTemplate: ___WEBPACK_IMPORTED_MODULE_1__.ConfigTemplate,\n ConfigToggleSlider: ___WEBPACK_IMPORTED_MODULE_1__.ConfigToggleSlider,\n TestProvider: _test_provider_vue__WEBPACK_IMPORTED_MODULE_2__.default\n },\n props: {\n provider: {\n type: Object,\n required: true\n }\n },\n\n data() {\n return {\n saving: false,\n editProvider: {}\n };\n },\n\n mounted() {\n const {\n provider\n } = this;\n this.editProvider = { ...provider\n };\n },\n\n methods: {\n async save() {\n const {\n editProvider\n } = this; // Disable the save button until we're done.\n\n this.saving = true;\n\n try {\n await _api__WEBPACK_IMPORTED_MODULE_0__.api.patch(`providers/${editProvider.id}`, editProvider.config);\n this.$snotify.success(`Saved provider ${editProvider.name}`, 'Saved', {\n timeout: 5000\n });\n } catch (error) {\n this.$snotify.error(`Error while trying to save provider ${editProvider.name}`, 'Error');\n } finally {\n this.saving = false;\n }\n }\n\n }\n});\n\n//# sourceURL=webpack://slim/./src/components/helpers/config-provider-nzb.vue?./node_modules/babel-loader/lib/index.js??clonedRuleSet-1%5B0%5D.rules%5B0%5D!./node_modules/vue-loader/lib/index.js??vue-loader-options"); /***/ }), @@ -290,7 +290,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../api */ \"./src/api.js\");\n/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! . */ \"./src/components/helpers/index.js\");\n/* harmony import */ var _test_provider_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./test-provider.vue */ \"./src/components/helpers/test-provider.vue\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: 'config-provider-torrent',\n components: {\n AppLink: ___WEBPACK_IMPORTED_MODULE_1__.AppLink,\n ConfigTextbox: ___WEBPACK_IMPORTED_MODULE_1__.ConfigTextbox,\n ConfigTextboxNumber: ___WEBPACK_IMPORTED_MODULE_1__.ConfigTextboxNumber,\n ConfigTemplate: ___WEBPACK_IMPORTED_MODULE_1__.ConfigTemplate,\n ConfigToggleSlider: ___WEBPACK_IMPORTED_MODULE_1__.ConfigToggleSlider,\n TestProvider: _test_provider_vue__WEBPACK_IMPORTED_MODULE_2__.default\n },\n props: {\n provider: {\n type: Object,\n required: true\n }\n },\n\n data() {\n return {\n saving: false,\n editProvider: {}\n };\n },\n\n mounted() {\n const {\n provider\n } = this;\n this.editProvider = { ...provider\n };\n },\n\n methods: {\n async save() {\n const {\n editProvider\n } = this; // Disable the save button until we're done.\n\n this.saving = true;\n\n try {\n await _api__WEBPACK_IMPORTED_MODULE_0__.api.patch(`providers/${editProvider.id}`, editProvider.config);\n this.$snotify.success(`Saved provider ${editProvider.name}`, 'Saved', {\n timeout: 5000\n });\n } catch (error) {\n this.$snotify.error(`Error while trying to save provider ${editProvider.name}`, 'Error');\n } finally {\n this.saving = false;\n }\n }\n\n }\n});\n\n//# sourceURL=webpack://slim/./src/components/helpers/config-provider-torrent.vue?./node_modules/babel-loader/lib/index.js??clonedRuleSet-1%5B0%5D.rules%5B0%5D!./node_modules/vue-loader/lib/index.js??vue-loader-options"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../api */ \"./src/api.js\");\n/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! . */ \"./src/components/helpers/index.js\");\n/* harmony import */ var _test_provider_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./test-provider.vue */ \"./src/components/helpers/test-provider.vue\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: 'config-provider-torrent',\n components: {\n AppLink: ___WEBPACK_IMPORTED_MODULE_1__.AppLink,\n ConfigTextbox: ___WEBPACK_IMPORTED_MODULE_1__.ConfigTextbox,\n ConfigTextboxNumber: ___WEBPACK_IMPORTED_MODULE_1__.ConfigTextboxNumber,\n ConfigTemplate: ___WEBPACK_IMPORTED_MODULE_1__.ConfigTemplate,\n ConfigToggleSlider: ___WEBPACK_IMPORTED_MODULE_1__.ConfigToggleSlider,\n TestProvider: _test_provider_vue__WEBPACK_IMPORTED_MODULE_2__.default\n },\n props: {\n provider: {\n type: Object,\n required: true\n }\n },\n\n data() {\n return {\n saving: false,\n editProvider: {}\n };\n },\n\n mounted() {\n const {\n provider\n } = this;\n this.editProvider = { ...provider\n };\n },\n\n methods: {\n async save() {\n const {\n editProvider\n } = this; // Disable the save button until we're done.\n\n this.saving = true;\n\n try {\n await _api__WEBPACK_IMPORTED_MODULE_0__.api.patch(`providers/${editProvider.id}`, editProvider.config);\n this.$snotify.success(`Saved provider ${editProvider.name}`, 'Saved', {\n timeout: 5000\n });\n } catch (error) {\n this.$snotify.error(`Error while trying to save provider ${editProvider.name}`, 'Error');\n } finally {\n this.saving = false;\n }\n }\n\n }\n});\n\n//# sourceURL=webpack://slim/./src/components/helpers/config-provider-torrent.vue?./node_modules/babel-loader/lib/index.js??clonedRuleSet-1%5B0%5D.rules%5B0%5D!./node_modules/vue-loader/lib/index.js??vue-loader-options"); /***/ }), @@ -5955,7 +5955,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"render\": () => (/* binding */ render),\n/* harmony export */ \"staticRenderFns\": () => (/* binding */ staticRenderFns)\n/* harmony export */ });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n { attrs: { id: \"provider-options-nzb\" } },\n [\n Object.keys(_vm.editProvider).length > 0\n ? _c(\n \"div\",\n {\n staticClass: \"providerDiv\",\n attrs: { id: _vm.editProvider.id + \"Div\" }\n },\n [\n \"username\" in _vm.editProvider.config &&\n _vm.editProvider.subType !== \"newznab\"\n ? _c(\"config-textbox\", {\n attrs: {\n label: \"Username\",\n id: _vm.editProvider.id + \"_username\"\n },\n model: {\n value: _vm.editProvider.config.username,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"username\", $$v)\n },\n expression: \"editProvider.config.username\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n _vm.editProvider.default && _vm.editProvider.needsAuth\n ? [\n _c(\n \"config-template\",\n {\n attrs: {\n \"label-for\": _vm.editProvider.id + \"_url\",\n label: \"URL\"\n }\n },\n [\n _c(\"input\", {\n staticClass: \"form-control input-sm input350\",\n attrs: {\n type: \"text\",\n id: _vm.editProvider.id + \"_url\",\n disabled: \"\"\n },\n domProps: { value: \"\" + _vm.editProvider.url }\n })\n ]\n ),\n _vm._v(\" \"),\n \"apikey\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: {\n type: \"password\",\n label: \"API key\",\n id: _vm.editProvider.id + \"_url\",\n \"input-class\": \"newznab_api_key\"\n },\n model: {\n value: _vm.editProvider.config.apikey,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"apikey\", $$v)\n },\n expression: \"editProvider.config.apikey\"\n }\n })\n : _vm._e()\n ]\n : _vm.editProvider.subType !== \"newznab\"\n ? [\n \"apikey\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: {\n type: \"password\",\n label: \"API key\",\n id: _vm.editProvider.id + \"_url\",\n \"input-class\": \"newznab_api_key\"\n },\n model: {\n value: _vm.editProvider.config.apikey,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"apikey\", $$v)\n },\n expression: \"editProvider.config.apikey\"\n }\n })\n : _vm._e()\n ]\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable daily searches\",\n name: _vm.editProvider.id + \"_enable_daily\",\n id: _vm.editProvider.id + \"_enable_daily\"\n },\n model: {\n value: _vm.editProvider.config.search.daily.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.daily,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.daily.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\"enable provider to perform daily searches.\")\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable manual searches\",\n name: _vm.editProvider.id + \"_enable_manual\",\n id: _vm.editProvider.id + \"_enable_manual\"\n },\n model: {\n value: _vm.editProvider.config.search.manual.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.manual,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.manual.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"enable provider to be used in 'Manual Search' feature.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable backlog searches\",\n name: _vm.editProvider.id + \"_enable_backlog\",\n id: _vm.editProvider.id + \"_enable_backlog\"\n },\n model: {\n value: _vm.editProvider.config.search.backlog.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.backlog,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.backlog.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\"enable provider to perform backlog searches.\")\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-template\",\n {\n attrs: {\n \"label-for\": \"backlog_search_mode\",\n label: \"Backlog search mode\"\n }\n },\n [\n _c(\"div\", { staticClass: \"radio-item\" }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.editProvider.config.search.mode,\n expression: \"editProvider.config.search.mode\"\n }\n ],\n attrs: {\n type: \"radio\",\n name: _vm.editProvider.id + \"_search_mode_sponly\",\n id: _vm.editProvider.id + \"_search_mode_sponly\",\n value: \"sponly\"\n },\n domProps: {\n checked: _vm._q(\n _vm.editProvider.config.search.mode,\n \"sponly\"\n )\n },\n on: {\n change: function($event) {\n return _vm.$set(\n _vm.editProvider.config.search,\n \"mode\",\n \"sponly\"\n )\n }\n }\n }),\n _vm._v(\" \"),\n _c(\"label\", { attrs: { for: \"one\" } }, [\n _vm._v(\"Season packs only\")\n ])\n ]),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"radio-item\" }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.editProvider.config.search.mode,\n expression: \"editProvider.config.search.mode\"\n }\n ],\n attrs: {\n type: \"radio\",\n name: _vm.editProvider.id + \"_search_mode_eponly\",\n id: _vm.editProvider.id + \"_search_mode_eponly\",\n value: \"eponly\"\n },\n domProps: {\n checked: _vm._q(\n _vm.editProvider.config.search.mode,\n \"eponly\"\n )\n },\n on: {\n change: function($event) {\n return _vm.$set(\n _vm.editProvider.config.search,\n \"mode\",\n \"eponly\"\n )\n }\n }\n }),\n _vm._v(\" \"),\n _c(\"label\", { attrs: { for: \"one\" } }, [\n _vm._v(\"Episodes only\")\n ])\n ]),\n _vm._v(\" \"),\n _c(\"p\", [\n _vm._v(\n \"when searching with backlog you can choose to have it look for season packs only, or choose to have it build a complete season from just single episodes.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable fallback\",\n name: _vm.editProvider.id + \"_enable_fallback\",\n id: _vm.editProvider.id + \"_enable_fallback\"\n },\n model: {\n value: _vm.editProvider.config.search.fallback,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config.search, \"fallback\", $$v)\n },\n expression: \"editProvider.config.search.fallback\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"when searching for a complete season depending on search mode you may return no results, this helps by restarting the search using the opposite search mode.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable search delay\",\n name: _vm.editProvider.id + \"_enable_search_delay\",\n id: _vm.editProvider.id + \"_enable_search_delay\"\n },\n model: {\n value: _vm.editProvider.config.search.delay.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.delay,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.delay.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"Enable to delay downloads for this provider for an x amount of hours. The provider will start snatching results for a specific episode after a delay has expired, compared to when it first got a result for the specific episode.\"\n )\n ]),\n _vm._v(\" \"),\n _c(\"p\", [\n _vm._v(\n \"Searches for PROPER releases are exempted from the delay.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _vm.editProvider.config.search.delay.enabled\n ? _c(\n \"config-textbox-number\",\n {\n attrs: {\n value:\n _vm.editProvider.config.search.delay.duration / 60.0,\n label: \"Search delay (hours)\",\n id: _vm.editProvider.id + \"_search_delay_duration\",\n min: 0.5,\n step: 0.5\n },\n on: {\n input: function($event) {\n _vm.editProvider.config.search.delay.duration =\n $event * 60\n }\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"Amount of hours to wait for downloading a result compared to the first result for a specific episode.\"\n )\n ])\n ]\n )\n : _vm._e()\n ],\n 2\n )\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"button\",\n {\n staticClass: \"btn-medusa config_submitter\",\n staticStyle: { float: \"left\" },\n attrs: { disabled: _vm.saving },\n on: { click: _vm.save }\n },\n [_vm._v(\"Save Changes\")]\n ),\n _vm._v(\" \"),\n _c(\"test-provider\", {\n attrs: {\n \"provider-id\": _vm.editProvider.id,\n \"provider-name\": _vm.editProvider.name\n }\n })\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://slim/./src/components/helpers/config-provider-nzb.vue?./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"render\": () => (/* binding */ render),\n/* harmony export */ \"staticRenderFns\": () => (/* binding */ staticRenderFns)\n/* harmony export */ });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n { attrs: { id: \"provider-options-nzb\" } },\n [\n Object.keys(_vm.editProvider).length > 0\n ? _c(\n \"div\",\n {\n staticClass: \"providerDiv\",\n attrs: { id: _vm.editProvider.id + \"Div\" }\n },\n [\n \"username\" in _vm.editProvider.config &&\n _vm.editProvider.subType !== \"newznab\"\n ? _c(\"config-textbox\", {\n attrs: {\n label: \"Username\",\n id: _vm.editProvider.id + \"_username\"\n },\n model: {\n value: _vm.editProvider.config.username,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"username\", $$v)\n },\n expression: \"editProvider.config.username\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n _vm.editProvider.default && _vm.editProvider.needsAuth\n ? [\n _c(\n \"config-template\",\n {\n attrs: {\n \"label-for\": _vm.editProvider.id + \"_url\",\n label: \"URL\"\n }\n },\n [\n _c(\"input\", {\n staticClass: \"form-control input-sm input350\",\n attrs: {\n type: \"text\",\n id: _vm.editProvider.id + \"_url\",\n disabled: \"\"\n },\n domProps: { value: \"\" + _vm.editProvider.url }\n })\n ]\n ),\n _vm._v(\" \"),\n \"apikey\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: {\n type: \"password\",\n label: \"API key\",\n id: _vm.editProvider.id + \"_url\",\n \"input-class\": \"newznab_api_key\"\n },\n model: {\n value: _vm.editProvider.config.apikey,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"apikey\", $$v)\n },\n expression: \"editProvider.config.apikey\"\n }\n })\n : _vm._e()\n ]\n : _vm.editProvider.subType !== \"newznab\"\n ? [\n \"apikey\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: {\n type: \"password\",\n label: \"API key\",\n id: _vm.editProvider.id + \"_url\",\n \"input-class\": \"newznab_api_key\"\n },\n model: {\n value: _vm.editProvider.config.apikey,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"apikey\", $$v)\n },\n expression: \"editProvider.config.apikey\"\n }\n })\n : _vm._e()\n ]\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable daily searches\",\n name: _vm.editProvider.id + \"_enable_daily\",\n id: _vm.editProvider.id + \"_enable_daily\"\n },\n model: {\n value: _vm.editProvider.config.search.daily.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.daily,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.daily.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\"enable provider to perform daily searches.\")\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable manual searches\",\n name: _vm.editProvider.id + \"_enable_manual\",\n id: _vm.editProvider.id + \"_enable_manual\"\n },\n model: {\n value: _vm.editProvider.config.search.manual.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.manual,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.manual.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"enable provider to be used in 'Manual Search' feature.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable backlog searches\",\n name: _vm.editProvider.id + \"_enable_backlog\",\n id: _vm.editProvider.id + \"_enable_backlog\"\n },\n model: {\n value: _vm.editProvider.config.search.backlog.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.backlog,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.backlog.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\"enable provider to perform backlog searches.\")\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-template\",\n {\n attrs: {\n \"label-for\": \"backlog_search_mode\",\n label: \"Backlog search mode\"\n }\n },\n [\n _c(\"div\", { staticClass: \"radio-item\" }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.editProvider.config.search.mode,\n expression: \"editProvider.config.search.mode\"\n }\n ],\n attrs: {\n type: \"radio\",\n name: _vm.editProvider.id + \"_search_mode_sponly\",\n id: _vm.editProvider.id + \"_search_mode_sponly\",\n value: \"sponly\"\n },\n domProps: {\n checked: _vm._q(\n _vm.editProvider.config.search.mode,\n \"sponly\"\n )\n },\n on: {\n change: function($event) {\n return _vm.$set(\n _vm.editProvider.config.search,\n \"mode\",\n \"sponly\"\n )\n }\n }\n }),\n _vm._v(\" \"),\n _c(\"label\", { attrs: { for: \"one\" } }, [\n _vm._v(\"Season packs only\")\n ])\n ]),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"radio-item\" }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.editProvider.config.search.mode,\n expression: \"editProvider.config.search.mode\"\n }\n ],\n attrs: {\n type: \"radio\",\n name: _vm.editProvider.id + \"_search_mode_eponly\",\n id: _vm.editProvider.id + \"_search_mode_eponly\",\n value: \"eponly\"\n },\n domProps: {\n checked: _vm._q(\n _vm.editProvider.config.search.mode,\n \"eponly\"\n )\n },\n on: {\n change: function($event) {\n return _vm.$set(\n _vm.editProvider.config.search,\n \"mode\",\n \"eponly\"\n )\n }\n }\n }),\n _vm._v(\" \"),\n _c(\"label\", { attrs: { for: \"one\" } }, [\n _vm._v(\"Episodes only\")\n ])\n ]),\n _vm._v(\" \"),\n _c(\"p\", [\n _vm._v(\n \"when searching with backlog you can choose to have it look for season packs only, or choose to have it build a complete season from just single episodes.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable fallback\",\n name: _vm.editProvider.id + \"_enable_fallback\",\n id: _vm.editProvider.id + \"_enable_fallback\"\n },\n model: {\n value: _vm.editProvider.config.search.fallback,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config.search, \"fallback\", $$v)\n },\n expression: \"editProvider.config.search.fallback\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"when searching for a complete season depending on search mode you may return no results, this helps by restarting the search using the opposite search mode.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable search delay\",\n name: _vm.editProvider.id + \"_enable_search_delay\",\n id: _vm.editProvider.id + \"_enable_search_delay\"\n },\n model: {\n value: _vm.editProvider.config.search.delay.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.delay,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.delay.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"Enable to delay downloads for this provider for an x amount of hours. The provider will start snatching results for a specific episode after a delay has expired, compared to when it first got a result for the specific episode.\"\n )\n ]),\n _vm._v(\" \"),\n _c(\"p\", [\n _vm._v(\n \"A negative value will have the daily search accepts results before the episode scheduled air date/time.\"\n )\n ]),\n _vm._v(\" \"),\n _c(\"p\", [\n _vm._v(\n \"Proper and Backlog searches are exempted from the delay.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _vm.editProvider.config.search.delay.enabled\n ? _c(\n \"config-textbox-number\",\n {\n attrs: {\n value:\n _vm.editProvider.config.search.delay.duration / 60.0,\n label: \"Search delay (hours)\",\n id: _vm.editProvider.id + \"_search_delay_duration\",\n min: 0.5,\n step: 0.5\n },\n on: {\n input: function($event) {\n _vm.editProvider.config.search.delay.duration =\n $event * 60\n }\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"Amount of hours to wait for downloading a result compared to the first result for a specific episode.\"\n )\n ])\n ]\n )\n : _vm._e()\n ],\n 2\n )\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"button\",\n {\n staticClass: \"btn-medusa config_submitter\",\n staticStyle: { float: \"left\" },\n attrs: { disabled: _vm.saving },\n on: { click: _vm.save }\n },\n [_vm._v(\"Save Changes\")]\n ),\n _vm._v(\" \"),\n _c(\"test-provider\", {\n attrs: {\n \"provider-id\": _vm.editProvider.id,\n \"provider-name\": _vm.editProvider.name\n }\n })\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://slim/./src/components/helpers/config-provider-nzb.vue?./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options"); /***/ }), @@ -5966,7 +5966,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"render\": () => (/* binding */ render),\n/* harmony export */ \"staticRenderFns\": () => (/* binding */ staticRenderFns)\n/* harmony export */ });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n { attrs: { id: \"provider-options-torrent\" } },\n [\n Object.keys(_vm.editProvider).length > 0\n ? _c(\n \"div\",\n {\n staticClass: \"providerDiv\",\n attrs: { id: _vm.editProvider.id + \"Div\" }\n },\n [\n \"customUrl\" in _vm.editProvider.config\n ? _c(\n \"config-textbox\",\n {\n attrs: {\n label: \"Custom Url\",\n id: _vm.editProvider.id + \"_custom_url\"\n },\n model: {\n value: _vm.editProvider.config.customUrl,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"customUrl\", $$v)\n },\n expression: \"editProvider.config.customUrl\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"The URL should include the protocol (and port if applicable). Examples: http://192.168.1.4/ or http://localhost:3000/\"\n )\n ])\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n \"apikey\" in _vm.editProvider.config &&\n _vm.editProvider.config.subType !== \"torznab\"\n ? _c(\"config-textbox\", {\n attrs: {\n type: \"password\",\n label: \"API key\",\n id: _vm.editProvider.id + \"_api_key\"\n },\n model: {\n value: _vm.editProvider.config.apikey,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"apikey\", $$v)\n },\n expression: \"editProvider.config.apikey\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"digest\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: {\n type: \"password\",\n label: \"Digest\",\n id: _vm.editProvider.id + \"_digest\"\n },\n model: {\n value: _vm.editProvider.config.digest,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"digest\", $$v)\n },\n expression: \"editProvider.config.digest\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"hash\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: { label: \"Hash\", id: _vm.editProvider.id + \"_hash\" },\n model: {\n value: _vm.editProvider.config.hash,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"hash\", $$v)\n },\n expression: \"editProvider.config.hash\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"username\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: {\n label: \"Username\",\n id: _vm.editProvider.id + \"_username\"\n },\n model: {\n value: _vm.editProvider.config.username,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"username\", $$v)\n },\n expression: \"editProvider.config.username\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"password\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: {\n autocomplete: \"no\",\n type: \"password\",\n label: \"Password\",\n id: _vm.editProvider.id + \"_password\"\n },\n model: {\n value: _vm.editProvider.config.password,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"password\", $$v)\n },\n expression: \"editProvider.config.password\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n _vm.editProvider.config.cookies.enabled ||\n _vm.editProvider.subType === \"torrentrss\"\n ? _c(\n \"config-textbox\",\n {\n attrs: {\n label: \"Cookies\",\n id: _vm.editProvider.id + \"_cookies\"\n },\n model: {\n value: _vm.editProvider.config.cookies.values,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.cookies,\n \"values\",\n $$v\n )\n },\n expression: \"editProvider.config.cookies.values\"\n }\n },\n [\n _vm.editProvider.config.cookies.required\n ? [\n _c(\"p\", [\n _vm._v(\n \"eg. \" +\n _vm._s(\n _vm.editProvider.config.cookies.required\n .map(function(cookie) {\n return cookie + \"=xx;\"\n })\n .join(\"\")\n .slice(0, -1)\n )\n )\n ]),\n _vm._v(\" \"),\n _c(\n \"p\",\n [\n _vm._v(\n \"This provider requires the following cookies: \" +\n _vm._s(\n _vm.editProvider.config.cookies.required.join(\n \", \"\n )\n ) +\n \".\\n \"\n ),\n _c(\"br\"),\n _vm._v(\n \"For a step by step guide please follow the link to our \"\n ),\n _c(\n \"app-link\",\n {\n attrs: {\n href:\n \"https://github.com/pymedusa/Medusa/wiki/Configure-Providers-with-captcha-protection\"\n }\n },\n [_vm._v(\"WIKI\")]\n )\n ],\n 1\n )\n ]\n : _vm._e()\n ],\n 2\n )\n : _vm._e(),\n _vm._v(\" \"),\n \"passkey\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: {\n label: \"Passkey\",\n id: _vm.editProvider.id + \"_passkey\"\n },\n model: {\n value: _vm.editProvider.config.passkey,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"passkey\", $$v)\n },\n expression: \"editProvider.config.passkey\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"pin\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: {\n type: \"password\",\n label: \"Pin\",\n id: _vm.editProvider.id + \"_pin\"\n },\n model: {\n value: _vm.editProvider.config.pin,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"pin\", $$v)\n },\n expression: \"editProvider.config.pin\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"ratio\" in _vm.editProvider.config\n ? _c(\n \"config-textbox-number\",\n {\n attrs: {\n min: -1,\n step: 0.1,\n label: \"Seed ratio\",\n id: _vm.editProvider.id + \"_seed_ratio\"\n },\n model: {\n value: _vm.editProvider.config.ratio,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"ratio\", $$v)\n },\n expression: \"editProvider.config.ratio\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"Configure a desired seeding ratio. Used by the (automated download handler in config - postprocessing)\\n \"\n ),\n _c(\"br\"),\n _vm._v(\n \"-1 for provider specific option is disabled.\\n \"\n ),\n _c(\"br\"),\n _vm._v(\n \"0 for not using a seed ratio. Actions configured in the download handler, will not wait for finished seeding.\\n \"\n ),\n _c(\"br\"),\n _vm._v(\n \"If disabled the global option is used in config - postprocessing (automated download handling))\\n \"\n )\n ])\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n \"minseed\" in _vm.editProvider.config\n ? _c(\"config-textbox-number\", {\n attrs: {\n label: \"Minimum seeders\",\n min: 0,\n step: 1,\n id: _vm.editProvider.id + \"_min_seed\"\n },\n model: {\n value: _vm.editProvider.config.minseed,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"minseed\", $$v)\n },\n expression: \"editProvider.config.minseed\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"minleech\" in _vm.editProvider.config\n ? _c(\"config-textbox-number\", {\n attrs: {\n label: \"Minimum leechers\",\n min: 0,\n step: 1,\n id: _vm.editProvider.id + \"_min_leech\"\n },\n model: {\n value: _vm.editProvider.config.minleech,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"minleech\", $$v)\n },\n expression: \"editProvider.config.minleech\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"confirmed\" in _vm.editProvider.config\n ? _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Confirmed downloads\",\n name: _vm.editProvider.id + \"_confirmed\",\n id: _vm.editProvider.id + \"_confirmed\"\n },\n model: {\n value: _vm.editProvider.config.confirmed,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"confirmed\", $$v)\n },\n expression: \"editProvider.config.confirmed\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"only download torrents from trusted or verified uploaders ?\"\n )\n ])\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n \"ranked\" in _vm.editProvider.config\n ? _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Ranked torrents\",\n name: _vm.editProvider.id + \"_ranked\",\n id: _vm.editProvider.id + \"_ranked\"\n },\n model: {\n value: _vm.editProvider.config.ranked,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"ranked\", $$v)\n },\n expression: \"editProvider.config.ranked\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"only download ranked torrents (trusted releases)\"\n )\n ])\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n \"sorting\" in _vm.editProvider.config\n ? _c(\n \"config-template\",\n {\n attrs: {\n \"label-for\": \"sorting\",\n label: \"Sorting results by\"\n }\n },\n [\n _c(\n \"select\",\n {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.editProvider.config.sorting,\n expression: \"editProvider.config.sorting\"\n }\n ],\n staticClass: \"form-control input-sm\",\n attrs: { id: \"sorting\" },\n on: {\n change: function($event) {\n var $$selectedVal = Array.prototype.filter\n .call($event.target.options, function(o) {\n return o.selected\n })\n .map(function(o) {\n var val = \"_value\" in o ? o._value : o.value\n return val\n })\n _vm.$set(\n _vm.editProvider.config,\n \"sorting\",\n $event.target.multiple\n ? $$selectedVal\n : $$selectedVal[0]\n )\n }\n }\n },\n [\n _c(\"option\", { attrs: { value: \"last\" } }, [\n _vm._v(\"last\")\n ]),\n _vm._v(\" \"),\n _c(\"option\", { attrs: { value: \"seeders\" } }, [\n _vm._v(\"seeders\")\n ]),\n _vm._v(\" \"),\n _c(\"option\", { attrs: { value: \"leechers\" } }, [\n _vm._v(\"leechers\")\n ])\n ]\n )\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n \"freeleech\" in _vm.editProvider.config\n ? _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Freeleech\",\n name: _vm.editProvider.id + \"_freeleech\",\n id: _vm.editProvider.id + \"_freeleech\"\n },\n model: {\n value: _vm.editProvider.config.freeleech,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"freeleech\", $$v)\n },\n expression: \"editProvider.config.freeleech\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\"only download \"),\n _c(\"b\", [_vm._v('\"FreeLeech\"')]),\n _vm._v(\" torrents.\")\n ])\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable daily searches\",\n name: _vm.editProvider.id + \"_enable_daily\",\n id: _vm.editProvider.id + \"_enable_daily\"\n },\n model: {\n value: _vm.editProvider.config.search.daily.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.daily,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.daily.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\"enable provider to perform daily searches.\")\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable manual searches\",\n name: _vm.editProvider.id + \"_enable_manual\",\n id: _vm.editProvider.id + \"_enable_manual\"\n },\n model: {\n value: _vm.editProvider.config.search.manual.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.manual,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.manual.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"enable provider to be used in 'Manual Search' feature.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable backlog searches\",\n name: _vm.editProvider.id + \"_enable_backlog\",\n id: _vm.editProvider.id + \"_enable_backlog\"\n },\n model: {\n value: _vm.editProvider.config.search.backlog.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.backlog,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.backlog.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\"enable provider to perform backlog searches.\")\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-template\",\n {\n attrs: {\n \"label-for\": \"backlog_search_mode\",\n label: \"Backlog search mode\"\n }\n },\n [\n _c(\"div\", { staticClass: \"radio-item\" }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.editProvider.config.search.mode,\n expression: \"editProvider.config.search.mode\"\n }\n ],\n attrs: {\n type: \"radio\",\n name: _vm.editProvider.id + \"_search_mode_sponly\",\n id: _vm.editProvider.id + \"_search_mode_sponly\",\n value: \"sponly\"\n },\n domProps: {\n checked: _vm._q(\n _vm.editProvider.config.search.mode,\n \"sponly\"\n )\n },\n on: {\n change: function($event) {\n return _vm.$set(\n _vm.editProvider.config.search,\n \"mode\",\n \"sponly\"\n )\n }\n }\n }),\n _vm._v(\" \"),\n _c(\"label\", { attrs: { for: \"one\" } }, [\n _vm._v(\"Season packs only\")\n ])\n ]),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"radio-item\" }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.editProvider.config.search.mode,\n expression: \"editProvider.config.search.mode\"\n }\n ],\n attrs: {\n type: \"radio\",\n name: _vm.editProvider.id + \"_search_mode_eponly\",\n id: _vm.editProvider.id + \"_search_mode_eponly\",\n value: \"eponly\"\n },\n domProps: {\n checked: _vm._q(\n _vm.editProvider.config.search.mode,\n \"eponly\"\n )\n },\n on: {\n change: function($event) {\n return _vm.$set(\n _vm.editProvider.config.search,\n \"mode\",\n \"eponly\"\n )\n }\n }\n }),\n _vm._v(\" \"),\n _c(\"label\", { attrs: { for: \"one\" } }, [\n _vm._v(\"Episodes only\")\n ])\n ]),\n _vm._v(\" \"),\n _c(\"p\", [\n _vm._v(\n \"when searching with backlog you can choose to have it look for season packs only, or choose to have it build a complete season from just single episodes.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable fallback\",\n name: _vm.editProvider.id + \"_enable_fallback\",\n id: _vm.editProvider.id + \"_enable_fallback\"\n },\n model: {\n value: _vm.editProvider.config.search.fallback,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config.search, \"fallback\", $$v)\n },\n expression: \"editProvider.config.search.fallback\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"when searching for a complete season depending on search mode you may return no results, this helps by restarting the search using the opposite search mode.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable search delay\",\n name: _vm.editProvider.id + \"_enable_search_delay\",\n id: _vm.editProvider.id + \"_enable_search_delay\"\n },\n model: {\n value: _vm.editProvider.config.search.delay.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.delay,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.delay.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"Enable to delay downloads for this provider for an x amount of hours. The provider will start snatching results for a specific episode after a delay has expired, compared to when it first got a result for the specific episode.\"\n )\n ]),\n _vm._v(\" \"),\n _c(\"p\", [\n _vm._v(\n \"Searches for PROPER releases are exempted from the delay.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _vm.editProvider.config.search.delay.enabled\n ? _c(\n \"config-textbox-number\",\n {\n attrs: {\n value:\n _vm.editProvider.config.search.delay.duration / 60.0,\n label: \"Search delay (hours)\",\n id: _vm.editProvider.id + \"_search_delay_duration\",\n min: 0.5,\n step: 0.5\n },\n on: {\n input: function($event) {\n _vm.editProvider.config.search.delay.duration =\n $event * 60\n }\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"Amount of hours to wait for downloading a result compared to the first result for a specific episode.\"\n )\n ])\n ]\n )\n : _vm._e()\n ],\n 1\n )\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"button\",\n {\n staticClass: \"btn-medusa config_submitter\",\n staticStyle: { float: \"left\" },\n attrs: { disabled: _vm.saving },\n on: { click: _vm.save }\n },\n [_vm._v(\"Save Changes\")]\n ),\n _vm._v(\" \"),\n _c(\"test-provider\", {\n attrs: {\n \"provider-id\": _vm.editProvider.id,\n \"provider-name\": _vm.editProvider.name\n }\n })\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://slim/./src/components/helpers/config-provider-torrent.vue?./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"render\": () => (/* binding */ render),\n/* harmony export */ \"staticRenderFns\": () => (/* binding */ staticRenderFns)\n/* harmony export */ });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n { attrs: { id: \"provider-options-torrent\" } },\n [\n Object.keys(_vm.editProvider).length > 0\n ? _c(\n \"div\",\n {\n staticClass: \"providerDiv\",\n attrs: { id: _vm.editProvider.id + \"Div\" }\n },\n [\n \"customUrl\" in _vm.editProvider.config\n ? _c(\n \"config-textbox\",\n {\n attrs: {\n label: \"Custom Url\",\n id: _vm.editProvider.id + \"_custom_url\"\n },\n model: {\n value: _vm.editProvider.config.customUrl,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"customUrl\", $$v)\n },\n expression: \"editProvider.config.customUrl\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"The URL should include the protocol (and port if applicable). Examples: http://192.168.1.4/ or http://localhost:3000/\"\n )\n ])\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n \"apikey\" in _vm.editProvider.config &&\n _vm.editProvider.config.subType !== \"torznab\"\n ? _c(\"config-textbox\", {\n attrs: {\n type: \"password\",\n label: \"API key\",\n id: _vm.editProvider.id + \"_api_key\"\n },\n model: {\n value: _vm.editProvider.config.apikey,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"apikey\", $$v)\n },\n expression: \"editProvider.config.apikey\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"digest\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: {\n type: \"password\",\n label: \"Digest\",\n id: _vm.editProvider.id + \"_digest\"\n },\n model: {\n value: _vm.editProvider.config.digest,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"digest\", $$v)\n },\n expression: \"editProvider.config.digest\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"hash\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: { label: \"Hash\", id: _vm.editProvider.id + \"_hash\" },\n model: {\n value: _vm.editProvider.config.hash,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"hash\", $$v)\n },\n expression: \"editProvider.config.hash\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"username\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: {\n label: \"Username\",\n id: _vm.editProvider.id + \"_username\"\n },\n model: {\n value: _vm.editProvider.config.username,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"username\", $$v)\n },\n expression: \"editProvider.config.username\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"password\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: {\n autocomplete: \"no\",\n type: \"password\",\n label: \"Password\",\n id: _vm.editProvider.id + \"_password\"\n },\n model: {\n value: _vm.editProvider.config.password,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"password\", $$v)\n },\n expression: \"editProvider.config.password\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n _vm.editProvider.config.cookies.enabled ||\n _vm.editProvider.subType === \"torrentrss\"\n ? _c(\n \"config-textbox\",\n {\n attrs: {\n label: \"Cookies\",\n id: _vm.editProvider.id + \"_cookies\"\n },\n model: {\n value: _vm.editProvider.config.cookies.values,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.cookies,\n \"values\",\n $$v\n )\n },\n expression: \"editProvider.config.cookies.values\"\n }\n },\n [\n _vm.editProvider.config.cookies.required\n ? [\n _c(\"p\", [\n _vm._v(\n \"eg. \" +\n _vm._s(\n _vm.editProvider.config.cookies.required\n .map(function(cookie) {\n return cookie + \"=xx;\"\n })\n .join(\"\")\n .slice(0, -1)\n )\n )\n ]),\n _vm._v(\" \"),\n _c(\n \"p\",\n [\n _vm._v(\n \"This provider requires the following cookies: \" +\n _vm._s(\n _vm.editProvider.config.cookies.required.join(\n \", \"\n )\n ) +\n \".\\n \"\n ),\n _c(\"br\"),\n _vm._v(\n \"For a step by step guide please follow the link to our \"\n ),\n _c(\n \"app-link\",\n {\n attrs: {\n href:\n \"https://github.com/pymedusa/Medusa/wiki/Configure-Providers-with-captcha-protection\"\n }\n },\n [_vm._v(\"WIKI\")]\n )\n ],\n 1\n )\n ]\n : _vm._e()\n ],\n 2\n )\n : _vm._e(),\n _vm._v(\" \"),\n \"passkey\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: {\n label: \"Passkey\",\n id: _vm.editProvider.id + \"_passkey\"\n },\n model: {\n value: _vm.editProvider.config.passkey,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"passkey\", $$v)\n },\n expression: \"editProvider.config.passkey\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"pin\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: {\n type: \"password\",\n label: \"Pin\",\n id: _vm.editProvider.id + \"_pin\"\n },\n model: {\n value: _vm.editProvider.config.pin,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"pin\", $$v)\n },\n expression: \"editProvider.config.pin\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"ratio\" in _vm.editProvider.config\n ? _c(\n \"config-textbox-number\",\n {\n attrs: {\n min: -1,\n step: 0.1,\n label: \"Seed ratio\",\n id: _vm.editProvider.id + \"_seed_ratio\"\n },\n model: {\n value: _vm.editProvider.config.ratio,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"ratio\", $$v)\n },\n expression: \"editProvider.config.ratio\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"Configure a desired seeding ratio. Used by the (automated download handler in config - postprocessing)\\n \"\n ),\n _c(\"br\"),\n _vm._v(\n \"-1 for provider specific option is disabled.\\n \"\n ),\n _c(\"br\"),\n _vm._v(\n \"0 for not using a seed ratio. Actions configured in the download handler, will not wait for finished seeding.\\n \"\n ),\n _c(\"br\"),\n _vm._v(\n \"If disabled the global option is used in config - postprocessing (automated download handling))\\n \"\n )\n ])\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n \"minseed\" in _vm.editProvider.config\n ? _c(\"config-textbox-number\", {\n attrs: {\n label: \"Minimum seeders\",\n min: 0,\n step: 1,\n id: _vm.editProvider.id + \"_min_seed\"\n },\n model: {\n value: _vm.editProvider.config.minseed,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"minseed\", $$v)\n },\n expression: \"editProvider.config.minseed\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"minleech\" in _vm.editProvider.config\n ? _c(\"config-textbox-number\", {\n attrs: {\n label: \"Minimum leechers\",\n min: 0,\n step: 1,\n id: _vm.editProvider.id + \"_min_leech\"\n },\n model: {\n value: _vm.editProvider.config.minleech,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"minleech\", $$v)\n },\n expression: \"editProvider.config.minleech\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"confirmed\" in _vm.editProvider.config\n ? _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Confirmed downloads\",\n name: _vm.editProvider.id + \"_confirmed\",\n id: _vm.editProvider.id + \"_confirmed\"\n },\n model: {\n value: _vm.editProvider.config.confirmed,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"confirmed\", $$v)\n },\n expression: \"editProvider.config.confirmed\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"only download torrents from trusted or verified uploaders ?\"\n )\n ])\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n \"ranked\" in _vm.editProvider.config\n ? _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Ranked torrents\",\n name: _vm.editProvider.id + \"_ranked\",\n id: _vm.editProvider.id + \"_ranked\"\n },\n model: {\n value: _vm.editProvider.config.ranked,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"ranked\", $$v)\n },\n expression: \"editProvider.config.ranked\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"only download ranked torrents (trusted releases)\"\n )\n ])\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n \"sorting\" in _vm.editProvider.config\n ? _c(\n \"config-template\",\n {\n attrs: {\n \"label-for\": \"sorting\",\n label: \"Sorting results by\"\n }\n },\n [\n _c(\n \"select\",\n {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.editProvider.config.sorting,\n expression: \"editProvider.config.sorting\"\n }\n ],\n staticClass: \"form-control input-sm\",\n attrs: { id: \"sorting\" },\n on: {\n change: function($event) {\n var $$selectedVal = Array.prototype.filter\n .call($event.target.options, function(o) {\n return o.selected\n })\n .map(function(o) {\n var val = \"_value\" in o ? o._value : o.value\n return val\n })\n _vm.$set(\n _vm.editProvider.config,\n \"sorting\",\n $event.target.multiple\n ? $$selectedVal\n : $$selectedVal[0]\n )\n }\n }\n },\n [\n _c(\"option\", { attrs: { value: \"last\" } }, [\n _vm._v(\"last\")\n ]),\n _vm._v(\" \"),\n _c(\"option\", { attrs: { value: \"seeders\" } }, [\n _vm._v(\"seeders\")\n ]),\n _vm._v(\" \"),\n _c(\"option\", { attrs: { value: \"leechers\" } }, [\n _vm._v(\"leechers\")\n ])\n ]\n )\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n \"freeleech\" in _vm.editProvider.config\n ? _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Freeleech\",\n name: _vm.editProvider.id + \"_freeleech\",\n id: _vm.editProvider.id + \"_freeleech\"\n },\n model: {\n value: _vm.editProvider.config.freeleech,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"freeleech\", $$v)\n },\n expression: \"editProvider.config.freeleech\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\"only download \"),\n _c(\"b\", [_vm._v('\"FreeLeech\"')]),\n _vm._v(\" torrents.\")\n ])\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable daily searches\",\n name: _vm.editProvider.id + \"_enable_daily\",\n id: _vm.editProvider.id + \"_enable_daily\"\n },\n model: {\n value: _vm.editProvider.config.search.daily.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.daily,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.daily.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\"enable provider to perform daily searches.\")\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable manual searches\",\n name: _vm.editProvider.id + \"_enable_manual\",\n id: _vm.editProvider.id + \"_enable_manual\"\n },\n model: {\n value: _vm.editProvider.config.search.manual.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.manual,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.manual.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"enable provider to be used in 'Manual Search' feature.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable backlog searches\",\n name: _vm.editProvider.id + \"_enable_backlog\",\n id: _vm.editProvider.id + \"_enable_backlog\"\n },\n model: {\n value: _vm.editProvider.config.search.backlog.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.backlog,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.backlog.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\"enable provider to perform backlog searches.\")\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-template\",\n {\n attrs: {\n \"label-for\": \"backlog_search_mode\",\n label: \"Backlog search mode\"\n }\n },\n [\n _c(\"div\", { staticClass: \"radio-item\" }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.editProvider.config.search.mode,\n expression: \"editProvider.config.search.mode\"\n }\n ],\n attrs: {\n type: \"radio\",\n name: _vm.editProvider.id + \"_search_mode_sponly\",\n id: _vm.editProvider.id + \"_search_mode_sponly\",\n value: \"sponly\"\n },\n domProps: {\n checked: _vm._q(\n _vm.editProvider.config.search.mode,\n \"sponly\"\n )\n },\n on: {\n change: function($event) {\n return _vm.$set(\n _vm.editProvider.config.search,\n \"mode\",\n \"sponly\"\n )\n }\n }\n }),\n _vm._v(\" \"),\n _c(\"label\", { attrs: { for: \"one\" } }, [\n _vm._v(\"Season packs only\")\n ])\n ]),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"radio-item\" }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.editProvider.config.search.mode,\n expression: \"editProvider.config.search.mode\"\n }\n ],\n attrs: {\n type: \"radio\",\n name: _vm.editProvider.id + \"_search_mode_eponly\",\n id: _vm.editProvider.id + \"_search_mode_eponly\",\n value: \"eponly\"\n },\n domProps: {\n checked: _vm._q(\n _vm.editProvider.config.search.mode,\n \"eponly\"\n )\n },\n on: {\n change: function($event) {\n return _vm.$set(\n _vm.editProvider.config.search,\n \"mode\",\n \"eponly\"\n )\n }\n }\n }),\n _vm._v(\" \"),\n _c(\"label\", { attrs: { for: \"one\" } }, [\n _vm._v(\"Episodes only\")\n ])\n ]),\n _vm._v(\" \"),\n _c(\"p\", [\n _vm._v(\n \"when searching with backlog you can choose to have it look for season packs only, or choose to have it build a complete season from just single episodes.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable fallback\",\n name: _vm.editProvider.id + \"_enable_fallback\",\n id: _vm.editProvider.id + \"_enable_fallback\"\n },\n model: {\n value: _vm.editProvider.config.search.fallback,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config.search, \"fallback\", $$v)\n },\n expression: \"editProvider.config.search.fallback\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"when searching for a complete season depending on search mode you may return no results, this helps by restarting the search using the opposite search mode.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable search delay\",\n name: _vm.editProvider.id + \"_enable_search_delay\",\n id: _vm.editProvider.id + \"_enable_search_delay\"\n },\n model: {\n value: _vm.editProvider.config.search.delay.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.delay,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.delay.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"Enable to delay downloads for this provider for an x amount of hours. The provider will start snatching results for a specific episode after a delay has expired, compared to when it first got a result for the specific episode.\"\n )\n ]),\n _vm._v(\" \"),\n _c(\"p\", [\n _vm._v(\n \"A negative value will have the daily search accepts results before the episode scheduled air date/time.\"\n )\n ]),\n _vm._v(\" \"),\n _c(\"p\", [\n _vm._v(\n \"Proper and Backlog searches are exempted from the delay.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _vm.editProvider.config.search.delay.enabled\n ? _c(\n \"config-textbox-number\",\n {\n attrs: {\n value:\n _vm.editProvider.config.search.delay.duration / 60.0,\n label: \"Search delay (hours)\",\n id: _vm.editProvider.id + \"_search_delay_duration\",\n step: 0.5\n },\n on: {\n input: function($event) {\n _vm.editProvider.config.search.delay.duration =\n $event * 60\n }\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"Amount of hours to wait for downloading a result compared to the first result for a specific episode.\"\n )\n ])\n ]\n )\n : _vm._e()\n ],\n 1\n )\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"button\",\n {\n staticClass: \"btn-medusa config_submitter\",\n staticStyle: { float: \"left\" },\n attrs: { disabled: _vm.saving },\n on: { click: _vm.save }\n },\n [_vm._v(\"Save Changes\")]\n ),\n _vm._v(\" \"),\n _c(\"test-provider\", {\n attrs: {\n \"provider-id\": _vm.editProvider.id,\n \"provider-name\": _vm.editProvider.name\n }\n })\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://slim/./src/components/helpers/config-provider-torrent.vue?./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options"); /***/ }), diff --git a/themes/light/assets/js/medusa-runtime.js b/themes/light/assets/js/medusa-runtime.js index cfb76c3dd0..de46d3a690 100644 --- a/themes/light/assets/js/medusa-runtime.js +++ b/themes/light/assets/js/medusa-runtime.js @@ -279,7 +279,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../api */ \"./src/api.js\");\n/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! . */ \"./src/components/helpers/index.js\");\n/* harmony import */ var _test_provider_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./test-provider.vue */ \"./src/components/helpers/test-provider.vue\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n // Putting this import with the rest from index.js, results in an error. Don't know why.\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: 'config-provider-nzb',\n components: {\n ConfigTextbox: ___WEBPACK_IMPORTED_MODULE_1__.ConfigTextbox,\n ConfigTextboxNumber: ___WEBPACK_IMPORTED_MODULE_1__.ConfigTextboxNumber,\n ConfigTemplate: ___WEBPACK_IMPORTED_MODULE_1__.ConfigTemplate,\n ConfigToggleSlider: ___WEBPACK_IMPORTED_MODULE_1__.ConfigToggleSlider,\n TestProvider: _test_provider_vue__WEBPACK_IMPORTED_MODULE_2__.default\n },\n props: {\n provider: {\n type: Object,\n required: true\n }\n },\n\n data() {\n return {\n saving: false,\n editProvider: {}\n };\n },\n\n mounted() {\n const {\n provider\n } = this;\n this.editProvider = { ...provider\n };\n },\n\n methods: {\n async save() {\n const {\n editProvider\n } = this; // Disable the save button until we're done.\n\n this.saving = true;\n\n try {\n await _api__WEBPACK_IMPORTED_MODULE_0__.api.patch(`providers/${editProvider.id}`, editProvider.config);\n this.$snotify.success(`Saved provider ${editProvider.name}`, 'Saved', {\n timeout: 5000\n });\n } catch (error) {\n this.$snotify.error(`Error while trying to save provider ${editProvider.name}`, 'Error');\n } finally {\n this.saving = false;\n }\n }\n\n }\n});\n\n//# sourceURL=webpack://slim/./src/components/helpers/config-provider-nzb.vue?./node_modules/babel-loader/lib/index.js??clonedRuleSet-1%5B0%5D.rules%5B0%5D!./node_modules/vue-loader/lib/index.js??vue-loader-options"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../api */ \"./src/api.js\");\n/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! . */ \"./src/components/helpers/index.js\");\n/* harmony import */ var _test_provider_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./test-provider.vue */ \"./src/components/helpers/test-provider.vue\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n // Putting this import with the rest from index.js, results in an error. Don't know why.\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: 'config-provider-nzb',\n components: {\n ConfigTextbox: ___WEBPACK_IMPORTED_MODULE_1__.ConfigTextbox,\n ConfigTextboxNumber: ___WEBPACK_IMPORTED_MODULE_1__.ConfigTextboxNumber,\n ConfigTemplate: ___WEBPACK_IMPORTED_MODULE_1__.ConfigTemplate,\n ConfigToggleSlider: ___WEBPACK_IMPORTED_MODULE_1__.ConfigToggleSlider,\n TestProvider: _test_provider_vue__WEBPACK_IMPORTED_MODULE_2__.default\n },\n props: {\n provider: {\n type: Object,\n required: true\n }\n },\n\n data() {\n return {\n saving: false,\n editProvider: {}\n };\n },\n\n mounted() {\n const {\n provider\n } = this;\n this.editProvider = { ...provider\n };\n },\n\n methods: {\n async save() {\n const {\n editProvider\n } = this; // Disable the save button until we're done.\n\n this.saving = true;\n\n try {\n await _api__WEBPACK_IMPORTED_MODULE_0__.api.patch(`providers/${editProvider.id}`, editProvider.config);\n this.$snotify.success(`Saved provider ${editProvider.name}`, 'Saved', {\n timeout: 5000\n });\n } catch (error) {\n this.$snotify.error(`Error while trying to save provider ${editProvider.name}`, 'Error');\n } finally {\n this.saving = false;\n }\n }\n\n }\n});\n\n//# sourceURL=webpack://slim/./src/components/helpers/config-provider-nzb.vue?./node_modules/babel-loader/lib/index.js??clonedRuleSet-1%5B0%5D.rules%5B0%5D!./node_modules/vue-loader/lib/index.js??vue-loader-options"); /***/ }), @@ -290,7 +290,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../api */ \"./src/api.js\");\n/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! . */ \"./src/components/helpers/index.js\");\n/* harmony import */ var _test_provider_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./test-provider.vue */ \"./src/components/helpers/test-provider.vue\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: 'config-provider-torrent',\n components: {\n AppLink: ___WEBPACK_IMPORTED_MODULE_1__.AppLink,\n ConfigTextbox: ___WEBPACK_IMPORTED_MODULE_1__.ConfigTextbox,\n ConfigTextboxNumber: ___WEBPACK_IMPORTED_MODULE_1__.ConfigTextboxNumber,\n ConfigTemplate: ___WEBPACK_IMPORTED_MODULE_1__.ConfigTemplate,\n ConfigToggleSlider: ___WEBPACK_IMPORTED_MODULE_1__.ConfigToggleSlider,\n TestProvider: _test_provider_vue__WEBPACK_IMPORTED_MODULE_2__.default\n },\n props: {\n provider: {\n type: Object,\n required: true\n }\n },\n\n data() {\n return {\n saving: false,\n editProvider: {}\n };\n },\n\n mounted() {\n const {\n provider\n } = this;\n this.editProvider = { ...provider\n };\n },\n\n methods: {\n async save() {\n const {\n editProvider\n } = this; // Disable the save button until we're done.\n\n this.saving = true;\n\n try {\n await _api__WEBPACK_IMPORTED_MODULE_0__.api.patch(`providers/${editProvider.id}`, editProvider.config);\n this.$snotify.success(`Saved provider ${editProvider.name}`, 'Saved', {\n timeout: 5000\n });\n } catch (error) {\n this.$snotify.error(`Error while trying to save provider ${editProvider.name}`, 'Error');\n } finally {\n this.saving = false;\n }\n }\n\n }\n});\n\n//# sourceURL=webpack://slim/./src/components/helpers/config-provider-torrent.vue?./node_modules/babel-loader/lib/index.js??clonedRuleSet-1%5B0%5D.rules%5B0%5D!./node_modules/vue-loader/lib/index.js??vue-loader-options"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../api */ \"./src/api.js\");\n/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! . */ \"./src/components/helpers/index.js\");\n/* harmony import */ var _test_provider_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./test-provider.vue */ \"./src/components/helpers/test-provider.vue\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: 'config-provider-torrent',\n components: {\n AppLink: ___WEBPACK_IMPORTED_MODULE_1__.AppLink,\n ConfigTextbox: ___WEBPACK_IMPORTED_MODULE_1__.ConfigTextbox,\n ConfigTextboxNumber: ___WEBPACK_IMPORTED_MODULE_1__.ConfigTextboxNumber,\n ConfigTemplate: ___WEBPACK_IMPORTED_MODULE_1__.ConfigTemplate,\n ConfigToggleSlider: ___WEBPACK_IMPORTED_MODULE_1__.ConfigToggleSlider,\n TestProvider: _test_provider_vue__WEBPACK_IMPORTED_MODULE_2__.default\n },\n props: {\n provider: {\n type: Object,\n required: true\n }\n },\n\n data() {\n return {\n saving: false,\n editProvider: {}\n };\n },\n\n mounted() {\n const {\n provider\n } = this;\n this.editProvider = { ...provider\n };\n },\n\n methods: {\n async save() {\n const {\n editProvider\n } = this; // Disable the save button until we're done.\n\n this.saving = true;\n\n try {\n await _api__WEBPACK_IMPORTED_MODULE_0__.api.patch(`providers/${editProvider.id}`, editProvider.config);\n this.$snotify.success(`Saved provider ${editProvider.name}`, 'Saved', {\n timeout: 5000\n });\n } catch (error) {\n this.$snotify.error(`Error while trying to save provider ${editProvider.name}`, 'Error');\n } finally {\n this.saving = false;\n }\n }\n\n }\n});\n\n//# sourceURL=webpack://slim/./src/components/helpers/config-provider-torrent.vue?./node_modules/babel-loader/lib/index.js??clonedRuleSet-1%5B0%5D.rules%5B0%5D!./node_modules/vue-loader/lib/index.js??vue-loader-options"); /***/ }), @@ -5955,7 +5955,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"render\": () => (/* binding */ render),\n/* harmony export */ \"staticRenderFns\": () => (/* binding */ staticRenderFns)\n/* harmony export */ });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n { attrs: { id: \"provider-options-nzb\" } },\n [\n Object.keys(_vm.editProvider).length > 0\n ? _c(\n \"div\",\n {\n staticClass: \"providerDiv\",\n attrs: { id: _vm.editProvider.id + \"Div\" }\n },\n [\n \"username\" in _vm.editProvider.config &&\n _vm.editProvider.subType !== \"newznab\"\n ? _c(\"config-textbox\", {\n attrs: {\n label: \"Username\",\n id: _vm.editProvider.id + \"_username\"\n },\n model: {\n value: _vm.editProvider.config.username,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"username\", $$v)\n },\n expression: \"editProvider.config.username\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n _vm.editProvider.default && _vm.editProvider.needsAuth\n ? [\n _c(\n \"config-template\",\n {\n attrs: {\n \"label-for\": _vm.editProvider.id + \"_url\",\n label: \"URL\"\n }\n },\n [\n _c(\"input\", {\n staticClass: \"form-control input-sm input350\",\n attrs: {\n type: \"text\",\n id: _vm.editProvider.id + \"_url\",\n disabled: \"\"\n },\n domProps: { value: \"\" + _vm.editProvider.url }\n })\n ]\n ),\n _vm._v(\" \"),\n \"apikey\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: {\n type: \"password\",\n label: \"API key\",\n id: _vm.editProvider.id + \"_url\",\n \"input-class\": \"newznab_api_key\"\n },\n model: {\n value: _vm.editProvider.config.apikey,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"apikey\", $$v)\n },\n expression: \"editProvider.config.apikey\"\n }\n })\n : _vm._e()\n ]\n : _vm.editProvider.subType !== \"newznab\"\n ? [\n \"apikey\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: {\n type: \"password\",\n label: \"API key\",\n id: _vm.editProvider.id + \"_url\",\n \"input-class\": \"newznab_api_key\"\n },\n model: {\n value: _vm.editProvider.config.apikey,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"apikey\", $$v)\n },\n expression: \"editProvider.config.apikey\"\n }\n })\n : _vm._e()\n ]\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable daily searches\",\n name: _vm.editProvider.id + \"_enable_daily\",\n id: _vm.editProvider.id + \"_enable_daily\"\n },\n model: {\n value: _vm.editProvider.config.search.daily.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.daily,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.daily.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\"enable provider to perform daily searches.\")\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable manual searches\",\n name: _vm.editProvider.id + \"_enable_manual\",\n id: _vm.editProvider.id + \"_enable_manual\"\n },\n model: {\n value: _vm.editProvider.config.search.manual.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.manual,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.manual.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"enable provider to be used in 'Manual Search' feature.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable backlog searches\",\n name: _vm.editProvider.id + \"_enable_backlog\",\n id: _vm.editProvider.id + \"_enable_backlog\"\n },\n model: {\n value: _vm.editProvider.config.search.backlog.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.backlog,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.backlog.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\"enable provider to perform backlog searches.\")\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-template\",\n {\n attrs: {\n \"label-for\": \"backlog_search_mode\",\n label: \"Backlog search mode\"\n }\n },\n [\n _c(\"div\", { staticClass: \"radio-item\" }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.editProvider.config.search.mode,\n expression: \"editProvider.config.search.mode\"\n }\n ],\n attrs: {\n type: \"radio\",\n name: _vm.editProvider.id + \"_search_mode_sponly\",\n id: _vm.editProvider.id + \"_search_mode_sponly\",\n value: \"sponly\"\n },\n domProps: {\n checked: _vm._q(\n _vm.editProvider.config.search.mode,\n \"sponly\"\n )\n },\n on: {\n change: function($event) {\n return _vm.$set(\n _vm.editProvider.config.search,\n \"mode\",\n \"sponly\"\n )\n }\n }\n }),\n _vm._v(\" \"),\n _c(\"label\", { attrs: { for: \"one\" } }, [\n _vm._v(\"Season packs only\")\n ])\n ]),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"radio-item\" }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.editProvider.config.search.mode,\n expression: \"editProvider.config.search.mode\"\n }\n ],\n attrs: {\n type: \"radio\",\n name: _vm.editProvider.id + \"_search_mode_eponly\",\n id: _vm.editProvider.id + \"_search_mode_eponly\",\n value: \"eponly\"\n },\n domProps: {\n checked: _vm._q(\n _vm.editProvider.config.search.mode,\n \"eponly\"\n )\n },\n on: {\n change: function($event) {\n return _vm.$set(\n _vm.editProvider.config.search,\n \"mode\",\n \"eponly\"\n )\n }\n }\n }),\n _vm._v(\" \"),\n _c(\"label\", { attrs: { for: \"one\" } }, [\n _vm._v(\"Episodes only\")\n ])\n ]),\n _vm._v(\" \"),\n _c(\"p\", [\n _vm._v(\n \"when searching with backlog you can choose to have it look for season packs only, or choose to have it build a complete season from just single episodes.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable fallback\",\n name: _vm.editProvider.id + \"_enable_fallback\",\n id: _vm.editProvider.id + \"_enable_fallback\"\n },\n model: {\n value: _vm.editProvider.config.search.fallback,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config.search, \"fallback\", $$v)\n },\n expression: \"editProvider.config.search.fallback\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"when searching for a complete season depending on search mode you may return no results, this helps by restarting the search using the opposite search mode.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable search delay\",\n name: _vm.editProvider.id + \"_enable_search_delay\",\n id: _vm.editProvider.id + \"_enable_search_delay\"\n },\n model: {\n value: _vm.editProvider.config.search.delay.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.delay,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.delay.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"Enable to delay downloads for this provider for an x amount of hours. The provider will start snatching results for a specific episode after a delay has expired, compared to when it first got a result for the specific episode.\"\n )\n ]),\n _vm._v(\" \"),\n _c(\"p\", [\n _vm._v(\n \"Searches for PROPER releases are exempted from the delay.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _vm.editProvider.config.search.delay.enabled\n ? _c(\n \"config-textbox-number\",\n {\n attrs: {\n value:\n _vm.editProvider.config.search.delay.duration / 60.0,\n label: \"Search delay (hours)\",\n id: _vm.editProvider.id + \"_search_delay_duration\",\n min: 0.5,\n step: 0.5\n },\n on: {\n input: function($event) {\n _vm.editProvider.config.search.delay.duration =\n $event * 60\n }\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"Amount of hours to wait for downloading a result compared to the first result for a specific episode.\"\n )\n ])\n ]\n )\n : _vm._e()\n ],\n 2\n )\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"button\",\n {\n staticClass: \"btn-medusa config_submitter\",\n staticStyle: { float: \"left\" },\n attrs: { disabled: _vm.saving },\n on: { click: _vm.save }\n },\n [_vm._v(\"Save Changes\")]\n ),\n _vm._v(\" \"),\n _c(\"test-provider\", {\n attrs: {\n \"provider-id\": _vm.editProvider.id,\n \"provider-name\": _vm.editProvider.name\n }\n })\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://slim/./src/components/helpers/config-provider-nzb.vue?./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"render\": () => (/* binding */ render),\n/* harmony export */ \"staticRenderFns\": () => (/* binding */ staticRenderFns)\n/* harmony export */ });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n { attrs: { id: \"provider-options-nzb\" } },\n [\n Object.keys(_vm.editProvider).length > 0\n ? _c(\n \"div\",\n {\n staticClass: \"providerDiv\",\n attrs: { id: _vm.editProvider.id + \"Div\" }\n },\n [\n \"username\" in _vm.editProvider.config &&\n _vm.editProvider.subType !== \"newznab\"\n ? _c(\"config-textbox\", {\n attrs: {\n label: \"Username\",\n id: _vm.editProvider.id + \"_username\"\n },\n model: {\n value: _vm.editProvider.config.username,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"username\", $$v)\n },\n expression: \"editProvider.config.username\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n _vm.editProvider.default && _vm.editProvider.needsAuth\n ? [\n _c(\n \"config-template\",\n {\n attrs: {\n \"label-for\": _vm.editProvider.id + \"_url\",\n label: \"URL\"\n }\n },\n [\n _c(\"input\", {\n staticClass: \"form-control input-sm input350\",\n attrs: {\n type: \"text\",\n id: _vm.editProvider.id + \"_url\",\n disabled: \"\"\n },\n domProps: { value: \"\" + _vm.editProvider.url }\n })\n ]\n ),\n _vm._v(\" \"),\n \"apikey\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: {\n type: \"password\",\n label: \"API key\",\n id: _vm.editProvider.id + \"_url\",\n \"input-class\": \"newznab_api_key\"\n },\n model: {\n value: _vm.editProvider.config.apikey,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"apikey\", $$v)\n },\n expression: \"editProvider.config.apikey\"\n }\n })\n : _vm._e()\n ]\n : _vm.editProvider.subType !== \"newznab\"\n ? [\n \"apikey\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: {\n type: \"password\",\n label: \"API key\",\n id: _vm.editProvider.id + \"_url\",\n \"input-class\": \"newznab_api_key\"\n },\n model: {\n value: _vm.editProvider.config.apikey,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"apikey\", $$v)\n },\n expression: \"editProvider.config.apikey\"\n }\n })\n : _vm._e()\n ]\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable daily searches\",\n name: _vm.editProvider.id + \"_enable_daily\",\n id: _vm.editProvider.id + \"_enable_daily\"\n },\n model: {\n value: _vm.editProvider.config.search.daily.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.daily,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.daily.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\"enable provider to perform daily searches.\")\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable manual searches\",\n name: _vm.editProvider.id + \"_enable_manual\",\n id: _vm.editProvider.id + \"_enable_manual\"\n },\n model: {\n value: _vm.editProvider.config.search.manual.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.manual,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.manual.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"enable provider to be used in 'Manual Search' feature.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable backlog searches\",\n name: _vm.editProvider.id + \"_enable_backlog\",\n id: _vm.editProvider.id + \"_enable_backlog\"\n },\n model: {\n value: _vm.editProvider.config.search.backlog.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.backlog,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.backlog.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\"enable provider to perform backlog searches.\")\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-template\",\n {\n attrs: {\n \"label-for\": \"backlog_search_mode\",\n label: \"Backlog search mode\"\n }\n },\n [\n _c(\"div\", { staticClass: \"radio-item\" }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.editProvider.config.search.mode,\n expression: \"editProvider.config.search.mode\"\n }\n ],\n attrs: {\n type: \"radio\",\n name: _vm.editProvider.id + \"_search_mode_sponly\",\n id: _vm.editProvider.id + \"_search_mode_sponly\",\n value: \"sponly\"\n },\n domProps: {\n checked: _vm._q(\n _vm.editProvider.config.search.mode,\n \"sponly\"\n )\n },\n on: {\n change: function($event) {\n return _vm.$set(\n _vm.editProvider.config.search,\n \"mode\",\n \"sponly\"\n )\n }\n }\n }),\n _vm._v(\" \"),\n _c(\"label\", { attrs: { for: \"one\" } }, [\n _vm._v(\"Season packs only\")\n ])\n ]),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"radio-item\" }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.editProvider.config.search.mode,\n expression: \"editProvider.config.search.mode\"\n }\n ],\n attrs: {\n type: \"radio\",\n name: _vm.editProvider.id + \"_search_mode_eponly\",\n id: _vm.editProvider.id + \"_search_mode_eponly\",\n value: \"eponly\"\n },\n domProps: {\n checked: _vm._q(\n _vm.editProvider.config.search.mode,\n \"eponly\"\n )\n },\n on: {\n change: function($event) {\n return _vm.$set(\n _vm.editProvider.config.search,\n \"mode\",\n \"eponly\"\n )\n }\n }\n }),\n _vm._v(\" \"),\n _c(\"label\", { attrs: { for: \"one\" } }, [\n _vm._v(\"Episodes only\")\n ])\n ]),\n _vm._v(\" \"),\n _c(\"p\", [\n _vm._v(\n \"when searching with backlog you can choose to have it look for season packs only, or choose to have it build a complete season from just single episodes.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable fallback\",\n name: _vm.editProvider.id + \"_enable_fallback\",\n id: _vm.editProvider.id + \"_enable_fallback\"\n },\n model: {\n value: _vm.editProvider.config.search.fallback,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config.search, \"fallback\", $$v)\n },\n expression: \"editProvider.config.search.fallback\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"when searching for a complete season depending on search mode you may return no results, this helps by restarting the search using the opposite search mode.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable search delay\",\n name: _vm.editProvider.id + \"_enable_search_delay\",\n id: _vm.editProvider.id + \"_enable_search_delay\"\n },\n model: {\n value: _vm.editProvider.config.search.delay.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.delay,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.delay.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"Enable to delay downloads for this provider for an x amount of hours. The provider will start snatching results for a specific episode after a delay has expired, compared to when it first got a result for the specific episode.\"\n )\n ]),\n _vm._v(\" \"),\n _c(\"p\", [\n _vm._v(\n \"A negative value will have the daily search accepts results before the episode scheduled air date/time.\"\n )\n ]),\n _vm._v(\" \"),\n _c(\"p\", [\n _vm._v(\n \"Proper and Backlog searches are exempted from the delay.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _vm.editProvider.config.search.delay.enabled\n ? _c(\n \"config-textbox-number\",\n {\n attrs: {\n value:\n _vm.editProvider.config.search.delay.duration / 60.0,\n label: \"Search delay (hours)\",\n id: _vm.editProvider.id + \"_search_delay_duration\",\n min: 0.5,\n step: 0.5\n },\n on: {\n input: function($event) {\n _vm.editProvider.config.search.delay.duration =\n $event * 60\n }\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"Amount of hours to wait for downloading a result compared to the first result for a specific episode.\"\n )\n ])\n ]\n )\n : _vm._e()\n ],\n 2\n )\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"button\",\n {\n staticClass: \"btn-medusa config_submitter\",\n staticStyle: { float: \"left\" },\n attrs: { disabled: _vm.saving },\n on: { click: _vm.save }\n },\n [_vm._v(\"Save Changes\")]\n ),\n _vm._v(\" \"),\n _c(\"test-provider\", {\n attrs: {\n \"provider-id\": _vm.editProvider.id,\n \"provider-name\": _vm.editProvider.name\n }\n })\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://slim/./src/components/helpers/config-provider-nzb.vue?./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options"); /***/ }), @@ -5966,7 +5966,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"render\": () => (/* binding */ render),\n/* harmony export */ \"staticRenderFns\": () => (/* binding */ staticRenderFns)\n/* harmony export */ });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n { attrs: { id: \"provider-options-torrent\" } },\n [\n Object.keys(_vm.editProvider).length > 0\n ? _c(\n \"div\",\n {\n staticClass: \"providerDiv\",\n attrs: { id: _vm.editProvider.id + \"Div\" }\n },\n [\n \"customUrl\" in _vm.editProvider.config\n ? _c(\n \"config-textbox\",\n {\n attrs: {\n label: \"Custom Url\",\n id: _vm.editProvider.id + \"_custom_url\"\n },\n model: {\n value: _vm.editProvider.config.customUrl,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"customUrl\", $$v)\n },\n expression: \"editProvider.config.customUrl\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"The URL should include the protocol (and port if applicable). Examples: http://192.168.1.4/ or http://localhost:3000/\"\n )\n ])\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n \"apikey\" in _vm.editProvider.config &&\n _vm.editProvider.config.subType !== \"torznab\"\n ? _c(\"config-textbox\", {\n attrs: {\n type: \"password\",\n label: \"API key\",\n id: _vm.editProvider.id + \"_api_key\"\n },\n model: {\n value: _vm.editProvider.config.apikey,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"apikey\", $$v)\n },\n expression: \"editProvider.config.apikey\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"digest\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: {\n type: \"password\",\n label: \"Digest\",\n id: _vm.editProvider.id + \"_digest\"\n },\n model: {\n value: _vm.editProvider.config.digest,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"digest\", $$v)\n },\n expression: \"editProvider.config.digest\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"hash\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: { label: \"Hash\", id: _vm.editProvider.id + \"_hash\" },\n model: {\n value: _vm.editProvider.config.hash,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"hash\", $$v)\n },\n expression: \"editProvider.config.hash\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"username\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: {\n label: \"Username\",\n id: _vm.editProvider.id + \"_username\"\n },\n model: {\n value: _vm.editProvider.config.username,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"username\", $$v)\n },\n expression: \"editProvider.config.username\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"password\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: {\n autocomplete: \"no\",\n type: \"password\",\n label: \"Password\",\n id: _vm.editProvider.id + \"_password\"\n },\n model: {\n value: _vm.editProvider.config.password,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"password\", $$v)\n },\n expression: \"editProvider.config.password\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n _vm.editProvider.config.cookies.enabled ||\n _vm.editProvider.subType === \"torrentrss\"\n ? _c(\n \"config-textbox\",\n {\n attrs: {\n label: \"Cookies\",\n id: _vm.editProvider.id + \"_cookies\"\n },\n model: {\n value: _vm.editProvider.config.cookies.values,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.cookies,\n \"values\",\n $$v\n )\n },\n expression: \"editProvider.config.cookies.values\"\n }\n },\n [\n _vm.editProvider.config.cookies.required\n ? [\n _c(\"p\", [\n _vm._v(\n \"eg. \" +\n _vm._s(\n _vm.editProvider.config.cookies.required\n .map(function(cookie) {\n return cookie + \"=xx;\"\n })\n .join(\"\")\n .slice(0, -1)\n )\n )\n ]),\n _vm._v(\" \"),\n _c(\n \"p\",\n [\n _vm._v(\n \"This provider requires the following cookies: \" +\n _vm._s(\n _vm.editProvider.config.cookies.required.join(\n \", \"\n )\n ) +\n \".\\n \"\n ),\n _c(\"br\"),\n _vm._v(\n \"For a step by step guide please follow the link to our \"\n ),\n _c(\n \"app-link\",\n {\n attrs: {\n href:\n \"https://github.com/pymedusa/Medusa/wiki/Configure-Providers-with-captcha-protection\"\n }\n },\n [_vm._v(\"WIKI\")]\n )\n ],\n 1\n )\n ]\n : _vm._e()\n ],\n 2\n )\n : _vm._e(),\n _vm._v(\" \"),\n \"passkey\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: {\n label: \"Passkey\",\n id: _vm.editProvider.id + \"_passkey\"\n },\n model: {\n value: _vm.editProvider.config.passkey,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"passkey\", $$v)\n },\n expression: \"editProvider.config.passkey\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"pin\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: {\n type: \"password\",\n label: \"Pin\",\n id: _vm.editProvider.id + \"_pin\"\n },\n model: {\n value: _vm.editProvider.config.pin,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"pin\", $$v)\n },\n expression: \"editProvider.config.pin\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"ratio\" in _vm.editProvider.config\n ? _c(\n \"config-textbox-number\",\n {\n attrs: {\n min: -1,\n step: 0.1,\n label: \"Seed ratio\",\n id: _vm.editProvider.id + \"_seed_ratio\"\n },\n model: {\n value: _vm.editProvider.config.ratio,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"ratio\", $$v)\n },\n expression: \"editProvider.config.ratio\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"Configure a desired seeding ratio. Used by the (automated download handler in config - postprocessing)\\n \"\n ),\n _c(\"br\"),\n _vm._v(\n \"-1 for provider specific option is disabled.\\n \"\n ),\n _c(\"br\"),\n _vm._v(\n \"0 for not using a seed ratio. Actions configured in the download handler, will not wait for finished seeding.\\n \"\n ),\n _c(\"br\"),\n _vm._v(\n \"If disabled the global option is used in config - postprocessing (automated download handling))\\n \"\n )\n ])\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n \"minseed\" in _vm.editProvider.config\n ? _c(\"config-textbox-number\", {\n attrs: {\n label: \"Minimum seeders\",\n min: 0,\n step: 1,\n id: _vm.editProvider.id + \"_min_seed\"\n },\n model: {\n value: _vm.editProvider.config.minseed,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"minseed\", $$v)\n },\n expression: \"editProvider.config.minseed\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"minleech\" in _vm.editProvider.config\n ? _c(\"config-textbox-number\", {\n attrs: {\n label: \"Minimum leechers\",\n min: 0,\n step: 1,\n id: _vm.editProvider.id + \"_min_leech\"\n },\n model: {\n value: _vm.editProvider.config.minleech,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"minleech\", $$v)\n },\n expression: \"editProvider.config.minleech\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"confirmed\" in _vm.editProvider.config\n ? _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Confirmed downloads\",\n name: _vm.editProvider.id + \"_confirmed\",\n id: _vm.editProvider.id + \"_confirmed\"\n },\n model: {\n value: _vm.editProvider.config.confirmed,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"confirmed\", $$v)\n },\n expression: \"editProvider.config.confirmed\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"only download torrents from trusted or verified uploaders ?\"\n )\n ])\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n \"ranked\" in _vm.editProvider.config\n ? _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Ranked torrents\",\n name: _vm.editProvider.id + \"_ranked\",\n id: _vm.editProvider.id + \"_ranked\"\n },\n model: {\n value: _vm.editProvider.config.ranked,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"ranked\", $$v)\n },\n expression: \"editProvider.config.ranked\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"only download ranked torrents (trusted releases)\"\n )\n ])\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n \"sorting\" in _vm.editProvider.config\n ? _c(\n \"config-template\",\n {\n attrs: {\n \"label-for\": \"sorting\",\n label: \"Sorting results by\"\n }\n },\n [\n _c(\n \"select\",\n {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.editProvider.config.sorting,\n expression: \"editProvider.config.sorting\"\n }\n ],\n staticClass: \"form-control input-sm\",\n attrs: { id: \"sorting\" },\n on: {\n change: function($event) {\n var $$selectedVal = Array.prototype.filter\n .call($event.target.options, function(o) {\n return o.selected\n })\n .map(function(o) {\n var val = \"_value\" in o ? o._value : o.value\n return val\n })\n _vm.$set(\n _vm.editProvider.config,\n \"sorting\",\n $event.target.multiple\n ? $$selectedVal\n : $$selectedVal[0]\n )\n }\n }\n },\n [\n _c(\"option\", { attrs: { value: \"last\" } }, [\n _vm._v(\"last\")\n ]),\n _vm._v(\" \"),\n _c(\"option\", { attrs: { value: \"seeders\" } }, [\n _vm._v(\"seeders\")\n ]),\n _vm._v(\" \"),\n _c(\"option\", { attrs: { value: \"leechers\" } }, [\n _vm._v(\"leechers\")\n ])\n ]\n )\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n \"freeleech\" in _vm.editProvider.config\n ? _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Freeleech\",\n name: _vm.editProvider.id + \"_freeleech\",\n id: _vm.editProvider.id + \"_freeleech\"\n },\n model: {\n value: _vm.editProvider.config.freeleech,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"freeleech\", $$v)\n },\n expression: \"editProvider.config.freeleech\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\"only download \"),\n _c(\"b\", [_vm._v('\"FreeLeech\"')]),\n _vm._v(\" torrents.\")\n ])\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable daily searches\",\n name: _vm.editProvider.id + \"_enable_daily\",\n id: _vm.editProvider.id + \"_enable_daily\"\n },\n model: {\n value: _vm.editProvider.config.search.daily.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.daily,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.daily.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\"enable provider to perform daily searches.\")\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable manual searches\",\n name: _vm.editProvider.id + \"_enable_manual\",\n id: _vm.editProvider.id + \"_enable_manual\"\n },\n model: {\n value: _vm.editProvider.config.search.manual.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.manual,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.manual.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"enable provider to be used in 'Manual Search' feature.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable backlog searches\",\n name: _vm.editProvider.id + \"_enable_backlog\",\n id: _vm.editProvider.id + \"_enable_backlog\"\n },\n model: {\n value: _vm.editProvider.config.search.backlog.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.backlog,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.backlog.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\"enable provider to perform backlog searches.\")\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-template\",\n {\n attrs: {\n \"label-for\": \"backlog_search_mode\",\n label: \"Backlog search mode\"\n }\n },\n [\n _c(\"div\", { staticClass: \"radio-item\" }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.editProvider.config.search.mode,\n expression: \"editProvider.config.search.mode\"\n }\n ],\n attrs: {\n type: \"radio\",\n name: _vm.editProvider.id + \"_search_mode_sponly\",\n id: _vm.editProvider.id + \"_search_mode_sponly\",\n value: \"sponly\"\n },\n domProps: {\n checked: _vm._q(\n _vm.editProvider.config.search.mode,\n \"sponly\"\n )\n },\n on: {\n change: function($event) {\n return _vm.$set(\n _vm.editProvider.config.search,\n \"mode\",\n \"sponly\"\n )\n }\n }\n }),\n _vm._v(\" \"),\n _c(\"label\", { attrs: { for: \"one\" } }, [\n _vm._v(\"Season packs only\")\n ])\n ]),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"radio-item\" }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.editProvider.config.search.mode,\n expression: \"editProvider.config.search.mode\"\n }\n ],\n attrs: {\n type: \"radio\",\n name: _vm.editProvider.id + \"_search_mode_eponly\",\n id: _vm.editProvider.id + \"_search_mode_eponly\",\n value: \"eponly\"\n },\n domProps: {\n checked: _vm._q(\n _vm.editProvider.config.search.mode,\n \"eponly\"\n )\n },\n on: {\n change: function($event) {\n return _vm.$set(\n _vm.editProvider.config.search,\n \"mode\",\n \"eponly\"\n )\n }\n }\n }),\n _vm._v(\" \"),\n _c(\"label\", { attrs: { for: \"one\" } }, [\n _vm._v(\"Episodes only\")\n ])\n ]),\n _vm._v(\" \"),\n _c(\"p\", [\n _vm._v(\n \"when searching with backlog you can choose to have it look for season packs only, or choose to have it build a complete season from just single episodes.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable fallback\",\n name: _vm.editProvider.id + \"_enable_fallback\",\n id: _vm.editProvider.id + \"_enable_fallback\"\n },\n model: {\n value: _vm.editProvider.config.search.fallback,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config.search, \"fallback\", $$v)\n },\n expression: \"editProvider.config.search.fallback\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"when searching for a complete season depending on search mode you may return no results, this helps by restarting the search using the opposite search mode.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable search delay\",\n name: _vm.editProvider.id + \"_enable_search_delay\",\n id: _vm.editProvider.id + \"_enable_search_delay\"\n },\n model: {\n value: _vm.editProvider.config.search.delay.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.delay,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.delay.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"Enable to delay downloads for this provider for an x amount of hours. The provider will start snatching results for a specific episode after a delay has expired, compared to when it first got a result for the specific episode.\"\n )\n ]),\n _vm._v(\" \"),\n _c(\"p\", [\n _vm._v(\n \"Searches for PROPER releases are exempted from the delay.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _vm.editProvider.config.search.delay.enabled\n ? _c(\n \"config-textbox-number\",\n {\n attrs: {\n value:\n _vm.editProvider.config.search.delay.duration / 60.0,\n label: \"Search delay (hours)\",\n id: _vm.editProvider.id + \"_search_delay_duration\",\n min: 0.5,\n step: 0.5\n },\n on: {\n input: function($event) {\n _vm.editProvider.config.search.delay.duration =\n $event * 60\n }\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"Amount of hours to wait for downloading a result compared to the first result for a specific episode.\"\n )\n ])\n ]\n )\n : _vm._e()\n ],\n 1\n )\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"button\",\n {\n staticClass: \"btn-medusa config_submitter\",\n staticStyle: { float: \"left\" },\n attrs: { disabled: _vm.saving },\n on: { click: _vm.save }\n },\n [_vm._v(\"Save Changes\")]\n ),\n _vm._v(\" \"),\n _c(\"test-provider\", {\n attrs: {\n \"provider-id\": _vm.editProvider.id,\n \"provider-name\": _vm.editProvider.name\n }\n })\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://slim/./src/components/helpers/config-provider-torrent.vue?./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"render\": () => (/* binding */ render),\n/* harmony export */ \"staticRenderFns\": () => (/* binding */ staticRenderFns)\n/* harmony export */ });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n { attrs: { id: \"provider-options-torrent\" } },\n [\n Object.keys(_vm.editProvider).length > 0\n ? _c(\n \"div\",\n {\n staticClass: \"providerDiv\",\n attrs: { id: _vm.editProvider.id + \"Div\" }\n },\n [\n \"customUrl\" in _vm.editProvider.config\n ? _c(\n \"config-textbox\",\n {\n attrs: {\n label: \"Custom Url\",\n id: _vm.editProvider.id + \"_custom_url\"\n },\n model: {\n value: _vm.editProvider.config.customUrl,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"customUrl\", $$v)\n },\n expression: \"editProvider.config.customUrl\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"The URL should include the protocol (and port if applicable). Examples: http://192.168.1.4/ or http://localhost:3000/\"\n )\n ])\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n \"apikey\" in _vm.editProvider.config &&\n _vm.editProvider.config.subType !== \"torznab\"\n ? _c(\"config-textbox\", {\n attrs: {\n type: \"password\",\n label: \"API key\",\n id: _vm.editProvider.id + \"_api_key\"\n },\n model: {\n value: _vm.editProvider.config.apikey,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"apikey\", $$v)\n },\n expression: \"editProvider.config.apikey\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"digest\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: {\n type: \"password\",\n label: \"Digest\",\n id: _vm.editProvider.id + \"_digest\"\n },\n model: {\n value: _vm.editProvider.config.digest,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"digest\", $$v)\n },\n expression: \"editProvider.config.digest\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"hash\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: { label: \"Hash\", id: _vm.editProvider.id + \"_hash\" },\n model: {\n value: _vm.editProvider.config.hash,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"hash\", $$v)\n },\n expression: \"editProvider.config.hash\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"username\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: {\n label: \"Username\",\n id: _vm.editProvider.id + \"_username\"\n },\n model: {\n value: _vm.editProvider.config.username,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"username\", $$v)\n },\n expression: \"editProvider.config.username\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"password\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: {\n autocomplete: \"no\",\n type: \"password\",\n label: \"Password\",\n id: _vm.editProvider.id + \"_password\"\n },\n model: {\n value: _vm.editProvider.config.password,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"password\", $$v)\n },\n expression: \"editProvider.config.password\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n _vm.editProvider.config.cookies.enabled ||\n _vm.editProvider.subType === \"torrentrss\"\n ? _c(\n \"config-textbox\",\n {\n attrs: {\n label: \"Cookies\",\n id: _vm.editProvider.id + \"_cookies\"\n },\n model: {\n value: _vm.editProvider.config.cookies.values,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.cookies,\n \"values\",\n $$v\n )\n },\n expression: \"editProvider.config.cookies.values\"\n }\n },\n [\n _vm.editProvider.config.cookies.required\n ? [\n _c(\"p\", [\n _vm._v(\n \"eg. \" +\n _vm._s(\n _vm.editProvider.config.cookies.required\n .map(function(cookie) {\n return cookie + \"=xx;\"\n })\n .join(\"\")\n .slice(0, -1)\n )\n )\n ]),\n _vm._v(\" \"),\n _c(\n \"p\",\n [\n _vm._v(\n \"This provider requires the following cookies: \" +\n _vm._s(\n _vm.editProvider.config.cookies.required.join(\n \", \"\n )\n ) +\n \".\\n \"\n ),\n _c(\"br\"),\n _vm._v(\n \"For a step by step guide please follow the link to our \"\n ),\n _c(\n \"app-link\",\n {\n attrs: {\n href:\n \"https://github.com/pymedusa/Medusa/wiki/Configure-Providers-with-captcha-protection\"\n }\n },\n [_vm._v(\"WIKI\")]\n )\n ],\n 1\n )\n ]\n : _vm._e()\n ],\n 2\n )\n : _vm._e(),\n _vm._v(\" \"),\n \"passkey\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: {\n label: \"Passkey\",\n id: _vm.editProvider.id + \"_passkey\"\n },\n model: {\n value: _vm.editProvider.config.passkey,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"passkey\", $$v)\n },\n expression: \"editProvider.config.passkey\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"pin\" in _vm.editProvider.config\n ? _c(\"config-textbox\", {\n attrs: {\n type: \"password\",\n label: \"Pin\",\n id: _vm.editProvider.id + \"_pin\"\n },\n model: {\n value: _vm.editProvider.config.pin,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"pin\", $$v)\n },\n expression: \"editProvider.config.pin\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"ratio\" in _vm.editProvider.config\n ? _c(\n \"config-textbox-number\",\n {\n attrs: {\n min: -1,\n step: 0.1,\n label: \"Seed ratio\",\n id: _vm.editProvider.id + \"_seed_ratio\"\n },\n model: {\n value: _vm.editProvider.config.ratio,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"ratio\", $$v)\n },\n expression: \"editProvider.config.ratio\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"Configure a desired seeding ratio. Used by the (automated download handler in config - postprocessing)\\n \"\n ),\n _c(\"br\"),\n _vm._v(\n \"-1 for provider specific option is disabled.\\n \"\n ),\n _c(\"br\"),\n _vm._v(\n \"0 for not using a seed ratio. Actions configured in the download handler, will not wait for finished seeding.\\n \"\n ),\n _c(\"br\"),\n _vm._v(\n \"If disabled the global option is used in config - postprocessing (automated download handling))\\n \"\n )\n ])\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n \"minseed\" in _vm.editProvider.config\n ? _c(\"config-textbox-number\", {\n attrs: {\n label: \"Minimum seeders\",\n min: 0,\n step: 1,\n id: _vm.editProvider.id + \"_min_seed\"\n },\n model: {\n value: _vm.editProvider.config.minseed,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"minseed\", $$v)\n },\n expression: \"editProvider.config.minseed\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"minleech\" in _vm.editProvider.config\n ? _c(\"config-textbox-number\", {\n attrs: {\n label: \"Minimum leechers\",\n min: 0,\n step: 1,\n id: _vm.editProvider.id + \"_min_leech\"\n },\n model: {\n value: _vm.editProvider.config.minleech,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"minleech\", $$v)\n },\n expression: \"editProvider.config.minleech\"\n }\n })\n : _vm._e(),\n _vm._v(\" \"),\n \"confirmed\" in _vm.editProvider.config\n ? _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Confirmed downloads\",\n name: _vm.editProvider.id + \"_confirmed\",\n id: _vm.editProvider.id + \"_confirmed\"\n },\n model: {\n value: _vm.editProvider.config.confirmed,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"confirmed\", $$v)\n },\n expression: \"editProvider.config.confirmed\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"only download torrents from trusted or verified uploaders ?\"\n )\n ])\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n \"ranked\" in _vm.editProvider.config\n ? _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Ranked torrents\",\n name: _vm.editProvider.id + \"_ranked\",\n id: _vm.editProvider.id + \"_ranked\"\n },\n model: {\n value: _vm.editProvider.config.ranked,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"ranked\", $$v)\n },\n expression: \"editProvider.config.ranked\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"only download ranked torrents (trusted releases)\"\n )\n ])\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n \"sorting\" in _vm.editProvider.config\n ? _c(\n \"config-template\",\n {\n attrs: {\n \"label-for\": \"sorting\",\n label: \"Sorting results by\"\n }\n },\n [\n _c(\n \"select\",\n {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.editProvider.config.sorting,\n expression: \"editProvider.config.sorting\"\n }\n ],\n staticClass: \"form-control input-sm\",\n attrs: { id: \"sorting\" },\n on: {\n change: function($event) {\n var $$selectedVal = Array.prototype.filter\n .call($event.target.options, function(o) {\n return o.selected\n })\n .map(function(o) {\n var val = \"_value\" in o ? o._value : o.value\n return val\n })\n _vm.$set(\n _vm.editProvider.config,\n \"sorting\",\n $event.target.multiple\n ? $$selectedVal\n : $$selectedVal[0]\n )\n }\n }\n },\n [\n _c(\"option\", { attrs: { value: \"last\" } }, [\n _vm._v(\"last\")\n ]),\n _vm._v(\" \"),\n _c(\"option\", { attrs: { value: \"seeders\" } }, [\n _vm._v(\"seeders\")\n ]),\n _vm._v(\" \"),\n _c(\"option\", { attrs: { value: \"leechers\" } }, [\n _vm._v(\"leechers\")\n ])\n ]\n )\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n \"freeleech\" in _vm.editProvider.config\n ? _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Freeleech\",\n name: _vm.editProvider.id + \"_freeleech\",\n id: _vm.editProvider.id + \"_freeleech\"\n },\n model: {\n value: _vm.editProvider.config.freeleech,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config, \"freeleech\", $$v)\n },\n expression: \"editProvider.config.freeleech\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\"only download \"),\n _c(\"b\", [_vm._v('\"FreeLeech\"')]),\n _vm._v(\" torrents.\")\n ])\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable daily searches\",\n name: _vm.editProvider.id + \"_enable_daily\",\n id: _vm.editProvider.id + \"_enable_daily\"\n },\n model: {\n value: _vm.editProvider.config.search.daily.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.daily,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.daily.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\"enable provider to perform daily searches.\")\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable manual searches\",\n name: _vm.editProvider.id + \"_enable_manual\",\n id: _vm.editProvider.id + \"_enable_manual\"\n },\n model: {\n value: _vm.editProvider.config.search.manual.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.manual,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.manual.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"enable provider to be used in 'Manual Search' feature.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable backlog searches\",\n name: _vm.editProvider.id + \"_enable_backlog\",\n id: _vm.editProvider.id + \"_enable_backlog\"\n },\n model: {\n value: _vm.editProvider.config.search.backlog.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.backlog,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.backlog.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\"enable provider to perform backlog searches.\")\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-template\",\n {\n attrs: {\n \"label-for\": \"backlog_search_mode\",\n label: \"Backlog search mode\"\n }\n },\n [\n _c(\"div\", { staticClass: \"radio-item\" }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.editProvider.config.search.mode,\n expression: \"editProvider.config.search.mode\"\n }\n ],\n attrs: {\n type: \"radio\",\n name: _vm.editProvider.id + \"_search_mode_sponly\",\n id: _vm.editProvider.id + \"_search_mode_sponly\",\n value: \"sponly\"\n },\n domProps: {\n checked: _vm._q(\n _vm.editProvider.config.search.mode,\n \"sponly\"\n )\n },\n on: {\n change: function($event) {\n return _vm.$set(\n _vm.editProvider.config.search,\n \"mode\",\n \"sponly\"\n )\n }\n }\n }),\n _vm._v(\" \"),\n _c(\"label\", { attrs: { for: \"one\" } }, [\n _vm._v(\"Season packs only\")\n ])\n ]),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"radio-item\" }, [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.editProvider.config.search.mode,\n expression: \"editProvider.config.search.mode\"\n }\n ],\n attrs: {\n type: \"radio\",\n name: _vm.editProvider.id + \"_search_mode_eponly\",\n id: _vm.editProvider.id + \"_search_mode_eponly\",\n value: \"eponly\"\n },\n domProps: {\n checked: _vm._q(\n _vm.editProvider.config.search.mode,\n \"eponly\"\n )\n },\n on: {\n change: function($event) {\n return _vm.$set(\n _vm.editProvider.config.search,\n \"mode\",\n \"eponly\"\n )\n }\n }\n }),\n _vm._v(\" \"),\n _c(\"label\", { attrs: { for: \"one\" } }, [\n _vm._v(\"Episodes only\")\n ])\n ]),\n _vm._v(\" \"),\n _c(\"p\", [\n _vm._v(\n \"when searching with backlog you can choose to have it look for season packs only, or choose to have it build a complete season from just single episodes.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable fallback\",\n name: _vm.editProvider.id + \"_enable_fallback\",\n id: _vm.editProvider.id + \"_enable_fallback\"\n },\n model: {\n value: _vm.editProvider.config.search.fallback,\n callback: function($$v) {\n _vm.$set(_vm.editProvider.config.search, \"fallback\", $$v)\n },\n expression: \"editProvider.config.search.fallback\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"when searching for a complete season depending on search mode you may return no results, this helps by restarting the search using the opposite search mode.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"config-toggle-slider\",\n {\n attrs: {\n label: \"Enable search delay\",\n name: _vm.editProvider.id + \"_enable_search_delay\",\n id: _vm.editProvider.id + \"_enable_search_delay\"\n },\n model: {\n value: _vm.editProvider.config.search.delay.enabled,\n callback: function($$v) {\n _vm.$set(\n _vm.editProvider.config.search.delay,\n \"enabled\",\n $$v\n )\n },\n expression: \"editProvider.config.search.delay.enabled\"\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"Enable to delay downloads for this provider for an x amount of hours. The provider will start snatching results for a specific episode after a delay has expired, compared to when it first got a result for the specific episode.\"\n )\n ]),\n _vm._v(\" \"),\n _c(\"p\", [\n _vm._v(\n \"A negative value will have the daily search accepts results before the episode scheduled air date/time.\"\n )\n ]),\n _vm._v(\" \"),\n _c(\"p\", [\n _vm._v(\n \"Proper and Backlog searches are exempted from the delay.\"\n )\n ])\n ]\n ),\n _vm._v(\" \"),\n _vm.editProvider.config.search.delay.enabled\n ? _c(\n \"config-textbox-number\",\n {\n attrs: {\n value:\n _vm.editProvider.config.search.delay.duration / 60.0,\n label: \"Search delay (hours)\",\n id: _vm.editProvider.id + \"_search_delay_duration\",\n step: 0.5\n },\n on: {\n input: function($event) {\n _vm.editProvider.config.search.delay.duration =\n $event * 60\n }\n }\n },\n [\n _c(\"p\", [\n _vm._v(\n \"Amount of hours to wait for downloading a result compared to the first result for a specific episode.\"\n )\n ])\n ]\n )\n : _vm._e()\n ],\n 1\n )\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"button\",\n {\n staticClass: \"btn-medusa config_submitter\",\n staticStyle: { float: \"left\" },\n attrs: { disabled: _vm.saving },\n on: { click: _vm.save }\n },\n [_vm._v(\"Save Changes\")]\n ),\n _vm._v(\" \"),\n _c(\"test-provider\", {\n attrs: {\n \"provider-id\": _vm.editProvider.id,\n \"provider-name\": _vm.editProvider.name\n }\n })\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack://slim/./src/components/helpers/config-provider-torrent.vue?./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options"); /***/ }),