mirror of https://github.com/Chocobozzz/PeerTube
Try to re-fix tests
parent
e2b2c46339
commit
1abf74e464
|
@ -25,9 +25,7 @@ export async function parseTorrentVideo (server: PeerTubeServer, file: VideoFile
|
||||||
|
|
||||||
const data = await readFile(torrentPath)
|
const data = await readFile(torrentPath)
|
||||||
|
|
||||||
// FIXME: use classic import, on node 18.18 we have an error
|
return (await import('parse-torrent')).default(data)
|
||||||
// "[ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in .../node_modules/parse-torrent/package.json"
|
|
||||||
return require('parse-torrent')(data)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue