Compare commits

..
Author SHA1 Message Date
CanbiZ (MickLesk) a27a778d33 remove empty line
Removed the Deno installation step from the script.
2026-11-21 15:51:05 +01:00
MickLesk 87b1def86f SoulSync: install Deno and the yt-dlp challenge solver
yt-dlp needs a JavaScript runtime and the yt-dlp-ejs scripts to solve
YouTube's challenges; without them the web clients SoulSync uses with
cookies, and for its retries, return no audio formats. SoulSync's own
image bundles Deno and installs yt-dlp[default]; do the same here.
Existing installs get both on their next update.
2026-11-21 15:47:30 +01:00
3 changed files with 16 additions and 13 deletions

No files matched your search

+5 -10
View File
@@ -93,15 +93,6 @@ function update_script() {
rm -rf /opt/browserless /root/.cache/ms-playwright
$STD apt purge -y microsoft-edge-stable
rm -f /etc/apt/sources.list.d/microsoft-edge-stable.list
sed -i 's/browserless\.service/sockpuppetbrowser.service/g' "$SERVICE_FILE"
sed -i -e '/^WEBDRIVER_URL=/d' \
-e 's|^PLAYWRIGHT_DRIVER_URL=ws://localhost:3000/chrome.*|PLAYWRIGHT_DRIVER_URL=ws://127.0.0.1:3000/?headful=true\&--window-size=1920,1080|' \
/opt/changedetection/.env
msg_ok "Replaced Browserless with SockPuppetBrowser"
fi
if [[ ! -f /etc/systemd/system/sockpuppetbrowser.service ]]; then
msg_info "Creating SockPuppetBrowser Service"
cat <<EOF >/etc/systemd/system/sockpuppetbrowser.service
[Unit]
Description=SockPuppetBrowser
@@ -119,9 +110,13 @@ Restart=on-failure
[Install]
WantedBy=multi-user.target
EOF
sed -i 's/browserless\.service/sockpuppetbrowser.service/g' "$SERVICE_FILE"
sed -i -e '/^WEBDRIVER_URL=/d' \
-e 's|^PLAYWRIGHT_DRIVER_URL=ws://localhost:3000/chrome.*|PLAYWRIGHT_DRIVER_URL=ws://127.0.0.1:3000/?headful=true\&--window-size=1920,1080|' \
/opt/changedetection/.env
systemctl daemon-reload
systemctl enable -q sockpuppetbrowser
msg_ok "Created SockPuppetBrowser Service"
msg_ok "Replaced Browserless with SockPuppetBrowser"
fi
systemctl daemon-reload
+9 -1
View File
@@ -32,6 +32,7 @@ function update_script() {
fi
NODE_VERSION="24" setup_nodejs
fetch_and_deploy_gh_release "deno" "denoland/deno" "prebuild" "latest" "/usr/local/bin" "deno-$(arch_resolve "x86_64" "aarch64")-unknown-linux-gnu.zip"
if check_for_gh_release "soulsync" "Nezreka/SoulSync"; then
msg_info "Stopping Service"
@@ -47,7 +48,7 @@ function update_script() {
msg_info "Updating Python Dependencies"
cd /opt/soulsync
$STD uv venv --clear /opt/soulsync/.venv --python 3.11
$STD uv pip install -r requirements.txt
$STD uv pip install -r requirements.txt "yt-dlp[default]"
msg_ok "Updated Python Dependencies"
msg_info "Building WebUI"
@@ -61,6 +62,13 @@ function update_script() {
msg_ok "Started Service"
msg_ok "Updated ${APP}"
fi
if ! /opt/soulsync/.venv/bin/python -c "import yt_dlp_ejs" &>/dev/null; then
msg_info "Installing YouTube Challenge Solver"
$STD uv pip install "yt-dlp[default]" --python /opt/soulsync/.venv/bin/python
systemctl restart soulsync
msg_ok "Installed YouTube Challenge Solver"
fi
exit
}
+2 -2
View File
@@ -24,13 +24,13 @@ msg_ok "Installed Dependencies"
PYTHON_VERSION="3.11" setup_uv
NODE_VERSION="24" setup_nodejs
fetch_and_deploy_gh_release "deno" "denoland/deno" "prebuild" "latest" "/usr/local/bin" "deno-$(arch_resolve "x86_64" "aarch64")-unknown-linux-gnu.zip"
fetch_and_deploy_gh_release "soulsync" "Nezreka/SoulSync" "tarball"
msg_info "Setting up Application"
cd /opt/soulsync
$STD uv venv /opt/soulsync/.venv --python 3.11
$STD uv pip install -r requirements.txt --python /opt/soulsync/.venv/bin/python
$STD uv pip install -r requirements.txt "yt-dlp[default]" --python /opt/soulsync/.venv/bin/python
mkdir -p /opt/soulsync/{config,data,logs}
msg_ok "Set up Application"