Skip to content

Commit

Permalink
Added support for renaming linkgrabber package.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarquezs committed Dec 5, 2021
1 parent f8b950f commit 3cf8e07
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion myjdapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
MYJDUnknownException,
)

__version__ = "1.1.1"
__version__ = "1.1.2"
10 changes: 6 additions & 4 deletions myjdapi/myjdapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,12 +464,14 @@ def get_package_count(self):
"""
pass

def rename_package(self):
def rename_package(self, package_id, new_name):
"""
No idea what parameters i have to pass and/or i don't know what it does.
If i find out i will implement it :P
Rename package name with package_id
"""
pass
params = [package_id, new_name]
resp = self.device.action(self.url + "/renamePackage", params)
return resp


def query_packages(self,
params=[{
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
long_description = f.read()
setup(
name='myjdapi',
version='1.1.1',
version='1.1.2',
description='Library to use My.Jdownloader API in an easy way.',
long_description=long_description,
url='https://github.com/mmarquezs/My.Jdownloader-API-Python-Library/',
Expand Down

0 comments on commit 3cf8e07

Please sign in to comment.