Skip to content

Commit 7f6f961

Browse files
added support for set_dl_location
1 parent 003a702 commit 7f6f961

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

myjdapi/myjdapi.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,12 @@ def force_download(self, link_ids=[], package_ids=[]):
632632
resp = self.device.action(self.url + "/forceDownload", params)
633633
return resp
634634

635+
def set_dl_location(self, directory, package_ids=[]):
636+
params = [directory, package_ids]
637+
resp = self.device.action(self.url + "/setDownloadDirectory", params)
638+
return resp
639+
640+
635641
class Captcha:
636642
"""
637643
Class that represents the captcha interface of a Device

0 commit comments

Comments
 (0)