You don't say what DE libraries you use. If you have KDE you might be
able to find an alternative way (x/y again) of achieving the same
outcome (I have little knowledge of GNOME).
Is there a logic to the choice of directories you wish to download to?
e.g. Could an "auto-filter" be employed to save files to particular
locations based on file type?