Skip to content

Commit

Permalink
Add refetch method for download objects
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Dec 26, 2018
1 parent 5c8be6c commit c87e752
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/aria2p/downloads.py
Expand Up @@ -172,6 +172,9 @@ def update(self, struct):
"""
self._struct.update(struct)

def refetch(self):
self.update(self.api.get_download(self.gid))

@property
def name(self):
"""
Expand Down

0 comments on commit c87e752

Please sign in to comment.