mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
added functions
- remove - removedata - recheck
This commit is contained in:
parent
9e59b5ab3f
commit
f491254dfd
1 changed files with 18 additions and 0 deletions
|
@ -76,6 +76,24 @@ class UTorrentClient(object):
|
||||||
for hash in hashes:
|
for hash in hashes:
|
||||||
params.append(('hash', hash))
|
params.append(('hash', hash))
|
||||||
return self._action(params)
|
return self._action(params)
|
||||||
|
|
||||||
|
def remove(self, *hashes):
|
||||||
|
params = [('action', 'remove'),]
|
||||||
|
for hash in hashes:
|
||||||
|
params.append(('hash', hash))
|
||||||
|
return self._action(params)
|
||||||
|
|
||||||
|
def removedata(self, *hashes):
|
||||||
|
params = [('action', 'removedata'),]
|
||||||
|
for hash in hashes:
|
||||||
|
params.append(('hash', hash))
|
||||||
|
return self._action(params)
|
||||||
|
|
||||||
|
def recheck(self, *hashes):
|
||||||
|
params = [('action', 'recheck'),]
|
||||||
|
for hash in hashes:
|
||||||
|
params.append(('hash', hash))
|
||||||
|
return self._action(params)
|
||||||
|
|
||||||
def getfiles(self, hash):
|
def getfiles(self, hash):
|
||||||
params = [('action', 'getfiles'), ('hash', hash)]
|
params = [('action', 'getfiles'), ('hash', hash)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue