From 8591868bbef00f8f61f8763fe0eb4935e487d7f3 Mon Sep 17 00:00:00 2001 From: wy580477 <98247050+wy580477@users.noreply.github.com> Date: Fri, 16 Dec 2022 10:52:15 +0800 Subject: [PATCH] minor fixes --- content/qbittorclone.sh | 1 + content/ytdlptorclone.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/content/qbittorclone.sh b/content/qbittorclone.sh index 2416866..ed621e1 100644 --- a/content/qbittorclone.sh +++ b/content/qbittorclone.sh @@ -13,6 +13,7 @@ DEFINITION_PATH() { QBIT_DRIVE_DIR="$(grep ^qbit-drive-dir /mnt/data/config/script.conf | cut -d= -f2-)" FILE_NAME="$(basename "${LOCAL_PATH}")" FOLDER_NAME="${FILE_NAME}" + MSG_PATH="${LOCAL_PATH}" FILE_PATH="$(echo ${LOCAL_PATH} | sed 's:[^/]*$::')" DEST_PATH_SUFFIX="${FILE_PATH#"${DOWNLOAD_DIR%/}"}" if [[ "${QBIT_DRIVE_DIR}" =~ :/ ]]; then diff --git a/content/ytdlptorclone.sh b/content/ytdlptorclone.sh index 891195f..d78657b 100644 --- a/content/ytdlptorclone.sh +++ b/content/ytdlptorclone.sh @@ -12,7 +12,7 @@ DEFINITION_PATH() { YTDLP_DRIVE_DIR="$(grep ^ytdlp-drive-dir /mnt/data/config/script.conf | cut -d= -f2-)" FILE_PATH=$(echo ${LOCAL_PATH} | sed 's:[^/]*$::') FILE_NAME=$(basename "${LOCAL_PATH}") - MSG_PATH="${FILE_PATH}${FILE_NAME}" + MSG_PATH="${LOCAL_PATH}" FOLDER_NAME="${FILE_NAME}" mv "${LOCAL_PATH}" "${FILE_PATH}""${FILE_NAME}" if [[ "${YTDLP_DRIVE_DIR}" =~ :/ ]]; then