update to yt-local v0.2.7

This commit is contained in:
Astound 2024-01-28 01:55:11 +08:00
parent 56589294d6
commit 9dba53d4ed
Signed by: kaiser
GPG Key ID: 97504AF0027B1A56
4 changed files with 13 additions and 10 deletions

View File

@ -23,11 +23,12 @@ ENABLE_COMMENTS_AVATARS=True
DEFAULT_COMMENT_SORTING=0 DEFAULT_COMMENT_SORTING=0
THEATER_MODE=True THEATER_MODE=True
AUTOPLAY_VIDEOS=True
DEFAULT_RESOLUTION=1080 DEFAULT_RESOLUTION=1080
CODEC_RANK_H264=3 CODEC_RANK_H264=3
CODEC_RANK_VP=2 CODEC_RANK_VP=2
CODEC_RANK_AV1=1 CODEC_RANK_AV1=1
PREFER_UNI_SOURCES=True PREFER_UNI_SOURCES=1
USE_VIDEO_PLAYER=2 USE_VIDEO_PLAYER=2
USE_VIDEO_DOWNLOAD=0 USE_VIDEO_DOWNLOAD=0

View File

@ -1,8 +1,8 @@
diff --git a/settings.py b/settings.py diff --git a/settings.py b/settings.py
index 16ec6ff..597a086 100644 index eb210c5..fce9c56 100644
--- a/settings.py --- a/settings.py
+++ b/settings.py +++ b/settings.py
@@ -556,6 +556,6 @@ def settings_page(): @@ -589,6 +589,6 @@ def settings_page():
for func, old_value, value in to_call: for func, old_value, value in to_call:
func(old_value, value) func(old_value, value)
@ -11,7 +11,7 @@ index 16ec6ff..597a086 100644
else: else:
flask.abort(400) flask.abort(400)
diff --git a/youtube/__init__.py b/youtube/__init__.py diff --git a/youtube/__init__.py b/youtube/__init__.py
index 3604b21..0a2d363 100644 index 64aed56..437c5ad 100644
--- a/youtube/__init__.py --- a/youtube/__init__.py
+++ b/youtube/__init__.py +++ b/youtube/__init__.py
@@ -14,9 +14,6 @@ yt_app.url_map.strict_slashes = False @@ -14,9 +14,6 @@ yt_app.url_map.strict_slashes = False
@ -115,7 +115,7 @@ index e4e9c8b..8acb9b1 100644
.item-video { .item-video {
diff --git a/youtube/static/watch.css b/youtube/static/watch.css diff --git a/youtube/static/watch.css b/youtube/static/watch.css
index 51ecacd..01a790d 100644 index 849e22b..701637f 100644
--- a/youtube/static/watch.css --- a/youtube/static/watch.css
+++ b/youtube/static/watch.css +++ b/youtube/static/watch.css
@@ -412,11 +412,9 @@ figure.sc-video { @@ -412,11 +412,9 @@ figure.sc-video {
@ -160,7 +160,7 @@ index 393cc52..52660f4 100644
<main class="main"> <main class="main">
diff --git a/youtube/templates/channel.html b/youtube/templates/channel.html diff --git a/youtube/templates/channel.html b/youtube/templates/channel.html
index 5a567c0..e363d4e 100644 index c43f488..bd0f733 100644
--- a/youtube/templates/channel.html --- a/youtube/templates/channel.html
+++ b/youtube/templates/channel.html +++ b/youtube/templates/channel.html
@@ -21,14 +21,6 @@ @@ -21,14 +21,6 @@
@ -337,7 +337,7 @@ index 2823e8d..4aefee2 100644
{% endblock main %} {% endblock main %}
diff --git a/youtube/templates/watch.html b/youtube/templates/watch.html diff --git a/youtube/templates/watch.html b/youtube/templates/watch.html
index 4030a18..cfd2c8d 100644 index 9cf9657..04f2683 100644
--- a/youtube/templates/watch.html --- a/youtube/templates/watch.html
+++ b/youtube/templates/watch.html +++ b/youtube/templates/watch.html
@@ -93,7 +93,6 @@ @@ -93,7 +93,6 @@

View File

@ -1,4 +1,4 @@
FROM index.docker.io/python:3-alpine AS base FROM index.docker.io/python:3.11.7-alpine3.19 AS base
LABEL MAINTAINER="heckyel@riseup.net" LABEL MAINTAINER="heckyel@riseup.net"
# Image to Build Dependencies # Image to Build Dependencies

View File

@ -54,13 +54,15 @@ default_comment_sorting = ${DEFAULT_COMMENT_SORTING:-0}
theater_mode = ${THEATER_MODE:-True} theater_mode = ${THEATER_MODE:-True}
autoplay_videos = ${AUTOPLAY_VIDEOS:-True}
default_resolution = ${DEFAULT_RESOLUTION:-2160} default_resolution = ${DEFAULT_RESOLUTION:-2160}
codec_rank_h264 = ${CODEC_RANK_H264:-3} codec_rank_h264 = ${CODEC_RANK_H264:-3}
codec_rank_vp = ${CODEC_RANK_VP:-2} codec_rank_vp = ${CODEC_RANK_VP:-2}
codec_rank_av1 = ${CODEC_RANK_AV1:-1} codec_rank_av1 = ${CODEC_RANK_AV1:-1}
prefer_uni_sources = ${PREFER_UNI_SOURCES:-True} prefer_uni_sources = ${PREFER_UNI_SOURCES:-1}
use_video_player = ${USE_VIDEO_PLAYER:-0} use_video_player = ${USE_VIDEO_PLAYER:-0}
@ -87,7 +89,7 @@ gather_googlevideo_domains = ${GATHER_GOOGLEVIDEO_DOMAINS:-False}
debugging_save_responses = ${DEBUGGING_SAVE_RESPONSES:-False} debugging_save_responses = ${DEBUGGING_SAVE_RESPONSES:-False}
# Do not change, remove, or comment out this value, or else your settings may be lost or corrupted # Do not change, remove, or comment out this value, or else your settings may be lost or corrupted
settings_version = 3 settings_version = 5
EOF EOF
fi fi