fix: working multi-choice filtering
This commit is contained in:
@@ -1,6 +1,15 @@
|
|||||||
export default class DownloadOptionTr extends HTMLTableRowElement {
|
export default class DownloadOptionTr extends HTMLTableRowElement {
|
||||||
H264_CODECS = ['h264', 'h.264', 'x264']
|
H264_CODECS = {
|
||||||
H265_CODECS = ['h265', 'h.265', 'x265', 'hevc']
|
'h264': 'h264',
|
||||||
|
'h.264': 'h264',
|
||||||
|
'x264': 'h264',
|
||||||
|
}
|
||||||
|
H265_CODECS = {
|
||||||
|
'h265': 'h265',
|
||||||
|
'h.265': 'h265',
|
||||||
|
'x265': 'h265',
|
||||||
|
'hevc': 'h265',
|
||||||
|
}
|
||||||
|
|
||||||
#downloadBtnEl;
|
#downloadBtnEl;
|
||||||
#selectEpisodeInputEl;
|
#selectEpisodeInputEl;
|
||||||
@@ -53,13 +62,6 @@ export default class DownloadOptionTr extends HTMLTableRowElement {
|
|||||||
|
|
||||||
filter({ detail: { activeFilter } }) {
|
filter({ detail: { activeFilter } }) {
|
||||||
const optionHeader = document.querySelector(`[data-option-id="${this.dataset['localId']}"]`)
|
const optionHeader = document.querySelector(`[data-option-id="${this.dataset['localId']}"]`)
|
||||||
const props = {
|
|
||||||
"resolution": this.resolution.trim(),
|
|
||||||
"codec": this.codec.trim(),
|
|
||||||
"provider": this.provider.trim(),
|
|
||||||
"languages": this.languages,
|
|
||||||
"quality": this.quality,
|
|
||||||
}
|
|
||||||
|
|
||||||
let include = true;
|
let include = true;
|
||||||
this.classList.add('r-tablerow');
|
this.classList.add('r-tablerow');
|
||||||
@@ -69,25 +71,24 @@ export default class DownloadOptionTr extends HTMLTableRowElement {
|
|||||||
|
|
||||||
this.querySelector('input[type="checkbox"]').checked = false;
|
this.querySelector('input[type="checkbox"]').checked = false;
|
||||||
|
|
||||||
for (let [key, value] of Object.entries(activeFilter)) {
|
if (!this.#validateResolutions(activeFilter.resolution)) {
|
||||||
if (value === "" || key === "season") {
|
include = false;
|
||||||
continue;
|
}
|
||||||
}
|
|
||||||
if (key === "codec" && value === "h264") {
|
if (!this.#validateCodecs(activeFilter.codec)) {
|
||||||
if (!this.H264_CODECS.includes(props[key].toLowerCase())) {
|
include = false;
|
||||||
include = false;
|
}
|
||||||
}
|
|
||||||
} else if (key === "codec" && value === "h265") {
|
if (!this.#validateLanguages(activeFilter.language)) {
|
||||||
if (!this.H265_CODECS.includes(props[key].toLowerCase())) {
|
include = false;
|
||||||
include = false;
|
}
|
||||||
}
|
|
||||||
} else if (key === "language") {
|
if (!this.#validateQualities(activeFilter.quality)) {
|
||||||
if (!props["languages"].includes(value)) {
|
include = false;
|
||||||
include = false;
|
}
|
||||||
}
|
|
||||||
} else if (props[key] !== value) {
|
if (!this.#validateProviders(activeFilter.provider)) {
|
||||||
include = false;
|
include = false;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (false === include) {
|
if (false === include) {
|
||||||
@@ -121,4 +122,67 @@ export default class DownloadOptionTr extends HTMLTableRowElement {
|
|||||||
console.log(json)
|
console.log(json)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#validateResolutions(selectedOptions) {
|
||||||
|
return this.#validateIntersection(selectedOptions, this.resolution.trim().split(','));
|
||||||
|
}
|
||||||
|
|
||||||
|
#validateCodecs(selectedOptions) {
|
||||||
|
if (this.#validateIntersection(selectedOptions, Object.keys(this.H264_CODECS))) {
|
||||||
|
return this.#validateIntersection(
|
||||||
|
selectedOptions,
|
||||||
|
[...this.codec.trim().split(','), '', 'n/a']
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if (this.#validateIntersection(selectedOptions, Object.keys(this.H265_CODECS))) {
|
||||||
|
return this.#validateIntersection(
|
||||||
|
selectedOptions,
|
||||||
|
[...this.codec.trim().split(','), '', 'n/a']
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
#validateQualities(selectedOptions) {
|
||||||
|
return this.#validateIntersection(selectedOptions, this.quality.trim().split(','));
|
||||||
|
}
|
||||||
|
|
||||||
|
#validateProviders(selectedOptions) {
|
||||||
|
return this.#validateIntersection(selectedOptions, this.provider.trim().split(','));
|
||||||
|
}
|
||||||
|
|
||||||
|
#validateLanguages(selectedOptions) {
|
||||||
|
return this.#validateIntersection(selectedOptions, this.languages);
|
||||||
|
}
|
||||||
|
|
||||||
|
#validateIntersection(selectedOptions, localOptions) {
|
||||||
|
if (selectedOptions === null || selectedOptions === undefined) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof selectedOptions === 'string' || selectedOptions instanceof String) {
|
||||||
|
selectedOptions = [selectedOptions];
|
||||||
|
}
|
||||||
|
|
||||||
|
if (selectedOptions.length === 0 ||
|
||||||
|
(selectedOptions.length === 1 && selectedOptions[0] === "") ||
|
||||||
|
(selectedOptions.length === 1 && selectedOptions[0] === "-") ||
|
||||||
|
(selectedOptions.length === 1 && selectedOptions[0] === "n/a")
|
||||||
|
) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return this.#doesIntersect(localOptions, selectedOptions);
|
||||||
|
}
|
||||||
|
|
||||||
|
#doesIntersect(a, b) {
|
||||||
|
if (a.length === 0 || b.length === 0) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return this.#intersect(a, b).length > 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#intersect(a, b) {
|
||||||
|
return a.filter(Set.prototype.has, new Set(b));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,26 +60,18 @@ export default class extends Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
addLanguages(option) {
|
addLanguages(option) {
|
||||||
const languages = Object.assign([], option.languages);
|
option.languages.forEach((language) => {
|
||||||
languages.forEach((language) => {
|
|
||||||
if (!this.languages.includes(language)) {
|
if (!this.languages.includes(language)) {
|
||||||
this.languages.push(language);
|
this.languages.push(language);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const preferred = this.languageTarget.dataset.preferred;
|
this.languageTarget.innerHTML = '<option value="">n/a</option>';
|
||||||
if (preferred) {
|
|
||||||
this.languageTarget.innerHTML = '<option value="'+preferred+'" selected>'+preferred+'</option>';
|
|
||||||
this.languageTarget.innerHTML += '<option value="">n/a</option>';
|
|
||||||
} else {
|
|
||||||
this.languageTarget.innerHTML = '<option value="">n/a</option>';
|
|
||||||
}
|
|
||||||
|
|
||||||
this.languageTarget.innerHTML += this.languages.sort()
|
this.languageTarget.innerHTML += this.languages.sort()
|
||||||
.map((language) => {
|
.map((language) => {
|
||||||
const preferred = this.languageTarget.dataset.preferred;
|
const preferred = this.languageTarget.dataset.preferred.split(',');
|
||||||
if (preferred === language) {
|
if (preferred.includes(language.toLowerCase())) {
|
||||||
return;
|
return '<option value="'+language+'" selected>'+language+'</option>';
|
||||||
}
|
}
|
||||||
return '<option value="'+language+'">'+language+'</option>';
|
return '<option value="'+language+'">'+language+'</option>';
|
||||||
})
|
})
|
||||||
@@ -141,11 +133,11 @@ export default class extends Controller {
|
|||||||
const downloadSeasonSpan = document.querySelector("#downloadSeasonModal");
|
const downloadSeasonSpan = document.querySelector("#downloadSeasonModal");
|
||||||
|
|
||||||
this.activeFilter = {
|
this.activeFilter = {
|
||||||
"resolution": this.resolutionTarget.value,
|
"resolution": this.#fetchValuesFromNodeList(this.resolutionTarget.selectedOptions),
|
||||||
"codec": this.codecTarget.value,
|
"codec": this.#fetchValuesFromNodeList(this.codecTarget.selectedOptions),
|
||||||
"language": this.languageTarget.value,
|
"language": this.#fetchValuesFromNodeList(this.languageTarget.selectedOptions),
|
||||||
"provider": this.providerTarget.value,
|
"provider": this.#fetchValuesFromNodeList(this.providerTarget.selectedOptions),
|
||||||
"quality": this.qualityTarget.value,
|
"quality": this.#fetchValuesFromNodeList(this.qualityTarget.selectedOptions),
|
||||||
}
|
}
|
||||||
|
|
||||||
if ("tvshows" === this.mediaTypeValue) {
|
if ("tvshows" === this.mediaTypeValue) {
|
||||||
@@ -175,4 +167,9 @@ export default class extends Controller {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#fetchValuesFromNodeList(nodeList) {
|
||||||
|
console.log([...nodeList].map(option => option.value))
|
||||||
|
return [...nodeList].map(option => option.value)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,6 +68,16 @@ dialog[data-dialog-target="dialog"][closing] {
|
|||||||
@apply bg-gray-50 text-gray-50 px-2 py-1 bg-transparent border-b-2 border-orange-400
|
@apply bg-gray-50 text-gray-50 px-2 py-1 bg-transparent border-b-2 border-orange-400
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.text-input[multiple="multiple"] {
|
||||||
|
@apply bg-transparent backdrop-filter backdrop-blur-md text-white border border-orange-500 rounded-md
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-input option[checked="checked"],
|
||||||
|
.text-input option[checked],
|
||||||
|
.text-input option[selected] {
|
||||||
|
@apply bg-orange-500/60
|
||||||
|
}
|
||||||
|
|
||||||
.submit-button {
|
.submit-button {
|
||||||
@apply bg-green-600/40 px-1.5 py-1 w-full rounded-md text-gray-50 backdrop-filter backdrop-blur-sm border-2 border-green-500 hover:bg-green-700/40
|
@apply bg-green-600/40 px-1.5 py-1 w-full rounded-md text-gray-50 backdrop-filter backdrop-blur-sm border-2 border-green-500 hover:bg-green-700/40
|
||||||
}
|
}
|
||||||
@@ -148,3 +158,28 @@ dialog[data-dialog-target="dialog"][closing] {
|
|||||||
z-index: 2;
|
z-index: 2;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#filter {
|
||||||
|
.ts-wrapper {
|
||||||
|
box-shadow: none !important;
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
.ts-control {
|
||||||
|
background: transparent !important;
|
||||||
|
border: none !important;
|
||||||
|
box-shadow: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item[data-ts-item] {
|
||||||
|
background-image: none !important;
|
||||||
|
border: none;
|
||||||
|
@apply bg-orange-500;
|
||||||
|
}
|
||||||
|
|
||||||
|
@apply border-b-2 border-b-orange-600 bg-transparent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.ts-wrapper.plugin-remove_button:not(.rtl) .item .remove {
|
||||||
|
@apply border-l-orange-800;
|
||||||
|
}
|
||||||
|
|||||||
@@ -104,6 +104,7 @@
|
|||||||
"post-update-cmd": [
|
"post-update-cmd": [
|
||||||
"@auto-scripts"
|
"@auto-scripts"
|
||||||
],
|
],
|
||||||
|
"tail": "docker compose exec app ./bin/console tailwind:build --watch",
|
||||||
"sym": "docker compose exec app ./bin/console"
|
"sym": "docker compose exec app ./bin/console"
|
||||||
},
|
},
|
||||||
"conflict": {
|
"conflict": {
|
||||||
|
|||||||
@@ -19,11 +19,11 @@ class SaveUserMediaPreferencesCommand implements CommandInterface
|
|||||||
public static function fromUserMediaPreferencesForm(FormInterface $form): self
|
public static function fromUserMediaPreferencesForm(FormInterface $form): self
|
||||||
{
|
{
|
||||||
return new static(
|
return new static(
|
||||||
resolution: $form->get('resolution')->getData(),
|
resolution: \implode(',', $form->get('resolution')->getData()),
|
||||||
codec: $form->get('codec')->getData(),
|
codec: \implode(',', $form->get('codec')->getData()),
|
||||||
quality: $form->get('quality')->getData(),
|
quality: \implode(',', $form->get('quality')->getData()),
|
||||||
language: $form->get('language')->getData(),
|
language: \implode(',', $form->get('language')->getData()),
|
||||||
provider: $form->get('provider')->getData(),
|
provider: \implode(',', $form->get('provider')->getData()),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -6,10 +6,10 @@ class UserPreferences
|
|||||||
{
|
{
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
public readonly ?string $resolution,
|
public readonly ?array $resolution,
|
||||||
public readonly ?string $codec,
|
public readonly ?array $codec,
|
||||||
public readonly ?string $language,
|
public readonly ?array $language,
|
||||||
public readonly ?string $provider,
|
public readonly ?array $provider,
|
||||||
public readonly ?string $quality,
|
public readonly ?array $quality,
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ class UserPreferencesFactory
|
|||||||
if ($value === "") {
|
if ($value === "") {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
$value = explode(',', $value);
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,8 +52,7 @@ class PreferencesController extends AbstractController
|
|||||||
): Response
|
): Response
|
||||||
{
|
{
|
||||||
$downloadPreferences = $this->getUser()->getDownloadPreferences();
|
$downloadPreferences = $this->getUser()->getDownloadPreferences();
|
||||||
$formData = (array) UserPreferencesFactory::createFromUser($this->getUser());
|
$form = $this->createForm(UserMediaPreferencesForm::class);
|
||||||
$form = $this->createForm(UserMediaPreferencesForm::class, $formData);
|
|
||||||
|
|
||||||
$form->handleRequest($request);
|
$form->handleRequest($request);
|
||||||
|
|
||||||
|
|||||||
@@ -10,8 +10,11 @@ use App\User\Database\QualityList;
|
|||||||
use App\User\Database\ResolutionList;
|
use App\User\Database\ResolutionList;
|
||||||
use App\User\Framework\Repository\PreferenceOptionRepository;
|
use App\User\Framework\Repository\PreferenceOptionRepository;
|
||||||
use Symfony\Component\Form\AbstractType;
|
use Symfony\Component\Form\AbstractType;
|
||||||
|
use Symfony\Component\Form\Event\PreSetDataEvent;
|
||||||
|
use Symfony\Component\Form\Event\PreSubmitEvent;
|
||||||
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
||||||
use Symfony\Component\Form\FormBuilderInterface;
|
use Symfony\Component\Form\FormBuilderInterface;
|
||||||
|
use Symfony\Component\Form\FormEvents;
|
||||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||||
use Symfony\Component\Routing\Generator\UrlGenerator;
|
use Symfony\Component\Routing\Generator\UrlGenerator;
|
||||||
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
|
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
|
||||||
@@ -38,6 +41,7 @@ class UserMediaPreferencesForm extends AbstractType
|
|||||||
'label_attr' => ['class' => 'w-64 text-white block font-semibold mb-2'],
|
'label_attr' => ['class' => 'w-64 text-white block font-semibold mb-2'],
|
||||||
'choices' => $this->addDefaultChoice($choices),
|
'choices' => $this->addDefaultChoice($choices),
|
||||||
'required' => false,
|
'required' => false,
|
||||||
|
'multiple' => true,
|
||||||
];
|
];
|
||||||
$builder->add($fieldName, ChoiceType::class, $question);
|
$builder->add($fieldName, ChoiceType::class, $question);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,69 +7,109 @@
|
|||||||
data-action="change->result-filter#filter action-button:downloadSeason@window->result-filter#downloadSeason"
|
data-action="change->result-filter#filter action-button:downloadSeason@window->result-filter#downloadSeason"
|
||||||
>
|
>
|
||||||
<div class="w-full p-4 flex flex-col md:flex-row gap-4 bg-stone-500 text-md text-gray-500 dark:text-gray-50 rounded-lg">
|
<div class="w-full p-4 flex flex-col md:flex-row gap-4 bg-stone-500 text-md text-gray-500 dark:text-gray-50 rounded-lg">
|
||||||
<label for="resolution">
|
<label for="resolution" class="flex flex-col gap-1">
|
||||||
Resolution
|
Resolution
|
||||||
<select id="resolution"
|
<select id="resolution"
|
||||||
|
multiple="multiple"
|
||||||
data-result-filter-target="resolution"
|
data-result-filter-target="resolution"
|
||||||
class="px-1 py-0.5 bg-stone-100 text-gray-800 rounded-md"
|
class="px-1 py-0.5 bg-stone-100 placeholder-text-gray-50 text-gray-50"
|
||||||
value="{{ app.user.userPreferenceValues["resolution"] }}"
|
{{ stimulus_controller('symfony/ux-autocomplete/autocomplete', {
|
||||||
|
create: false,
|
||||||
|
tomSelectOptions: {
|
||||||
|
highlight: false,
|
||||||
|
}
|
||||||
|
}) }}
|
||||||
>
|
>
|
||||||
<option value="">n/a</option>
|
<option value="">n/a</option>
|
||||||
{% for name, value in this.resolutionOptions %}
|
{% for name, value in this.resolutionOptions %}
|
||||||
<option value="{{ value }}"
|
<option value="{{ value }}"
|
||||||
{{ value == this.userPreferences['resolution'] ? 'selected' }}
|
{{ value in this.userPreferences['resolution'] ? 'selected' }}
|
||||||
>{{ name }}</option>
|
>{{ name }}</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
<label for="codec">
|
|
||||||
|
<label for="codec" class="flex flex-col gap-1">
|
||||||
Codec
|
Codec
|
||||||
<select id="codec" data-result-filter-target="codec" class="px-1 py-0.5 bg-stone-100 text-sm text-gray-800 rounded-md">
|
<select id="codec"
|
||||||
|
multiple="multiple"
|
||||||
|
{{ stimulus_controller('symfony/ux-autocomplete/autocomplete', {
|
||||||
|
create: false,
|
||||||
|
tomSelectOptions: {
|
||||||
|
highlight: false,
|
||||||
|
}
|
||||||
|
}) }}
|
||||||
|
data-result-filter-target="codec" class="px-1 py-0.5 bg-stone-100 text-gray-50">
|
||||||
<option value="">n/a</option>
|
<option value="">n/a</option>
|
||||||
{% for name, value in this.codecOptions %}
|
{% for name, value in this.codecOptions %}
|
||||||
<option value="{{ value }}"
|
<option value="{{ value }}"
|
||||||
{{ value == this.userPreferences['codec'] ? 'selected' }}
|
{{ value in this.userPreferences['codec'] ? 'selected' }}
|
||||||
>{{ name }}</option>
|
>{{ name }}</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
<label for="language">
|
|
||||||
|
<label for="language" class="flex flex-col gap-1">
|
||||||
Language
|
Language
|
||||||
<select id="language"
|
<select id="language"
|
||||||
|
multiple="multiple"
|
||||||
data-result-filter-target="language"
|
data-result-filter-target="language"
|
||||||
class="px-1 py-0.5 bg-stone-100 text-gray-800 rounded-md"
|
{{ stimulus_controller('symfony/ux-autocomplete/autocomplete', {
|
||||||
|
create: false,
|
||||||
|
tomSelectOptions: {
|
||||||
|
highlight: false,
|
||||||
|
}
|
||||||
|
}) }}
|
||||||
|
class="px-1 py-0.5 bg-stone-100 text-gray-50"
|
||||||
{% if this.userPreferences['language'] != null %}
|
{% if this.userPreferences['language'] != null %}
|
||||||
data-preferred="{{ this.userPreferences['language'] }}"
|
data-preferred="{{ this.userPreferences['language']|json_encode }}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
>
|
>
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
<label for="provider">
|
|
||||||
|
<label for="provider" class="flex flex-col gap-1">
|
||||||
Provider
|
Provider
|
||||||
<select id="provider"
|
<select id="provider"
|
||||||
|
multiple="multiple"
|
||||||
data-result-filter-target="provider"
|
data-result-filter-target="provider"
|
||||||
class="px-1 py-0.5 bg-stone-100 text-gray-800 rounded-md"
|
{{ stimulus_controller('symfony/ux-autocomplete/autocomplete', {
|
||||||
|
create: false,
|
||||||
|
tomSelectOptions: {
|
||||||
|
highlight: false,
|
||||||
|
}
|
||||||
|
}) }}
|
||||||
|
class="px-1 py-0.5 bg-stone-100 text-gray-50"
|
||||||
{% if this.userPreferences['provider'] != null %}
|
{% if this.userPreferences['provider'] != null %}
|
||||||
data-preferred="{{ this.userPreferences['provider'] }}"
|
data-preferred="{{ this.userPreferences['provider']|json_encode }}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
>
|
>
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
<label for="quality">
|
|
||||||
|
<label for="quality" class="flex flex-col gap-1">
|
||||||
Quality
|
Quality
|
||||||
<select id="quality"
|
<select id="quality"
|
||||||
|
multiple="multiple"
|
||||||
data-result-filter-target="quality"
|
data-result-filter-target="quality"
|
||||||
class="px-1 py-0.5 bg-stone-100 text-gray-800 rounded-md"
|
class="px-1 py-0.5 bg-stone-100 text-gray-50"
|
||||||
|
{{ stimulus_controller('symfony/ux-autocomplete/autocomplete', {
|
||||||
|
create: false,
|
||||||
|
tomSelectOptions: {
|
||||||
|
highlight: false,
|
||||||
|
}
|
||||||
|
}) }}
|
||||||
{% if this.userPreferences['quality'] != null %}
|
{% if this.userPreferences['quality'] != null %}
|
||||||
data-preferred="{{ this.userPreferences['quality'] }}"
|
data-preferred="{{ this.userPreferences['quality']|json_encode }}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
>
|
>
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
{% if results.media.mediaType == "tvshows" %}
|
{% if results.media.mediaType == "tvshows" %}
|
||||||
<label for="season">
|
<label for="season">
|
||||||
Season
|
Season
|
||||||
<select id="season" name="season" value="1" data-result-filter-target="season" class="px-1 py-0.5 bg-stone-100 text-gray-800 rounded-md"
|
<select id="season" name="season" value="1" data-result-filter-target="season" class="px-1 py-0.5 bg-stone-100 text-gray-800"
|
||||||
{{ stimulus_action('result_filter', 'setSeason', 'change') }}
|
{{ stimulus_action('result_filter', 'setSeason', 'change') }}
|
||||||
{{ stimulus_action('result_filter', 'uncheckSelectAllBtn', 'change') }}
|
{{ stimulus_action('result_filter', 'uncheckSelectAllBtn', 'change') }}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user