public async Task <ActionResult> TorrentsAdd([FromQuery] QBTorrentsAddRequest request)
        {
            var urls = request.Urls.Split("\n");

            foreach (var url in urls)
            {
                await _qBittorrent.TorrentsAdd(url.Trim(), true, false);
            }

            return(Ok());
        }
        public async Task <ActionResult> TorrentsAddPost([FromForm] QBTorrentsAddRequest request)
        {
            foreach (var file in Request.Form.Files)
            {
                if (file.Length > 0)
                {
                    await using var target = new MemoryStream();

                    await file.CopyToAsync(target);

                    var fileBytes = target.ToArray();

                    await _qBittorrent.TorrentsAddFile(fileBytes, true, false);
                }
            }

            if (request.Urls != null)
            {
                return(await TorrentsAdd(request));
            }

            return(Ok());
        }