Beispiel #1
0
        public async Task GetTorrentContent()
        {
            string hash = "6C4182E5495D49382A529ABFB1C7A5A766416D68";

            await EnsureLoggedInAsync();

            var torrents = await _client.GetTorrentContentsAsync(hash);

            var torrentsdInfo = await _client.GetTorrentListAsync();

            foreach (TorrentContent content in torrents)
            {
                Console.WriteLine(content.ToString());
            }

            //await _client.SetFilePriorityAsync(hash, 0, TorrentContentPriority.Skip);

            await _client.RenameFileAsync(hash, 10, "mytest.jpg");
        }
Beispiel #2
0
                protected override async Task <int> OnExecuteTorrentSpecificAsync(QBittorrentClient client, CommandLineApplication app, IConsole console)
                {
                    await client.RenameFileAsync(Hash, File, NewName);

                    return(ExitCodes.Success);
                }