#1
|
|||
|
|||
/set/downloaddir/general/ not working...
Hi All,
I'm using the remote control plugin and I'm pretty happy with it. The only thing that would make me even happier is if I could change the downloaddir from my script. There is code for this in the plugin, but there is also a comment saying 'TODO: Doesn't seem to work but I really don't know why :-/'. Unfortunately, neither do I. I'm not a Java person, so I really don't have much of a clue on where to start looking for the problem. I did some fgreps for other places that use PARAM_DOWNLOAD_DIRECTORY, and it looks like the default value for this dir is taken from JDUtilities.getResourceFile("downloads"), so my feeling is that just using the JSonWrapper to set the property does not set the one that is used by the system but rather some other shadow. It looks like it's the only directory var that the remote control plugin tries to set, so maybe using Code:
JSonWrapper.get("DOWNLOAD").setProperty(Configuration.PARAM_DOWNLOAD_DIRECTORY, dir); JSonWrapper.get("DOWNLOAD").save(); I would really like to use that feature, so if somebody who knows the code could take a look at this, I'd really appreciate it. Thanks a lot! Last edited by vivalostioz; 16.03.2011 at 12:50. |
#2
|
||||
|
||||
note that you can only change directory for new added packages. this parameter is used for new added. downloads that are already in list, are not affected.
i contacted the dev of remotecontrol to check this
__________________
JD-Dev & Server-Admin |
#3
|
||||
|
||||
fixed (with Jiaz's help)
in the next nightly version it should work
__________________
Zitat Jiaz: "bist du stable oder nightly?" ------------------------------------------- Besucht meinen Entwicklerblog: mike-bonn.de |
#4
|
|||
|
|||
Hi Guys,
thanks for the quick response! I found out after I posted that you can set the download dir for each individual package directly before it gets sent to the downloads (whch interestingly is not possible in the UI), which works even better for me. But hey, only a dead bug is good bug, so fixing this is definitely a good thing. Yours MLi |
#5
|
||||
|
||||
sure it's possible in the GUI. Ever double clicked on a package in the linkgrabber ? A package info panel will appear at the bottom where you can change the download dir for a single package.
__________________
Zitat Jiaz: "bist du stable oder nightly?" ------------------------------------------- Besucht meinen Entwicklerblog: mike-bonn.de |
#6
|
|||
|
|||
Ahh, doubleclick! I was looking for Properties in the right-click menu. You never stop learning...
Thanks! |
Thread Tools | |
Display Modes | |
|
|