diff options
author | Jesús <heckyel@hyperbola.info> | 2021-09-14 14:49:14 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-09-14 14:49:14 -0500 |
commit | 8b745907cc6aab2df71e6eb0de1f6b76564aad33 (patch) | |
tree | 616eaa9cfb897a55ffd68ad8cc767ae5888e484c /youtube/templates | |
parent | ecb8d406f85b734cb32bf7a5dda602fb3c377ac6 (diff) | |
download | yt-local-8b745907cc6aab2df71e6eb0de1f6b76564aad33.tar.lz yt-local-8b745907cc6aab2df71e6eb0de1f6b76564aad33.tar.xz yt-local-8b745907cc6aab2df71e6eb0de1f6b76564aad33.zip |
improve quality-select
Diffstat (limited to 'youtube/templates')
-rw-r--r-- | youtube/templates/watch.html | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/youtube/templates/watch.html b/youtube/templates/watch.html index 6aa7e42..84585a2 100644 --- a/youtube/templates/watch.html +++ b/youtube/templates/watch.html @@ -82,14 +82,16 @@ <div class="external-player-controls"> <input class="speed" id="speed-control" type="text" title="Video speed"> - <select id="quality-select" autocomplete="off"> - {% 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> - {% endfor %} - {% for src_pair in pair_sources %} - <option value='{"type": "pair", "index": {{ loop.index0}}}' {{ 'selected' if loop.index0 == pair_idx and using_pair_sources else '' }} >{{ src_pair['quality_string'] }}</option> - {% endfor %} - </select> + {% if settings.use_video_player != 2 %} + <select id="quality-select" autocomplete="off"> + {% 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> + {% endfor %} + {% for src_pair in pair_sources %} + <option value='{"type": "pair", "index": {{ loop.index0}}}' {{ 'selected' if loop.index0 == pair_idx and using_pair_sources else '' }} >{{ src_pair['quality_string'] }}</option> + {% endfor %} + </select> + {% endif %} </div> <input class="v-checkbox" name="video_info_list" value="{{ video_info }}" form="playlist-edit" type="checkbox"> |