pipo wrote:Hi LuukD,
Your extension is very helpful, thank you !
The only thing that is missing for me to be perfect is the ability of choosing a destination folder for the download (instead of the default download destination).
I had a look at it and made it work (modifying locally your extension code) with:
1) using an alternate addurl request
http://<server>:<port>/webman/3rdparty/DownloadStation/dlm/downloadman.cgi?action=add_url_task&desttext=<dest folder>&urls=["<url>"]
instead of /download_redirector.cgi that does not support any param to specify the destination
2) using and alternate login request
/downloadman.cgi does not rely on the same login technique than /download_redirector.cgi, so I had to login using /webman/login.cgi?username=<user>&passwd=<pwd>
(does not replace the original login; just in addition when using /downloadman.cgi)
3) specifying destination folders in the extension settings
I did not do it, but the idea I had was not to select interactively the destination each time a download task is added, but rather let the user specify some "favorite" folders in the extension settings, and adding sub-menus under the "Download with DiskStation" contextual menu item for each favorite destination.
This way your extension would remain very usable and effective.
Just a suggestion...
Pierre.
Hi Pierre,
Thank you for your feedback. I've been working on a version that uses the URL as you specified and had it working. But there was one problem with the new interface: it uses cookies to store the login sessions. Chrome extensions share their cookie storage with normal browser tabs, this makes it impossible to logout from DSM in the browser while the extension is active (you'll be logged in again when the extension updates the download status). Also, if you log out and login immediately again using another account, the extension will start using the extension from the other user account.
I have tried many different approaches, but I came to the conclusion that either Synology has to add a way for cookie-less authentication or Google (and Apple for the Safari extension) has to add a way to separate browsing cookies from extension cookies.
I'd love to switch to the new interface as soon as it is possible




