JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 16.03.2011, 02:30
MLi MLi is offline
Mega Loader
 
Join Date: Oct 2010
Posts: 68
Default /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();
is just not the way to do it? But then again, I have no clue about JD or Java so all this might be nonsense.

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.
Reply With Quote
  #2  
Old 16.03.2011, 10:35
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

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
Reply With Quote
  #3  
Old 16.03.2011, 12:50
vivalostioz's Avatar
vivalostioz vivalostioz is offline
JD Legend
 
Join Date: Mar 2009
Location: Bonn
Posts: 618
Default

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
Reply With Quote
  #4  
Old 16.03.2011, 15:19
MLi MLi is offline
Mega Loader
 
Join Date: Oct 2010
Posts: 68
Default

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
Reply With Quote
  #5  
Old 16.03.2011, 15:37
vivalostioz's Avatar
vivalostioz vivalostioz is offline
JD Legend
 
Join Date: Mar 2009
Location: Bonn
Posts: 618
Default

Quote:
Originally Posted by MLi View Post
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)
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
Reply With Quote
  #6  
Old 16.03.2011, 23:33
MLi MLi is offline
Mega Loader
 
Join Date: Oct 2010
Posts: 68
Default

Ahh, doubleclick! I was looking for Properties in the right-click menu. You never stop learning...

Thanks!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 02:32.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.