On 02/24, Daniel Carl wrote: > - the number of running downloads could be tracked internal and decremented if > the external download tool finished It would be nice if this information could be displayed like [D:3] or [D(3)] on the status bar.
> - and if the downloader returns the real download target path to stdout, we > could possibly display this in the inputbox of the window where the download > was started if the user does not type into it This doesn't seems really useful, because if an external downloader changes name/path of downloaded file on purpose, there is no need to notify a user about it, since the user is aware of what his script is doing. > - the download target path prediction could be left in vimb and given as > parameter to the downloader > > ... > > Following parameters are useful/required for the downloader: > > - URI of the download. > - Suggested download path so we can keep the `:save` command that takes a user > defined path as agrument. > - Path to the cookie file, at the moment $XDG_CONFIG_HOME/vimb/cookies. > - Referer the page from which the download was started, could be empty if the > `:save path` command was used. > - User agent string that is used by vimb (if the application performs any > checks on it). I think this could be done with variables as it is done in dwb (another lightweight web browser). From dwb man page: download-external-command A command that will be invoked if download-use-external-program is set. There are four variables that can be used in the command: dwb_uri will be replaced with the download-uri, dwb_output will be replaced with the fullpath of the destination, dwb_cookies will be replaced with the path to the cookie-file, dwb_referer will be replaced with the uri of the site the download started, dwb_proxy will be replaced with the proxy url if dwb uses a proxy. Additionally the environment-variables DWB_URI, DWB_FILENAME, DWB_COOKIES, DWB_REFERER, DWB_MIME_TYPE, DWB_PROXY and DWB_USER_AGENT are set. Default value: xterm -e wget dwb_uri -O dwb_output --load-cookies dwb_cookies. So vimb simply passes these variables to an external downloader which can use them afterwards. ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk _______________________________________________ vimb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vimb-users