Beispiel #1
0
        public async Task DeleteTorrentAsync(string hash, bool deleteDownloaded = false)
        {
            _logger?.LogInformation("Delete Torrent start: {hash}", hash);
            await EnsureLoggedInAsync();

            if (GetTorrentInfo(hash) != null)
            {
                await _client.DeleteAsync(hash, deleteDownloaded);
            }
            _logger?.LogInformation("Delete Torrent End: {hash}", hash);
        }
            protected override async Task <int> OnExecuteTorrentSpecificAsync(QBittorrentClient client, CommandLineApplication app, IConsole console)
            {
                await client.DeleteAsync(Hash, DeleteFiles);

                return(ExitCodes.Success);
            }