Download Queue (DQ) v0.2

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)

1

Henrik

Sunday, September 16, 2007 at 3:04:07 PM

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

2

Jason

Sunday, September 16, 2007 at 3:34:00 PM

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.

3

Henrik

Monday, September 17, 2007 at 2:28:42 PM

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.

4

Tony Agudo

Monday, September 17, 2007 at 3:41:18 PM

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.

5

kevin

Thursday, September 20, 2007 at 3:58:11 AM

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

6

MotoQ

Wednesday, January 2, 2008 at 11:52:14 AM

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'

Leave a Comment

Recent Posts


Tags



Archives