ActivityPub-federated video streaming platform using P2P directly in your web browser
Improve webtorrent import error message when the torrent has multiple files
Chocobozzzdae4a1c0f8d8
diff --git a/server/helpers/webtorrent.ts b/server/helpers/webtorrent.tsindex 2fdfd18760..f4b44bc4ff 100644--- a/server/helpers/webtorrent.ts+++ b/server/helpers/webtorrent.ts@@ -24,7 +24,7 @@ function downloadWebTorrentVideo (target: { magnetUri: string, torrentName?: strif (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 ]