Not force plyr as player
This commit is contained in:
parent
ff8531cb84
commit
1b860c6917
12
settings.py
12
settings.py
@ -148,11 +148,15 @@ For security reasons, enabling this is not recommended.''',
|
|||||||
'category': 'playback',
|
'category': 'playback',
|
||||||
}),
|
}),
|
||||||
|
|
||||||
('use_video_hotkeys', {
|
('use_video_player', {
|
||||||
'label': 'Enable video hotkeys',
|
'type': int,
|
||||||
'type': bool,
|
'default': 1,
|
||||||
'default': True,
|
|
||||||
'comment': '',
|
'comment': '',
|
||||||
|
'options': [
|
||||||
|
(0, 'Native'),
|
||||||
|
(1, 'Native with hotkeys'),
|
||||||
|
(2, 'Plyr'),
|
||||||
|
],
|
||||||
'category': 'interface',
|
'category': 'interface',
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
@ -5,9 +5,11 @@
|
|||||||
{% block style %}
|
{% block style %}
|
||||||
<link href="/youtube.com/static/message_box.css" rel="stylesheet"/>
|
<link href="/youtube.com/static/message_box.css" rel="stylesheet"/>
|
||||||
<link href="/youtube.com/static/watch.css" rel="stylesheet"/>
|
<link href="/youtube.com/static/watch.css" rel="stylesheet"/>
|
||||||
<!-- plyr -->
|
{% if settings.use_video_player == 2 %}
|
||||||
<link href="/youtube.com/static/modules/plyr/plyr.css" rel="stylesheet"/>
|
<!-- plyr -->
|
||||||
<!--/ plyr -->
|
<link href="/youtube.com/static/modules/plyr/plyr.css" rel="stylesheet"/>
|
||||||
|
<!--/ plyr -->
|
||||||
|
{% endif %}
|
||||||
{% endblock style %}
|
{% endblock style %}
|
||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
@ -350,13 +352,16 @@
|
|||||||
</script>
|
</script>
|
||||||
<script src="/youtube.com/static/js/common.js"></script>
|
<script src="/youtube.com/static/js/common.js"></script>
|
||||||
<script src="/youtube.com/static/js/transcript-table.js"></script>
|
<script src="/youtube.com/static/js/transcript-table.js"></script>
|
||||||
<!-- plyr -->
|
{% if settings.use_video_player == 2 %}
|
||||||
<script src="/youtube.com/static/modules/plyr/plyr.min.js"
|
<!-- plyr -->
|
||||||
integrity="sha512-l6ZzdXpfMHRfifqaR79wbYCEWjLDMI9DnROvb+oLkKq6d7MGroGpMbI7HFpicvmAH/2aQO+vJhewq8rhysrImw=="
|
<script src="/youtube.com/static/modules/plyr/plyr.min.js"
|
||||||
crossorigin="anonymous"></script>
|
integrity="sha512-l6ZzdXpfMHRfifqaR79wbYCEWjLDMI9DnROvb+oLkKq6d7MGroGpMbI7HFpicvmAH/2aQO+vJhewq8rhysrImw=="
|
||||||
<script src="/youtube.com/static/js/plyr-start.js"></script>
|
crossorigin="anonymous"></script>
|
||||||
<!-- /plyr -->
|
<script src="/youtube.com/static/js/plyr-start.js"></script>
|
||||||
{% if settings.use_video_hotkeys %} <script src="/youtube.com/static/js/hotkeys.js"></script> {% endif %}
|
<!-- /plyr -->
|
||||||
|
{% elif settings.use_video_player == 1 %}
|
||||||
|
<script src="/youtube.com/static/js/hotkeys.js"></script>
|
||||||
|
{% endif %}
|
||||||
{% if settings.use_comments_js %} <script src="/youtube.com/static/js/comments.js"></script> {% endif %}
|
{% if settings.use_comments_js %} <script src="/youtube.com/static/js/comments.js"></script> {% endif %}
|
||||||
{% if settings.use_sponsorblock_js %} <script src="/youtube.com/static/js/sponsorblock.js"></script> {% endif %}
|
{% if settings.use_sponsorblock_js %} <script src="/youtube.com/static/js/sponsorblock.js"></script> {% endif %}
|
||||||
{% endblock main %}
|
{% endblock main %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user