diff --git a/packages/tests/src/server-helpers/core-utils.ts b/packages/tests/src/server-helpers/core-utils.ts index 627260d6b..f1e7c72f7 100644 --- a/packages/tests/src/server-helpers/core-utils.ts +++ b/packages/tests/src/server-helpers/core-utils.ts @@ -80,6 +80,7 @@ describe('Time to int', function () { expect(timeToInt('5h10m')).to.equal(5 * 3600 + 60 * 10) expect(timeToInt('5h10m0s')).to.equal(5 * 3600 + 60 * 10) + expect(timeToInt('5h10m0')).to.equal(5 * 3600 + 60 * 10) expect(timeToInt(3500)).to.equal(3500) }) diff --git a/server/core/helpers/webtorrent.ts b/server/core/helpers/webtorrent.ts index c0ac26644..15d4a832a 100644 --- a/server/core/helpers/webtorrent.ts +++ b/server/core/helpers/webtorrent.ts @@ -36,7 +36,10 @@ async function downloadWebTorrentVideo (target: { uri: string, torrentName?: str await ensureDir(directoryPath) // eslint-disable-next-line new-cap - const webtorrent = new (await import('webtorrent')).default() + const webtorrent = new (await import('webtorrent')).default({ + natUpnp: false, + natPmp: false + } as any) return new Promise((res, rej) => { let file: TorrentFile