From 43dc85ad81be33c01d5719389e1bfccf91f53967 Mon Sep 17 00:00:00 2001 From: advplyr Date: Thu, 18 Nov 2021 18:53:00 -0600 Subject: [PATCH] Fix: download cover --- client/package.json | 2 +- package-lock.json | 8 ++++---- package.json | 4 ++-- server/utils/fileUtils.js | 1 + 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/client/package.json b/client/package.json index 59710f6b..11f957bb 100644 --- a/client/package.json +++ b/client/package.json @@ -1,6 +1,6 @@ { "name": "audiobookshelf-client", - "version": "1.6.21", + "version": "1.6.22", "description": "Audiobook manager and player", "main": "index.js", "scripts": { diff --git a/package-lock.json b/package-lock.json index b6750c0b..a4cec1e7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "audiobookshelf", - "version": "1.6.12", + "version": "1.6.21", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -1222,9 +1222,9 @@ "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==" }, "njodb": { - "version": "0.4.26", - "resolved": "https://registry.npmjs.org/njodb/-/njodb-0.4.26.tgz", - "integrity": "sha512-cUEQzZT/jbwK5tBLZM/A4bCsYIB9oqGwfip79NWMMzUi0RBFVccPYGh9gTf2PhcrTn2y1ftbxlV+J/c4s9RR8g==", + "version": "0.4.27", + "resolved": "https://registry.npmjs.org/njodb/-/njodb-0.4.27.tgz", + "integrity": "sha512-2VWnqv953eQPtly9FDREcikF1sB9mcqAlzcmjHXR0L0my8Xvo4ctMShmwU2W1YpKdtDgFxsqF/S1a4vtv/MzjQ==", "requires": { "proper-lockfile": "^4.1.2" } diff --git a/package.json b/package.json index 4d1cb633..997daffb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "audiobookshelf", - "version": "1.6.21", + "version": "1.6.22", "description": "Self-hosted audiobook server for managing and playing audiobooks", "main": "index.js", "scripts": { @@ -38,7 +38,7 @@ "ip": "^1.1.5", "jsonwebtoken": "^8.5.1", "libgen": "^2.1.0", - "njodb": "^0.4.26", + "njodb": "^0.4.27", "node-cron": "^3.0.0", "node-stream-zip": "^1.15.0", "podcast": "^1.3.0", diff --git a/server/utils/fileUtils.js b/server/utils/fileUtils.js index acb6f9b1..75129c6a 100644 --- a/server/utils/fileUtils.js +++ b/server/utils/fileUtils.js @@ -1,5 +1,6 @@ const fs = require('fs-extra') const rra = require('recursive-readdir-async') +const axios = require('axios') const Logger = require('../Logger') async function getFileStat(path) {