Esempio n. 1
0
        public async Task <ActionResult> TorrentsDelete([FromQuery] QBTorrentsDeleteRequest request)
        {
            var hashes = request.Hashes.Split("|");

            foreach (var hash in hashes)
            {
                await _qBittorrent.TorrentsDelete(hash, request.DeleteFiles);
            }

            return(Ok());
        }
Esempio n. 2
0
 public async Task <ActionResult> TorrentsDeletePost([FromForm] QBTorrentsDeleteRequest request)
 {
     return(await TorrentsDelete(request));
 }