1
0

correction server.js

This commit is contained in:
unfr 2025-03-12 15:05:29 +01:00
parent bd558e4447
commit 5689223c1c

View File

@ -210,10 +210,12 @@ autopostRouter.get('/', (req, res) => {
default: default:
statusText = 'INCONNU'; statusText = 'INCONNU';
} }
let logLink = row.status !== 0 let logLink = (parseInt(row.status) === 1 || parseInt(row.status) === 2)
? ` | <a href="#" class="log-link text-blue-400 hover:underline" data-filename="${row.nom}">Log</a>` ? ' | <a href="#" class="log-link text-blue-400 hover:underline" data-filename="'+row.nom+'">Log</a>'
: '';
let mediainfoLink = (parseInt(row.status) === 0 || parseInt(row.status) === 1 || parseInt(row.status) === 2)
? ' | <a href="#" class="mediainfo-link text-blue-400 hover:underline" data-filename="'+row.nom+'">Mediainfo</a>'
: ''; : '';
let mediainfoLink = ` | <a href="#" class="mediainfo-link text-blue-400 hover:underline" data-filename="${row.nom}">Mediainfo</a>`;
let dlLink = row.status === 1 let dlLink = row.status === 1
? ` | <a href="/autopost/dl?name=${encodeURIComponent(row.nom)}" class="dl-link text-blue-400 hover:underline">DL</a>` ? ` | <a href="/autopost/dl?name=${encodeURIComponent(row.nom)}" class="dl-link text-blue-400 hover:underline">DL</a>`
: ''; : '';
@ -306,10 +308,13 @@ autopostRouter.get('/', (req, res) => {
default: default:
statusText = 'INCONNU'; statusText = 'INCONNU';
} }
let logLink = parseInt(row.status) !== 0
let logLink = parseInt(row.status) === 1 || parseInt(row.status) === 2
? ' | <a href="#" class="log-link text-blue-400 hover:underline" data-filename="'+row.nom+'">Log</a>' ? ' | <a href="#" class="log-link text-blue-400 hover:underline" data-filename="'+row.nom+'">Log</a>'
: ''; : '';
let mediainfoLink = ' | <a href="#" class="mediainfo-link text-blue-400 hover:underline" data-filename="'+row.nom+'">Mediainfo</a>'; let mediainfoLink = parseInt(row.status) === 0 || parseInt(row.status) === 1 || parseInt(row.status) === 2
? ' | <a href="#" class="mediainfo-link text-blue-400 hover:underline" data-filename="'+row.nom+'">Mediainfo</a>'
: '';
let dlLink = parseInt(row.status) === 1 let dlLink = parseInt(row.status) === 1
? ' | <a href="/autopost/dl?name='+encodeURIComponent(row.nom)+'" class="dl-link text-blue-400 hover:underline">DL</a>' ? ' | <a href="/autopost/dl?name='+encodeURIComponent(row.nom)+'" class="dl-link text-blue-400 hover:underline">DL</a>'
: ''; : '';