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