ConsoleUser

Copyright (c) 2010-2023 Skaion Corporarion, www.skaion.com

This project was developed in part by numerous sponsorships from the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints of Governmental purposes notwithstanding any copyright notation thereon.

All content reflects those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of the U.S. Government or Skaion Corporation.

class TransmissionGTK.TransmissionGTK(system, config)

Although buttons and fields may look different across different <no title> s the core functionality of transmission-gtk is the same, and so that common functionality is implemented here.

Parameters:

  • system: the <no title> object connected to the target system

  • config: the <no title> object defining this user

add_file(path, urls)

Add a new file to the list that this client is offering up, and announce its availability at the list of urls.

Parameters:

  • path: a string containing the path on the client machine to the file to share

  • urls: when applicable, use this iterable of strings of URLs to announce the availability

get_file(path, local_dir='')

Get the given torrent file.

Parameters:

  • path: the string path to the local torrent file to download

  • local_dir: the string path to the local directory into which the file should be downloaded, if empty the default location will be accepted

get_url(url, local_dir='')

Get the file at the given URL

Parameters:

  • url: the string URL to the torrent to download

  • local_dir: the string path to the local directory into which the file should be downloaded, if empty the default location will be accepted