diff --git a/CHANGELOG.md b/CHANGELOG.md index 93afeac156..877876bb1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - Converted Edit Show to a Vue SFC ([#4486](https://github.com/pymedusa/Medusa/pull/4486) - Improved API v2 exception reporting on Python 2 ([#6931](https://github.com/pymedusa/Medusa/pull/6931)) - Added support for qbittorrent api v2. Required from qbittorrent version > 3.2.0. ([#7040](https://github.com/pymedusa/Medusa/pull/7040)) +- Show Header: Improved visibility of local and global configured required and ignored words. ([#7085](https://github.com/pymedusa/Medusa/pull/7085)) #### Fixes - Fixed hdtorrent provider parse the publishing date with the day first ([#6847](https://github.com/pymedusa/Medusa/pull/6847)) diff --git a/themes-default/slim/src/components/show-header.vue b/themes-default/slim/src/components/show-header.vue index 057795e7b9..f1c6e103e5 100644 --- a/themes-default/slim/src/components/show-header.vue +++ b/themes-default/slim/src/components/show-header.vue @@ -169,35 +169,77 @@ Scene Name: - {{show.config.aliases.join(',')}} + {{show.config.aliases.join(', ')}} - - Required Words: - {{show.config.release.requiredWords.join(',')}} + + + Required Words: + + + + {{show.config.release.requiredWords.join(', ')}} + + + + + {{search.filters.required.join(', ')}} + + + - - Ignored Words: - {{show.config.release.ignoredWords.join(',')}} + + + Ignored Words: + + + + {{show.config.release.ignoredWords.join(', ')}} + + + + + {{search.filters.ignored.join(', ')}} + + + - - Preferred Words: - {{preferredWords.join(',')}} + + + Preferred Words: + + + + {{search.filters.preferred.join(', ')}} + + - - Undesired Words: - {{undesiredWords.join(',')}} + + + Undesired Words: + + + + {{search.filters.undesired.join(', ')}} + + Wanted Groups: - {{show.config.release.whitelist.join(',')}} + {{show.config.release.whitelist.join(', ')}} Unwanted Groups: - {{show.config.release.blacklist.join(',')}} + {{show.config.release.blacklist.join(', ')}} @@ -408,20 +450,6 @@ export default { } return result; }, - preferredWords() { - const { preferred } = this.search.filters; - if (preferred.length > 0) { - return preferred; - } - return []; - }, - undesiredWords() { - const { undesired } = this.search.filters; - if (undesired.length > 0) { - return undesired; - } - return []; - }, episodeSummary() { const { show } = this; const { seasons } = show; @@ -728,4 +756,8 @@ div#col-show-summary { max-width: 280px; } } + +span.global-filter { + font-style: italic; +} diff --git a/themes-default/slim/views/config_search.mako b/themes-default/slim/views/config_search.mako index 168a647b0a..70fdec339a 100644 --- a/themes-default/slim/views/config_search.mako +++ b/themes-default/slim/views/config_search.mako @@ -520,7 +520,7 @@ window.app = new Vue({
-

Search Filters

+

Search Filters

Options to filter search results

diff --git a/themes/dark/assets/js/medusa-runtime.js b/themes/dark/assets/js/medusa-runtime.js index b49fa59ba8..6f299c9df5 100644 --- a/themes/dark/assets/js/medusa-runtime.js +++ b/themes/dark/assets/js/medusa-runtime.js @@ -404,7 +404,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(f /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function($) {/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var vue_truncate_collapsed__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue-truncate-collapsed */ \"./node_modules/vue-truncate-collapsed/dist/vue-truncate-collapsed.es.js\");\n/* harmony import */ var country_language__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! country-language */ \"./node_modules/country-language/index.js\");\n/* harmony import */ var country_language__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(country_language__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var is_visible__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! is-visible */ \"./node_modules/is-visible/module/index.js\");\n/* harmony import */ var vue_scrollto__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue-scrollto */ \"./node_modules/vue-scrollto/vue-scrollto.js\");\n/* harmony import */ var vue_scrollto__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(vue_scrollto__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _api__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../api */ \"./src/api.js\");\n/* harmony import */ var _utils_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/core */ \"./src/utils/core.js\");\n/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./helpers */ \"./src/components/helpers/index.js\");\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\n\n/**\n * Return the first item of `values` that is not `null`, `undefined` or `NaN`.\n * @param {...any} values - Values to check.\n * @returns {any} - The first item that fits the criteria, `undefined` otherwise.\n */\n\nconst resolveToValue = (...values) => {\n return values.find(value => {\n return !Number.isNaN(value) && value !== null && value !== undefined;\n });\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'show-header',\n components: {\n AppLink: _helpers__WEBPACK_IMPORTED_MODULE_8__[\"AppLink\"],\n Asset: _helpers__WEBPACK_IMPORTED_MODULE_8__[\"Asset\"],\n QualityPill: _helpers__WEBPACK_IMPORTED_MODULE_8__[\"QualityPill\"],\n StateSwitch: _helpers__WEBPACK_IMPORTED_MODULE_8__[\"StateSwitch\"],\n Truncate: vue_truncate_collapsed__WEBPACK_IMPORTED_MODULE_1__[\"default\"]\n },\n props: {\n /**\n * Page type: show or snatch-selection\n */\n type: {\n type: String,\n default: 'show',\n validator: value => ['show', 'snatch-selection'].includes(value)\n },\n\n /**\n * Show indexer\n */\n showIndexer: {\n type: String\n },\n\n /**\n * Show id\n */\n showId: {\n type: Number\n },\n\n /**\n * Season\n */\n showSeason: {\n type: Number\n },\n\n /**\n * Episode\n */\n showEpisode: {\n type: Number\n },\n\n /**\n * Manual Search Type (snatch-selection)\n */\n manualSearchType: {\n type: String\n }\n },\n\n data() {\n return {\n jumpToSeason: 'jump'\n };\n },\n\n computed: _objectSpread({}, Object(vuex__WEBPACK_IMPORTED_MODULE_5__[\"mapState\"])({\n config: state => state.config,\n shows: state => state.shows.shows,\n indexerConfig: state => state.config.indexers.config.indexers,\n failedDownloads: state => state.config.failedDownloads,\n displaySpecials: state => state.config.layout.show.specials,\n qualities: state => state.consts.qualities.values,\n statuses: state => state.consts.statuses,\n search: state => state.search\n }), {}, Object(vuex__WEBPACK_IMPORTED_MODULE_5__[\"mapGetters\"])({\n show: 'getCurrentShow',\n getQualityPreset: 'getQualityPreset',\n getStatus: 'getStatus'\n }), {\n indexer() {\n return this.showIndexer || this.$route.query.indexername;\n },\n\n id() {\n return this.showId || Number(this.$route.query.seriesid) || undefined;\n },\n\n season() {\n return resolveToValue(this.showSeason, Number(this.$route.query.season));\n },\n\n episode() {\n return resolveToValue(this.showEpisode, Number(this.$route.query.episode));\n },\n\n showIndexerUrl() {\n const {\n show,\n indexerConfig\n } = this;\n\n if (!show.indexer) {\n return;\n }\n\n const id = show.id[show.indexer];\n const indexerUrl = indexerConfig[show.indexer].showUrl;\n return \"\".concat(indexerUrl).concat(id);\n },\n\n activeShowQueueStatuses() {\n const {\n showQueueStatus\n } = this.show;\n\n if (!showQueueStatus) {\n return [];\n }\n\n return showQueueStatus.filter(status => status.active === true);\n },\n\n showGenres() {\n const {\n show,\n dedupeGenres\n } = this;\n const {\n imdbInfo\n } = show;\n const {\n genres\n } = imdbInfo;\n let result = [];\n\n if (genres) {\n result = dedupeGenres(genres.split('|'));\n }\n\n return result;\n },\n\n preferredWords() {\n const {\n preferred\n } = this.search.filters;\n\n if (preferred.length > 0) {\n return preferred;\n }\n\n return [];\n },\n\n undesiredWords() {\n const {\n undesired\n } = this.search.filters;\n\n if (undesired.length > 0) {\n return undesired;\n }\n\n return [];\n },\n\n episodeSummary() {\n const {\n show\n } = this;\n const {\n seasons\n } = show;\n const summary = {\n Skipped: 0,\n Wanted: 0,\n Allowed: 0,\n Preferred: 0,\n Unaired: 0,\n Snatched: 0,\n 'Snatched (Proper)': 0,\n 'Snatched (Best)': 0,\n Unset: 0,\n Archived: 0\n };\n seasons.forEach(season => {\n season.episodes.forEach(episode => {\n // FIXME: with the overview status.\n summary[episode.status] += 1;\n });\n });\n return summary;\n },\n\n changeStatusOptions() {\n const {\n failedDownloads,\n getStatus,\n statuses\n } = this;\n\n if (statuses.length === 0) {\n return [];\n } // Get status objects, in this order\n\n\n const defaultOptions = ['wanted', 'skipped', 'ignored', 'downloaded', 'archived'].map(key => getStatus({\n key\n }));\n\n if (failedDownloads.enabled) {\n defaultOptions.push(getStatus({\n key: 'failed'\n }));\n }\n\n return defaultOptions;\n },\n\n combinedQualities() {\n const {\n allowed,\n preferred\n } = this.show.config.qualities;\n return Object(_utils_core__WEBPACK_IMPORTED_MODULE_7__[\"combineQualities\"])(allowed, preferred);\n },\n\n seasons() {\n const {\n show\n } = this; // Only return an array with seasons (integers)\n\n return show.seasonCount.map(season => season.season);\n }\n\n }),\n methods: {\n combineQualities: _utils_core__WEBPACK_IMPORTED_MODULE_7__[\"combineQualities\"],\n humanFileSize: _utils_core__WEBPACK_IMPORTED_MODULE_7__[\"humanFileSize\"],\n\n setQuality(quality, showSlug, episodes) {\n const patchData = {};\n episodes.forEach(episode => {\n patchData[episode] = {\n quality: parseInt(quality, 10)\n };\n });\n _api__WEBPACK_IMPORTED_MODULE_6__[\"api\"].patch('series/' + showSlug + '/episodes', patchData).then(response => {\n console.info(response.data);\n window.location.reload();\n }).catch(error => {\n console.error(error.data);\n });\n },\n\n changeStatusClicked() {\n const {\n setQuality\n } = this;\n const epArr = [];\n const status = $('#statusSelect').val();\n const quality = $('#qualitySelect').val();\n const showSlug = $('#series-slug').val();\n $('.epCheck').each((index, element) => {\n if (element.checked === true) {\n epArr.push($(element).attr('id'));\n }\n });\n\n if (epArr.length === 0) {\n return false;\n }\n\n if (quality) {\n setQuality(quality, showSlug, epArr);\n }\n\n if (status) {\n window.location.href = $('base').attr('href') + 'home/setStatus?' + 'indexername=' + $('#indexer-name').attr('value') + '&seriesid=' + $('#series-id').attr('value') + '&eps=' + epArr.join('|') + '&status=' + status;\n }\n },\n\n showHideRows(whichClass) {\n const status = $('#checkboxControls > input, #' + whichClass).prop('checked');\n $('tr.' + whichClass).each((index, element) => {\n if (status) {\n $(element).show();\n } else {\n $(element).hide();\n }\n }); // Hide season headers with no episodes under them\n\n $('tr.seasonheader').each((index, element) => {\n let numRows = 0;\n const seasonNo = $(element).attr('id');\n $('tr.' + seasonNo + ' :visible').each(() => {\n numRows++;\n });\n\n if (numRows === 0) {\n $(element).hide();\n $('#' + seasonNo + '-cols').hide();\n } else {\n $(element).show();\n $('#' + seasonNo + '-cols').show();\n }\n });\n },\n\n selectEpisodesClicked() {\n // Selects all visible episode checkboxes\n [...document.querySelectorAll('.epCheck, .seasonCheck')].filter(is_visible__WEBPACK_IMPORTED_MODULE_3__[\"isVisible\"]).forEach(element => {\n element.checked = true;\n });\n },\n\n clearEpisodeSelectionClicked() {\n // Clears all visible episode checkboxes and the season selectors\n [...document.querySelectorAll('.epCheck, .seasonCheck')].filter(is_visible__WEBPACK_IMPORTED_MODULE_3__[\"isVisible\"]).forEach(element => {\n element.checked = false;\n });\n },\n\n toggleSpecials() {\n const config = {\n section: 'main',\n config: {\n layout: {\n show: {\n specials: !this.displaySpecials\n }\n }\n }\n };\n this.$store.dispatch('setConfig', config).then(() => {\n window.location.reload();\n });\n },\n\n reverse(array) {\n return array ? array.slice().reverse() : [];\n },\n\n dedupeGenres(genres) {\n return genres ? [...new Set(genres.slice(0).map(genre => genre.replace('-', ' ')))] : [];\n },\n\n getCountryISO2ToISO3(country) {\n return Object(country_language__WEBPACK_IMPORTED_MODULE_2__[\"getLanguage\"])(country).iso639_2en;\n }\n\n },\n watch: {\n jumpToSeason(season) {\n // Don't jump until an option is selected\n if (season !== 'jump') {\n // Calculate duration\n let duration = (this.seasons.length - season) * 50;\n duration = Math.max(500, Math.min(duration, 2000)); // Limit to (500ms <= duration <= 2000ms)\n // Calculate offset\n\n let offset = -50; // Navbar\n // Needs extra offset when the sub menu is \"fixed\".\n\n offset -= window.matchMedia('(min-width: 1281px)').matches ? 40 : 0;\n const name = \"season-\".concat(season);\n console.debug(\"Jumping to #\".concat(name, \" (\").concat(duration, \"ms)\"));\n Object(vue_scrollto__WEBPACK_IMPORTED_MODULE_4__[\"scrollTo\"])(\"[name=\\\"\".concat(name, \"\\\"]\"), duration, {\n container: 'body',\n easing: 'ease-in-out',\n offset\n }); // Update URL hash\n\n window.location.hash = name; // Reset jump\n\n this.jumpToSeason = 'jump';\n }\n }\n\n }\n});\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ \"./node_modules/jquery/dist/jquery.js\")))\n\n//# sourceURL=webpack:///./src/components/show-header.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options"); +eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function($) {/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var vue_truncate_collapsed__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue-truncate-collapsed */ \"./node_modules/vue-truncate-collapsed/dist/vue-truncate-collapsed.es.js\");\n/* harmony import */ var country_language__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! country-language */ \"./node_modules/country-language/index.js\");\n/* harmony import */ var country_language__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(country_language__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var is_visible__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! is-visible */ \"./node_modules/is-visible/module/index.js\");\n/* harmony import */ var vue_scrollto__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue-scrollto */ \"./node_modules/vue-scrollto/vue-scrollto.js\");\n/* harmony import */ var vue_scrollto__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(vue_scrollto__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _api__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../api */ \"./src/api.js\");\n/* harmony import */ var _utils_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/core */ \"./src/utils/core.js\");\n/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./helpers */ \"./src/components/helpers/index.js\");\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\n\n/**\n * Return the first item of `values` that is not `null`, `undefined` or `NaN`.\n * @param {...any} values - Values to check.\n * @returns {any} - The first item that fits the criteria, `undefined` otherwise.\n */\n\nconst resolveToValue = (...values) => {\n return values.find(value => {\n return !Number.isNaN(value) && value !== null && value !== undefined;\n });\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'show-header',\n components: {\n AppLink: _helpers__WEBPACK_IMPORTED_MODULE_8__[\"AppLink\"],\n Asset: _helpers__WEBPACK_IMPORTED_MODULE_8__[\"Asset\"],\n QualityPill: _helpers__WEBPACK_IMPORTED_MODULE_8__[\"QualityPill\"],\n StateSwitch: _helpers__WEBPACK_IMPORTED_MODULE_8__[\"StateSwitch\"],\n Truncate: vue_truncate_collapsed__WEBPACK_IMPORTED_MODULE_1__[\"default\"]\n },\n props: {\n /**\n * Page type: show or snatch-selection\n */\n type: {\n type: String,\n default: 'show',\n validator: value => ['show', 'snatch-selection'].includes(value)\n },\n\n /**\n * Show indexer\n */\n showIndexer: {\n type: String\n },\n\n /**\n * Show id\n */\n showId: {\n type: Number\n },\n\n /**\n * Season\n */\n showSeason: {\n type: Number\n },\n\n /**\n * Episode\n */\n showEpisode: {\n type: Number\n },\n\n /**\n * Manual Search Type (snatch-selection)\n */\n manualSearchType: {\n type: String\n }\n },\n\n data() {\n return {\n jumpToSeason: 'jump'\n };\n },\n\n computed: _objectSpread({}, Object(vuex__WEBPACK_IMPORTED_MODULE_5__[\"mapState\"])({\n config: state => state.config,\n shows: state => state.shows.shows,\n indexerConfig: state => state.config.indexers.config.indexers,\n failedDownloads: state => state.config.failedDownloads,\n displaySpecials: state => state.config.layout.show.specials,\n qualities: state => state.consts.qualities.values,\n statuses: state => state.consts.statuses,\n search: state => state.search\n }), {}, Object(vuex__WEBPACK_IMPORTED_MODULE_5__[\"mapGetters\"])({\n show: 'getCurrentShow',\n getQualityPreset: 'getQualityPreset',\n getStatus: 'getStatus'\n }), {\n indexer() {\n return this.showIndexer || this.$route.query.indexername;\n },\n\n id() {\n return this.showId || Number(this.$route.query.seriesid) || undefined;\n },\n\n season() {\n return resolveToValue(this.showSeason, Number(this.$route.query.season));\n },\n\n episode() {\n return resolveToValue(this.showEpisode, Number(this.$route.query.episode));\n },\n\n showIndexerUrl() {\n const {\n show,\n indexerConfig\n } = this;\n\n if (!show.indexer) {\n return;\n }\n\n const id = show.id[show.indexer];\n const indexerUrl = indexerConfig[show.indexer].showUrl;\n return \"\".concat(indexerUrl).concat(id);\n },\n\n activeShowQueueStatuses() {\n const {\n showQueueStatus\n } = this.show;\n\n if (!showQueueStatus) {\n return [];\n }\n\n return showQueueStatus.filter(status => status.active === true);\n },\n\n showGenres() {\n const {\n show,\n dedupeGenres\n } = this;\n const {\n imdbInfo\n } = show;\n const {\n genres\n } = imdbInfo;\n let result = [];\n\n if (genres) {\n result = dedupeGenres(genres.split('|'));\n }\n\n return result;\n },\n\n episodeSummary() {\n const {\n show\n } = this;\n const {\n seasons\n } = show;\n const summary = {\n Skipped: 0,\n Wanted: 0,\n Allowed: 0,\n Preferred: 0,\n Unaired: 0,\n Snatched: 0,\n 'Snatched (Proper)': 0,\n 'Snatched (Best)': 0,\n Unset: 0,\n Archived: 0\n };\n seasons.forEach(season => {\n season.episodes.forEach(episode => {\n // FIXME: with the overview status.\n summary[episode.status] += 1;\n });\n });\n return summary;\n },\n\n changeStatusOptions() {\n const {\n failedDownloads,\n getStatus,\n statuses\n } = this;\n\n if (statuses.length === 0) {\n return [];\n } // Get status objects, in this order\n\n\n const defaultOptions = ['wanted', 'skipped', 'ignored', 'downloaded', 'archived'].map(key => getStatus({\n key\n }));\n\n if (failedDownloads.enabled) {\n defaultOptions.push(getStatus({\n key: 'failed'\n }));\n }\n\n return defaultOptions;\n },\n\n combinedQualities() {\n const {\n allowed,\n preferred\n } = this.show.config.qualities;\n return Object(_utils_core__WEBPACK_IMPORTED_MODULE_7__[\"combineQualities\"])(allowed, preferred);\n },\n\n seasons() {\n const {\n show\n } = this; // Only return an array with seasons (integers)\n\n return show.seasonCount.map(season => season.season);\n }\n\n }),\n methods: {\n combineQualities: _utils_core__WEBPACK_IMPORTED_MODULE_7__[\"combineQualities\"],\n humanFileSize: _utils_core__WEBPACK_IMPORTED_MODULE_7__[\"humanFileSize\"],\n\n setQuality(quality, showSlug, episodes) {\n const patchData = {};\n episodes.forEach(episode => {\n patchData[episode] = {\n quality: parseInt(quality, 10)\n };\n });\n _api__WEBPACK_IMPORTED_MODULE_6__[\"api\"].patch('series/' + showSlug + '/episodes', patchData).then(response => {\n console.info(response.data);\n window.location.reload();\n }).catch(error => {\n console.error(error.data);\n });\n },\n\n changeStatusClicked() {\n const {\n setQuality\n } = this;\n const epArr = [];\n const status = $('#statusSelect').val();\n const quality = $('#qualitySelect').val();\n const showSlug = $('#series-slug').val();\n $('.epCheck').each((index, element) => {\n if (element.checked === true) {\n epArr.push($(element).attr('id'));\n }\n });\n\n if (epArr.length === 0) {\n return false;\n }\n\n if (quality) {\n setQuality(quality, showSlug, epArr);\n }\n\n if (status) {\n window.location.href = $('base').attr('href') + 'home/setStatus?' + 'indexername=' + $('#indexer-name').attr('value') + '&seriesid=' + $('#series-id').attr('value') + '&eps=' + epArr.join('|') + '&status=' + status;\n }\n },\n\n showHideRows(whichClass) {\n const status = $('#checkboxControls > input, #' + whichClass).prop('checked');\n $('tr.' + whichClass).each((index, element) => {\n if (status) {\n $(element).show();\n } else {\n $(element).hide();\n }\n }); // Hide season headers with no episodes under them\n\n $('tr.seasonheader').each((index, element) => {\n let numRows = 0;\n const seasonNo = $(element).attr('id');\n $('tr.' + seasonNo + ' :visible').each(() => {\n numRows++;\n });\n\n if (numRows === 0) {\n $(element).hide();\n $('#' + seasonNo + '-cols').hide();\n } else {\n $(element).show();\n $('#' + seasonNo + '-cols').show();\n }\n });\n },\n\n selectEpisodesClicked() {\n // Selects all visible episode checkboxes\n [...document.querySelectorAll('.epCheck, .seasonCheck')].filter(is_visible__WEBPACK_IMPORTED_MODULE_3__[\"isVisible\"]).forEach(element => {\n element.checked = true;\n });\n },\n\n clearEpisodeSelectionClicked() {\n // Clears all visible episode checkboxes and the season selectors\n [...document.querySelectorAll('.epCheck, .seasonCheck')].filter(is_visible__WEBPACK_IMPORTED_MODULE_3__[\"isVisible\"]).forEach(element => {\n element.checked = false;\n });\n },\n\n toggleSpecials() {\n const config = {\n section: 'main',\n config: {\n layout: {\n show: {\n specials: !this.displaySpecials\n }\n }\n }\n };\n this.$store.dispatch('setConfig', config).then(() => {\n window.location.reload();\n });\n },\n\n reverse(array) {\n return array ? array.slice().reverse() : [];\n },\n\n dedupeGenres(genres) {\n return genres ? [...new Set(genres.slice(0).map(genre => genre.replace('-', ' ')))] : [];\n },\n\n getCountryISO2ToISO3(country) {\n return Object(country_language__WEBPACK_IMPORTED_MODULE_2__[\"getLanguage\"])(country).iso639_2en;\n }\n\n },\n watch: {\n jumpToSeason(season) {\n // Don't jump until an option is selected\n if (season !== 'jump') {\n // Calculate duration\n let duration = (this.seasons.length - season) * 50;\n duration = Math.max(500, Math.min(duration, 2000)); // Limit to (500ms <= duration <= 2000ms)\n // Calculate offset\n\n let offset = -50; // Navbar\n // Needs extra offset when the sub menu is \"fixed\".\n\n offset -= window.matchMedia('(min-width: 1281px)').matches ? 40 : 0;\n const name = \"season-\".concat(season);\n console.debug(\"Jumping to #\".concat(name, \" (\").concat(duration, \"ms)\"));\n Object(vue_scrollto__WEBPACK_IMPORTED_MODULE_4__[\"scrollTo\"])(\"[name=\\\"\".concat(name, \"\\\"]\"), duration, {\n container: 'body',\n easing: 'ease-in-out',\n offset\n }); // Update URL hash\n\n window.location.hash = name; // Reset jump\n\n this.jumpToSeason = 'jump';\n }\n }\n\n }\n});\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ \"./node_modules/jquery/dist/jquery.js\")))\n\n//# sourceURL=webpack:///./src/components/show-header.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options"); /***/ }), @@ -662,7 +662,7 @@ eval("exports = module.exports = __webpack_require__(/*! ../../node_modules/css- /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { -eval("exports = module.exports = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.i, \"\\n.summaryTable[data-v-2465ca06] {\\n overflow: hidden;\\n}\\n.summaryTable tr td[data-v-2465ca06] {\\n word-break: break-all;\\n}\\n.ver-spacer[data-v-2465ca06] {\\n width: 15px;\\n}\\n#show-specials-and-seasons[data-v-2465ca06] {\\n margin-bottom: 15px;\\n}\\nspan.required[data-v-2465ca06] {\\n color: green;\\n}\\nspan.preferred[data-v-2465ca06] {\\n color: blue;\\n}\\nspan.undesired[data-v-2465ca06] {\\n color: orange;\\n}\\nspan.ignored[data-v-2465ca06] {\\n color: red;\\n}\\ndiv#col-show-summary[data-v-2465ca06] {\\n display: table;\\n}\\n#col-show-summary img.show-image[data-v-2465ca06] {\\n max-width: 180px;\\n}\\n.show-poster-container[data-v-2465ca06] {\\n margin-right: 10px;\\n display: table-cell;\\n width: 180px;\\n}\\n.show-info-container[data-v-2465ca06] {\\n overflow: hidden;\\n display: table-cell;\\n}\\n.showLegend[data-v-2465ca06] {\\n padding-right: 6px;\\n padding-bottom: 1px;\\n width: 150px;\\n}\\n.invalid-value[data-v-2465ca06] {\\n color: rgb(255, 0, 0);\\n}\\n@media (min-width: 768px) {\\n.display-specials[data-v-2465ca06],\\n .display-seasons[data-v-2465ca06] {\\n top: -60px;\\n}\\n#show-specials-and-seasons[data-v-2465ca06] {\\n bottom: 5px;\\n right: 15px;\\n position: absolute;\\n}\\n}\\n@media (max-width: 767px) {\\n.show-poster-container[data-v-2465ca06] {\\n display: inline-block;\\n width: 100%;\\n margin: 0 auto;\\n border-style: none;\\n}\\n.show-poster-container img[data-v-2465ca06] {\\n display: block;\\n margin: 0 auto;\\n max-width: 280px !important;\\n}\\n.show-info-container[data-v-2465ca06] {\\n display: block;\\n padding-top: 5px;\\n width: 100%;\\n}\\n}\\n@media (max-width: 991px) and (min-width: 768px) {\\n.show-poster-container[data-v-2465ca06] {\\n float: left;\\n display: inline-block;\\n width: 100%;\\n border-style: none;\\n}\\n.show-info-container[data-v-2465ca06] {\\n display: block;\\n width: 100%;\\n}\\n#col-show-summary img.show-image[data-v-2465ca06] {\\n max-width: 280px;\\n}\\n}\\n\", \"\"]);\n\n\n//# sourceURL=webpack:///./src/components/show-header.vue?./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib??vue-loader-options"); +eval("exports = module.exports = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.i, \"\\n.summaryTable[data-v-2465ca06] {\\n overflow: hidden;\\n}\\n.summaryTable tr td[data-v-2465ca06] {\\n word-break: break-all;\\n}\\n.ver-spacer[data-v-2465ca06] {\\n width: 15px;\\n}\\n#show-specials-and-seasons[data-v-2465ca06] {\\n margin-bottom: 15px;\\n}\\nspan.required[data-v-2465ca06] {\\n color: green;\\n}\\nspan.preferred[data-v-2465ca06] {\\n color: blue;\\n}\\nspan.undesired[data-v-2465ca06] {\\n color: orange;\\n}\\nspan.ignored[data-v-2465ca06] {\\n color: red;\\n}\\ndiv#col-show-summary[data-v-2465ca06] {\\n display: table;\\n}\\n#col-show-summary img.show-image[data-v-2465ca06] {\\n max-width: 180px;\\n}\\n.show-poster-container[data-v-2465ca06] {\\n margin-right: 10px;\\n display: table-cell;\\n width: 180px;\\n}\\n.show-info-container[data-v-2465ca06] {\\n overflow: hidden;\\n display: table-cell;\\n}\\n.showLegend[data-v-2465ca06] {\\n padding-right: 6px;\\n padding-bottom: 1px;\\n width: 150px;\\n}\\n.invalid-value[data-v-2465ca06] {\\n color: rgb(255, 0, 0);\\n}\\n@media (min-width: 768px) {\\n.display-specials[data-v-2465ca06],\\n .display-seasons[data-v-2465ca06] {\\n top: -60px;\\n}\\n#show-specials-and-seasons[data-v-2465ca06] {\\n bottom: 5px;\\n right: 15px;\\n position: absolute;\\n}\\n}\\n@media (max-width: 767px) {\\n.show-poster-container[data-v-2465ca06] {\\n display: inline-block;\\n width: 100%;\\n margin: 0 auto;\\n border-style: none;\\n}\\n.show-poster-container img[data-v-2465ca06] {\\n display: block;\\n margin: 0 auto;\\n max-width: 280px !important;\\n}\\n.show-info-container[data-v-2465ca06] {\\n display: block;\\n padding-top: 5px;\\n width: 100%;\\n}\\n}\\n@media (max-width: 991px) and (min-width: 768px) {\\n.show-poster-container[data-v-2465ca06] {\\n float: left;\\n display: inline-block;\\n width: 100%;\\n border-style: none;\\n}\\n.show-info-container[data-v-2465ca06] {\\n display: block;\\n width: 100%;\\n}\\n#col-show-summary img.show-image[data-v-2465ca06] {\\n max-width: 280px;\\n}\\n}\\nspan.global-filter[data-v-2465ca06] {\\n font-style: italic;\\n}\\n\", \"\"]);\n\n\n//# sourceURL=webpack:///./src/components/show-header.vue?./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib??vue-loader-options"); /***/ }), @@ -1056,7 +1056,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) * /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\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 { staticClass: \"show-header-container\" },\n [\n _c(\"div\", { staticClass: \"row\" }, [\n _vm.show\n ? _c(\n \"div\",\n {\n staticClass: \"col-lg-12\",\n attrs: { id: \"showtitle\", \"data-showname\": _vm.show.title }\n },\n [\n _c(\"div\", [\n _c(\n \"h1\",\n {\n staticClass: \"title\",\n attrs: {\n \"data-indexer-name\": _vm.show.indexer,\n \"data-series-id\": _vm.show.id[_vm.show.indexer],\n id: \"scene_exception_\" + _vm.show.id[_vm.show.indexer]\n }\n },\n [\n _c(\n \"app-link\",\n {\n staticClass: \"snatchTitle\",\n attrs: {\n href:\n \"home/displayShow?indexername=\" +\n _vm.show.indexer +\n \"&seriesid=\" +\n _vm.show.id[_vm.show.indexer]\n }\n },\n [_vm._v(_vm._s(_vm.show.title))]\n )\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _vm.type === \"snatch-selection\"\n ? _c(\n \"div\",\n {\n staticClass: \"pull-right\",\n attrs: { id: \"show-specials-and-seasons\" }\n },\n [\n _c(\n \"span\",\n { staticClass: \"h2footer display-specials\" },\n [\n _vm._v(\"\\n Manual search for:\"),\n _c(\"br\"),\n _vm._v(\" \"),\n _c(\n \"app-link\",\n {\n staticClass: \"snatchTitle\",\n attrs: {\n href:\n \"home/displayShow?indexername=\" +\n _vm.show.indexer +\n \"&seriesid=\" +\n _vm.show.id[_vm.show.indexer]\n }\n },\n [_vm._v(_vm._s(_vm.show.title))]\n ),\n _vm._v(\" / Season \" + _vm._s(_vm.season)),\n _vm.episode !== undefined &&\n _vm.manualSearchType !== \"season\"\n ? [_vm._v(\" Episode \" + _vm._s(_vm.episode))]\n : _vm._e()\n ],\n 2\n )\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.type !== \"snatch-selection\" && _vm.seasons.length >= 1\n ? _c(\n \"div\",\n {\n staticClass: \"pull-right\",\n attrs: { id: \"show-specials-and-seasons\" }\n },\n [\n _vm.seasons.includes(0)\n ? _c(\n \"span\",\n { staticClass: \"h2footer display-specials\" },\n [\n _vm._v(\n \"\\n Display Specials: \"\n ),\n _c(\n \"a\",\n {\n staticClass: \"inner\",\n staticStyle: { cursor: \"pointer\" },\n on: {\n click: function($event) {\n return _vm.toggleSpecials()\n }\n }\n },\n [\n _vm._v(\n _vm._s(\n _vm.displaySpecials ? \"Hide\" : \"Show\"\n )\n )\n ]\n )\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"div\",\n { staticClass: \"h2footer display-seasons clear\" },\n [\n _c(\n \"span\",\n [\n _vm.seasons.length >= 15\n ? _c(\n \"select\",\n {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.jumpToSeason,\n expression: \"jumpToSeason\"\n }\n ],\n staticClass: \"form-control input-sm\",\n staticStyle: { position: \"relative\" },\n attrs: { id: \"seasonJump\" },\n on: {\n change: function($event) {\n var $$selectedVal = Array.prototype.filter\n .call(\n $event.target.options,\n function(o) {\n return o.selected\n }\n )\n .map(function(o) {\n var val =\n \"_value\" in o\n ? o._value\n : o.value\n return val\n })\n _vm.jumpToSeason = $event.target\n .multiple\n ? $$selectedVal\n : $$selectedVal[0]\n }\n }\n },\n [\n _c(\n \"option\",\n { attrs: { value: \"jump\" } },\n [_vm._v(\"Jump to Season\")]\n ),\n _vm._v(\" \"),\n _vm._l(_vm.seasons, function(\n seasonNumber\n ) {\n return _c(\n \"option\",\n {\n key:\n \"jumpToSeason-\" + seasonNumber,\n domProps: { value: seasonNumber }\n },\n [\n _vm._v(\n \"\\n \" +\n _vm._s(\n seasonNumber === 0\n ? \"Specials\"\n : \"Season \" + seasonNumber\n ) +\n \"\\n \"\n )\n ]\n )\n })\n ],\n 2\n )\n : _vm.seasons.length >= 1\n ? [\n _vm._v(\n \"\\n Season:\\n \"\n ),\n _vm._l(_vm.reverse(_vm.seasons), function(\n seasonNumber,\n index\n ) {\n return [\n _c(\n \"app-link\",\n {\n key:\n \"jumpToSeason-\" + seasonNumber,\n attrs: {\n href: \"#season-\" + seasonNumber\n },\n nativeOn: {\n click: function($event) {\n $event.preventDefault()\n _vm.jumpToSeason = seasonNumber\n }\n }\n },\n [\n _vm._v(\n \"\\n \" +\n _vm._s(\n seasonNumber === 0\n ? \"Specials\"\n : seasonNumber\n ) +\n \"\\n \"\n )\n ]\n ),\n _vm._v(\" \"),\n index !== _vm.seasons.length - 1\n ? _c(\n \"span\",\n {\n key: \"separator-\" + index,\n staticClass: \"separator\"\n },\n [_vm._v(\"| \")]\n )\n : _vm._e()\n ]\n })\n ]\n : _vm._e()\n ],\n 2\n )\n ]\n )\n ]\n )\n : _vm._e()\n ]\n )\n : _vm._e()\n ]),\n _vm._v(\" \"),\n _vm._l(_vm.activeShowQueueStatuses, function(queueItem) {\n return _c(\"div\", { key: queueItem.action, staticClass: \"row\" }, [\n _c(\"div\", { staticClass: \"alert alert-info\" }, [\n _vm._v(\"\\n \" + _vm._s(queueItem.message) + \"\\n \")\n ])\n ])\n }),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"row\", attrs: { id: \"row-show-summary\" } }, [\n _c(\n \"div\",\n { staticClass: \"col-md-12\", attrs: { id: \"col-show-summary\" } },\n [\n _c(\"div\", { staticClass: \"show-poster-container\" }, [\n _c(\"div\", { staticClass: \"row\" }, [\n _c(\n \"div\",\n { staticClass: \"image-flex-container col-md-12\" },\n [\n _c(\"asset\", {\n attrs: {\n default: \"images/poster.png\",\n \"show-slug\": _vm.show.id.slug,\n type: \"posterThumb\",\n cls: \"show-image shadow\",\n link: true\n }\n })\n ],\n 1\n )\n ])\n ]),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"ver-spacer\" }),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"show-info-container\" }, [\n _c(\"div\", { staticClass: \"row\" }, [\n _c(\n \"div\",\n {\n staticClass:\n \"pull-right col-lg-3 col-md-3 hidden-sm hidden-xs\"\n },\n [\n _c(\"asset\", {\n attrs: {\n default: \"images/banner.png\",\n \"show-slug\": _vm.show.id.slug,\n type: \"banner\",\n cls: \"show-banner pull-right shadow\",\n link: true\n }\n })\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n staticClass:\n \"pull-left col-lg-9 col-md-9 col-sm-12 col-xs-12\",\n attrs: { id: \"show-rating\" }\n },\n [\n _vm.show.rating.imdb && _vm.show.rating.imdb.rating\n ? _c(\n \"span\",\n {\n staticClass: \"imdbstars\",\n attrs: {\n \"qtip-content\":\n _vm.show.rating.imdb.rating +\n \" / 10 Stars
\" +\n _vm.show.rating.imdb.votes +\n \" Votes\"\n }\n },\n [\n _c(\"span\", {\n style: {\n width:\n Number(_vm.show.rating.imdb.rating) * 12 + \"%\"\n }\n })\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n !_vm.show.id.imdb\n ? [\n _vm.show.year.start\n ? _c(\"span\", [\n _vm._v(\n \"(\" +\n _vm._s(_vm.show.year.start) +\n \") - \" +\n _vm._s(_vm.show.runtime) +\n \" minutes - \"\n )\n ])\n : _vm._e()\n ]\n : [\n _vm._l(_vm.show.countryCodes, function(country) {\n return _c(\"img\", {\n key: \"flag-\" + country,\n class: [\"country-flag\", \"flag-\" + country],\n staticStyle: {\n \"margin-left\": \"3px\",\n \"vertical-align\": \"middle\"\n },\n attrs: {\n src: \"images/blank.png\",\n width: \"16\",\n height: \"11\"\n }\n })\n }),\n _vm._v(\" \"),\n _vm.show.imdbInfo.year\n ? _c(\"span\", [\n _vm._v(\n \"\\n (\" +\n _vm._s(_vm.show.imdbInfo.year) +\n \") -\\n \"\n )\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _c(\"span\", [\n _vm._v(\n \"\\n \" +\n _vm._s(\n _vm.show.imdbInfo.runtimes || _vm.show.runtime\n ) +\n \" minutes\\n \"\n )\n ]),\n _vm._v(\" \"),\n _c(\n \"app-link\",\n {\n attrs: {\n href:\n \"https://www.imdb.com/title/\" +\n _vm.show.id.imdb,\n title:\n \"https://www.imdb.com/title/\" +\n _vm.show.id.imdb\n }\n },\n [\n _c(\"img\", {\n staticStyle: {\n \"margin-top\": \"-1px\",\n \"vertical-align\": \"middle\"\n },\n attrs: {\n alt: \"[imdb]\",\n height: \"16\",\n width: \"16\",\n src: \"images/imdb.png\"\n }\n })\n ]\n )\n ],\n _vm._v(\" \"),\n _vm.show.id.trakt\n ? _c(\n \"app-link\",\n {\n attrs: {\n href:\n \"https://trakt.tv/shows/\" + _vm.show.id.trakt,\n title:\n \"https://trakt.tv/shows/\" + _vm.show.id.trakt\n }\n },\n [\n _c(\"img\", {\n attrs: {\n alt: \"[trakt]\",\n height: \"16\",\n width: \"16\",\n src: \"images/trakt.png\"\n }\n })\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.showIndexerUrl &&\n _vm.indexerConfig[_vm.show.indexer].icon\n ? _c(\n \"app-link\",\n {\n attrs: {\n href: _vm.showIndexerUrl,\n title: _vm.showIndexerUrl\n }\n },\n [\n _c(\"img\", {\n staticStyle: {\n \"margin-top\": \"-1px\",\n \"vertical-align\": \"middle\"\n },\n attrs: {\n alt: _vm.indexerConfig[_vm.show.indexer].name,\n height: \"16\",\n width: \"16\",\n src:\n \"images/\" +\n _vm.indexerConfig[_vm.show.indexer].icon\n }\n })\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.xemNumbering && _vm.show.xemNumbering.length > 0\n ? _c(\n \"app-link\",\n {\n attrs: {\n href:\n \"http://thexem.de/search?q=\" + _vm.show.title,\n title:\n \"http://thexem.de/search?q=\" + _vm.show.title\n }\n },\n [\n _c(\"img\", {\n staticStyle: {\n \"margin-top\": \"-1px\",\n \"vertical-align\": \"middle\"\n },\n attrs: {\n alt: \"[xem]\",\n height: \"16\",\n width: \"16\",\n src: \"images/xem.png\"\n }\n })\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.id.tvdb\n ? _c(\n \"app-link\",\n {\n attrs: {\n href:\n \"https://fanart.tv/series/\" + _vm.show.id.tvdb,\n title:\n \"https://fanart.tv/series/\" +\n _vm.show.id[_vm.show.indexer]\n }\n },\n [\n _c(\"img\", {\n staticClass: \"fanart\",\n attrs: {\n alt: \"[fanart.tv]\",\n height: \"16\",\n width: \"16\",\n src: \"images/fanart.tv.png\"\n }\n })\n ]\n )\n : _vm._e()\n ],\n 2\n ),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n staticClass:\n \"pull-left col-lg-9 col-md-9 col-sm-12 col-xs-12\",\n attrs: { id: \"tags\" }\n },\n [\n _vm.show.genres\n ? _c(\n \"ul\",\n { staticClass: \"tags\" },\n _vm._l(_vm.dedupeGenres(_vm.show.genres), function(\n genre\n ) {\n return _c(\n \"app-link\",\n {\n key: genre.toString(),\n attrs: {\n href:\n \"https://trakt.tv/shows/popular/?genres=\" +\n genre.toLowerCase().replace(\" \", \"-\"),\n title:\n \"View other popular \" +\n genre +\n \" shows on trakt.tv\"\n }\n },\n [_c(\"li\", [_vm._v(_vm._s(genre))])]\n )\n }),\n 1\n )\n : _c(\n \"ul\",\n { staticClass: \"tags\" },\n _vm._l(_vm.showGenres, function(genre) {\n return _c(\n \"app-link\",\n {\n key: genre.toString(),\n attrs: {\n href:\n \"https://www.imdb.com/search/title?count=100&title_type=tv_series&genres=\" +\n genre.toLowerCase().replace(\" \", \"-\"),\n title:\n \"View other popular \" +\n genre +\n \" shows on IMDB\"\n }\n },\n [_c(\"li\", [_vm._v(_vm._s(genre))])]\n )\n }),\n 1\n )\n ]\n )\n ]),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"row\" }, [\n _c(\n \"div\",\n { staticClass: \"col-md-12\", attrs: { id: \"summary\" } },\n [\n _c(\n \"div\",\n {\n class: [\n { summaryFanArt: _vm.config.fanartBackground },\n \"col-lg-9\",\n \"col-md-8\",\n \"col-sm-8\",\n \"col-xs-12\"\n ],\n attrs: { id: \"show-summary\" }\n },\n [\n _c(\n \"table\",\n { staticClass: \"summaryTable pull-left\" },\n [\n _vm.show.plot\n ? _c(\"tr\", [\n _c(\n \"td\",\n {\n staticStyle: { \"padding-bottom\": \"15px\" },\n attrs: { colspan: \"2\" }\n },\n [\n _c(\"truncate\", {\n attrs: {\n length: 250,\n clamp: \"show more...\",\n less: \"show less...\",\n text: _vm.show.plot\n },\n on: {\n toggle: function($event) {\n return _vm.$emit(\"reflow\")\n }\n }\n })\n ],\n 1\n )\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.getQualityPreset({\n value: _vm.combinedQualities\n }) !== undefined\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Quality:\")\n ]),\n _vm._v(\" \"),\n _c(\n \"td\",\n [\n _c(\"quality-pill\", {\n attrs: {\n quality: _vm.combinedQualities\n }\n })\n ],\n 1\n )\n ])\n : [\n _vm.combineQualities(\n _vm.show.config.qualities.allowed\n ) > 0\n ? _c(\"tr\", [\n _c(\n \"td\",\n { staticClass: \"showLegend\" },\n [_vm._v(\"Allowed Qualities:\")]\n ),\n _vm._v(\" \"),\n _c(\n \"td\",\n [\n _vm._l(\n _vm.show.config.qualities.allowed,\n function(curQuality, index) {\n return [\n _vm._v(\n _vm._s(\n index > 0 ? \", \" : \"\"\n )\n ),\n _c(\"quality-pill\", {\n key:\n \"allowed-\" + curQuality,\n attrs: {\n quality: curQuality\n }\n })\n ]\n }\n )\n ],\n 2\n )\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.combineQualities(\n _vm.show.config.qualities.preferred\n ) > 0\n ? _c(\"tr\", [\n _c(\n \"td\",\n { staticClass: \"showLegend\" },\n [_vm._v(\"Preferred Qualities:\")]\n ),\n _vm._v(\" \"),\n _c(\n \"td\",\n [\n _vm._l(\n _vm.show.config.qualities\n .preferred,\n function(curQuality, index) {\n return [\n _vm._v(\n _vm._s(\n index > 0 ? \", \" : \"\"\n )\n ),\n _c(\"quality-pill\", {\n key:\n \"preferred-\" + curQuality,\n attrs: {\n quality: curQuality\n }\n })\n ]\n }\n )\n ],\n 2\n )\n ])\n : _vm._e()\n ],\n _vm._v(\" \"),\n _vm.show.network && _vm.show.airs\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Originally Airs: \")\n ]),\n _c(\"td\", [\n _vm._v(_vm._s(_vm.show.airs)),\n !_vm.show.airsFormatValid\n ? _c(\n \"b\",\n { staticClass: \"invalid-value\" },\n [_vm._v(\" (invalid time format)\")]\n )\n : _vm._e(),\n _vm._v(\" on \" + _vm._s(_vm.show.network))\n ])\n ])\n : _vm.show.network\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Originally Airs: \")\n ]),\n _c(\"td\", [_vm._v(_vm._s(_vm.show.network))])\n ])\n : _vm.show.airs\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Originally Airs: \")\n ]),\n _c(\"td\", [\n _vm._v(_vm._s(_vm.show.airs)),\n !_vm.show.airsFormatValid\n ? _c(\n \"b\",\n { staticClass: \"invalid-value\" },\n [_vm._v(\" (invalid time format)\")]\n )\n : _vm._e()\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Show Status: \")\n ]),\n _c(\"td\", [_vm._v(_vm._s(_vm.show.status))])\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Default EP Status: \")\n ]),\n _c(\"td\", [\n _vm._v(\n _vm._s(_vm.show.config.defaultEpisodeStatus)\n )\n ])\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _c(\n \"span\",\n {\n class: {\n \"invalid-value\": !_vm.show.config\n .locationValid\n }\n },\n [_vm._v(\"Location: \")]\n )\n ]),\n _c(\"td\", [\n _c(\n \"span\",\n {\n class: {\n \"invalid-value\": !_vm.show.config\n .locationValid\n }\n },\n [_vm._v(_vm._s(_vm.show.config.location))]\n ),\n _vm._v(\n _vm._s(\n _vm.show.config.locationValid\n ? \"\"\n : \" (Missing)\"\n )\n )\n ])\n ]),\n _vm._v(\" \"),\n _vm.show.config.aliases.length > 0\n ? _c(\"tr\", [\n _c(\n \"td\",\n {\n staticClass: \"showLegend\",\n staticStyle: { \"vertical-align\": \"top\" }\n },\n [_vm._v(\"Scene Name:\")]\n ),\n _vm._v(\" \"),\n _c(\"td\", [\n _vm._v(\n _vm._s(_vm.show.config.aliases.join(\",\"))\n )\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.config.release.requiredWords.length > 0\n ? _c(\"tr\", [\n _c(\n \"td\",\n {\n staticClass: \"showLegend\",\n staticStyle: { \"vertical-align\": \"top\" }\n },\n [_vm._v(\"Required Words: \")]\n ),\n _vm._v(\" \"),\n _c(\"td\", [\n _c(\n \"span\",\n {\n staticClass: \"break-word\",\n class: {\n required:\n _vm.type === \"snatch-selection\"\n }\n },\n [\n _vm._v(\n _vm._s(\n _vm.show.config.release.requiredWords.join(\n \",\"\n )\n )\n )\n ]\n )\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.config.release.ignoredWords.length > 0\n ? _c(\"tr\", [\n _c(\n \"td\",\n {\n staticClass: \"showLegend\",\n staticStyle: { \"vertical-align\": \"top\" }\n },\n [_vm._v(\"Ignored Words: \")]\n ),\n _vm._v(\" \"),\n _c(\"td\", [\n _c(\n \"span\",\n {\n staticClass: \"break-word\",\n class: {\n ignored:\n _vm.type === \"snatch-selection\"\n }\n },\n [\n _vm._v(\n _vm._s(\n _vm.show.config.release.ignoredWords.join(\n \",\"\n )\n )\n )\n ]\n )\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.preferredWords.length > 0\n ? _c(\"tr\", [\n _c(\n \"td\",\n {\n staticClass: \"showLegend\",\n staticStyle: { \"vertical-align\": \"top\" }\n },\n [_vm._v(\"Preferred Words: \")]\n ),\n _vm._v(\" \"),\n _c(\"td\", [\n _c(\n \"span\",\n {\n staticClass: \"break-word\",\n class: {\n preferred:\n _vm.type === \"snatch-selection\"\n }\n },\n [\n _vm._v(\n _vm._s(_vm.preferredWords.join(\",\"))\n )\n ]\n )\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.undesiredWords.length > 0\n ? _c(\"tr\", [\n _c(\n \"td\",\n {\n staticClass: \"showLegend\",\n staticStyle: { \"vertical-align\": \"top\" }\n },\n [_vm._v(\"Undesired Words: \")]\n ),\n _vm._v(\" \"),\n _c(\"td\", [\n _c(\n \"span\",\n {\n staticClass: \"break-word\",\n class: {\n undesired:\n _vm.type === \"snatch-selection\"\n }\n },\n [\n _vm._v(\n _vm._s(_vm.undesiredWords.join(\",\"))\n )\n ]\n )\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.config.release.whitelist &&\n _vm.show.config.release.whitelist.length > 0\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Wanted Groups:\")\n ]),\n _vm._v(\" \"),\n _c(\"td\", [\n _vm._v(\n _vm._s(\n _vm.show.config.release.whitelist.join(\n \",\"\n )\n )\n )\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.config.release.blacklist &&\n _vm.show.config.release.blacklist.length > 0\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Unwanted Groups:\")\n ]),\n _vm._v(\" \"),\n _c(\"td\", [\n _vm._v(\n _vm._s(\n _vm.show.config.release.blacklist.join(\n \",\"\n )\n )\n )\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.config.airdateOffset !== 0\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Daily search offset:\")\n ]),\n _vm._v(\" \"),\n _c(\"td\", [\n _vm._v(\n _vm._s(_vm.show.config.airdateOffset) +\n \" hours\"\n )\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.config.locationValid && _vm.show.size > -1\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Size:\")\n ]),\n _vm._v(\" \"),\n _c(\"td\", [\n _vm._v(\n _vm._s(_vm.humanFileSize(_vm.show.size))\n )\n ])\n ])\n : _vm._e()\n ],\n 2\n )\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n staticClass:\n \"col-lg-3 col-md-4 col-sm-4 col-xs-12 pull-xs-left\",\n attrs: { id: \"show-status\" }\n },\n [\n _c(\n \"table\",\n {\n staticClass:\n \"pull-xs-left pull-md-right pull-sm-right pull-lg-right\"\n },\n [\n _vm.show.language\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Info Language:\")\n ]),\n _c(\"td\", [\n _c(\"img\", {\n attrs: {\n src:\n \"images/subtitles/flags/\" +\n _vm.getCountryISO2ToISO3(\n _vm.show.language\n ) +\n \".png\",\n width: \"16\",\n height: \"11\",\n alt: _vm.show.language,\n title: _vm.show.language,\n onError:\n \"this.onerror=null;this.src='images/flags/unknown.png';\"\n }\n })\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.config.subtitles.enabled\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Subtitles: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state:\n _vm.show.config.subtitlesEnabled\n }\n })\n ],\n 1\n )\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Season Folders: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state:\n _vm.show.config.seasonFolders ||\n _vm.config.namingForceFolders\n }\n })\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Paused: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state: _vm.show.config.paused\n }\n })\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Air-by-Date: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state: _vm.show.config.airByDate\n }\n })\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Sports: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state: _vm.show.config.sports\n }\n })\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Anime: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state: _vm.show.config.anime\n }\n })\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"DVD Order: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state: _vm.show.config.dvdOrder\n }\n })\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Scene Numbering: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state: _vm.show.config.scene\n }\n })\n ],\n 1\n )\n ])\n ]\n )\n ]\n )\n ]\n )\n ])\n ])\n ]\n )\n ]),\n _vm._v(\" \"),\n _vm.show\n ? _c(\n \"div\",\n { staticClass: \"row\", attrs: { id: \"row-show-episodes-controls\" } },\n [\n _c(\n \"div\",\n {\n staticClass: \"col-md-12\",\n attrs: { id: \"col-show-episodes-controls\" }\n },\n [\n _vm.type === \"show\"\n ? _c(\"div\", { staticClass: \"row key\" }, [\n _c(\n \"div\",\n {\n staticClass: \"col-lg-12\",\n attrs: { id: \"checkboxControls\" }\n },\n [\n _c(\n \"div\",\n {\n staticClass: \"pull-left top-5\",\n attrs: { id: \"key-padding\" }\n },\n [\n _vm.show.seasons\n ? [\n _c(\n \"label\",\n { attrs: { for: \"wanted\" } },\n [\n _c(\n \"span\",\n { staticClass: \"wanted\" },\n [\n _c(\"input\", {\n attrs: {\n type: \"checkbox\",\n id: \"wanted\",\n checked: \"checked\"\n },\n on: {\n input: function($event) {\n return _vm.showHideRows(\n \"wanted\"\n )\n }\n }\n }),\n _vm._v(\" Wanted: \"),\n _c(\"b\", [\n _vm._v(\n _vm._s(\n _vm.episodeSummary.Wanted\n )\n )\n ])\n ]\n )\n ]\n ),\n _vm._v(\" \"),\n _c(\"label\", { attrs: { for: \"qual\" } }, [\n _c(\"span\", { staticClass: \"qual\" }, [\n _c(\"input\", {\n attrs: {\n type: \"checkbox\",\n id: \"qual\",\n checked: \"checked\"\n },\n on: {\n input: function($event) {\n return _vm.showHideRows(\"qual\")\n }\n }\n }),\n _vm._v(\" Allowed: \"),\n _c(\"b\", [\n _vm._v(\n _vm._s(_vm.episodeSummary.Allowed)\n )\n ])\n ])\n ]),\n _vm._v(\" \"),\n _c(\"label\", { attrs: { for: \"good\" } }, [\n _c(\"span\", { staticClass: \"good\" }, [\n _c(\"input\", {\n attrs: {\n type: \"checkbox\",\n id: \"good\",\n checked: \"checked\"\n },\n on: {\n input: function($event) {\n return _vm.showHideRows(\"good\")\n }\n }\n }),\n _vm._v(\" Preferred: \"),\n _c(\"b\", [\n _vm._v(\n _vm._s(\n _vm.episodeSummary.Preferred\n )\n )\n ])\n ])\n ]),\n _vm._v(\" \"),\n _c(\n \"label\",\n { attrs: { for: \"skipped\" } },\n [\n _c(\n \"span\",\n { staticClass: \"skipped\" },\n [\n _c(\"input\", {\n attrs: {\n type: \"checkbox\",\n id: \"skipped\",\n checked: \"checked\"\n },\n on: {\n input: function($event) {\n return _vm.showHideRows(\n \"skipped\"\n )\n }\n }\n }),\n _vm._v(\" Skipped: \"),\n _c(\"b\", [\n _vm._v(\n _vm._s(\n _vm.episodeSummary.Skipped\n )\n )\n ])\n ]\n )\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"label\",\n { attrs: { for: \"snatched\" } },\n [\n _c(\n \"span\",\n { staticClass: \"snatched\" },\n [\n _c(\"input\", {\n attrs: {\n type: \"checkbox\",\n id: \"snatched\",\n checked: \"checked\"\n },\n on: {\n input: function($event) {\n return _vm.showHideRows(\n \"snatched\"\n )\n }\n }\n }),\n _vm._v(\" Snatched: \"),\n _c(\"b\", [\n _vm._v(\n _vm._s(\n _vm.episodeSummary\n .Snatched +\n _vm.episodeSummary[\n \"Snatched (Proper)\"\n ] +\n _vm.episodeSummary[\n \"Snatched (Best)\"\n ]\n )\n )\n ])\n ]\n )\n ]\n )\n ]\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"button\",\n {\n staticClass: \"btn-medusa seriesCheck\",\n on: { click: _vm.selectEpisodesClicked }\n },\n [_vm._v(\"Select Episodes\")]\n ),\n _vm._v(\" \"),\n _c(\n \"button\",\n {\n staticClass: \"btn-medusa clearAll\",\n on: {\n click: _vm.clearEpisodeSelectionClicked\n }\n },\n [_vm._v(\"Clear\")]\n )\n ],\n 2\n ),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"pull-lg-right top-5\" }, [\n _c(\n \"select\",\n {\n staticClass:\n \"form-control form-control-inline input-sm-custom input-sm-smallfont\",\n attrs: { id: \"statusSelect\" }\n },\n [\n _c(\"option\", { domProps: { value: null } }, [\n _vm._v(\"Change status to:\")\n ]),\n _vm._v(\" \"),\n _vm._l(_vm.changeStatusOptions, function(\n status\n ) {\n return _c(\n \"option\",\n {\n key: status.key,\n domProps: { value: status.value }\n },\n [\n _vm._v(\n \"\\n \" +\n _vm._s(status.name) +\n \"\\n \"\n )\n ]\n )\n })\n ],\n 2\n ),\n _vm._v(\" \"),\n _c(\n \"select\",\n {\n staticClass:\n \"form-control form-control-inline input-sm-custom input-sm-smallfont\",\n attrs: { id: \"qualitySelect\" }\n },\n [\n _c(\"option\", { domProps: { value: null } }, [\n _vm._v(\"Change quality to:\")\n ]),\n _vm._v(\" \"),\n _vm._l(_vm.qualities, function(quality) {\n return _c(\n \"option\",\n {\n key: quality.key,\n domProps: { value: quality.value }\n },\n [\n _vm._v(\n \"\\n \" +\n _vm._s(quality.name) +\n \"\\n \"\n )\n ]\n )\n })\n ],\n 2\n ),\n _vm._v(\" \"),\n _c(\"input\", {\n attrs: { type: \"hidden\", id: \"series-slug\" },\n domProps: { value: _vm.show.id.slug }\n }),\n _vm._v(\" \"),\n _c(\"input\", {\n attrs: { type: \"hidden\", id: \"series-id\" },\n domProps: {\n value: _vm.show.id[_vm.show.indexer]\n }\n }),\n _vm._v(\" \"),\n _c(\"input\", {\n attrs: { type: \"hidden\", id: \"indexer\" },\n domProps: { value: _vm.show.indexer }\n }),\n _vm._v(\" \"),\n _c(\"input\", {\n staticClass: \"btn-medusa\",\n attrs: {\n type: \"button\",\n id: \"changeStatus\",\n value: \"Go\"\n },\n on: { click: _vm.changeStatusClicked }\n })\n ])\n ]\n )\n ])\n : _c(\"div\")\n ]\n )\n ]\n )\n : _vm._e()\n ],\n 2\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/components/show-header.vue?./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\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 { staticClass: \"show-header-container\" },\n [\n _c(\"div\", { staticClass: \"row\" }, [\n _vm.show\n ? _c(\n \"div\",\n {\n staticClass: \"col-lg-12\",\n attrs: { id: \"showtitle\", \"data-showname\": _vm.show.title }\n },\n [\n _c(\"div\", [\n _c(\n \"h1\",\n {\n staticClass: \"title\",\n attrs: {\n \"data-indexer-name\": _vm.show.indexer,\n \"data-series-id\": _vm.show.id[_vm.show.indexer],\n id: \"scene_exception_\" + _vm.show.id[_vm.show.indexer]\n }\n },\n [\n _c(\n \"app-link\",\n {\n staticClass: \"snatchTitle\",\n attrs: {\n href:\n \"home/displayShow?indexername=\" +\n _vm.show.indexer +\n \"&seriesid=\" +\n _vm.show.id[_vm.show.indexer]\n }\n },\n [_vm._v(_vm._s(_vm.show.title))]\n )\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _vm.type === \"snatch-selection\"\n ? _c(\n \"div\",\n {\n staticClass: \"pull-right\",\n attrs: { id: \"show-specials-and-seasons\" }\n },\n [\n _c(\n \"span\",\n { staticClass: \"h2footer display-specials\" },\n [\n _vm._v(\"\\n Manual search for:\"),\n _c(\"br\"),\n _vm._v(\" \"),\n _c(\n \"app-link\",\n {\n staticClass: \"snatchTitle\",\n attrs: {\n href:\n \"home/displayShow?indexername=\" +\n _vm.show.indexer +\n \"&seriesid=\" +\n _vm.show.id[_vm.show.indexer]\n }\n },\n [_vm._v(_vm._s(_vm.show.title))]\n ),\n _vm._v(\" / Season \" + _vm._s(_vm.season)),\n _vm.episode !== undefined &&\n _vm.manualSearchType !== \"season\"\n ? [_vm._v(\" Episode \" + _vm._s(_vm.episode))]\n : _vm._e()\n ],\n 2\n )\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.type !== \"snatch-selection\" && _vm.seasons.length >= 1\n ? _c(\n \"div\",\n {\n staticClass: \"pull-right\",\n attrs: { id: \"show-specials-and-seasons\" }\n },\n [\n _vm.seasons.includes(0)\n ? _c(\n \"span\",\n { staticClass: \"h2footer display-specials\" },\n [\n _vm._v(\n \"\\n Display Specials: \"\n ),\n _c(\n \"a\",\n {\n staticClass: \"inner\",\n staticStyle: { cursor: \"pointer\" },\n on: {\n click: function($event) {\n return _vm.toggleSpecials()\n }\n }\n },\n [\n _vm._v(\n _vm._s(\n _vm.displaySpecials ? \"Hide\" : \"Show\"\n )\n )\n ]\n )\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"div\",\n { staticClass: \"h2footer display-seasons clear\" },\n [\n _c(\n \"span\",\n [\n _vm.seasons.length >= 15\n ? _c(\n \"select\",\n {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.jumpToSeason,\n expression: \"jumpToSeason\"\n }\n ],\n staticClass: \"form-control input-sm\",\n staticStyle: { position: \"relative\" },\n attrs: { id: \"seasonJump\" },\n on: {\n change: function($event) {\n var $$selectedVal = Array.prototype.filter\n .call(\n $event.target.options,\n function(o) {\n return o.selected\n }\n )\n .map(function(o) {\n var val =\n \"_value\" in o\n ? o._value\n : o.value\n return val\n })\n _vm.jumpToSeason = $event.target\n .multiple\n ? $$selectedVal\n : $$selectedVal[0]\n }\n }\n },\n [\n _c(\n \"option\",\n { attrs: { value: \"jump\" } },\n [_vm._v(\"Jump to Season\")]\n ),\n _vm._v(\" \"),\n _vm._l(_vm.seasons, function(\n seasonNumber\n ) {\n return _c(\n \"option\",\n {\n key:\n \"jumpToSeason-\" + seasonNumber,\n domProps: { value: seasonNumber }\n },\n [\n _vm._v(\n \"\\n \" +\n _vm._s(\n seasonNumber === 0\n ? \"Specials\"\n : \"Season \" + seasonNumber\n ) +\n \"\\n \"\n )\n ]\n )\n })\n ],\n 2\n )\n : _vm.seasons.length >= 1\n ? [\n _vm._v(\n \"\\n Season:\\n \"\n ),\n _vm._l(_vm.reverse(_vm.seasons), function(\n seasonNumber,\n index\n ) {\n return [\n _c(\n \"app-link\",\n {\n key:\n \"jumpToSeason-\" + seasonNumber,\n attrs: {\n href: \"#season-\" + seasonNumber\n },\n nativeOn: {\n click: function($event) {\n $event.preventDefault()\n _vm.jumpToSeason = seasonNumber\n }\n }\n },\n [\n _vm._v(\n \"\\n \" +\n _vm._s(\n seasonNumber === 0\n ? \"Specials\"\n : seasonNumber\n ) +\n \"\\n \"\n )\n ]\n ),\n _vm._v(\" \"),\n index !== _vm.seasons.length - 1\n ? _c(\n \"span\",\n {\n key: \"separator-\" + index,\n staticClass: \"separator\"\n },\n [_vm._v(\"| \")]\n )\n : _vm._e()\n ]\n })\n ]\n : _vm._e()\n ],\n 2\n )\n ]\n )\n ]\n )\n : _vm._e()\n ]\n )\n : _vm._e()\n ]),\n _vm._v(\" \"),\n _vm._l(_vm.activeShowQueueStatuses, function(queueItem) {\n return _c(\"div\", { key: queueItem.action, staticClass: \"row\" }, [\n _c(\"div\", { staticClass: \"alert alert-info\" }, [\n _vm._v(\"\\n \" + _vm._s(queueItem.message) + \"\\n \")\n ])\n ])\n }),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"row\", attrs: { id: \"row-show-summary\" } }, [\n _c(\n \"div\",\n { staticClass: \"col-md-12\", attrs: { id: \"col-show-summary\" } },\n [\n _c(\"div\", { staticClass: \"show-poster-container\" }, [\n _c(\"div\", { staticClass: \"row\" }, [\n _c(\n \"div\",\n { staticClass: \"image-flex-container col-md-12\" },\n [\n _c(\"asset\", {\n attrs: {\n default: \"images/poster.png\",\n \"show-slug\": _vm.show.id.slug,\n type: \"posterThumb\",\n cls: \"show-image shadow\",\n link: true\n }\n })\n ],\n 1\n )\n ])\n ]),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"ver-spacer\" }),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"show-info-container\" }, [\n _c(\"div\", { staticClass: \"row\" }, [\n _c(\n \"div\",\n {\n staticClass:\n \"pull-right col-lg-3 col-md-3 hidden-sm hidden-xs\"\n },\n [\n _c(\"asset\", {\n attrs: {\n default: \"images/banner.png\",\n \"show-slug\": _vm.show.id.slug,\n type: \"banner\",\n cls: \"show-banner pull-right shadow\",\n link: true\n }\n })\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n staticClass:\n \"pull-left col-lg-9 col-md-9 col-sm-12 col-xs-12\",\n attrs: { id: \"show-rating\" }\n },\n [\n _vm.show.rating.imdb && _vm.show.rating.imdb.rating\n ? _c(\n \"span\",\n {\n staticClass: \"imdbstars\",\n attrs: {\n \"qtip-content\":\n _vm.show.rating.imdb.rating +\n \" / 10 Stars
\" +\n _vm.show.rating.imdb.votes +\n \" Votes\"\n }\n },\n [\n _c(\"span\", {\n style: {\n width:\n Number(_vm.show.rating.imdb.rating) * 12 + \"%\"\n }\n })\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n !_vm.show.id.imdb\n ? [\n _vm.show.year.start\n ? _c(\"span\", [\n _vm._v(\n \"(\" +\n _vm._s(_vm.show.year.start) +\n \") - \" +\n _vm._s(_vm.show.runtime) +\n \" minutes - \"\n )\n ])\n : _vm._e()\n ]\n : [\n _vm._l(_vm.show.countryCodes, function(country) {\n return _c(\"img\", {\n key: \"flag-\" + country,\n class: [\"country-flag\", \"flag-\" + country],\n staticStyle: {\n \"margin-left\": \"3px\",\n \"vertical-align\": \"middle\"\n },\n attrs: {\n src: \"images/blank.png\",\n width: \"16\",\n height: \"11\"\n }\n })\n }),\n _vm._v(\" \"),\n _vm.show.imdbInfo.year\n ? _c(\"span\", [\n _vm._v(\n \"\\n (\" +\n _vm._s(_vm.show.imdbInfo.year) +\n \") -\\n \"\n )\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _c(\"span\", [\n _vm._v(\n \"\\n \" +\n _vm._s(\n _vm.show.imdbInfo.runtimes || _vm.show.runtime\n ) +\n \" minutes\\n \"\n )\n ]),\n _vm._v(\" \"),\n _c(\n \"app-link\",\n {\n attrs: {\n href:\n \"https://www.imdb.com/title/\" +\n _vm.show.id.imdb,\n title:\n \"https://www.imdb.com/title/\" +\n _vm.show.id.imdb\n }\n },\n [\n _c(\"img\", {\n staticStyle: {\n \"margin-top\": \"-1px\",\n \"vertical-align\": \"middle\"\n },\n attrs: {\n alt: \"[imdb]\",\n height: \"16\",\n width: \"16\",\n src: \"images/imdb.png\"\n }\n })\n ]\n )\n ],\n _vm._v(\" \"),\n _vm.show.id.trakt\n ? _c(\n \"app-link\",\n {\n attrs: {\n href:\n \"https://trakt.tv/shows/\" + _vm.show.id.trakt,\n title:\n \"https://trakt.tv/shows/\" + _vm.show.id.trakt\n }\n },\n [\n _c(\"img\", {\n attrs: {\n alt: \"[trakt]\",\n height: \"16\",\n width: \"16\",\n src: \"images/trakt.png\"\n }\n })\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.showIndexerUrl &&\n _vm.indexerConfig[_vm.show.indexer].icon\n ? _c(\n \"app-link\",\n {\n attrs: {\n href: _vm.showIndexerUrl,\n title: _vm.showIndexerUrl\n }\n },\n [\n _c(\"img\", {\n staticStyle: {\n \"margin-top\": \"-1px\",\n \"vertical-align\": \"middle\"\n },\n attrs: {\n alt: _vm.indexerConfig[_vm.show.indexer].name,\n height: \"16\",\n width: \"16\",\n src:\n \"images/\" +\n _vm.indexerConfig[_vm.show.indexer].icon\n }\n })\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.xemNumbering && _vm.show.xemNumbering.length > 0\n ? _c(\n \"app-link\",\n {\n attrs: {\n href:\n \"http://thexem.de/search?q=\" + _vm.show.title,\n title:\n \"http://thexem.de/search?q=\" + _vm.show.title\n }\n },\n [\n _c(\"img\", {\n staticStyle: {\n \"margin-top\": \"-1px\",\n \"vertical-align\": \"middle\"\n },\n attrs: {\n alt: \"[xem]\",\n height: \"16\",\n width: \"16\",\n src: \"images/xem.png\"\n }\n })\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.id.tvdb\n ? _c(\n \"app-link\",\n {\n attrs: {\n href:\n \"https://fanart.tv/series/\" + _vm.show.id.tvdb,\n title:\n \"https://fanart.tv/series/\" +\n _vm.show.id[_vm.show.indexer]\n }\n },\n [\n _c(\"img\", {\n staticClass: \"fanart\",\n attrs: {\n alt: \"[fanart.tv]\",\n height: \"16\",\n width: \"16\",\n src: \"images/fanart.tv.png\"\n }\n })\n ]\n )\n : _vm._e()\n ],\n 2\n ),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n staticClass:\n \"pull-left col-lg-9 col-md-9 col-sm-12 col-xs-12\",\n attrs: { id: \"tags\" }\n },\n [\n _vm.show.genres\n ? _c(\n \"ul\",\n { staticClass: \"tags\" },\n _vm._l(_vm.dedupeGenres(_vm.show.genres), function(\n genre\n ) {\n return _c(\n \"app-link\",\n {\n key: genre.toString(),\n attrs: {\n href:\n \"https://trakt.tv/shows/popular/?genres=\" +\n genre.toLowerCase().replace(\" \", \"-\"),\n title:\n \"View other popular \" +\n genre +\n \" shows on trakt.tv\"\n }\n },\n [_c(\"li\", [_vm._v(_vm._s(genre))])]\n )\n }),\n 1\n )\n : _c(\n \"ul\",\n { staticClass: \"tags\" },\n _vm._l(_vm.showGenres, function(genre) {\n return _c(\n \"app-link\",\n {\n key: genre.toString(),\n attrs: {\n href:\n \"https://www.imdb.com/search/title?count=100&title_type=tv_series&genres=\" +\n genre.toLowerCase().replace(\" \", \"-\"),\n title:\n \"View other popular \" +\n genre +\n \" shows on IMDB\"\n }\n },\n [_c(\"li\", [_vm._v(_vm._s(genre))])]\n )\n }),\n 1\n )\n ]\n )\n ]),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"row\" }, [\n _c(\n \"div\",\n { staticClass: \"col-md-12\", attrs: { id: \"summary\" } },\n [\n _c(\n \"div\",\n {\n class: [\n { summaryFanArt: _vm.config.fanartBackground },\n \"col-lg-9\",\n \"col-md-8\",\n \"col-sm-8\",\n \"col-xs-12\"\n ],\n attrs: { id: \"show-summary\" }\n },\n [\n _c(\n \"table\",\n { staticClass: \"summaryTable pull-left\" },\n [\n _vm.show.plot\n ? _c(\"tr\", [\n _c(\n \"td\",\n {\n staticStyle: { \"padding-bottom\": \"15px\" },\n attrs: { colspan: \"2\" }\n },\n [\n _c(\"truncate\", {\n attrs: {\n length: 250,\n clamp: \"show more...\",\n less: \"show less...\",\n text: _vm.show.plot\n },\n on: {\n toggle: function($event) {\n return _vm.$emit(\"reflow\")\n }\n }\n })\n ],\n 1\n )\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.getQualityPreset({\n value: _vm.combinedQualities\n }) !== undefined\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Quality:\")\n ]),\n _vm._v(\" \"),\n _c(\n \"td\",\n [\n _c(\"quality-pill\", {\n attrs: {\n quality: _vm.combinedQualities\n }\n })\n ],\n 1\n )\n ])\n : [\n _vm.combineQualities(\n _vm.show.config.qualities.allowed\n ) > 0\n ? _c(\"tr\", [\n _c(\n \"td\",\n { staticClass: \"showLegend\" },\n [_vm._v(\"Allowed Qualities:\")]\n ),\n _vm._v(\" \"),\n _c(\n \"td\",\n [\n _vm._l(\n _vm.show.config.qualities.allowed,\n function(curQuality, index) {\n return [\n _vm._v(\n _vm._s(\n index > 0 ? \", \" : \"\"\n )\n ),\n _c(\"quality-pill\", {\n key:\n \"allowed-\" + curQuality,\n attrs: {\n quality: curQuality\n }\n })\n ]\n }\n )\n ],\n 2\n )\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.combineQualities(\n _vm.show.config.qualities.preferred\n ) > 0\n ? _c(\"tr\", [\n _c(\n \"td\",\n { staticClass: \"showLegend\" },\n [_vm._v(\"Preferred Qualities:\")]\n ),\n _vm._v(\" \"),\n _c(\n \"td\",\n [\n _vm._l(\n _vm.show.config.qualities\n .preferred,\n function(curQuality, index) {\n return [\n _vm._v(\n _vm._s(\n index > 0 ? \", \" : \"\"\n )\n ),\n _c(\"quality-pill\", {\n key:\n \"preferred-\" + curQuality,\n attrs: {\n quality: curQuality\n }\n })\n ]\n }\n )\n ],\n 2\n )\n ])\n : _vm._e()\n ],\n _vm._v(\" \"),\n _vm.show.network && _vm.show.airs\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Originally Airs: \")\n ]),\n _c(\"td\", [\n _vm._v(_vm._s(_vm.show.airs)),\n !_vm.show.airsFormatValid\n ? _c(\n \"b\",\n { staticClass: \"invalid-value\" },\n [_vm._v(\" (invalid time format)\")]\n )\n : _vm._e(),\n _vm._v(\" on \" + _vm._s(_vm.show.network))\n ])\n ])\n : _vm.show.network\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Originally Airs: \")\n ]),\n _c(\"td\", [_vm._v(_vm._s(_vm.show.network))])\n ])\n : _vm.show.airs\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Originally Airs: \")\n ]),\n _c(\"td\", [\n _vm._v(_vm._s(_vm.show.airs)),\n !_vm.show.airsFormatValid\n ? _c(\n \"b\",\n { staticClass: \"invalid-value\" },\n [_vm._v(\" (invalid time format)\")]\n )\n : _vm._e()\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Show Status: \")\n ]),\n _c(\"td\", [_vm._v(_vm._s(_vm.show.status))])\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Default EP Status: \")\n ]),\n _c(\"td\", [\n _vm._v(\n _vm._s(_vm.show.config.defaultEpisodeStatus)\n )\n ])\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _c(\n \"span\",\n {\n class: {\n \"invalid-value\": !_vm.show.config\n .locationValid\n }\n },\n [_vm._v(\"Location: \")]\n )\n ]),\n _c(\"td\", [\n _c(\n \"span\",\n {\n class: {\n \"invalid-value\": !_vm.show.config\n .locationValid\n }\n },\n [_vm._v(_vm._s(_vm.show.config.location))]\n ),\n _vm._v(\n _vm._s(\n _vm.show.config.locationValid\n ? \"\"\n : \" (Missing)\"\n )\n )\n ])\n ]),\n _vm._v(\" \"),\n _vm.show.config.aliases.length > 0\n ? _c(\"tr\", [\n _c(\n \"td\",\n {\n staticClass: \"showLegend\",\n staticStyle: { \"vertical-align\": \"top\" }\n },\n [_vm._v(\"Scene Name:\")]\n ),\n _vm._v(\" \"),\n _c(\"td\", [\n _vm._v(\n _vm._s(_vm.show.config.aliases.join(\", \"))\n )\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.config.release.requiredWords.length +\n _vm.search.filters.required.length >\n 0\n ? _c(\"tr\", [\n _c(\n \"td\",\n {\n staticClass: \"showLegend\",\n staticStyle: { \"vertical-align\": \"top\" }\n },\n [\n _c(\n \"span\",\n {\n class: {\n required:\n _vm.type === \"snatch-selection\"\n }\n },\n [_vm._v(\"Required Words: \")]\n )\n ]\n ),\n _vm._v(\" \"),\n _c(\"td\", [\n _vm.show.config.release.requiredWords.length\n ? _c(\n \"span\",\n { staticClass: \"break-word\" },\n [\n _vm._v(\n \"\\n \" +\n _vm._s(\n _vm.show.config.release.requiredWords.join(\n \", \"\n )\n ) +\n \"\\n \"\n )\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.search.filters.required.length > 0\n ? _c(\n \"span\",\n {\n staticClass:\n \"break-word global-filter\"\n },\n [\n _c(\n \"app-link\",\n {\n attrs: {\n href:\n \"config/search/#searchfilters\"\n }\n },\n [\n _vm.show.config.release\n .requiredWords.length > 0\n ? [\n _vm.show.config.release\n .requiredWordsExclude\n ? _c(\"span\", [\n _vm._v(\n \" excluded from: \"\n )\n ])\n : _c(\"span\", [\n _vm._v(\"+ \")\n ])\n ]\n : _vm._e(),\n _vm._v(\n \"\\n \" +\n _vm._s(\n _vm.search.filters.required.join(\n \", \"\n )\n ) +\n \"\\n \"\n )\n ],\n 2\n )\n ],\n 1\n )\n : _vm._e()\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.config.release.ignoredWords.length +\n _vm.search.filters.ignored.length >\n 0\n ? _c(\"tr\", [\n _c(\n \"td\",\n {\n staticClass: \"showLegend\",\n staticStyle: { \"vertical-align\": \"top\" }\n },\n [\n _c(\n \"span\",\n {\n class: {\n ignored:\n _vm.type === \"snatch-selection\"\n }\n },\n [_vm._v(\"Ignored Words: \")]\n )\n ]\n ),\n _vm._v(\" \"),\n _c(\"td\", [\n _vm.show.config.release.ignoredWords.length\n ? _c(\n \"span\",\n { staticClass: \"break-word\" },\n [\n _vm._v(\n \"\\n \" +\n _vm._s(\n _vm.show.config.release.ignoredWords.join(\n \", \"\n )\n ) +\n \"\\n \"\n )\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.search.filters.ignored.length > 0\n ? _c(\n \"span\",\n {\n staticClass:\n \"break-word global-filter\"\n },\n [\n _c(\n \"app-link\",\n {\n attrs: {\n href:\n \"config/search/#searchfilters\"\n }\n },\n [\n _vm.show.config.release\n .ignoredWords.length > 0\n ? [\n _vm.show.config.release\n .ignoredWordsExclude\n ? _c(\"span\", [\n _vm._v(\n \" excluded from: \"\n )\n ])\n : _c(\"span\", [\n _vm._v(\"+ \")\n ])\n ]\n : _vm._e(),\n _vm._v(\n \"\\n \" +\n _vm._s(\n _vm.search.filters.ignored.join(\n \", \"\n )\n ) +\n \"\\n \"\n )\n ],\n 2\n )\n ],\n 1\n )\n : _vm._e()\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.search.filters.preferred.length > 0\n ? _c(\"tr\", [\n _c(\n \"td\",\n {\n staticClass: \"showLegend\",\n staticStyle: { \"vertical-align\": \"top\" }\n },\n [\n _c(\n \"span\",\n {\n class: {\n preferred:\n _vm.type === \"snatch-selection\"\n }\n },\n [_vm._v(\"Preferred Words: \")]\n )\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"td\",\n [\n _c(\n \"app-link\",\n {\n attrs: {\n href: \"config/search/#searchfilters\"\n }\n },\n [\n _c(\n \"span\",\n { staticClass: \"break-word\" },\n [\n _vm._v(\n _vm._s(\n _vm.search.filters.preferred.join(\n \", \"\n )\n )\n )\n ]\n )\n ]\n )\n ],\n 1\n )\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.search.filters.undesired.length > 0\n ? _c(\"tr\", [\n _c(\n \"td\",\n {\n staticClass: \"showLegend\",\n staticStyle: { \"vertical-align\": \"top\" }\n },\n [\n _c(\n \"span\",\n {\n class: {\n undesired:\n _vm.type === \"snatch-selection\"\n }\n },\n [_vm._v(\"Undesired Words: \")]\n )\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"td\",\n [\n _c(\n \"app-link\",\n {\n attrs: {\n href: \"config/search/#searchfilters\"\n }\n },\n [\n _c(\n \"span\",\n { staticClass: \"break-word\" },\n [\n _vm._v(\n _vm._s(\n _vm.search.filters.undesired.join(\n \", \"\n )\n )\n )\n ]\n )\n ]\n )\n ],\n 1\n )\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.config.release.whitelist &&\n _vm.show.config.release.whitelist.length > 0\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Wanted Groups:\")\n ]),\n _vm._v(\" \"),\n _c(\"td\", [\n _vm._v(\n _vm._s(\n _vm.show.config.release.whitelist.join(\n \", \"\n )\n )\n )\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.config.release.blacklist &&\n _vm.show.config.release.blacklist.length > 0\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Unwanted Groups:\")\n ]),\n _vm._v(\" \"),\n _c(\"td\", [\n _vm._v(\n _vm._s(\n _vm.show.config.release.blacklist.join(\n \", \"\n )\n )\n )\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.config.airdateOffset !== 0\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Daily search offset:\")\n ]),\n _vm._v(\" \"),\n _c(\"td\", [\n _vm._v(\n _vm._s(_vm.show.config.airdateOffset) +\n \" hours\"\n )\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.config.locationValid && _vm.show.size > -1\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Size:\")\n ]),\n _vm._v(\" \"),\n _c(\"td\", [\n _vm._v(\n _vm._s(_vm.humanFileSize(_vm.show.size))\n )\n ])\n ])\n : _vm._e()\n ],\n 2\n )\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n staticClass:\n \"col-lg-3 col-md-4 col-sm-4 col-xs-12 pull-xs-left\",\n attrs: { id: \"show-status\" }\n },\n [\n _c(\n \"table\",\n {\n staticClass:\n \"pull-xs-left pull-md-right pull-sm-right pull-lg-right\"\n },\n [\n _vm.show.language\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Info Language:\")\n ]),\n _c(\"td\", [\n _c(\"img\", {\n attrs: {\n src:\n \"images/subtitles/flags/\" +\n _vm.getCountryISO2ToISO3(\n _vm.show.language\n ) +\n \".png\",\n width: \"16\",\n height: \"11\",\n alt: _vm.show.language,\n title: _vm.show.language,\n onError:\n \"this.onerror=null;this.src='images/flags/unknown.png';\"\n }\n })\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.config.subtitles.enabled\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Subtitles: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state:\n _vm.show.config.subtitlesEnabled\n }\n })\n ],\n 1\n )\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Season Folders: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state:\n _vm.show.config.seasonFolders ||\n _vm.config.namingForceFolders\n }\n })\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Paused: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state: _vm.show.config.paused\n }\n })\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Air-by-Date: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state: _vm.show.config.airByDate\n }\n })\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Sports: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state: _vm.show.config.sports\n }\n })\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Anime: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state: _vm.show.config.anime\n }\n })\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"DVD Order: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state: _vm.show.config.dvdOrder\n }\n })\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Scene Numbering: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state: _vm.show.config.scene\n }\n })\n ],\n 1\n )\n ])\n ]\n )\n ]\n )\n ]\n )\n ])\n ])\n ]\n )\n ]),\n _vm._v(\" \"),\n _vm.show\n ? _c(\n \"div\",\n { staticClass: \"row\", attrs: { id: \"row-show-episodes-controls\" } },\n [\n _c(\n \"div\",\n {\n staticClass: \"col-md-12\",\n attrs: { id: \"col-show-episodes-controls\" }\n },\n [\n _vm.type === \"show\"\n ? _c(\"div\", { staticClass: \"row key\" }, [\n _c(\n \"div\",\n {\n staticClass: \"col-lg-12\",\n attrs: { id: \"checkboxControls\" }\n },\n [\n _c(\n \"div\",\n {\n staticClass: \"pull-left top-5\",\n attrs: { id: \"key-padding\" }\n },\n [\n _vm.show.seasons\n ? [\n _c(\n \"label\",\n { attrs: { for: \"wanted\" } },\n [\n _c(\n \"span\",\n { staticClass: \"wanted\" },\n [\n _c(\"input\", {\n attrs: {\n type: \"checkbox\",\n id: \"wanted\",\n checked: \"checked\"\n },\n on: {\n input: function($event) {\n return _vm.showHideRows(\n \"wanted\"\n )\n }\n }\n }),\n _vm._v(\" Wanted: \"),\n _c(\"b\", [\n _vm._v(\n _vm._s(\n _vm.episodeSummary.Wanted\n )\n )\n ])\n ]\n )\n ]\n ),\n _vm._v(\" \"),\n _c(\"label\", { attrs: { for: \"qual\" } }, [\n _c(\"span\", { staticClass: \"qual\" }, [\n _c(\"input\", {\n attrs: {\n type: \"checkbox\",\n id: \"qual\",\n checked: \"checked\"\n },\n on: {\n input: function($event) {\n return _vm.showHideRows(\"qual\")\n }\n }\n }),\n _vm._v(\" Allowed: \"),\n _c(\"b\", [\n _vm._v(\n _vm._s(_vm.episodeSummary.Allowed)\n )\n ])\n ])\n ]),\n _vm._v(\" \"),\n _c(\"label\", { attrs: { for: \"good\" } }, [\n _c(\"span\", { staticClass: \"good\" }, [\n _c(\"input\", {\n attrs: {\n type: \"checkbox\",\n id: \"good\",\n checked: \"checked\"\n },\n on: {\n input: function($event) {\n return _vm.showHideRows(\"good\")\n }\n }\n }),\n _vm._v(\" Preferred: \"),\n _c(\"b\", [\n _vm._v(\n _vm._s(\n _vm.episodeSummary.Preferred\n )\n )\n ])\n ])\n ]),\n _vm._v(\" \"),\n _c(\n \"label\",\n { attrs: { for: \"skipped\" } },\n [\n _c(\n \"span\",\n { staticClass: \"skipped\" },\n [\n _c(\"input\", {\n attrs: {\n type: \"checkbox\",\n id: \"skipped\",\n checked: \"checked\"\n },\n on: {\n input: function($event) {\n return _vm.showHideRows(\n \"skipped\"\n )\n }\n }\n }),\n _vm._v(\" Skipped: \"),\n _c(\"b\", [\n _vm._v(\n _vm._s(\n _vm.episodeSummary.Skipped\n )\n )\n ])\n ]\n )\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"label\",\n { attrs: { for: \"snatched\" } },\n [\n _c(\n \"span\",\n { staticClass: \"snatched\" },\n [\n _c(\"input\", {\n attrs: {\n type: \"checkbox\",\n id: \"snatched\",\n checked: \"checked\"\n },\n on: {\n input: function($event) {\n return _vm.showHideRows(\n \"snatched\"\n )\n }\n }\n }),\n _vm._v(\" Snatched: \"),\n _c(\"b\", [\n _vm._v(\n _vm._s(\n _vm.episodeSummary\n .Snatched +\n _vm.episodeSummary[\n \"Snatched (Proper)\"\n ] +\n _vm.episodeSummary[\n \"Snatched (Best)\"\n ]\n )\n )\n ])\n ]\n )\n ]\n )\n ]\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"button\",\n {\n staticClass: \"btn-medusa seriesCheck\",\n on: { click: _vm.selectEpisodesClicked }\n },\n [_vm._v(\"Select Episodes\")]\n ),\n _vm._v(\" \"),\n _c(\n \"button\",\n {\n staticClass: \"btn-medusa clearAll\",\n on: {\n click: _vm.clearEpisodeSelectionClicked\n }\n },\n [_vm._v(\"Clear\")]\n )\n ],\n 2\n ),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"pull-lg-right top-5\" }, [\n _c(\n \"select\",\n {\n staticClass:\n \"form-control form-control-inline input-sm-custom input-sm-smallfont\",\n attrs: { id: \"statusSelect\" }\n },\n [\n _c(\"option\", { domProps: { value: null } }, [\n _vm._v(\"Change status to:\")\n ]),\n _vm._v(\" \"),\n _vm._l(_vm.changeStatusOptions, function(\n status\n ) {\n return _c(\n \"option\",\n {\n key: status.key,\n domProps: { value: status.value }\n },\n [\n _vm._v(\n \"\\n \" +\n _vm._s(status.name) +\n \"\\n \"\n )\n ]\n )\n })\n ],\n 2\n ),\n _vm._v(\" \"),\n _c(\n \"select\",\n {\n staticClass:\n \"form-control form-control-inline input-sm-custom input-sm-smallfont\",\n attrs: { id: \"qualitySelect\" }\n },\n [\n _c(\"option\", { domProps: { value: null } }, [\n _vm._v(\"Change quality to:\")\n ]),\n _vm._v(\" \"),\n _vm._l(_vm.qualities, function(quality) {\n return _c(\n \"option\",\n {\n key: quality.key,\n domProps: { value: quality.value }\n },\n [\n _vm._v(\n \"\\n \" +\n _vm._s(quality.name) +\n \"\\n \"\n )\n ]\n )\n })\n ],\n 2\n ),\n _vm._v(\" \"),\n _c(\"input\", {\n attrs: { type: \"hidden\", id: \"series-slug\" },\n domProps: { value: _vm.show.id.slug }\n }),\n _vm._v(\" \"),\n _c(\"input\", {\n attrs: { type: \"hidden\", id: \"series-id\" },\n domProps: {\n value: _vm.show.id[_vm.show.indexer]\n }\n }),\n _vm._v(\" \"),\n _c(\"input\", {\n attrs: { type: \"hidden\", id: \"indexer\" },\n domProps: { value: _vm.show.indexer }\n }),\n _vm._v(\" \"),\n _c(\"input\", {\n staticClass: \"btn-medusa\",\n attrs: {\n type: \"button\",\n id: \"changeStatus\",\n value: \"Go\"\n },\n on: { click: _vm.changeStatusClicked }\n })\n ])\n ]\n )\n ])\n : _c(\"div\")\n ]\n )\n ]\n )\n : _vm._e()\n ],\n 2\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/components/show-header.vue?./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options"); /***/ }), diff --git a/themes/dark/templates/config_search.mako b/themes/dark/templates/config_search.mako index 168a647b0a..70fdec339a 100644 --- a/themes/dark/templates/config_search.mako +++ b/themes/dark/templates/config_search.mako @@ -520,7 +520,7 @@ window.app = new Vue({
-

Search Filters

+

Search Filters

Options to filter search results

diff --git a/themes/light/assets/js/medusa-runtime.js b/themes/light/assets/js/medusa-runtime.js index b49fa59ba8..6f299c9df5 100644 --- a/themes/light/assets/js/medusa-runtime.js +++ b/themes/light/assets/js/medusa-runtime.js @@ -404,7 +404,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(f /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function($) {/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var vue_truncate_collapsed__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue-truncate-collapsed */ \"./node_modules/vue-truncate-collapsed/dist/vue-truncate-collapsed.es.js\");\n/* harmony import */ var country_language__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! country-language */ \"./node_modules/country-language/index.js\");\n/* harmony import */ var country_language__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(country_language__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var is_visible__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! is-visible */ \"./node_modules/is-visible/module/index.js\");\n/* harmony import */ var vue_scrollto__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue-scrollto */ \"./node_modules/vue-scrollto/vue-scrollto.js\");\n/* harmony import */ var vue_scrollto__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(vue_scrollto__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _api__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../api */ \"./src/api.js\");\n/* harmony import */ var _utils_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/core */ \"./src/utils/core.js\");\n/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./helpers */ \"./src/components/helpers/index.js\");\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\n\n/**\n * Return the first item of `values` that is not `null`, `undefined` or `NaN`.\n * @param {...any} values - Values to check.\n * @returns {any} - The first item that fits the criteria, `undefined` otherwise.\n */\n\nconst resolveToValue = (...values) => {\n return values.find(value => {\n return !Number.isNaN(value) && value !== null && value !== undefined;\n });\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'show-header',\n components: {\n AppLink: _helpers__WEBPACK_IMPORTED_MODULE_8__[\"AppLink\"],\n Asset: _helpers__WEBPACK_IMPORTED_MODULE_8__[\"Asset\"],\n QualityPill: _helpers__WEBPACK_IMPORTED_MODULE_8__[\"QualityPill\"],\n StateSwitch: _helpers__WEBPACK_IMPORTED_MODULE_8__[\"StateSwitch\"],\n Truncate: vue_truncate_collapsed__WEBPACK_IMPORTED_MODULE_1__[\"default\"]\n },\n props: {\n /**\n * Page type: show or snatch-selection\n */\n type: {\n type: String,\n default: 'show',\n validator: value => ['show', 'snatch-selection'].includes(value)\n },\n\n /**\n * Show indexer\n */\n showIndexer: {\n type: String\n },\n\n /**\n * Show id\n */\n showId: {\n type: Number\n },\n\n /**\n * Season\n */\n showSeason: {\n type: Number\n },\n\n /**\n * Episode\n */\n showEpisode: {\n type: Number\n },\n\n /**\n * Manual Search Type (snatch-selection)\n */\n manualSearchType: {\n type: String\n }\n },\n\n data() {\n return {\n jumpToSeason: 'jump'\n };\n },\n\n computed: _objectSpread({}, Object(vuex__WEBPACK_IMPORTED_MODULE_5__[\"mapState\"])({\n config: state => state.config,\n shows: state => state.shows.shows,\n indexerConfig: state => state.config.indexers.config.indexers,\n failedDownloads: state => state.config.failedDownloads,\n displaySpecials: state => state.config.layout.show.specials,\n qualities: state => state.consts.qualities.values,\n statuses: state => state.consts.statuses,\n search: state => state.search\n }), {}, Object(vuex__WEBPACK_IMPORTED_MODULE_5__[\"mapGetters\"])({\n show: 'getCurrentShow',\n getQualityPreset: 'getQualityPreset',\n getStatus: 'getStatus'\n }), {\n indexer() {\n return this.showIndexer || this.$route.query.indexername;\n },\n\n id() {\n return this.showId || Number(this.$route.query.seriesid) || undefined;\n },\n\n season() {\n return resolveToValue(this.showSeason, Number(this.$route.query.season));\n },\n\n episode() {\n return resolveToValue(this.showEpisode, Number(this.$route.query.episode));\n },\n\n showIndexerUrl() {\n const {\n show,\n indexerConfig\n } = this;\n\n if (!show.indexer) {\n return;\n }\n\n const id = show.id[show.indexer];\n const indexerUrl = indexerConfig[show.indexer].showUrl;\n return \"\".concat(indexerUrl).concat(id);\n },\n\n activeShowQueueStatuses() {\n const {\n showQueueStatus\n } = this.show;\n\n if (!showQueueStatus) {\n return [];\n }\n\n return showQueueStatus.filter(status => status.active === true);\n },\n\n showGenres() {\n const {\n show,\n dedupeGenres\n } = this;\n const {\n imdbInfo\n } = show;\n const {\n genres\n } = imdbInfo;\n let result = [];\n\n if (genres) {\n result = dedupeGenres(genres.split('|'));\n }\n\n return result;\n },\n\n preferredWords() {\n const {\n preferred\n } = this.search.filters;\n\n if (preferred.length > 0) {\n return preferred;\n }\n\n return [];\n },\n\n undesiredWords() {\n const {\n undesired\n } = this.search.filters;\n\n if (undesired.length > 0) {\n return undesired;\n }\n\n return [];\n },\n\n episodeSummary() {\n const {\n show\n } = this;\n const {\n seasons\n } = show;\n const summary = {\n Skipped: 0,\n Wanted: 0,\n Allowed: 0,\n Preferred: 0,\n Unaired: 0,\n Snatched: 0,\n 'Snatched (Proper)': 0,\n 'Snatched (Best)': 0,\n Unset: 0,\n Archived: 0\n };\n seasons.forEach(season => {\n season.episodes.forEach(episode => {\n // FIXME: with the overview status.\n summary[episode.status] += 1;\n });\n });\n return summary;\n },\n\n changeStatusOptions() {\n const {\n failedDownloads,\n getStatus,\n statuses\n } = this;\n\n if (statuses.length === 0) {\n return [];\n } // Get status objects, in this order\n\n\n const defaultOptions = ['wanted', 'skipped', 'ignored', 'downloaded', 'archived'].map(key => getStatus({\n key\n }));\n\n if (failedDownloads.enabled) {\n defaultOptions.push(getStatus({\n key: 'failed'\n }));\n }\n\n return defaultOptions;\n },\n\n combinedQualities() {\n const {\n allowed,\n preferred\n } = this.show.config.qualities;\n return Object(_utils_core__WEBPACK_IMPORTED_MODULE_7__[\"combineQualities\"])(allowed, preferred);\n },\n\n seasons() {\n const {\n show\n } = this; // Only return an array with seasons (integers)\n\n return show.seasonCount.map(season => season.season);\n }\n\n }),\n methods: {\n combineQualities: _utils_core__WEBPACK_IMPORTED_MODULE_7__[\"combineQualities\"],\n humanFileSize: _utils_core__WEBPACK_IMPORTED_MODULE_7__[\"humanFileSize\"],\n\n setQuality(quality, showSlug, episodes) {\n const patchData = {};\n episodes.forEach(episode => {\n patchData[episode] = {\n quality: parseInt(quality, 10)\n };\n });\n _api__WEBPACK_IMPORTED_MODULE_6__[\"api\"].patch('series/' + showSlug + '/episodes', patchData).then(response => {\n console.info(response.data);\n window.location.reload();\n }).catch(error => {\n console.error(error.data);\n });\n },\n\n changeStatusClicked() {\n const {\n setQuality\n } = this;\n const epArr = [];\n const status = $('#statusSelect').val();\n const quality = $('#qualitySelect').val();\n const showSlug = $('#series-slug').val();\n $('.epCheck').each((index, element) => {\n if (element.checked === true) {\n epArr.push($(element).attr('id'));\n }\n });\n\n if (epArr.length === 0) {\n return false;\n }\n\n if (quality) {\n setQuality(quality, showSlug, epArr);\n }\n\n if (status) {\n window.location.href = $('base').attr('href') + 'home/setStatus?' + 'indexername=' + $('#indexer-name').attr('value') + '&seriesid=' + $('#series-id').attr('value') + '&eps=' + epArr.join('|') + '&status=' + status;\n }\n },\n\n showHideRows(whichClass) {\n const status = $('#checkboxControls > input, #' + whichClass).prop('checked');\n $('tr.' + whichClass).each((index, element) => {\n if (status) {\n $(element).show();\n } else {\n $(element).hide();\n }\n }); // Hide season headers with no episodes under them\n\n $('tr.seasonheader').each((index, element) => {\n let numRows = 0;\n const seasonNo = $(element).attr('id');\n $('tr.' + seasonNo + ' :visible').each(() => {\n numRows++;\n });\n\n if (numRows === 0) {\n $(element).hide();\n $('#' + seasonNo + '-cols').hide();\n } else {\n $(element).show();\n $('#' + seasonNo + '-cols').show();\n }\n });\n },\n\n selectEpisodesClicked() {\n // Selects all visible episode checkboxes\n [...document.querySelectorAll('.epCheck, .seasonCheck')].filter(is_visible__WEBPACK_IMPORTED_MODULE_3__[\"isVisible\"]).forEach(element => {\n element.checked = true;\n });\n },\n\n clearEpisodeSelectionClicked() {\n // Clears all visible episode checkboxes and the season selectors\n [...document.querySelectorAll('.epCheck, .seasonCheck')].filter(is_visible__WEBPACK_IMPORTED_MODULE_3__[\"isVisible\"]).forEach(element => {\n element.checked = false;\n });\n },\n\n toggleSpecials() {\n const config = {\n section: 'main',\n config: {\n layout: {\n show: {\n specials: !this.displaySpecials\n }\n }\n }\n };\n this.$store.dispatch('setConfig', config).then(() => {\n window.location.reload();\n });\n },\n\n reverse(array) {\n return array ? array.slice().reverse() : [];\n },\n\n dedupeGenres(genres) {\n return genres ? [...new Set(genres.slice(0).map(genre => genre.replace('-', ' ')))] : [];\n },\n\n getCountryISO2ToISO3(country) {\n return Object(country_language__WEBPACK_IMPORTED_MODULE_2__[\"getLanguage\"])(country).iso639_2en;\n }\n\n },\n watch: {\n jumpToSeason(season) {\n // Don't jump until an option is selected\n if (season !== 'jump') {\n // Calculate duration\n let duration = (this.seasons.length - season) * 50;\n duration = Math.max(500, Math.min(duration, 2000)); // Limit to (500ms <= duration <= 2000ms)\n // Calculate offset\n\n let offset = -50; // Navbar\n // Needs extra offset when the sub menu is \"fixed\".\n\n offset -= window.matchMedia('(min-width: 1281px)').matches ? 40 : 0;\n const name = \"season-\".concat(season);\n console.debug(\"Jumping to #\".concat(name, \" (\").concat(duration, \"ms)\"));\n Object(vue_scrollto__WEBPACK_IMPORTED_MODULE_4__[\"scrollTo\"])(\"[name=\\\"\".concat(name, \"\\\"]\"), duration, {\n container: 'body',\n easing: 'ease-in-out',\n offset\n }); // Update URL hash\n\n window.location.hash = name; // Reset jump\n\n this.jumpToSeason = 'jump';\n }\n }\n\n }\n});\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ \"./node_modules/jquery/dist/jquery.js\")))\n\n//# sourceURL=webpack:///./src/components/show-header.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options"); +eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function($) {/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var vue_truncate_collapsed__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue-truncate-collapsed */ \"./node_modules/vue-truncate-collapsed/dist/vue-truncate-collapsed.es.js\");\n/* harmony import */ var country_language__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! country-language */ \"./node_modules/country-language/index.js\");\n/* harmony import */ var country_language__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(country_language__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var is_visible__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! is-visible */ \"./node_modules/is-visible/module/index.js\");\n/* harmony import */ var vue_scrollto__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue-scrollto */ \"./node_modules/vue-scrollto/vue-scrollto.js\");\n/* harmony import */ var vue_scrollto__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(vue_scrollto__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _api__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../api */ \"./src/api.js\");\n/* harmony import */ var _utils_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/core */ \"./src/utils/core.js\");\n/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./helpers */ \"./src/components/helpers/index.js\");\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\n\n/**\n * Return the first item of `values` that is not `null`, `undefined` or `NaN`.\n * @param {...any} values - Values to check.\n * @returns {any} - The first item that fits the criteria, `undefined` otherwise.\n */\n\nconst resolveToValue = (...values) => {\n return values.find(value => {\n return !Number.isNaN(value) && value !== null && value !== undefined;\n });\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'show-header',\n components: {\n AppLink: _helpers__WEBPACK_IMPORTED_MODULE_8__[\"AppLink\"],\n Asset: _helpers__WEBPACK_IMPORTED_MODULE_8__[\"Asset\"],\n QualityPill: _helpers__WEBPACK_IMPORTED_MODULE_8__[\"QualityPill\"],\n StateSwitch: _helpers__WEBPACK_IMPORTED_MODULE_8__[\"StateSwitch\"],\n Truncate: vue_truncate_collapsed__WEBPACK_IMPORTED_MODULE_1__[\"default\"]\n },\n props: {\n /**\n * Page type: show or snatch-selection\n */\n type: {\n type: String,\n default: 'show',\n validator: value => ['show', 'snatch-selection'].includes(value)\n },\n\n /**\n * Show indexer\n */\n showIndexer: {\n type: String\n },\n\n /**\n * Show id\n */\n showId: {\n type: Number\n },\n\n /**\n * Season\n */\n showSeason: {\n type: Number\n },\n\n /**\n * Episode\n */\n showEpisode: {\n type: Number\n },\n\n /**\n * Manual Search Type (snatch-selection)\n */\n manualSearchType: {\n type: String\n }\n },\n\n data() {\n return {\n jumpToSeason: 'jump'\n };\n },\n\n computed: _objectSpread({}, Object(vuex__WEBPACK_IMPORTED_MODULE_5__[\"mapState\"])({\n config: state => state.config,\n shows: state => state.shows.shows,\n indexerConfig: state => state.config.indexers.config.indexers,\n failedDownloads: state => state.config.failedDownloads,\n displaySpecials: state => state.config.layout.show.specials,\n qualities: state => state.consts.qualities.values,\n statuses: state => state.consts.statuses,\n search: state => state.search\n }), {}, Object(vuex__WEBPACK_IMPORTED_MODULE_5__[\"mapGetters\"])({\n show: 'getCurrentShow',\n getQualityPreset: 'getQualityPreset',\n getStatus: 'getStatus'\n }), {\n indexer() {\n return this.showIndexer || this.$route.query.indexername;\n },\n\n id() {\n return this.showId || Number(this.$route.query.seriesid) || undefined;\n },\n\n season() {\n return resolveToValue(this.showSeason, Number(this.$route.query.season));\n },\n\n episode() {\n return resolveToValue(this.showEpisode, Number(this.$route.query.episode));\n },\n\n showIndexerUrl() {\n const {\n show,\n indexerConfig\n } = this;\n\n if (!show.indexer) {\n return;\n }\n\n const id = show.id[show.indexer];\n const indexerUrl = indexerConfig[show.indexer].showUrl;\n return \"\".concat(indexerUrl).concat(id);\n },\n\n activeShowQueueStatuses() {\n const {\n showQueueStatus\n } = this.show;\n\n if (!showQueueStatus) {\n return [];\n }\n\n return showQueueStatus.filter(status => status.active === true);\n },\n\n showGenres() {\n const {\n show,\n dedupeGenres\n } = this;\n const {\n imdbInfo\n } = show;\n const {\n genres\n } = imdbInfo;\n let result = [];\n\n if (genres) {\n result = dedupeGenres(genres.split('|'));\n }\n\n return result;\n },\n\n episodeSummary() {\n const {\n show\n } = this;\n const {\n seasons\n } = show;\n const summary = {\n Skipped: 0,\n Wanted: 0,\n Allowed: 0,\n Preferred: 0,\n Unaired: 0,\n Snatched: 0,\n 'Snatched (Proper)': 0,\n 'Snatched (Best)': 0,\n Unset: 0,\n Archived: 0\n };\n seasons.forEach(season => {\n season.episodes.forEach(episode => {\n // FIXME: with the overview status.\n summary[episode.status] += 1;\n });\n });\n return summary;\n },\n\n changeStatusOptions() {\n const {\n failedDownloads,\n getStatus,\n statuses\n } = this;\n\n if (statuses.length === 0) {\n return [];\n } // Get status objects, in this order\n\n\n const defaultOptions = ['wanted', 'skipped', 'ignored', 'downloaded', 'archived'].map(key => getStatus({\n key\n }));\n\n if (failedDownloads.enabled) {\n defaultOptions.push(getStatus({\n key: 'failed'\n }));\n }\n\n return defaultOptions;\n },\n\n combinedQualities() {\n const {\n allowed,\n preferred\n } = this.show.config.qualities;\n return Object(_utils_core__WEBPACK_IMPORTED_MODULE_7__[\"combineQualities\"])(allowed, preferred);\n },\n\n seasons() {\n const {\n show\n } = this; // Only return an array with seasons (integers)\n\n return show.seasonCount.map(season => season.season);\n }\n\n }),\n methods: {\n combineQualities: _utils_core__WEBPACK_IMPORTED_MODULE_7__[\"combineQualities\"],\n humanFileSize: _utils_core__WEBPACK_IMPORTED_MODULE_7__[\"humanFileSize\"],\n\n setQuality(quality, showSlug, episodes) {\n const patchData = {};\n episodes.forEach(episode => {\n patchData[episode] = {\n quality: parseInt(quality, 10)\n };\n });\n _api__WEBPACK_IMPORTED_MODULE_6__[\"api\"].patch('series/' + showSlug + '/episodes', patchData).then(response => {\n console.info(response.data);\n window.location.reload();\n }).catch(error => {\n console.error(error.data);\n });\n },\n\n changeStatusClicked() {\n const {\n setQuality\n } = this;\n const epArr = [];\n const status = $('#statusSelect').val();\n const quality = $('#qualitySelect').val();\n const showSlug = $('#series-slug').val();\n $('.epCheck').each((index, element) => {\n if (element.checked === true) {\n epArr.push($(element).attr('id'));\n }\n });\n\n if (epArr.length === 0) {\n return false;\n }\n\n if (quality) {\n setQuality(quality, showSlug, epArr);\n }\n\n if (status) {\n window.location.href = $('base').attr('href') + 'home/setStatus?' + 'indexername=' + $('#indexer-name').attr('value') + '&seriesid=' + $('#series-id').attr('value') + '&eps=' + epArr.join('|') + '&status=' + status;\n }\n },\n\n showHideRows(whichClass) {\n const status = $('#checkboxControls > input, #' + whichClass).prop('checked');\n $('tr.' + whichClass).each((index, element) => {\n if (status) {\n $(element).show();\n } else {\n $(element).hide();\n }\n }); // Hide season headers with no episodes under them\n\n $('tr.seasonheader').each((index, element) => {\n let numRows = 0;\n const seasonNo = $(element).attr('id');\n $('tr.' + seasonNo + ' :visible').each(() => {\n numRows++;\n });\n\n if (numRows === 0) {\n $(element).hide();\n $('#' + seasonNo + '-cols').hide();\n } else {\n $(element).show();\n $('#' + seasonNo + '-cols').show();\n }\n });\n },\n\n selectEpisodesClicked() {\n // Selects all visible episode checkboxes\n [...document.querySelectorAll('.epCheck, .seasonCheck')].filter(is_visible__WEBPACK_IMPORTED_MODULE_3__[\"isVisible\"]).forEach(element => {\n element.checked = true;\n });\n },\n\n clearEpisodeSelectionClicked() {\n // Clears all visible episode checkboxes and the season selectors\n [...document.querySelectorAll('.epCheck, .seasonCheck')].filter(is_visible__WEBPACK_IMPORTED_MODULE_3__[\"isVisible\"]).forEach(element => {\n element.checked = false;\n });\n },\n\n toggleSpecials() {\n const config = {\n section: 'main',\n config: {\n layout: {\n show: {\n specials: !this.displaySpecials\n }\n }\n }\n };\n this.$store.dispatch('setConfig', config).then(() => {\n window.location.reload();\n });\n },\n\n reverse(array) {\n return array ? array.slice().reverse() : [];\n },\n\n dedupeGenres(genres) {\n return genres ? [...new Set(genres.slice(0).map(genre => genre.replace('-', ' ')))] : [];\n },\n\n getCountryISO2ToISO3(country) {\n return Object(country_language__WEBPACK_IMPORTED_MODULE_2__[\"getLanguage\"])(country).iso639_2en;\n }\n\n },\n watch: {\n jumpToSeason(season) {\n // Don't jump until an option is selected\n if (season !== 'jump') {\n // Calculate duration\n let duration = (this.seasons.length - season) * 50;\n duration = Math.max(500, Math.min(duration, 2000)); // Limit to (500ms <= duration <= 2000ms)\n // Calculate offset\n\n let offset = -50; // Navbar\n // Needs extra offset when the sub menu is \"fixed\".\n\n offset -= window.matchMedia('(min-width: 1281px)').matches ? 40 : 0;\n const name = \"season-\".concat(season);\n console.debug(\"Jumping to #\".concat(name, \" (\").concat(duration, \"ms)\"));\n Object(vue_scrollto__WEBPACK_IMPORTED_MODULE_4__[\"scrollTo\"])(\"[name=\\\"\".concat(name, \"\\\"]\"), duration, {\n container: 'body',\n easing: 'ease-in-out',\n offset\n }); // Update URL hash\n\n window.location.hash = name; // Reset jump\n\n this.jumpToSeason = 'jump';\n }\n }\n\n }\n});\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ \"./node_modules/jquery/dist/jquery.js\")))\n\n//# sourceURL=webpack:///./src/components/show-header.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options"); /***/ }), @@ -662,7 +662,7 @@ eval("exports = module.exports = __webpack_require__(/*! ../../node_modules/css- /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { -eval("exports = module.exports = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.i, \"\\n.summaryTable[data-v-2465ca06] {\\n overflow: hidden;\\n}\\n.summaryTable tr td[data-v-2465ca06] {\\n word-break: break-all;\\n}\\n.ver-spacer[data-v-2465ca06] {\\n width: 15px;\\n}\\n#show-specials-and-seasons[data-v-2465ca06] {\\n margin-bottom: 15px;\\n}\\nspan.required[data-v-2465ca06] {\\n color: green;\\n}\\nspan.preferred[data-v-2465ca06] {\\n color: blue;\\n}\\nspan.undesired[data-v-2465ca06] {\\n color: orange;\\n}\\nspan.ignored[data-v-2465ca06] {\\n color: red;\\n}\\ndiv#col-show-summary[data-v-2465ca06] {\\n display: table;\\n}\\n#col-show-summary img.show-image[data-v-2465ca06] {\\n max-width: 180px;\\n}\\n.show-poster-container[data-v-2465ca06] {\\n margin-right: 10px;\\n display: table-cell;\\n width: 180px;\\n}\\n.show-info-container[data-v-2465ca06] {\\n overflow: hidden;\\n display: table-cell;\\n}\\n.showLegend[data-v-2465ca06] {\\n padding-right: 6px;\\n padding-bottom: 1px;\\n width: 150px;\\n}\\n.invalid-value[data-v-2465ca06] {\\n color: rgb(255, 0, 0);\\n}\\n@media (min-width: 768px) {\\n.display-specials[data-v-2465ca06],\\n .display-seasons[data-v-2465ca06] {\\n top: -60px;\\n}\\n#show-specials-and-seasons[data-v-2465ca06] {\\n bottom: 5px;\\n right: 15px;\\n position: absolute;\\n}\\n}\\n@media (max-width: 767px) {\\n.show-poster-container[data-v-2465ca06] {\\n display: inline-block;\\n width: 100%;\\n margin: 0 auto;\\n border-style: none;\\n}\\n.show-poster-container img[data-v-2465ca06] {\\n display: block;\\n margin: 0 auto;\\n max-width: 280px !important;\\n}\\n.show-info-container[data-v-2465ca06] {\\n display: block;\\n padding-top: 5px;\\n width: 100%;\\n}\\n}\\n@media (max-width: 991px) and (min-width: 768px) {\\n.show-poster-container[data-v-2465ca06] {\\n float: left;\\n display: inline-block;\\n width: 100%;\\n border-style: none;\\n}\\n.show-info-container[data-v-2465ca06] {\\n display: block;\\n width: 100%;\\n}\\n#col-show-summary img.show-image[data-v-2465ca06] {\\n max-width: 280px;\\n}\\n}\\n\", \"\"]);\n\n\n//# sourceURL=webpack:///./src/components/show-header.vue?./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib??vue-loader-options"); +eval("exports = module.exports = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.i, \"\\n.summaryTable[data-v-2465ca06] {\\n overflow: hidden;\\n}\\n.summaryTable tr td[data-v-2465ca06] {\\n word-break: break-all;\\n}\\n.ver-spacer[data-v-2465ca06] {\\n width: 15px;\\n}\\n#show-specials-and-seasons[data-v-2465ca06] {\\n margin-bottom: 15px;\\n}\\nspan.required[data-v-2465ca06] {\\n color: green;\\n}\\nspan.preferred[data-v-2465ca06] {\\n color: blue;\\n}\\nspan.undesired[data-v-2465ca06] {\\n color: orange;\\n}\\nspan.ignored[data-v-2465ca06] {\\n color: red;\\n}\\ndiv#col-show-summary[data-v-2465ca06] {\\n display: table;\\n}\\n#col-show-summary img.show-image[data-v-2465ca06] {\\n max-width: 180px;\\n}\\n.show-poster-container[data-v-2465ca06] {\\n margin-right: 10px;\\n display: table-cell;\\n width: 180px;\\n}\\n.show-info-container[data-v-2465ca06] {\\n overflow: hidden;\\n display: table-cell;\\n}\\n.showLegend[data-v-2465ca06] {\\n padding-right: 6px;\\n padding-bottom: 1px;\\n width: 150px;\\n}\\n.invalid-value[data-v-2465ca06] {\\n color: rgb(255, 0, 0);\\n}\\n@media (min-width: 768px) {\\n.display-specials[data-v-2465ca06],\\n .display-seasons[data-v-2465ca06] {\\n top: -60px;\\n}\\n#show-specials-and-seasons[data-v-2465ca06] {\\n bottom: 5px;\\n right: 15px;\\n position: absolute;\\n}\\n}\\n@media (max-width: 767px) {\\n.show-poster-container[data-v-2465ca06] {\\n display: inline-block;\\n width: 100%;\\n margin: 0 auto;\\n border-style: none;\\n}\\n.show-poster-container img[data-v-2465ca06] {\\n display: block;\\n margin: 0 auto;\\n max-width: 280px !important;\\n}\\n.show-info-container[data-v-2465ca06] {\\n display: block;\\n padding-top: 5px;\\n width: 100%;\\n}\\n}\\n@media (max-width: 991px) and (min-width: 768px) {\\n.show-poster-container[data-v-2465ca06] {\\n float: left;\\n display: inline-block;\\n width: 100%;\\n border-style: none;\\n}\\n.show-info-container[data-v-2465ca06] {\\n display: block;\\n width: 100%;\\n}\\n#col-show-summary img.show-image[data-v-2465ca06] {\\n max-width: 280px;\\n}\\n}\\nspan.global-filter[data-v-2465ca06] {\\n font-style: italic;\\n}\\n\", \"\"]);\n\n\n//# sourceURL=webpack:///./src/components/show-header.vue?./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib??vue-loader-options"); /***/ }), @@ -1056,7 +1056,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) * /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\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 { staticClass: \"show-header-container\" },\n [\n _c(\"div\", { staticClass: \"row\" }, [\n _vm.show\n ? _c(\n \"div\",\n {\n staticClass: \"col-lg-12\",\n attrs: { id: \"showtitle\", \"data-showname\": _vm.show.title }\n },\n [\n _c(\"div\", [\n _c(\n \"h1\",\n {\n staticClass: \"title\",\n attrs: {\n \"data-indexer-name\": _vm.show.indexer,\n \"data-series-id\": _vm.show.id[_vm.show.indexer],\n id: \"scene_exception_\" + _vm.show.id[_vm.show.indexer]\n }\n },\n [\n _c(\n \"app-link\",\n {\n staticClass: \"snatchTitle\",\n attrs: {\n href:\n \"home/displayShow?indexername=\" +\n _vm.show.indexer +\n \"&seriesid=\" +\n _vm.show.id[_vm.show.indexer]\n }\n },\n [_vm._v(_vm._s(_vm.show.title))]\n )\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _vm.type === \"snatch-selection\"\n ? _c(\n \"div\",\n {\n staticClass: \"pull-right\",\n attrs: { id: \"show-specials-and-seasons\" }\n },\n [\n _c(\n \"span\",\n { staticClass: \"h2footer display-specials\" },\n [\n _vm._v(\"\\n Manual search for:\"),\n _c(\"br\"),\n _vm._v(\" \"),\n _c(\n \"app-link\",\n {\n staticClass: \"snatchTitle\",\n attrs: {\n href:\n \"home/displayShow?indexername=\" +\n _vm.show.indexer +\n \"&seriesid=\" +\n _vm.show.id[_vm.show.indexer]\n }\n },\n [_vm._v(_vm._s(_vm.show.title))]\n ),\n _vm._v(\" / Season \" + _vm._s(_vm.season)),\n _vm.episode !== undefined &&\n _vm.manualSearchType !== \"season\"\n ? [_vm._v(\" Episode \" + _vm._s(_vm.episode))]\n : _vm._e()\n ],\n 2\n )\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.type !== \"snatch-selection\" && _vm.seasons.length >= 1\n ? _c(\n \"div\",\n {\n staticClass: \"pull-right\",\n attrs: { id: \"show-specials-and-seasons\" }\n },\n [\n _vm.seasons.includes(0)\n ? _c(\n \"span\",\n { staticClass: \"h2footer display-specials\" },\n [\n _vm._v(\n \"\\n Display Specials: \"\n ),\n _c(\n \"a\",\n {\n staticClass: \"inner\",\n staticStyle: { cursor: \"pointer\" },\n on: {\n click: function($event) {\n return _vm.toggleSpecials()\n }\n }\n },\n [\n _vm._v(\n _vm._s(\n _vm.displaySpecials ? \"Hide\" : \"Show\"\n )\n )\n ]\n )\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"div\",\n { staticClass: \"h2footer display-seasons clear\" },\n [\n _c(\n \"span\",\n [\n _vm.seasons.length >= 15\n ? _c(\n \"select\",\n {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.jumpToSeason,\n expression: \"jumpToSeason\"\n }\n ],\n staticClass: \"form-control input-sm\",\n staticStyle: { position: \"relative\" },\n attrs: { id: \"seasonJump\" },\n on: {\n change: function($event) {\n var $$selectedVal = Array.prototype.filter\n .call(\n $event.target.options,\n function(o) {\n return o.selected\n }\n )\n .map(function(o) {\n var val =\n \"_value\" in o\n ? o._value\n : o.value\n return val\n })\n _vm.jumpToSeason = $event.target\n .multiple\n ? $$selectedVal\n : $$selectedVal[0]\n }\n }\n },\n [\n _c(\n \"option\",\n { attrs: { value: \"jump\" } },\n [_vm._v(\"Jump to Season\")]\n ),\n _vm._v(\" \"),\n _vm._l(_vm.seasons, function(\n seasonNumber\n ) {\n return _c(\n \"option\",\n {\n key:\n \"jumpToSeason-\" + seasonNumber,\n domProps: { value: seasonNumber }\n },\n [\n _vm._v(\n \"\\n \" +\n _vm._s(\n seasonNumber === 0\n ? \"Specials\"\n : \"Season \" + seasonNumber\n ) +\n \"\\n \"\n )\n ]\n )\n })\n ],\n 2\n )\n : _vm.seasons.length >= 1\n ? [\n _vm._v(\n \"\\n Season:\\n \"\n ),\n _vm._l(_vm.reverse(_vm.seasons), function(\n seasonNumber,\n index\n ) {\n return [\n _c(\n \"app-link\",\n {\n key:\n \"jumpToSeason-\" + seasonNumber,\n attrs: {\n href: \"#season-\" + seasonNumber\n },\n nativeOn: {\n click: function($event) {\n $event.preventDefault()\n _vm.jumpToSeason = seasonNumber\n }\n }\n },\n [\n _vm._v(\n \"\\n \" +\n _vm._s(\n seasonNumber === 0\n ? \"Specials\"\n : seasonNumber\n ) +\n \"\\n \"\n )\n ]\n ),\n _vm._v(\" \"),\n index !== _vm.seasons.length - 1\n ? _c(\n \"span\",\n {\n key: \"separator-\" + index,\n staticClass: \"separator\"\n },\n [_vm._v(\"| \")]\n )\n : _vm._e()\n ]\n })\n ]\n : _vm._e()\n ],\n 2\n )\n ]\n )\n ]\n )\n : _vm._e()\n ]\n )\n : _vm._e()\n ]),\n _vm._v(\" \"),\n _vm._l(_vm.activeShowQueueStatuses, function(queueItem) {\n return _c(\"div\", { key: queueItem.action, staticClass: \"row\" }, [\n _c(\"div\", { staticClass: \"alert alert-info\" }, [\n _vm._v(\"\\n \" + _vm._s(queueItem.message) + \"\\n \")\n ])\n ])\n }),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"row\", attrs: { id: \"row-show-summary\" } }, [\n _c(\n \"div\",\n { staticClass: \"col-md-12\", attrs: { id: \"col-show-summary\" } },\n [\n _c(\"div\", { staticClass: \"show-poster-container\" }, [\n _c(\"div\", { staticClass: \"row\" }, [\n _c(\n \"div\",\n { staticClass: \"image-flex-container col-md-12\" },\n [\n _c(\"asset\", {\n attrs: {\n default: \"images/poster.png\",\n \"show-slug\": _vm.show.id.slug,\n type: \"posterThumb\",\n cls: \"show-image shadow\",\n link: true\n }\n })\n ],\n 1\n )\n ])\n ]),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"ver-spacer\" }),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"show-info-container\" }, [\n _c(\"div\", { staticClass: \"row\" }, [\n _c(\n \"div\",\n {\n staticClass:\n \"pull-right col-lg-3 col-md-3 hidden-sm hidden-xs\"\n },\n [\n _c(\"asset\", {\n attrs: {\n default: \"images/banner.png\",\n \"show-slug\": _vm.show.id.slug,\n type: \"banner\",\n cls: \"show-banner pull-right shadow\",\n link: true\n }\n })\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n staticClass:\n \"pull-left col-lg-9 col-md-9 col-sm-12 col-xs-12\",\n attrs: { id: \"show-rating\" }\n },\n [\n _vm.show.rating.imdb && _vm.show.rating.imdb.rating\n ? _c(\n \"span\",\n {\n staticClass: \"imdbstars\",\n attrs: {\n \"qtip-content\":\n _vm.show.rating.imdb.rating +\n \" / 10 Stars
\" +\n _vm.show.rating.imdb.votes +\n \" Votes\"\n }\n },\n [\n _c(\"span\", {\n style: {\n width:\n Number(_vm.show.rating.imdb.rating) * 12 + \"%\"\n }\n })\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n !_vm.show.id.imdb\n ? [\n _vm.show.year.start\n ? _c(\"span\", [\n _vm._v(\n \"(\" +\n _vm._s(_vm.show.year.start) +\n \") - \" +\n _vm._s(_vm.show.runtime) +\n \" minutes - \"\n )\n ])\n : _vm._e()\n ]\n : [\n _vm._l(_vm.show.countryCodes, function(country) {\n return _c(\"img\", {\n key: \"flag-\" + country,\n class: [\"country-flag\", \"flag-\" + country],\n staticStyle: {\n \"margin-left\": \"3px\",\n \"vertical-align\": \"middle\"\n },\n attrs: {\n src: \"images/blank.png\",\n width: \"16\",\n height: \"11\"\n }\n })\n }),\n _vm._v(\" \"),\n _vm.show.imdbInfo.year\n ? _c(\"span\", [\n _vm._v(\n \"\\n (\" +\n _vm._s(_vm.show.imdbInfo.year) +\n \") -\\n \"\n )\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _c(\"span\", [\n _vm._v(\n \"\\n \" +\n _vm._s(\n _vm.show.imdbInfo.runtimes || _vm.show.runtime\n ) +\n \" minutes\\n \"\n )\n ]),\n _vm._v(\" \"),\n _c(\n \"app-link\",\n {\n attrs: {\n href:\n \"https://www.imdb.com/title/\" +\n _vm.show.id.imdb,\n title:\n \"https://www.imdb.com/title/\" +\n _vm.show.id.imdb\n }\n },\n [\n _c(\"img\", {\n staticStyle: {\n \"margin-top\": \"-1px\",\n \"vertical-align\": \"middle\"\n },\n attrs: {\n alt: \"[imdb]\",\n height: \"16\",\n width: \"16\",\n src: \"images/imdb.png\"\n }\n })\n ]\n )\n ],\n _vm._v(\" \"),\n _vm.show.id.trakt\n ? _c(\n \"app-link\",\n {\n attrs: {\n href:\n \"https://trakt.tv/shows/\" + _vm.show.id.trakt,\n title:\n \"https://trakt.tv/shows/\" + _vm.show.id.trakt\n }\n },\n [\n _c(\"img\", {\n attrs: {\n alt: \"[trakt]\",\n height: \"16\",\n width: \"16\",\n src: \"images/trakt.png\"\n }\n })\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.showIndexerUrl &&\n _vm.indexerConfig[_vm.show.indexer].icon\n ? _c(\n \"app-link\",\n {\n attrs: {\n href: _vm.showIndexerUrl,\n title: _vm.showIndexerUrl\n }\n },\n [\n _c(\"img\", {\n staticStyle: {\n \"margin-top\": \"-1px\",\n \"vertical-align\": \"middle\"\n },\n attrs: {\n alt: _vm.indexerConfig[_vm.show.indexer].name,\n height: \"16\",\n width: \"16\",\n src:\n \"images/\" +\n _vm.indexerConfig[_vm.show.indexer].icon\n }\n })\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.xemNumbering && _vm.show.xemNumbering.length > 0\n ? _c(\n \"app-link\",\n {\n attrs: {\n href:\n \"http://thexem.de/search?q=\" + _vm.show.title,\n title:\n \"http://thexem.de/search?q=\" + _vm.show.title\n }\n },\n [\n _c(\"img\", {\n staticStyle: {\n \"margin-top\": \"-1px\",\n \"vertical-align\": \"middle\"\n },\n attrs: {\n alt: \"[xem]\",\n height: \"16\",\n width: \"16\",\n src: \"images/xem.png\"\n }\n })\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.id.tvdb\n ? _c(\n \"app-link\",\n {\n attrs: {\n href:\n \"https://fanart.tv/series/\" + _vm.show.id.tvdb,\n title:\n \"https://fanart.tv/series/\" +\n _vm.show.id[_vm.show.indexer]\n }\n },\n [\n _c(\"img\", {\n staticClass: \"fanart\",\n attrs: {\n alt: \"[fanart.tv]\",\n height: \"16\",\n width: \"16\",\n src: \"images/fanart.tv.png\"\n }\n })\n ]\n )\n : _vm._e()\n ],\n 2\n ),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n staticClass:\n \"pull-left col-lg-9 col-md-9 col-sm-12 col-xs-12\",\n attrs: { id: \"tags\" }\n },\n [\n _vm.show.genres\n ? _c(\n \"ul\",\n { staticClass: \"tags\" },\n _vm._l(_vm.dedupeGenres(_vm.show.genres), function(\n genre\n ) {\n return _c(\n \"app-link\",\n {\n key: genre.toString(),\n attrs: {\n href:\n \"https://trakt.tv/shows/popular/?genres=\" +\n genre.toLowerCase().replace(\" \", \"-\"),\n title:\n \"View other popular \" +\n genre +\n \" shows on trakt.tv\"\n }\n },\n [_c(\"li\", [_vm._v(_vm._s(genre))])]\n )\n }),\n 1\n )\n : _c(\n \"ul\",\n { staticClass: \"tags\" },\n _vm._l(_vm.showGenres, function(genre) {\n return _c(\n \"app-link\",\n {\n key: genre.toString(),\n attrs: {\n href:\n \"https://www.imdb.com/search/title?count=100&title_type=tv_series&genres=\" +\n genre.toLowerCase().replace(\" \", \"-\"),\n title:\n \"View other popular \" +\n genre +\n \" shows on IMDB\"\n }\n },\n [_c(\"li\", [_vm._v(_vm._s(genre))])]\n )\n }),\n 1\n )\n ]\n )\n ]),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"row\" }, [\n _c(\n \"div\",\n { staticClass: \"col-md-12\", attrs: { id: \"summary\" } },\n [\n _c(\n \"div\",\n {\n class: [\n { summaryFanArt: _vm.config.fanartBackground },\n \"col-lg-9\",\n \"col-md-8\",\n \"col-sm-8\",\n \"col-xs-12\"\n ],\n attrs: { id: \"show-summary\" }\n },\n [\n _c(\n \"table\",\n { staticClass: \"summaryTable pull-left\" },\n [\n _vm.show.plot\n ? _c(\"tr\", [\n _c(\n \"td\",\n {\n staticStyle: { \"padding-bottom\": \"15px\" },\n attrs: { colspan: \"2\" }\n },\n [\n _c(\"truncate\", {\n attrs: {\n length: 250,\n clamp: \"show more...\",\n less: \"show less...\",\n text: _vm.show.plot\n },\n on: {\n toggle: function($event) {\n return _vm.$emit(\"reflow\")\n }\n }\n })\n ],\n 1\n )\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.getQualityPreset({\n value: _vm.combinedQualities\n }) !== undefined\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Quality:\")\n ]),\n _vm._v(\" \"),\n _c(\n \"td\",\n [\n _c(\"quality-pill\", {\n attrs: {\n quality: _vm.combinedQualities\n }\n })\n ],\n 1\n )\n ])\n : [\n _vm.combineQualities(\n _vm.show.config.qualities.allowed\n ) > 0\n ? _c(\"tr\", [\n _c(\n \"td\",\n { staticClass: \"showLegend\" },\n [_vm._v(\"Allowed Qualities:\")]\n ),\n _vm._v(\" \"),\n _c(\n \"td\",\n [\n _vm._l(\n _vm.show.config.qualities.allowed,\n function(curQuality, index) {\n return [\n _vm._v(\n _vm._s(\n index > 0 ? \", \" : \"\"\n )\n ),\n _c(\"quality-pill\", {\n key:\n \"allowed-\" + curQuality,\n attrs: {\n quality: curQuality\n }\n })\n ]\n }\n )\n ],\n 2\n )\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.combineQualities(\n _vm.show.config.qualities.preferred\n ) > 0\n ? _c(\"tr\", [\n _c(\n \"td\",\n { staticClass: \"showLegend\" },\n [_vm._v(\"Preferred Qualities:\")]\n ),\n _vm._v(\" \"),\n _c(\n \"td\",\n [\n _vm._l(\n _vm.show.config.qualities\n .preferred,\n function(curQuality, index) {\n return [\n _vm._v(\n _vm._s(\n index > 0 ? \", \" : \"\"\n )\n ),\n _c(\"quality-pill\", {\n key:\n \"preferred-\" + curQuality,\n attrs: {\n quality: curQuality\n }\n })\n ]\n }\n )\n ],\n 2\n )\n ])\n : _vm._e()\n ],\n _vm._v(\" \"),\n _vm.show.network && _vm.show.airs\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Originally Airs: \")\n ]),\n _c(\"td\", [\n _vm._v(_vm._s(_vm.show.airs)),\n !_vm.show.airsFormatValid\n ? _c(\n \"b\",\n { staticClass: \"invalid-value\" },\n [_vm._v(\" (invalid time format)\")]\n )\n : _vm._e(),\n _vm._v(\" on \" + _vm._s(_vm.show.network))\n ])\n ])\n : _vm.show.network\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Originally Airs: \")\n ]),\n _c(\"td\", [_vm._v(_vm._s(_vm.show.network))])\n ])\n : _vm.show.airs\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Originally Airs: \")\n ]),\n _c(\"td\", [\n _vm._v(_vm._s(_vm.show.airs)),\n !_vm.show.airsFormatValid\n ? _c(\n \"b\",\n { staticClass: \"invalid-value\" },\n [_vm._v(\" (invalid time format)\")]\n )\n : _vm._e()\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Show Status: \")\n ]),\n _c(\"td\", [_vm._v(_vm._s(_vm.show.status))])\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Default EP Status: \")\n ]),\n _c(\"td\", [\n _vm._v(\n _vm._s(_vm.show.config.defaultEpisodeStatus)\n )\n ])\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _c(\n \"span\",\n {\n class: {\n \"invalid-value\": !_vm.show.config\n .locationValid\n }\n },\n [_vm._v(\"Location: \")]\n )\n ]),\n _c(\"td\", [\n _c(\n \"span\",\n {\n class: {\n \"invalid-value\": !_vm.show.config\n .locationValid\n }\n },\n [_vm._v(_vm._s(_vm.show.config.location))]\n ),\n _vm._v(\n _vm._s(\n _vm.show.config.locationValid\n ? \"\"\n : \" (Missing)\"\n )\n )\n ])\n ]),\n _vm._v(\" \"),\n _vm.show.config.aliases.length > 0\n ? _c(\"tr\", [\n _c(\n \"td\",\n {\n staticClass: \"showLegend\",\n staticStyle: { \"vertical-align\": \"top\" }\n },\n [_vm._v(\"Scene Name:\")]\n ),\n _vm._v(\" \"),\n _c(\"td\", [\n _vm._v(\n _vm._s(_vm.show.config.aliases.join(\",\"))\n )\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.config.release.requiredWords.length > 0\n ? _c(\"tr\", [\n _c(\n \"td\",\n {\n staticClass: \"showLegend\",\n staticStyle: { \"vertical-align\": \"top\" }\n },\n [_vm._v(\"Required Words: \")]\n ),\n _vm._v(\" \"),\n _c(\"td\", [\n _c(\n \"span\",\n {\n staticClass: \"break-word\",\n class: {\n required:\n _vm.type === \"snatch-selection\"\n }\n },\n [\n _vm._v(\n _vm._s(\n _vm.show.config.release.requiredWords.join(\n \",\"\n )\n )\n )\n ]\n )\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.config.release.ignoredWords.length > 0\n ? _c(\"tr\", [\n _c(\n \"td\",\n {\n staticClass: \"showLegend\",\n staticStyle: { \"vertical-align\": \"top\" }\n },\n [_vm._v(\"Ignored Words: \")]\n ),\n _vm._v(\" \"),\n _c(\"td\", [\n _c(\n \"span\",\n {\n staticClass: \"break-word\",\n class: {\n ignored:\n _vm.type === \"snatch-selection\"\n }\n },\n [\n _vm._v(\n _vm._s(\n _vm.show.config.release.ignoredWords.join(\n \",\"\n )\n )\n )\n ]\n )\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.preferredWords.length > 0\n ? _c(\"tr\", [\n _c(\n \"td\",\n {\n staticClass: \"showLegend\",\n staticStyle: { \"vertical-align\": \"top\" }\n },\n [_vm._v(\"Preferred Words: \")]\n ),\n _vm._v(\" \"),\n _c(\"td\", [\n _c(\n \"span\",\n {\n staticClass: \"break-word\",\n class: {\n preferred:\n _vm.type === \"snatch-selection\"\n }\n },\n [\n _vm._v(\n _vm._s(_vm.preferredWords.join(\",\"))\n )\n ]\n )\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.undesiredWords.length > 0\n ? _c(\"tr\", [\n _c(\n \"td\",\n {\n staticClass: \"showLegend\",\n staticStyle: { \"vertical-align\": \"top\" }\n },\n [_vm._v(\"Undesired Words: \")]\n ),\n _vm._v(\" \"),\n _c(\"td\", [\n _c(\n \"span\",\n {\n staticClass: \"break-word\",\n class: {\n undesired:\n _vm.type === \"snatch-selection\"\n }\n },\n [\n _vm._v(\n _vm._s(_vm.undesiredWords.join(\",\"))\n )\n ]\n )\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.config.release.whitelist &&\n _vm.show.config.release.whitelist.length > 0\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Wanted Groups:\")\n ]),\n _vm._v(\" \"),\n _c(\"td\", [\n _vm._v(\n _vm._s(\n _vm.show.config.release.whitelist.join(\n \",\"\n )\n )\n )\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.config.release.blacklist &&\n _vm.show.config.release.blacklist.length > 0\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Unwanted Groups:\")\n ]),\n _vm._v(\" \"),\n _c(\"td\", [\n _vm._v(\n _vm._s(\n _vm.show.config.release.blacklist.join(\n \",\"\n )\n )\n )\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.config.airdateOffset !== 0\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Daily search offset:\")\n ]),\n _vm._v(\" \"),\n _c(\"td\", [\n _vm._v(\n _vm._s(_vm.show.config.airdateOffset) +\n \" hours\"\n )\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.config.locationValid && _vm.show.size > -1\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Size:\")\n ]),\n _vm._v(\" \"),\n _c(\"td\", [\n _vm._v(\n _vm._s(_vm.humanFileSize(_vm.show.size))\n )\n ])\n ])\n : _vm._e()\n ],\n 2\n )\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n staticClass:\n \"col-lg-3 col-md-4 col-sm-4 col-xs-12 pull-xs-left\",\n attrs: { id: \"show-status\" }\n },\n [\n _c(\n \"table\",\n {\n staticClass:\n \"pull-xs-left pull-md-right pull-sm-right pull-lg-right\"\n },\n [\n _vm.show.language\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Info Language:\")\n ]),\n _c(\"td\", [\n _c(\"img\", {\n attrs: {\n src:\n \"images/subtitles/flags/\" +\n _vm.getCountryISO2ToISO3(\n _vm.show.language\n ) +\n \".png\",\n width: \"16\",\n height: \"11\",\n alt: _vm.show.language,\n title: _vm.show.language,\n onError:\n \"this.onerror=null;this.src='images/flags/unknown.png';\"\n }\n })\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.config.subtitles.enabled\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Subtitles: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state:\n _vm.show.config.subtitlesEnabled\n }\n })\n ],\n 1\n )\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Season Folders: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state:\n _vm.show.config.seasonFolders ||\n _vm.config.namingForceFolders\n }\n })\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Paused: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state: _vm.show.config.paused\n }\n })\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Air-by-Date: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state: _vm.show.config.airByDate\n }\n })\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Sports: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state: _vm.show.config.sports\n }\n })\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Anime: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state: _vm.show.config.anime\n }\n })\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"DVD Order: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state: _vm.show.config.dvdOrder\n }\n })\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Scene Numbering: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state: _vm.show.config.scene\n }\n })\n ],\n 1\n )\n ])\n ]\n )\n ]\n )\n ]\n )\n ])\n ])\n ]\n )\n ]),\n _vm._v(\" \"),\n _vm.show\n ? _c(\n \"div\",\n { staticClass: \"row\", attrs: { id: \"row-show-episodes-controls\" } },\n [\n _c(\n \"div\",\n {\n staticClass: \"col-md-12\",\n attrs: { id: \"col-show-episodes-controls\" }\n },\n [\n _vm.type === \"show\"\n ? _c(\"div\", { staticClass: \"row key\" }, [\n _c(\n \"div\",\n {\n staticClass: \"col-lg-12\",\n attrs: { id: \"checkboxControls\" }\n },\n [\n _c(\n \"div\",\n {\n staticClass: \"pull-left top-5\",\n attrs: { id: \"key-padding\" }\n },\n [\n _vm.show.seasons\n ? [\n _c(\n \"label\",\n { attrs: { for: \"wanted\" } },\n [\n _c(\n \"span\",\n { staticClass: \"wanted\" },\n [\n _c(\"input\", {\n attrs: {\n type: \"checkbox\",\n id: \"wanted\",\n checked: \"checked\"\n },\n on: {\n input: function($event) {\n return _vm.showHideRows(\n \"wanted\"\n )\n }\n }\n }),\n _vm._v(\" Wanted: \"),\n _c(\"b\", [\n _vm._v(\n _vm._s(\n _vm.episodeSummary.Wanted\n )\n )\n ])\n ]\n )\n ]\n ),\n _vm._v(\" \"),\n _c(\"label\", { attrs: { for: \"qual\" } }, [\n _c(\"span\", { staticClass: \"qual\" }, [\n _c(\"input\", {\n attrs: {\n type: \"checkbox\",\n id: \"qual\",\n checked: \"checked\"\n },\n on: {\n input: function($event) {\n return _vm.showHideRows(\"qual\")\n }\n }\n }),\n _vm._v(\" Allowed: \"),\n _c(\"b\", [\n _vm._v(\n _vm._s(_vm.episodeSummary.Allowed)\n )\n ])\n ])\n ]),\n _vm._v(\" \"),\n _c(\"label\", { attrs: { for: \"good\" } }, [\n _c(\"span\", { staticClass: \"good\" }, [\n _c(\"input\", {\n attrs: {\n type: \"checkbox\",\n id: \"good\",\n checked: \"checked\"\n },\n on: {\n input: function($event) {\n return _vm.showHideRows(\"good\")\n }\n }\n }),\n _vm._v(\" Preferred: \"),\n _c(\"b\", [\n _vm._v(\n _vm._s(\n _vm.episodeSummary.Preferred\n )\n )\n ])\n ])\n ]),\n _vm._v(\" \"),\n _c(\n \"label\",\n { attrs: { for: \"skipped\" } },\n [\n _c(\n \"span\",\n { staticClass: \"skipped\" },\n [\n _c(\"input\", {\n attrs: {\n type: \"checkbox\",\n id: \"skipped\",\n checked: \"checked\"\n },\n on: {\n input: function($event) {\n return _vm.showHideRows(\n \"skipped\"\n )\n }\n }\n }),\n _vm._v(\" Skipped: \"),\n _c(\"b\", [\n _vm._v(\n _vm._s(\n _vm.episodeSummary.Skipped\n )\n )\n ])\n ]\n )\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"label\",\n { attrs: { for: \"snatched\" } },\n [\n _c(\n \"span\",\n { staticClass: \"snatched\" },\n [\n _c(\"input\", {\n attrs: {\n type: \"checkbox\",\n id: \"snatched\",\n checked: \"checked\"\n },\n on: {\n input: function($event) {\n return _vm.showHideRows(\n \"snatched\"\n )\n }\n }\n }),\n _vm._v(\" Snatched: \"),\n _c(\"b\", [\n _vm._v(\n _vm._s(\n _vm.episodeSummary\n .Snatched +\n _vm.episodeSummary[\n \"Snatched (Proper)\"\n ] +\n _vm.episodeSummary[\n \"Snatched (Best)\"\n ]\n )\n )\n ])\n ]\n )\n ]\n )\n ]\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"button\",\n {\n staticClass: \"btn-medusa seriesCheck\",\n on: { click: _vm.selectEpisodesClicked }\n },\n [_vm._v(\"Select Episodes\")]\n ),\n _vm._v(\" \"),\n _c(\n \"button\",\n {\n staticClass: \"btn-medusa clearAll\",\n on: {\n click: _vm.clearEpisodeSelectionClicked\n }\n },\n [_vm._v(\"Clear\")]\n )\n ],\n 2\n ),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"pull-lg-right top-5\" }, [\n _c(\n \"select\",\n {\n staticClass:\n \"form-control form-control-inline input-sm-custom input-sm-smallfont\",\n attrs: { id: \"statusSelect\" }\n },\n [\n _c(\"option\", { domProps: { value: null } }, [\n _vm._v(\"Change status to:\")\n ]),\n _vm._v(\" \"),\n _vm._l(_vm.changeStatusOptions, function(\n status\n ) {\n return _c(\n \"option\",\n {\n key: status.key,\n domProps: { value: status.value }\n },\n [\n _vm._v(\n \"\\n \" +\n _vm._s(status.name) +\n \"\\n \"\n )\n ]\n )\n })\n ],\n 2\n ),\n _vm._v(\" \"),\n _c(\n \"select\",\n {\n staticClass:\n \"form-control form-control-inline input-sm-custom input-sm-smallfont\",\n attrs: { id: \"qualitySelect\" }\n },\n [\n _c(\"option\", { domProps: { value: null } }, [\n _vm._v(\"Change quality to:\")\n ]),\n _vm._v(\" \"),\n _vm._l(_vm.qualities, function(quality) {\n return _c(\n \"option\",\n {\n key: quality.key,\n domProps: { value: quality.value }\n },\n [\n _vm._v(\n \"\\n \" +\n _vm._s(quality.name) +\n \"\\n \"\n )\n ]\n )\n })\n ],\n 2\n ),\n _vm._v(\" \"),\n _c(\"input\", {\n attrs: { type: \"hidden\", id: \"series-slug\" },\n domProps: { value: _vm.show.id.slug }\n }),\n _vm._v(\" \"),\n _c(\"input\", {\n attrs: { type: \"hidden\", id: \"series-id\" },\n domProps: {\n value: _vm.show.id[_vm.show.indexer]\n }\n }),\n _vm._v(\" \"),\n _c(\"input\", {\n attrs: { type: \"hidden\", id: \"indexer\" },\n domProps: { value: _vm.show.indexer }\n }),\n _vm._v(\" \"),\n _c(\"input\", {\n staticClass: \"btn-medusa\",\n attrs: {\n type: \"button\",\n id: \"changeStatus\",\n value: \"Go\"\n },\n on: { click: _vm.changeStatusClicked }\n })\n ])\n ]\n )\n ])\n : _c(\"div\")\n ]\n )\n ]\n )\n : _vm._e()\n ],\n 2\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/components/show-header.vue?./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\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 { staticClass: \"show-header-container\" },\n [\n _c(\"div\", { staticClass: \"row\" }, [\n _vm.show\n ? _c(\n \"div\",\n {\n staticClass: \"col-lg-12\",\n attrs: { id: \"showtitle\", \"data-showname\": _vm.show.title }\n },\n [\n _c(\"div\", [\n _c(\n \"h1\",\n {\n staticClass: \"title\",\n attrs: {\n \"data-indexer-name\": _vm.show.indexer,\n \"data-series-id\": _vm.show.id[_vm.show.indexer],\n id: \"scene_exception_\" + _vm.show.id[_vm.show.indexer]\n }\n },\n [\n _c(\n \"app-link\",\n {\n staticClass: \"snatchTitle\",\n attrs: {\n href:\n \"home/displayShow?indexername=\" +\n _vm.show.indexer +\n \"&seriesid=\" +\n _vm.show.id[_vm.show.indexer]\n }\n },\n [_vm._v(_vm._s(_vm.show.title))]\n )\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _vm.type === \"snatch-selection\"\n ? _c(\n \"div\",\n {\n staticClass: \"pull-right\",\n attrs: { id: \"show-specials-and-seasons\" }\n },\n [\n _c(\n \"span\",\n { staticClass: \"h2footer display-specials\" },\n [\n _vm._v(\"\\n Manual search for:\"),\n _c(\"br\"),\n _vm._v(\" \"),\n _c(\n \"app-link\",\n {\n staticClass: \"snatchTitle\",\n attrs: {\n href:\n \"home/displayShow?indexername=\" +\n _vm.show.indexer +\n \"&seriesid=\" +\n _vm.show.id[_vm.show.indexer]\n }\n },\n [_vm._v(_vm._s(_vm.show.title))]\n ),\n _vm._v(\" / Season \" + _vm._s(_vm.season)),\n _vm.episode !== undefined &&\n _vm.manualSearchType !== \"season\"\n ? [_vm._v(\" Episode \" + _vm._s(_vm.episode))]\n : _vm._e()\n ],\n 2\n )\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.type !== \"snatch-selection\" && _vm.seasons.length >= 1\n ? _c(\n \"div\",\n {\n staticClass: \"pull-right\",\n attrs: { id: \"show-specials-and-seasons\" }\n },\n [\n _vm.seasons.includes(0)\n ? _c(\n \"span\",\n { staticClass: \"h2footer display-specials\" },\n [\n _vm._v(\n \"\\n Display Specials: \"\n ),\n _c(\n \"a\",\n {\n staticClass: \"inner\",\n staticStyle: { cursor: \"pointer\" },\n on: {\n click: function($event) {\n return _vm.toggleSpecials()\n }\n }\n },\n [\n _vm._v(\n _vm._s(\n _vm.displaySpecials ? \"Hide\" : \"Show\"\n )\n )\n ]\n )\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"div\",\n { staticClass: \"h2footer display-seasons clear\" },\n [\n _c(\n \"span\",\n [\n _vm.seasons.length >= 15\n ? _c(\n \"select\",\n {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.jumpToSeason,\n expression: \"jumpToSeason\"\n }\n ],\n staticClass: \"form-control input-sm\",\n staticStyle: { position: \"relative\" },\n attrs: { id: \"seasonJump\" },\n on: {\n change: function($event) {\n var $$selectedVal = Array.prototype.filter\n .call(\n $event.target.options,\n function(o) {\n return o.selected\n }\n )\n .map(function(o) {\n var val =\n \"_value\" in o\n ? o._value\n : o.value\n return val\n })\n _vm.jumpToSeason = $event.target\n .multiple\n ? $$selectedVal\n : $$selectedVal[0]\n }\n }\n },\n [\n _c(\n \"option\",\n { attrs: { value: \"jump\" } },\n [_vm._v(\"Jump to Season\")]\n ),\n _vm._v(\" \"),\n _vm._l(_vm.seasons, function(\n seasonNumber\n ) {\n return _c(\n \"option\",\n {\n key:\n \"jumpToSeason-\" + seasonNumber,\n domProps: { value: seasonNumber }\n },\n [\n _vm._v(\n \"\\n \" +\n _vm._s(\n seasonNumber === 0\n ? \"Specials\"\n : \"Season \" + seasonNumber\n ) +\n \"\\n \"\n )\n ]\n )\n })\n ],\n 2\n )\n : _vm.seasons.length >= 1\n ? [\n _vm._v(\n \"\\n Season:\\n \"\n ),\n _vm._l(_vm.reverse(_vm.seasons), function(\n seasonNumber,\n index\n ) {\n return [\n _c(\n \"app-link\",\n {\n key:\n \"jumpToSeason-\" + seasonNumber,\n attrs: {\n href: \"#season-\" + seasonNumber\n },\n nativeOn: {\n click: function($event) {\n $event.preventDefault()\n _vm.jumpToSeason = seasonNumber\n }\n }\n },\n [\n _vm._v(\n \"\\n \" +\n _vm._s(\n seasonNumber === 0\n ? \"Specials\"\n : seasonNumber\n ) +\n \"\\n \"\n )\n ]\n ),\n _vm._v(\" \"),\n index !== _vm.seasons.length - 1\n ? _c(\n \"span\",\n {\n key: \"separator-\" + index,\n staticClass: \"separator\"\n },\n [_vm._v(\"| \")]\n )\n : _vm._e()\n ]\n })\n ]\n : _vm._e()\n ],\n 2\n )\n ]\n )\n ]\n )\n : _vm._e()\n ]\n )\n : _vm._e()\n ]),\n _vm._v(\" \"),\n _vm._l(_vm.activeShowQueueStatuses, function(queueItem) {\n return _c(\"div\", { key: queueItem.action, staticClass: \"row\" }, [\n _c(\"div\", { staticClass: \"alert alert-info\" }, [\n _vm._v(\"\\n \" + _vm._s(queueItem.message) + \"\\n \")\n ])\n ])\n }),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"row\", attrs: { id: \"row-show-summary\" } }, [\n _c(\n \"div\",\n { staticClass: \"col-md-12\", attrs: { id: \"col-show-summary\" } },\n [\n _c(\"div\", { staticClass: \"show-poster-container\" }, [\n _c(\"div\", { staticClass: \"row\" }, [\n _c(\n \"div\",\n { staticClass: \"image-flex-container col-md-12\" },\n [\n _c(\"asset\", {\n attrs: {\n default: \"images/poster.png\",\n \"show-slug\": _vm.show.id.slug,\n type: \"posterThumb\",\n cls: \"show-image shadow\",\n link: true\n }\n })\n ],\n 1\n )\n ])\n ]),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"ver-spacer\" }),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"show-info-container\" }, [\n _c(\"div\", { staticClass: \"row\" }, [\n _c(\n \"div\",\n {\n staticClass:\n \"pull-right col-lg-3 col-md-3 hidden-sm hidden-xs\"\n },\n [\n _c(\"asset\", {\n attrs: {\n default: \"images/banner.png\",\n \"show-slug\": _vm.show.id.slug,\n type: \"banner\",\n cls: \"show-banner pull-right shadow\",\n link: true\n }\n })\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n staticClass:\n \"pull-left col-lg-9 col-md-9 col-sm-12 col-xs-12\",\n attrs: { id: \"show-rating\" }\n },\n [\n _vm.show.rating.imdb && _vm.show.rating.imdb.rating\n ? _c(\n \"span\",\n {\n staticClass: \"imdbstars\",\n attrs: {\n \"qtip-content\":\n _vm.show.rating.imdb.rating +\n \" / 10 Stars
\" +\n _vm.show.rating.imdb.votes +\n \" Votes\"\n }\n },\n [\n _c(\"span\", {\n style: {\n width:\n Number(_vm.show.rating.imdb.rating) * 12 + \"%\"\n }\n })\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n !_vm.show.id.imdb\n ? [\n _vm.show.year.start\n ? _c(\"span\", [\n _vm._v(\n \"(\" +\n _vm._s(_vm.show.year.start) +\n \") - \" +\n _vm._s(_vm.show.runtime) +\n \" minutes - \"\n )\n ])\n : _vm._e()\n ]\n : [\n _vm._l(_vm.show.countryCodes, function(country) {\n return _c(\"img\", {\n key: \"flag-\" + country,\n class: [\"country-flag\", \"flag-\" + country],\n staticStyle: {\n \"margin-left\": \"3px\",\n \"vertical-align\": \"middle\"\n },\n attrs: {\n src: \"images/blank.png\",\n width: \"16\",\n height: \"11\"\n }\n })\n }),\n _vm._v(\" \"),\n _vm.show.imdbInfo.year\n ? _c(\"span\", [\n _vm._v(\n \"\\n (\" +\n _vm._s(_vm.show.imdbInfo.year) +\n \") -\\n \"\n )\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _c(\"span\", [\n _vm._v(\n \"\\n \" +\n _vm._s(\n _vm.show.imdbInfo.runtimes || _vm.show.runtime\n ) +\n \" minutes\\n \"\n )\n ]),\n _vm._v(\" \"),\n _c(\n \"app-link\",\n {\n attrs: {\n href:\n \"https://www.imdb.com/title/\" +\n _vm.show.id.imdb,\n title:\n \"https://www.imdb.com/title/\" +\n _vm.show.id.imdb\n }\n },\n [\n _c(\"img\", {\n staticStyle: {\n \"margin-top\": \"-1px\",\n \"vertical-align\": \"middle\"\n },\n attrs: {\n alt: \"[imdb]\",\n height: \"16\",\n width: \"16\",\n src: \"images/imdb.png\"\n }\n })\n ]\n )\n ],\n _vm._v(\" \"),\n _vm.show.id.trakt\n ? _c(\n \"app-link\",\n {\n attrs: {\n href:\n \"https://trakt.tv/shows/\" + _vm.show.id.trakt,\n title:\n \"https://trakt.tv/shows/\" + _vm.show.id.trakt\n }\n },\n [\n _c(\"img\", {\n attrs: {\n alt: \"[trakt]\",\n height: \"16\",\n width: \"16\",\n src: \"images/trakt.png\"\n }\n })\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.showIndexerUrl &&\n _vm.indexerConfig[_vm.show.indexer].icon\n ? _c(\n \"app-link\",\n {\n attrs: {\n href: _vm.showIndexerUrl,\n title: _vm.showIndexerUrl\n }\n },\n [\n _c(\"img\", {\n staticStyle: {\n \"margin-top\": \"-1px\",\n \"vertical-align\": \"middle\"\n },\n attrs: {\n alt: _vm.indexerConfig[_vm.show.indexer].name,\n height: \"16\",\n width: \"16\",\n src:\n \"images/\" +\n _vm.indexerConfig[_vm.show.indexer].icon\n }\n })\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.xemNumbering && _vm.show.xemNumbering.length > 0\n ? _c(\n \"app-link\",\n {\n attrs: {\n href:\n \"http://thexem.de/search?q=\" + _vm.show.title,\n title:\n \"http://thexem.de/search?q=\" + _vm.show.title\n }\n },\n [\n _c(\"img\", {\n staticStyle: {\n \"margin-top\": \"-1px\",\n \"vertical-align\": \"middle\"\n },\n attrs: {\n alt: \"[xem]\",\n height: \"16\",\n width: \"16\",\n src: \"images/xem.png\"\n }\n })\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.id.tvdb\n ? _c(\n \"app-link\",\n {\n attrs: {\n href:\n \"https://fanart.tv/series/\" + _vm.show.id.tvdb,\n title:\n \"https://fanart.tv/series/\" +\n _vm.show.id[_vm.show.indexer]\n }\n },\n [\n _c(\"img\", {\n staticClass: \"fanart\",\n attrs: {\n alt: \"[fanart.tv]\",\n height: \"16\",\n width: \"16\",\n src: \"images/fanart.tv.png\"\n }\n })\n ]\n )\n : _vm._e()\n ],\n 2\n ),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n staticClass:\n \"pull-left col-lg-9 col-md-9 col-sm-12 col-xs-12\",\n attrs: { id: \"tags\" }\n },\n [\n _vm.show.genres\n ? _c(\n \"ul\",\n { staticClass: \"tags\" },\n _vm._l(_vm.dedupeGenres(_vm.show.genres), function(\n genre\n ) {\n return _c(\n \"app-link\",\n {\n key: genre.toString(),\n attrs: {\n href:\n \"https://trakt.tv/shows/popular/?genres=\" +\n genre.toLowerCase().replace(\" \", \"-\"),\n title:\n \"View other popular \" +\n genre +\n \" shows on trakt.tv\"\n }\n },\n [_c(\"li\", [_vm._v(_vm._s(genre))])]\n )\n }),\n 1\n )\n : _c(\n \"ul\",\n { staticClass: \"tags\" },\n _vm._l(_vm.showGenres, function(genre) {\n return _c(\n \"app-link\",\n {\n key: genre.toString(),\n attrs: {\n href:\n \"https://www.imdb.com/search/title?count=100&title_type=tv_series&genres=\" +\n genre.toLowerCase().replace(\" \", \"-\"),\n title:\n \"View other popular \" +\n genre +\n \" shows on IMDB\"\n }\n },\n [_c(\"li\", [_vm._v(_vm._s(genre))])]\n )\n }),\n 1\n )\n ]\n )\n ]),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"row\" }, [\n _c(\n \"div\",\n { staticClass: \"col-md-12\", attrs: { id: \"summary\" } },\n [\n _c(\n \"div\",\n {\n class: [\n { summaryFanArt: _vm.config.fanartBackground },\n \"col-lg-9\",\n \"col-md-8\",\n \"col-sm-8\",\n \"col-xs-12\"\n ],\n attrs: { id: \"show-summary\" }\n },\n [\n _c(\n \"table\",\n { staticClass: \"summaryTable pull-left\" },\n [\n _vm.show.plot\n ? _c(\"tr\", [\n _c(\n \"td\",\n {\n staticStyle: { \"padding-bottom\": \"15px\" },\n attrs: { colspan: \"2\" }\n },\n [\n _c(\"truncate\", {\n attrs: {\n length: 250,\n clamp: \"show more...\",\n less: \"show less...\",\n text: _vm.show.plot\n },\n on: {\n toggle: function($event) {\n return _vm.$emit(\"reflow\")\n }\n }\n })\n ],\n 1\n )\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.getQualityPreset({\n value: _vm.combinedQualities\n }) !== undefined\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Quality:\")\n ]),\n _vm._v(\" \"),\n _c(\n \"td\",\n [\n _c(\"quality-pill\", {\n attrs: {\n quality: _vm.combinedQualities\n }\n })\n ],\n 1\n )\n ])\n : [\n _vm.combineQualities(\n _vm.show.config.qualities.allowed\n ) > 0\n ? _c(\"tr\", [\n _c(\n \"td\",\n { staticClass: \"showLegend\" },\n [_vm._v(\"Allowed Qualities:\")]\n ),\n _vm._v(\" \"),\n _c(\n \"td\",\n [\n _vm._l(\n _vm.show.config.qualities.allowed,\n function(curQuality, index) {\n return [\n _vm._v(\n _vm._s(\n index > 0 ? \", \" : \"\"\n )\n ),\n _c(\"quality-pill\", {\n key:\n \"allowed-\" + curQuality,\n attrs: {\n quality: curQuality\n }\n })\n ]\n }\n )\n ],\n 2\n )\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.combineQualities(\n _vm.show.config.qualities.preferred\n ) > 0\n ? _c(\"tr\", [\n _c(\n \"td\",\n { staticClass: \"showLegend\" },\n [_vm._v(\"Preferred Qualities:\")]\n ),\n _vm._v(\" \"),\n _c(\n \"td\",\n [\n _vm._l(\n _vm.show.config.qualities\n .preferred,\n function(curQuality, index) {\n return [\n _vm._v(\n _vm._s(\n index > 0 ? \", \" : \"\"\n )\n ),\n _c(\"quality-pill\", {\n key:\n \"preferred-\" + curQuality,\n attrs: {\n quality: curQuality\n }\n })\n ]\n }\n )\n ],\n 2\n )\n ])\n : _vm._e()\n ],\n _vm._v(\" \"),\n _vm.show.network && _vm.show.airs\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Originally Airs: \")\n ]),\n _c(\"td\", [\n _vm._v(_vm._s(_vm.show.airs)),\n !_vm.show.airsFormatValid\n ? _c(\n \"b\",\n { staticClass: \"invalid-value\" },\n [_vm._v(\" (invalid time format)\")]\n )\n : _vm._e(),\n _vm._v(\" on \" + _vm._s(_vm.show.network))\n ])\n ])\n : _vm.show.network\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Originally Airs: \")\n ]),\n _c(\"td\", [_vm._v(_vm._s(_vm.show.network))])\n ])\n : _vm.show.airs\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Originally Airs: \")\n ]),\n _c(\"td\", [\n _vm._v(_vm._s(_vm.show.airs)),\n !_vm.show.airsFormatValid\n ? _c(\n \"b\",\n { staticClass: \"invalid-value\" },\n [_vm._v(\" (invalid time format)\")]\n )\n : _vm._e()\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Show Status: \")\n ]),\n _c(\"td\", [_vm._v(_vm._s(_vm.show.status))])\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Default EP Status: \")\n ]),\n _c(\"td\", [\n _vm._v(\n _vm._s(_vm.show.config.defaultEpisodeStatus)\n )\n ])\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _c(\n \"span\",\n {\n class: {\n \"invalid-value\": !_vm.show.config\n .locationValid\n }\n },\n [_vm._v(\"Location: \")]\n )\n ]),\n _c(\"td\", [\n _c(\n \"span\",\n {\n class: {\n \"invalid-value\": !_vm.show.config\n .locationValid\n }\n },\n [_vm._v(_vm._s(_vm.show.config.location))]\n ),\n _vm._v(\n _vm._s(\n _vm.show.config.locationValid\n ? \"\"\n : \" (Missing)\"\n )\n )\n ])\n ]),\n _vm._v(\" \"),\n _vm.show.config.aliases.length > 0\n ? _c(\"tr\", [\n _c(\n \"td\",\n {\n staticClass: \"showLegend\",\n staticStyle: { \"vertical-align\": \"top\" }\n },\n [_vm._v(\"Scene Name:\")]\n ),\n _vm._v(\" \"),\n _c(\"td\", [\n _vm._v(\n _vm._s(_vm.show.config.aliases.join(\", \"))\n )\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.config.release.requiredWords.length +\n _vm.search.filters.required.length >\n 0\n ? _c(\"tr\", [\n _c(\n \"td\",\n {\n staticClass: \"showLegend\",\n staticStyle: { \"vertical-align\": \"top\" }\n },\n [\n _c(\n \"span\",\n {\n class: {\n required:\n _vm.type === \"snatch-selection\"\n }\n },\n [_vm._v(\"Required Words: \")]\n )\n ]\n ),\n _vm._v(\" \"),\n _c(\"td\", [\n _vm.show.config.release.requiredWords.length\n ? _c(\n \"span\",\n { staticClass: \"break-word\" },\n [\n _vm._v(\n \"\\n \" +\n _vm._s(\n _vm.show.config.release.requiredWords.join(\n \", \"\n )\n ) +\n \"\\n \"\n )\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.search.filters.required.length > 0\n ? _c(\n \"span\",\n {\n staticClass:\n \"break-word global-filter\"\n },\n [\n _c(\n \"app-link\",\n {\n attrs: {\n href:\n \"config/search/#searchfilters\"\n }\n },\n [\n _vm.show.config.release\n .requiredWords.length > 0\n ? [\n _vm.show.config.release\n .requiredWordsExclude\n ? _c(\"span\", [\n _vm._v(\n \" excluded from: \"\n )\n ])\n : _c(\"span\", [\n _vm._v(\"+ \")\n ])\n ]\n : _vm._e(),\n _vm._v(\n \"\\n \" +\n _vm._s(\n _vm.search.filters.required.join(\n \", \"\n )\n ) +\n \"\\n \"\n )\n ],\n 2\n )\n ],\n 1\n )\n : _vm._e()\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.config.release.ignoredWords.length +\n _vm.search.filters.ignored.length >\n 0\n ? _c(\"tr\", [\n _c(\n \"td\",\n {\n staticClass: \"showLegend\",\n staticStyle: { \"vertical-align\": \"top\" }\n },\n [\n _c(\n \"span\",\n {\n class: {\n ignored:\n _vm.type === \"snatch-selection\"\n }\n },\n [_vm._v(\"Ignored Words: \")]\n )\n ]\n ),\n _vm._v(\" \"),\n _c(\"td\", [\n _vm.show.config.release.ignoredWords.length\n ? _c(\n \"span\",\n { staticClass: \"break-word\" },\n [\n _vm._v(\n \"\\n \" +\n _vm._s(\n _vm.show.config.release.ignoredWords.join(\n \", \"\n )\n ) +\n \"\\n \"\n )\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.search.filters.ignored.length > 0\n ? _c(\n \"span\",\n {\n staticClass:\n \"break-word global-filter\"\n },\n [\n _c(\n \"app-link\",\n {\n attrs: {\n href:\n \"config/search/#searchfilters\"\n }\n },\n [\n _vm.show.config.release\n .ignoredWords.length > 0\n ? [\n _vm.show.config.release\n .ignoredWordsExclude\n ? _c(\"span\", [\n _vm._v(\n \" excluded from: \"\n )\n ])\n : _c(\"span\", [\n _vm._v(\"+ \")\n ])\n ]\n : _vm._e(),\n _vm._v(\n \"\\n \" +\n _vm._s(\n _vm.search.filters.ignored.join(\n \", \"\n )\n ) +\n \"\\n \"\n )\n ],\n 2\n )\n ],\n 1\n )\n : _vm._e()\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.search.filters.preferred.length > 0\n ? _c(\"tr\", [\n _c(\n \"td\",\n {\n staticClass: \"showLegend\",\n staticStyle: { \"vertical-align\": \"top\" }\n },\n [\n _c(\n \"span\",\n {\n class: {\n preferred:\n _vm.type === \"snatch-selection\"\n }\n },\n [_vm._v(\"Preferred Words: \")]\n )\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"td\",\n [\n _c(\n \"app-link\",\n {\n attrs: {\n href: \"config/search/#searchfilters\"\n }\n },\n [\n _c(\n \"span\",\n { staticClass: \"break-word\" },\n [\n _vm._v(\n _vm._s(\n _vm.search.filters.preferred.join(\n \", \"\n )\n )\n )\n ]\n )\n ]\n )\n ],\n 1\n )\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.search.filters.undesired.length > 0\n ? _c(\"tr\", [\n _c(\n \"td\",\n {\n staticClass: \"showLegend\",\n staticStyle: { \"vertical-align\": \"top\" }\n },\n [\n _c(\n \"span\",\n {\n class: {\n undesired:\n _vm.type === \"snatch-selection\"\n }\n },\n [_vm._v(\"Undesired Words: \")]\n )\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"td\",\n [\n _c(\n \"app-link\",\n {\n attrs: {\n href: \"config/search/#searchfilters\"\n }\n },\n [\n _c(\n \"span\",\n { staticClass: \"break-word\" },\n [\n _vm._v(\n _vm._s(\n _vm.search.filters.undesired.join(\n \", \"\n )\n )\n )\n ]\n )\n ]\n )\n ],\n 1\n )\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.config.release.whitelist &&\n _vm.show.config.release.whitelist.length > 0\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Wanted Groups:\")\n ]),\n _vm._v(\" \"),\n _c(\"td\", [\n _vm._v(\n _vm._s(\n _vm.show.config.release.whitelist.join(\n \", \"\n )\n )\n )\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.config.release.blacklist &&\n _vm.show.config.release.blacklist.length > 0\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Unwanted Groups:\")\n ]),\n _vm._v(\" \"),\n _c(\"td\", [\n _vm._v(\n _vm._s(\n _vm.show.config.release.blacklist.join(\n \", \"\n )\n )\n )\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.config.airdateOffset !== 0\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Daily search offset:\")\n ]),\n _vm._v(\" \"),\n _c(\"td\", [\n _vm._v(\n _vm._s(_vm.show.config.airdateOffset) +\n \" hours\"\n )\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.show.config.locationValid && _vm.show.size > -1\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Size:\")\n ]),\n _vm._v(\" \"),\n _c(\"td\", [\n _vm._v(\n _vm._s(_vm.humanFileSize(_vm.show.size))\n )\n ])\n ])\n : _vm._e()\n ],\n 2\n )\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n staticClass:\n \"col-lg-3 col-md-4 col-sm-4 col-xs-12 pull-xs-left\",\n attrs: { id: \"show-status\" }\n },\n [\n _c(\n \"table\",\n {\n staticClass:\n \"pull-xs-left pull-md-right pull-sm-right pull-lg-right\"\n },\n [\n _vm.show.language\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Info Language:\")\n ]),\n _c(\"td\", [\n _c(\"img\", {\n attrs: {\n src:\n \"images/subtitles/flags/\" +\n _vm.getCountryISO2ToISO3(\n _vm.show.language\n ) +\n \".png\",\n width: \"16\",\n height: \"11\",\n alt: _vm.show.language,\n title: _vm.show.language,\n onError:\n \"this.onerror=null;this.src='images/flags/unknown.png';\"\n }\n })\n ])\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.config.subtitles.enabled\n ? _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Subtitles: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state:\n _vm.show.config.subtitlesEnabled\n }\n })\n ],\n 1\n )\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Season Folders: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state:\n _vm.show.config.seasonFolders ||\n _vm.config.namingForceFolders\n }\n })\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Paused: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state: _vm.show.config.paused\n }\n })\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Air-by-Date: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state: _vm.show.config.airByDate\n }\n })\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Sports: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state: _vm.show.config.sports\n }\n })\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Anime: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state: _vm.show.config.anime\n }\n })\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"DVD Order: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state: _vm.show.config.dvdOrder\n }\n })\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _c(\"tr\", [\n _c(\"td\", { staticClass: \"showLegend\" }, [\n _vm._v(\"Scene Numbering: \")\n ]),\n _c(\n \"td\",\n [\n _c(\"state-switch\", {\n attrs: {\n theme: _vm.config.themeName,\n state: _vm.show.config.scene\n }\n })\n ],\n 1\n )\n ])\n ]\n )\n ]\n )\n ]\n )\n ])\n ])\n ]\n )\n ]),\n _vm._v(\" \"),\n _vm.show\n ? _c(\n \"div\",\n { staticClass: \"row\", attrs: { id: \"row-show-episodes-controls\" } },\n [\n _c(\n \"div\",\n {\n staticClass: \"col-md-12\",\n attrs: { id: \"col-show-episodes-controls\" }\n },\n [\n _vm.type === \"show\"\n ? _c(\"div\", { staticClass: \"row key\" }, [\n _c(\n \"div\",\n {\n staticClass: \"col-lg-12\",\n attrs: { id: \"checkboxControls\" }\n },\n [\n _c(\n \"div\",\n {\n staticClass: \"pull-left top-5\",\n attrs: { id: \"key-padding\" }\n },\n [\n _vm.show.seasons\n ? [\n _c(\n \"label\",\n { attrs: { for: \"wanted\" } },\n [\n _c(\n \"span\",\n { staticClass: \"wanted\" },\n [\n _c(\"input\", {\n attrs: {\n type: \"checkbox\",\n id: \"wanted\",\n checked: \"checked\"\n },\n on: {\n input: function($event) {\n return _vm.showHideRows(\n \"wanted\"\n )\n }\n }\n }),\n _vm._v(\" Wanted: \"),\n _c(\"b\", [\n _vm._v(\n _vm._s(\n _vm.episodeSummary.Wanted\n )\n )\n ])\n ]\n )\n ]\n ),\n _vm._v(\" \"),\n _c(\"label\", { attrs: { for: \"qual\" } }, [\n _c(\"span\", { staticClass: \"qual\" }, [\n _c(\"input\", {\n attrs: {\n type: \"checkbox\",\n id: \"qual\",\n checked: \"checked\"\n },\n on: {\n input: function($event) {\n return _vm.showHideRows(\"qual\")\n }\n }\n }),\n _vm._v(\" Allowed: \"),\n _c(\"b\", [\n _vm._v(\n _vm._s(_vm.episodeSummary.Allowed)\n )\n ])\n ])\n ]),\n _vm._v(\" \"),\n _c(\"label\", { attrs: { for: \"good\" } }, [\n _c(\"span\", { staticClass: \"good\" }, [\n _c(\"input\", {\n attrs: {\n type: \"checkbox\",\n id: \"good\",\n checked: \"checked\"\n },\n on: {\n input: function($event) {\n return _vm.showHideRows(\"good\")\n }\n }\n }),\n _vm._v(\" Preferred: \"),\n _c(\"b\", [\n _vm._v(\n _vm._s(\n _vm.episodeSummary.Preferred\n )\n )\n ])\n ])\n ]),\n _vm._v(\" \"),\n _c(\n \"label\",\n { attrs: { for: \"skipped\" } },\n [\n _c(\n \"span\",\n { staticClass: \"skipped\" },\n [\n _c(\"input\", {\n attrs: {\n type: \"checkbox\",\n id: \"skipped\",\n checked: \"checked\"\n },\n on: {\n input: function($event) {\n return _vm.showHideRows(\n \"skipped\"\n )\n }\n }\n }),\n _vm._v(\" Skipped: \"),\n _c(\"b\", [\n _vm._v(\n _vm._s(\n _vm.episodeSummary.Skipped\n )\n )\n ])\n ]\n )\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"label\",\n { attrs: { for: \"snatched\" } },\n [\n _c(\n \"span\",\n { staticClass: \"snatched\" },\n [\n _c(\"input\", {\n attrs: {\n type: \"checkbox\",\n id: \"snatched\",\n checked: \"checked\"\n },\n on: {\n input: function($event) {\n return _vm.showHideRows(\n \"snatched\"\n )\n }\n }\n }),\n _vm._v(\" Snatched: \"),\n _c(\"b\", [\n _vm._v(\n _vm._s(\n _vm.episodeSummary\n .Snatched +\n _vm.episodeSummary[\n \"Snatched (Proper)\"\n ] +\n _vm.episodeSummary[\n \"Snatched (Best)\"\n ]\n )\n )\n ])\n ]\n )\n ]\n )\n ]\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"button\",\n {\n staticClass: \"btn-medusa seriesCheck\",\n on: { click: _vm.selectEpisodesClicked }\n },\n [_vm._v(\"Select Episodes\")]\n ),\n _vm._v(\" \"),\n _c(\n \"button\",\n {\n staticClass: \"btn-medusa clearAll\",\n on: {\n click: _vm.clearEpisodeSelectionClicked\n }\n },\n [_vm._v(\"Clear\")]\n )\n ],\n 2\n ),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"pull-lg-right top-5\" }, [\n _c(\n \"select\",\n {\n staticClass:\n \"form-control form-control-inline input-sm-custom input-sm-smallfont\",\n attrs: { id: \"statusSelect\" }\n },\n [\n _c(\"option\", { domProps: { value: null } }, [\n _vm._v(\"Change status to:\")\n ]),\n _vm._v(\" \"),\n _vm._l(_vm.changeStatusOptions, function(\n status\n ) {\n return _c(\n \"option\",\n {\n key: status.key,\n domProps: { value: status.value }\n },\n [\n _vm._v(\n \"\\n \" +\n _vm._s(status.name) +\n \"\\n \"\n )\n ]\n )\n })\n ],\n 2\n ),\n _vm._v(\" \"),\n _c(\n \"select\",\n {\n staticClass:\n \"form-control form-control-inline input-sm-custom input-sm-smallfont\",\n attrs: { id: \"qualitySelect\" }\n },\n [\n _c(\"option\", { domProps: { value: null } }, [\n _vm._v(\"Change quality to:\")\n ]),\n _vm._v(\" \"),\n _vm._l(_vm.qualities, function(quality) {\n return _c(\n \"option\",\n {\n key: quality.key,\n domProps: { value: quality.value }\n },\n [\n _vm._v(\n \"\\n \" +\n _vm._s(quality.name) +\n \"\\n \"\n )\n ]\n )\n })\n ],\n 2\n ),\n _vm._v(\" \"),\n _c(\"input\", {\n attrs: { type: \"hidden\", id: \"series-slug\" },\n domProps: { value: _vm.show.id.slug }\n }),\n _vm._v(\" \"),\n _c(\"input\", {\n attrs: { type: \"hidden\", id: \"series-id\" },\n domProps: {\n value: _vm.show.id[_vm.show.indexer]\n }\n }),\n _vm._v(\" \"),\n _c(\"input\", {\n attrs: { type: \"hidden\", id: \"indexer\" },\n domProps: { value: _vm.show.indexer }\n }),\n _vm._v(\" \"),\n _c(\"input\", {\n staticClass: \"btn-medusa\",\n attrs: {\n type: \"button\",\n id: \"changeStatus\",\n value: \"Go\"\n },\n on: { click: _vm.changeStatusClicked }\n })\n ])\n ]\n )\n ])\n : _c(\"div\")\n ]\n )\n ]\n )\n : _vm._e()\n ],\n 2\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/components/show-header.vue?./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options"); /***/ }), diff --git a/themes/light/templates/config_search.mako b/themes/light/templates/config_search.mako index 168a647b0a..70fdec339a 100644 --- a/themes/light/templates/config_search.mako +++ b/themes/light/templates/config_search.mako @@ -520,7 +520,7 @@ window.app = new Vue({
-

Search Filters

+

Search Filters

Options to filter search results