server/core/helpers/webtorrent.ts
Function downloadWebTorrentVideo
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function downloadWebTorrentVideo (target: { uri: string, torrentName?: string }, timeout: number) {
const id = target.uri || target.torrentName
let timer
const path = generateVideoImportTmpPath(id)