Chocobozzz/PeerTube

View on GitHub
server/core/helpers/webtorrent.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function downloadWebTorrentVideo has 52 lines of code (exceeds 25 allowed). Consider refactoring.
Open

async function downloadWebTorrentVideo (target: { uri: string, torrentName?: string }, timeout: number) {
  const id = target.uri || target.torrentName
  let timer

  const path = generateVideoImportTmpPath(id)
Severity: Major
Found in server/core/helpers/webtorrent.ts - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status