Bumped Node to 26 LTS, replaced deprecated dependencies. Switched Nubiles from browser to request interface, seems to fare better with security wall.

This commit is contained in:
DebaucheryLibrarian
2026-11-08 00:38:01 +01:00
parent 98121e6162
commit 06ae62436a
13 changed files with 85 additions and 1657 deletions
+3 -3
View File
@@ -12,7 +12,7 @@ const mime = require('mime');
// const fileType = require('file-type');
const ffmpeg = require('fluent-ffmpeg');
const sharp = require('sharp');
const blake2 = require('blake2');
const { blake2b } = require('@noble/hashes/blake2b');
const { format } = require('date-fns');
const taskQueue = require('promise-task-queue');
const unprint = require('unprint');
@@ -723,7 +723,7 @@ async function fetchSource(source, baseMedia) {
const tempFilePath = path.join(config.media.path, 'temp', `${baseMedia.id}`);
let tempFileTarget;
const hasher = blake2.createHash('blake2b', { digestLength: 24 });
const hasher = blake2b.create({ dkLen: 24 });
let size = 0;
@@ -743,7 +743,7 @@ async function fetchSource(source, baseMedia) {
? await streamQueue.push('fetchStreamSource', { source, tempFileTarget, hashStream })
: await fetchHttpSource(source, tempFileTarget, hashStream);
const hash = hasher.digest('hex');
const hash = Buffer.from(hasher.digest()).toString('hex');
const [type, subtype] = mimetype.split('/');
const extension = mime.getExtension(mimetype);