From bc3db309a2ef301cd6f06adbfad736c2c617357a Mon Sep 17 00:00:00 2001 From: nnsense <2553412+nnsense@users.noreply.github.com> Date: Fri, 8 May 2026 12:55:27 +0000 Subject: [PATCH] Fix --- ct/pinchflat.sh | 13 +------------ install/pinchflat-install.sh | 29 ++++++----------------------- json/pinchflat.json | 8 ++++---- 3 files changed, 11 insertions(+), 39 deletions(-) diff --git a/ct/pinchflat.sh b/ct/pinchflat.sh index 76c04f31..86ad2fa9 100644 --- a/ct/pinchflat.sh +++ b/ct/pinchflat.sh @@ -58,22 +58,11 @@ function update_script() { exit } -DOWNLOADS_PATH=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "Pinchflat Downloads" --inputbox \ -"Downloads path inside the LXC. - -Default: /opt/pinchflat/downloads -Example external mount path: /mnt/pinchflat - -If the path does not exist during installation, it will be created locally. -You can later stop the LXC, mount external storage at the same path, and start it again." \ -18 78 "${DOWNLOADS_PATH:-/opt/pinchflat/downloads}" 3>&1 1>&2 2>&3 || true) -DOWNLOADS_PATH="${DOWNLOADS_PATH:-/opt/pinchflat/downloads}" -export DOWNLOADS_PATH - start build_container description msg_ok "Completed Successfully!\n" + echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8945${CL}" diff --git a/install/pinchflat-install.sh b/install/pinchflat-install.sh index 903f001d..fb30981b 100644 --- a/install/pinchflat-install.sh +++ b/install/pinchflat-install.sh @@ -36,19 +36,11 @@ $STD apt install -y \ zip msg_ok "Installed Dependencies" -NODE_VERSION="20" NODE_MODULE="yarn" setup_nodejs +NODE_VERSION="24" NODE_MODULE="yarn" setup_nodejs FFMPEG_TYPE="binary" setup_ffmpeg +DENO_ASSET="deno-x86_64-unknown-linux-gnu.zip" +YT_DLP_ASSET="yt-dlp_linux" -case "$(dpkg --print-architecture)" in - arm64) - DENO_ASSET="deno-aarch64-unknown-linux-gnu.zip" - YT_DLP_ASSET="yt-dlp_linux_aarch64" - ;; - *) - DENO_ASSET="deno-x86_64-unknown-linux-gnu.zip" - YT_DLP_ASSET="yt-dlp_linux" - ;; -esac fetch_and_deploy_gh_release "deno" "denoland/deno" "prebuild" "latest" "/usr/local/bin" "$DENO_ASSET" fetch_and_deploy_gh_release "yt-dlp" "yt-dlp/yt-dlp" "singlefile" "latest" "/usr/local/bin" "$YT_DLP_ASSET" @@ -67,7 +59,7 @@ fetch_and_deploy_gh_release "pinchflat" "kieraneglin/pinchflat" "tarball" "lates msg_info "Configuring Pinchflat" CONFIG_PATH="/opt/pinchflat/config" -DOWNLOADS_PATH="${DOWNLOADS_PATH:-/opt/pinchflat/downloads}" +DOWNLOADS_PATH="/opt/pinchflat/downloads" mkdir -p \ /etc/elixir_tzdata_data \ @@ -114,6 +106,7 @@ cp -r _build/prod/rel/pinchflat /opt/pinchflat/app msg_ok "Built Pinchflat" msg_info "Creating Service" + cat </etc/systemd/system/pinchflat.service [Unit] Description=Pinchflat @@ -133,20 +126,10 @@ RestartSec=5 [Install] WantedBy=multi-user.target EOF + systemctl enable -q --now pinchflat msg_ok "Created Service" -cat </opt/pinchflat/README -Pinchflat is installed as a systemd service. - -Web UI: http://:8945 -Config path: ${CONFIG_PATH} -Downloads path: ${DOWNLOADS_PATH} - -If an external downloads path was selected, mount it inside the LXC at the same path. -If the path did not exist during installation, it was created locally and can later be replaced by the mount. -EOF - motd_ssh customize cleanup_lxc diff --git a/json/pinchflat.json b/json/pinchflat.json index 04339fd7..5fd58605 100644 --- a/json/pinchflat.json +++ b/json/pinchflat.json @@ -11,7 +11,7 @@ "interface_port": 8945, "documentation": "https://github.com/kieraneglin/pinchflat/wiki", "website": "https://github.com/kieraneglin/pinchflat", - "logo": "https://raw.githubusercontent.com/kieraneglin/pinchflat/master/priv/static/images/originals/logo-white-wordmark-with-background.png", + "logo": "https://raw.githubusercontent.com/kieraneglin/pinchflat/67d8bd5598f4461c5435bcc66fc8d02b00c607cb/priv/static/images/icon-2024-03-20.png", "description": "Pinchflat is a self-hosted YouTube media manager built with yt-dlp for automatically downloading and organizing content from channels and playlists.", "install_methods": [ { @@ -33,11 +33,11 @@ }, "notes": [ { - "text": "For large media libraries, use an external mount path such as `/mnt/pinchflat` for downloads.", - "type": "info" + "text": "For large media libraries, mount external storage at `/opt/pinchflat/downloads` before downloading media to avoid filling the LXC disk.", + "type": "warning" }, { - "text": "Pinchflat data is stored in `/opt/pinchflat/config`; downloaded media is stored in the selected downloads path.", + "text": "Pinchflat data is stored in `/opt/pinchflat/config`; downloaded media is stored in `/opt/pinchflat/downloads`.", "type": "info" } ]