mirror of
https://github.com/zoriya/flood.git
synced 2026-06-01 18:47:44 +00:00
feat: use relative path in mediainfo info (#657)
This commit is contained in:
@@ -905,8 +905,8 @@ router.get<{hash: string}>(
|
||||
|
||||
const mediainfoProcess = childProcess.execFile(
|
||||
'mediainfo',
|
||||
torrentContentPaths,
|
||||
{maxBuffer: 1024 * 2000, timeout: 1000 * 10},
|
||||
torrentContentPaths.map((x) => path.relative(torrentDirectory, x)),
|
||||
{maxBuffer: 1024 * 2000, timeout: 1000 * 10, cwd: torrentDirectory},
|
||||
(error, stdout) => {
|
||||
if (error) {
|
||||
return res.status(500).json({code: error.code, message: error.message});
|
||||
|
||||
Reference in New Issue
Block a user