1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00
This commit is contained in:
Jerry Vonau 2024-03-06 06:47:16 -06:00
parent 92fd9a47ae
commit 55a5bb8830

View file

@ -68,13 +68,16 @@
- name: If Calibre-Web is being enhanced with audio/video "books" too, install/upgrade additional prereqs -- SEE https://github.com/iiab/calibre-web/wiki
shell: |
if [ -f {{ calibreweb_venv_path }}/scripts/lb-wrapper ]; then
apt install ffmpeg pipx -y
apt install -y ffmpeg
if lb --version; then
pipx upgrade --include-injected xklb
cd /usr/local/xklb
bin/pip install --upgrade
else
pipx install xklb
ln -sf /root/.local/bin/lb /usr/local/bin/lb
ln -sf /root/.local/share/pipx/venvs/xklb/bin/yt-dlp /usr/local/bin/yt-dlp
python3 -m venv /usr/local/xklb
cd /usr/local/xklb
bin/pip install xklb
ln -sf /usr/local/xklb/bin/lb /usr/local/bin/lb
ln -sf /usr/local/xklb/share/pipx/venvs/xklb/bin/yt-dlp /usr/local/bin/yt-dlp
fi
cp {{ calibreweb_venv_path }}/scripts/lb-wrapper /usr/local/bin/
chmod a+x /usr/local/bin/lb-wrapper