switch to forked pot plugin with disable flag, #1156

This commit is contained in:
Simon 2026-05-16 13:22:16 +07:00
parent c360a50cc8
commit 33948221c9
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
5 changed files with 13 additions and 10 deletions

View File

@ -25,9 +25,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
# install requirements
COPY ./backend/requirements.txt /requirements.txt
COPY ./backend/requirements.plugins.txt /requirements.plugins.txt
RUN pip install --user -r /requirements.txt \
&& python -m pip install --target /opt/yt_plugins/bgutil -r /requirements.plugins.txt
RUN pip install --user -r requirements.txt
# build ffmpeg
FROM python:3.13.11-slim-trixie AS ffmpeg-builder
@ -48,7 +46,6 @@ COPY --from=denoland/deno:bin /deno /usr/local/bin/deno
# copy build requirements
COPY --from=builder /root/.local /root/.local
COPY --from=builder /opt/yt_plugins /opt/yt_plugins
ENV PATH=/root/.local/bin:$PATH
# copy ffmpeg

View File

@ -78,9 +78,17 @@ class YtWrap:
}
},
)
if EnvironmentSettings.APP_DIR == "/app":
# container internal only
self.obs["plugin_dirs"].append("/opt/yt_plugins/bgutil")
return
# from fork: https://github.com/bbilly1/bgutil-ytdlp-pot-provider
deep_merge(
self.obs,
{
"extractor_args": {
"youtubepot-bgutilhttp": {"disable": ["True"]}
}
},
)
def download(self, url):
"""make download request"""

View File

@ -1,2 +0,0 @@
# install plugins in separate folder for runtime whitelisting
bgutil-ytdlp-pot-provider==1.3.1

View File

@ -1,4 +1,5 @@
apprise==1.9.9
bgutil-ytdlp-pot-provider @ git+https://github.com/bbilly1/bgutil-ytdlp-pot-provider@68578674650bade31cd77fb80ce84f7045191ba7#subdirectory=plugin
celery==5.6.3
deepdiff==9.0.0
django-auth-ldap==5.3.0

View File

@ -1,4 +1,3 @@
-r backend/requirements.plugins.txt
-r backend/requirements.txt
ipython==9.12.0
pre-commit==4.5.1