switch to forked pot plugin with disable flag, #1156
This commit is contained in:
parent
c360a50cc8
commit
33948221c9
|
|
@ -25,9 +25,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
|
|
||||||
# install requirements
|
# install requirements
|
||||||
COPY ./backend/requirements.txt /requirements.txt
|
COPY ./backend/requirements.txt /requirements.txt
|
||||||
COPY ./backend/requirements.plugins.txt /requirements.plugins.txt
|
RUN pip install --user -r requirements.txt
|
||||||
RUN pip install --user -r /requirements.txt \
|
|
||||||
&& python -m pip install --target /opt/yt_plugins/bgutil -r /requirements.plugins.txt
|
|
||||||
|
|
||||||
# build ffmpeg
|
# build ffmpeg
|
||||||
FROM python:3.13.11-slim-trixie AS ffmpeg-builder
|
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 build requirements
|
||||||
COPY --from=builder /root/.local /root/.local
|
COPY --from=builder /root/.local /root/.local
|
||||||
COPY --from=builder /opt/yt_plugins /opt/yt_plugins
|
|
||||||
ENV PATH=/root/.local/bin:$PATH
|
ENV PATH=/root/.local/bin:$PATH
|
||||||
|
|
||||||
# copy ffmpeg
|
# copy ffmpeg
|
||||||
|
|
|
||||||
|
|
@ -78,9 +78,17 @@ class YtWrap:
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
if EnvironmentSettings.APP_DIR == "/app":
|
return
|
||||||
# container internal only
|
|
||||||
self.obs["plugin_dirs"].append("/opt/yt_plugins/bgutil")
|
# from fork: https://github.com/bbilly1/bgutil-ytdlp-pot-provider
|
||||||
|
deep_merge(
|
||||||
|
self.obs,
|
||||||
|
{
|
||||||
|
"extractor_args": {
|
||||||
|
"youtubepot-bgutilhttp": {"disable": ["True"]}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
)
|
||||||
|
|
||||||
def download(self, url):
|
def download(self, url):
|
||||||
"""make download request"""
|
"""make download request"""
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
# install plugins in separate folder for runtime whitelisting
|
|
||||||
bgutil-ytdlp-pot-provider==1.3.1
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
apprise==1.9.9
|
apprise==1.9.9
|
||||||
|
bgutil-ytdlp-pot-provider @ git+https://github.com/bbilly1/bgutil-ytdlp-pot-provider@68578674650bade31cd77fb80ce84f7045191ba7#subdirectory=plugin
|
||||||
celery==5.6.3
|
celery==5.6.3
|
||||||
deepdiff==9.0.0
|
deepdiff==9.0.0
|
||||||
django-auth-ldap==5.3.0
|
django-auth-ldap==5.3.0
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
-r backend/requirements.plugins.txt
|
|
||||||
-r backend/requirements.txt
|
-r backend/requirements.txt
|
||||||
ipython==9.12.0
|
ipython==9.12.0
|
||||||
pre-commit==4.5.1
|
pre-commit==4.5.1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue