mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-07 00:01:29 +03:00
Updated file not found error message in /stream
This commit is contained in:
@@ -1638,7 +1638,7 @@ app.get('/api/stream', optionalJwt, async (req, res) => {
|
|||||||
else file_path = null;
|
else file_path = null;
|
||||||
}
|
}
|
||||||
if (!fs.existsSync(file_path)) {
|
if (!fs.existsSync(file_path)) {
|
||||||
logger.error(`File ${file_path} could not be found! UID: ${uid}, ID: ${file_obj.id}`);
|
logger.error(`File ${file_path} could not be found! UID: ${uid}, ID: ${file_obj && file_obj.id}`);
|
||||||
}
|
}
|
||||||
const stat = fs.statSync(file_path);
|
const stat = fs.statSync(file_path);
|
||||||
const fileSize = stat.size;
|
const fileSize = stat.size;
|
||||||
|
|||||||
Reference in New Issue
Block a user