mirror of
https://github.com/zoriya/flood.git
synced 2026-06-07 12:24:50 +00:00
API: move /download API to where it should be
This commit is contained in:
@@ -84,7 +84,7 @@ const client = {
|
||||
if (!torrentDetails) return res.status(404).json({error: 'Torrent details not found'});
|
||||
|
||||
let files;
|
||||
if (!fileString) {
|
||||
if (!fileString || fileString === 'all') {
|
||||
files = torrentDetails.fileTree.files.map((x, i) => `${i}`);
|
||||
} else {
|
||||
files = fileString.split(',');
|
||||
|
||||
Reference in New Issue
Block a user