fix: download options filter uses user preferences

This commit is contained in:
2025-04-30 15:53:10 -05:00
parent 3971cf3260
commit b59069551a
6 changed files with 144 additions and 103 deletions

View File

@@ -15,7 +15,9 @@
>
<option value="">n/a</option>
{% for option in this.preferences['resolution'] %}
<option value="{{ option.name|lower }}">{{ option.name }}</option>
<option value="{{ option.value }}"
{{ option.value == this.userPreferences['resolution'] ? 'selected' }}
>{{ option.name }}</option>
{% endfor %}
</select>
</label>
@@ -24,7 +26,9 @@
<select id="codec" data-result-filter-target="codec" class="px-1 py-0.5 bg-stone-100 text-sm text-gray-800 rounded-md">
<option value="">n/a</option>
{% for option in this.preferences['codec'] %}
<option value="{{ option.name|lower }}">{{ option.name }}</option>
<option value="{{ option.value }}"
{{ option.value == this.userPreferences['codec'] ? 'selected' }}
>{{ option.name }}</option>
{% endfor %}
</select>
</label>