Support HLS playback in search and user feeds

This commit is contained in:
spikecodes 2021-06-11 17:38:43 -07:00
parent d2002c9027
commit 85deb4947d
No known key found for this signature in database
GPG Key ID: 004CECFF9B463BCB
4 changed files with 10 additions and 3 deletions

2
Cargo.lock generated
View File

@ -609,7 +609,7 @@ checksum = "5600b4e6efc5421841a2138a6b082e07fe12f9aaa12783d50e5d13325b26b4fc"
[[package]] [[package]]
name = "libreddit" name = "libreddit"
version = "0.14.7" version = "0.14.8"
dependencies = [ dependencies = [
"askama", "askama",
"async-recursion", "async-recursion",

View File

@ -3,7 +3,7 @@ name = "libreddit"
description = " Alternative private front-end to Reddit" description = " Alternative private front-end to Reddit"
license = "AGPL-3.0" license = "AGPL-3.0"
repository = "https://github.com/spikecodes/libreddit" repository = "https://github.com/spikecodes/libreddit"
version = "0.14.7" version = "0.14.8"
authors = ["spikecodes <19519553+spikecodes@users.noreply.github.com>"] authors = ["spikecodes <19519553+spikecodes@users.noreply.github.com>"]
edition = "2018" edition = "2018"

View File

@ -68,6 +68,10 @@
</div> </div>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% if prefs.use_hls == "on" %}
<script src="/hls.min.js"></script>
<script src="/playHLSVideo.js"></script>
{% endif %}
<footer> <footer>
{% if params.before != "" %} {% if params.before != "" %}

View File

@ -49,8 +49,11 @@
</details> </details>
</div> </div>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% if prefs.use_hls == "on" %}
<script src="/hls.min.js"></script>
<script src="/playHLSVideo.js"></script>
{% endif %}
</div> </div>
<footer> <footer>