[DOCKER] Update yt-dlp, fix phantomjs

This commit is contained in:
Jesse Bannon 2025-06-11 22:31:50 -07:00
parent cc85e18d43
commit 0620c06377
5 changed files with 16 additions and 15 deletions

View file

@ -31,10 +31,11 @@ RUN mkdir -p /config && \
# Install phantomjs if using x86_64, ensure it is properly installed # Install phantomjs if using x86_64, ensure it is properly installed
if [[ $(uname -m) == "x86_64" ]]; then \ if [[ $(uname -m) == "x86_64" ]]; then \
apk add --no-cache gcompat && \ apk add --no-cache gcompat && \
cd /usr/share && \ cd /defaults && \
curl -L https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 | tar xj && \ tar -xzf phantomjs-2.1.1-linux-x86_64.tar.bz2 && \
mv /usr/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs phantomjs && \ mv /defaults/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/share/phantomjs && \
rm -rf /usr/share/phantomjs-2.1.1-linux-x86_64 && \ rm -rf /defaults/phantomjs-2.1.1-linux-x86_64 && \
rm phantomjs-2.1.1-linux-x86_64.tar.bz2 && \
ln -s /usr/share/phantomjs /usr/bin/phantomjs && \ ln -s /usr/share/phantomjs /usr/bin/phantomjs && \
echo "Phantom JS version:" && \ echo "Phantom JS version:" && \
phantomjs --version && \ phantomjs --version && \

View file

@ -51,11 +51,11 @@ RUN mkdir -p /config && \
ffmpeg -version && \ ffmpeg -version && \
# Install phantomjs if using x86_64, ensure it is properly installed # Install phantomjs if using x86_64, ensure it is properly installed
if [[ $(uname -m) == "x86_64" ]]; then \ if [[ $(uname -m) == "x86_64" ]]; then \
curl -L -o phantomjs.tar.bz2 https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 && \ cd /defaults && \
tar -xvf phantomjs.tar.bz2 && \ tar -xzf phantomjs-2.1.1-linux-x86_64.tar.bz2 && \
mv phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/bin/phantomjs && \ mv /defaults/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/bin/phantomjs && \
rm -rf phantomjs-2.1.1-linux-x86_64/ && \ rm -rf /defaults/phantomjs-2.1.1-linux-x86_64 && \
rm phantomjs.tar.bz2 && \ rm phantomjs-2.1.1-linux-x86_64.tar.bz2 && \
echo "Phantom JS version:" && \ echo "Phantom JS version:" && \
phantomjs --version ; \ phantomjs --version ; \
fi && \ fi && \

View file

@ -54,11 +54,11 @@ RUN mkdir -p /config && \
ffmpeg -version && \ ffmpeg -version && \
# Install phantomjs if using x86_64, ensure it is properly installed # Install phantomjs if using x86_64, ensure it is properly installed
if [[ $(uname -m) == "x86_64" ]]; then \ if [[ $(uname -m) == "x86_64" ]]; then \
curl -L -o phantomjs.tar.bz2 https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 && \ cd /defaults && \
tar -xvf phantomjs.tar.bz2 && \ tar -xzf phantomjs-2.1.1-linux-x86_64.tar.bz2 && \
mv phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/bin/phantomjs && \ mv /defaults/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/bin/phantomjs && \
rm -rf phantomjs-2.1.1-linux-x86_64/ && \ rm -rf /defaults/phantomjs-2.1.1-linux-x86_64 && \
rm phantomjs.tar.bz2 && \ rm phantomjs-2.1.1-linux-x86_64.tar.bz2 && \
echo "Phantom JS version:" && \ echo "Phantom JS version:" && \
phantomjs --version ; \ phantomjs --version ; \
fi && \ fi && \

View file

@ -15,7 +15,7 @@ classifiers = [
"Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.11",
] ]
dependencies = [ dependencies = [
"yt-dlp[default]==2025.5.22", "yt-dlp[default]==2025.6.9",
"colorama~=0.4", "colorama~=0.4",
"mergedeep~=1.3", "mergedeep~=1.3",
"mediafile~=0.12", "mediafile~=0.12",