New Handler: stream-magnet

only tested on windows
This commit is contained in:
anonymlol
2016-06-14 13:30:38 +02:00
parent 12500dfb64
commit db20bd8eaf
4 changed files with 16 additions and 2 deletions

View File

@@ -550,6 +550,7 @@ function isTorrent (file) {
var name = typeof file === 'string' ? file : file.name
var isTorrentFile = path.extname(name).toLowerCase() === '.torrent'
var isMagnet = typeof file === 'string' && /^magnet:/.test(file)
var isMagnet = typeof file === 'string' && /^stream-magnet:/.test(file)
return isTorrentFile || isMagnet
}