mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-17 15:31:30 +03:00
Fixed bug that prevented subscription archives from being downloaded if their path was express as a full path
This commit is contained in:
@@ -2537,7 +2537,7 @@ app.post('/api/downloadArchive', async (req, res) => {
|
|||||||
let sub = req.body.sub;
|
let sub = req.body.sub;
|
||||||
let archive_dir = sub.archive;
|
let archive_dir = sub.archive;
|
||||||
|
|
||||||
let full_archive_path = path.join(__dirname, archive_dir, 'archive.txt');
|
let full_archive_path = path.join(archive_dir, 'archive.txt');
|
||||||
|
|
||||||
if (fs.existsSync(full_archive_path)) {
|
if (fs.existsSync(full_archive_path)) {
|
||||||
res.sendFile(full_archive_path);
|
res.sendFile(full_archive_path);
|
||||||
|
|||||||
Reference in New Issue
Block a user