Skip to content

Commit

Permalink
no-pipx
Browse files Browse the repository at this point in the history
  • Loading branch information
jvonau committed Mar 6, 2024
1 parent 92fd9a4 commit 55a5bb8
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions roles/calibre-web/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 55a5bb8

Please sign in to comment.