Skip to content

Commit

Permalink
feat(torrent): add download_dir property (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tathar committed Mar 16, 2021
1 parent 1e28598 commit 099a590
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions transmission_rpc/torrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,15 @@ def format_eta(self) -> str:
else:
return format_timedelta(self.eta)

@property
def download_dir(self) -> Optional[int]:
"""The download directory.
available from transmission version 1.5.
available from RPC version 4.
"""
return self._fields["downloadDir"].value

@property
def download_limit(self) -> Optional[int]:
"""The download limit.
Expand Down

0 comments on commit 099a590

Please sign in to comment.