mendevi.download.transmission.add_torrent

mendevi.download.transmission.add_torrent(torrent: Path, download_dir: Path | None = None) Path[source]

Add the torrent to transmission.

Parameters

torrentpathlib.Path

The torrent file to be added.

download_dirpathlib.Path, default=~/.cache/mendevi/

The download_dir in which to download the torrent content.

Returns

filepathlib.Path

Return the downloaded file path, related to the torrent.