mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-20 11:41:00 +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 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)) {
|
||||
res.sendFile(full_archive_path);
|
||||
|
||||
Reference in New Issue
Block a user