Skip to content

Commit 3cf8e07

Browse files
committed
Added support for renaming linkgrabber package.
1 parent f8b950f commit 3cf8e07

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

myjdapi/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@
3434
MYJDUnknownException,
3535
)
3636

37-
__version__ = "1.1.1"
37+
__version__ = "1.1.2"

myjdapi/myjdapi.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -464,12 +464,14 @@ def get_package_count(self):
464464
"""
465465
pass
466466

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

474476
def query_packages(self,
475477
params=[{

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
long_description = f.read()
1212
setup(
1313
name='myjdapi',
14-
version='1.1.1',
14+
version='1.1.2',
1515
description='Library to use My.Jdownloader API in an easy way.',
1616
long_description=long_description,
1717
url='https://github.com/mmarquezs/My.Jdownloader-API-Python-Library/',

0 commit comments

Comments
 (0)