mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Improve webtorrent import error message when the torrent has multiple
files
This commit is contained in:
@@ -24,7 +24,7 @@ function downloadWebTorrentVideo (target: { magnetUri: string, torrentName?: str
|
||||
if (timer) clearTimeout(timer)
|
||||
|
||||
return safeWebtorrentDestroy(webtorrent, torrentId, file.name, target.torrentName)
|
||||
.then(() => rej(new Error('The number of files is not equal to 1 for ' + torrentId)))
|
||||
.then(() => rej(new Error('Cannot import torrent ' + torrentId + ': there are multiple files in it')))
|
||||
}
|
||||
|
||||
file = torrent.files[ 0 ]
|
||||
|
||||
Reference in New Issue
Block a user