1
0

diverse correction

This commit is contained in:
unfr 2025-04-17 19:24:47 +02:00
parent 8a2ab455f8
commit 4f0b2c82e3
3 changed files with 4 additions and 4 deletions

View File

@ -6,8 +6,8 @@ DB_FILE="/home/$USER/autopost/base_autopost.db"
DOSSIER_GLOBAL="/home/$USER/"
DOSSIER_NFO="/home/$USER/autopost/mediainfo/"
DOSSIER_LOGS="/home/$USER/autopost/logs/"
DOSSIER_NZB_ATTENTE="/home/$USER/ATTENTE/"
DOSSIER_NZB_FINAL="/home/$USER/FINIS/"
DOSSIER_NZB_ATTENTE="/home/$USER/autopost/ATTENTE/"
DOSSIER_NZB_FINAL="/home/$USER/autopost/FINIS/"
#CONFIG FOURNISSEUR USENET DE POST
NG_HOST=""

View File

@ -2,7 +2,7 @@
source /home/$USER/autopost/common.sh
# Vérification et création des dossiers
for dossier in "$DOSSIER_NFO" "$DOSSIER_NZB_ATTENTE" "$DOSSIER_NZB_FINAL" "$DOSSIER_LOGS"
for dossier in "$DOSSIER_NFO" "$DOSSIER_NZB_ATTENTE" "$DOSSIER_NZB_FINAL" "$DOSSIER_LOGS" "tmp"
do
if [ ! -d "$dossier" ]; then
echo -e "${ROUGE} Le dossier $dossier n'existe pas. Création... ${NORMAL}"

View File

@ -575,7 +575,7 @@ autopostRouter.get('/dl', (req, res) => {
console.log("Tentative de téléchargement (archive 7z) :", archiveFilePath);
// Utilisation du répertoire temporaire
const tmpDir = os.tmpdir();
const tmpDir = path.join(__dirname, 'tmp');
// Le fichier extrait attendu (sans dossier interne grâce à "7z e")
const extractedFilePath = path.join(tmpDir, base + '.nzb');