Prevent Firefox from remembering quality select on page refresh

The video quality is only changed when the quality selector
changes. If it was changed and the user refreshes, Firefox
remembers the selected value, but since no change event is fired,
the select will display the wrong quality.

Signed-off-by: Jesús <heckyel@hyperbola.info>
This commit is contained in:
James Taylor 2021-08-25 14:50:50 -07:00 committed by Jesús
parent 9f44e0474b
commit 6e39ae19b6
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -126,7 +126,7 @@
<div class="external-player-controls"> <div class="external-player-controls">
<input class="speed" id="speed-control" type="text" title="Video speed"> <input class="speed" id="speed-control" type="text" title="Video speed">
<script src="/youtube.com/static/js/speedyplay.js"></script> <script src="/youtube.com/static/js/speedyplay.js"></script>
<select id="quality-select"> <select id="quality-select" autocomplete="off">
{% for src in uni_sources %} {% for src in uni_sources %}
<option value='{"type": "uni", "index": {{ loop.index0 }}}' {{ 'selected' if loop.index0 == uni_idx and not using_pair_sources else '' }} >{{ src['quality_string'] }}</option> <option value='{"type": "uni", "index": {{ loop.index0 }}}' {{ 'selected' if loop.index0 == uni_idx and not using_pair_sources else '' }} >{{ src['quality_string'] }}</option>
{% endfor %} {% endfor %}