Пример #1
0
        public async Task <ActionResult> TorrentsSetCategory([FromQuery] QBTorrentsSetCategoryRequest request)
        {
            var hashes = request.Hashes.Split("|");

            foreach (var hash in hashes)
            {
                await _qBittorrent.TorrentsSetCategory(hash, request.Category);
            }

            return(Ok());
        }
Пример #2
0
 public async Task <ActionResult> TorrentsSetCategoryPost([FromForm] QBTorrentsSetCategoryRequest request)
 {
     return(await TorrentsSetCategory(request));
 }