Jason W Hutchinson.com

Sun Sep 16, 2007, 4:28 PM
Thanks famfamfam!
Several dropdown menu icons are from famfamfam.com. Go check 'em out for 1000 amazing, free 16x16 general purpose icons!
Home Home Archive Archive Tags Tags Portfolio Portfolio About About Contact Contact



Wednesday, September 12, 2007 at 3:30:14 AM
Download Queue Screenshot

A fairly big update to the script, I've added several new features:

  • Notifications via libnotify Download Queue libnotify screenshot

  • Download History

  • Reprioritization via move, up, and down commands

  • Added the ability to add multiple urls at once

  • Added the ability to skip a download via CTRL+C (moves it to end of queue)

  • -f option for custom queue.txt at command line

  • -c option for custom .dqcfg at command line



Get the updated script here: Download Queue v0.2

If some of the new code seems a little hack-ish just remember, I'm still learning.

Next on the agenda:

  • Figure out how to account for wget getting 404, 503, etc, while still providing real-time output to the command line.

  • Download grouping and/or contexts (i.e. if a download falls within a certain context, check against a certain set of filters)

  • Modified "start" command (download a certain number of urls, a certain range, or those matching a certain regex)


Tags:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/zikes/ubuntu.jasonwhutchinson.com/inc-functions.php on line 120
Comments (7)

Is it possible to make it work on Darwin/Mac also?

I'm afraid I've never used Darwin/Mac, but if you tell me what kind of errors you're getting (if any) I might be able to work it out.

I get this error:

./dq.sh: line 199: conditional binary operator expected
./dq.sh: line 199: syntax error near `=~'
./dq.sh: line 199: ` if [[ "$getfile" =~ ${FILTERMATCH[$index]} ]]; then'

I'm not that good in the terminal either. Hope you have some clues about whats wrong.

Hmm, it seems that the "=~" operator may be the problem. Perhaps the =~ operator isn't defined on the Mac's version of bash(I have bash v3.2.13 on Ubuntu Feisty).

Note to Jason: the extra pair of square brackets in the if test aren't needed.

kevin

hmm why did u zip as rar?
won't gzip be a more popular choice?
have to hunt for unrar now heh

Not work in all servers! :0(
What is your SO?

I get this same error:

./dq.sh: line 199: conditional binary operator expected
./dq.sh: line 199: syntax error near `=~'
./dq.sh: line 199: ` if [[ "$getfile" =~ ${FILTERMATCH[$index]} ]]; then'

Seems the =~ operator only exists in newer version of Bash 3.x

Leave a Comment
Search       
Recent Posts        
Tags