File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -399,7 +399,7 @@ def add_links(self,
399
399
"""
400
400
resp = self .device .action ("/linkgrabberv2/addLinks" , params )
401
401
return resp
402
-
402
+
403
403
def is_collecting (self ):
404
404
"""
405
405
Boolean status query about the collecting process
@@ -435,12 +435,13 @@ def help(self):
435
435
resp = self .device .action ("/linkgrabberv2/help" , http_action = "GET" )
436
436
return resp
437
437
438
- def rename_link (self ):
438
+ def rename_link (self , link_id , new_name ):
439
439
"""
440
- No idea what parameters i have to pass and/or i don't know what it does.
441
- If i find out i will implement it :P
440
+ Renames files related with link_id
442
441
"""
443
- pass
442
+ params = [link_id , new_name ]
443
+ resp = self .device .action (self .url + "/renameLink" , params )
444
+ return resp
444
445
445
446
def move_links (self ):
446
447
"""
You can’t perform that action at this time.
0 commit comments