Example #1
0
 public async Task TorrentsAddMagnet(String magnetLink, String category, Boolean autoDownload, Boolean autoUnpack, Boolean autoDelete)
 {
     await _torrents.UploadMagnet(magnetLink, category, autoDownload, autoUnpack, autoDelete);
 }
Example #2
0
 public async Task TorrentsAdd(String magnetLink, Boolean autoDownload, Boolean autoDelete)
 {
     await _torrents.UploadMagnet(magnetLink, autoDownload, autoDelete);
 }
Example #3
0
        public async Task <ActionResult> UploadMagnet([FromBody] TorrentControllerUploadMagnetRequest request)
        {
            await _torrents.UploadMagnet(request.MagnetLink, null, request.AutoDownload, request.AutoUnpack, request.AutoDelete);

            return(Ok());
        }