1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 02:09:37 +02:00

Add infohash cache

This commit is contained in:
Chocobozzz 2020-01-03 13:47:45 +01:00
parent 562724a1ed
commit 35f28e94c7
No known key found for this signature in database
GPG key ID: 583A612D890159BE
5 changed files with 32 additions and 5 deletions

View file

@ -40,7 +40,7 @@ const getServerActor = memoizee(async function () {
actor.Account = application.Account
return actor
})
}, { promise: true })
function generateVideoImportTmpPath (target: string | ParseTorrent) {
const id = typeof target === 'string' ? target : target.infoHash