MozillaZine

Add-on downthemall - Help wrt "import from file" feature

Talk about add-ons and extension development.
111MilesToGo
 
Posts: 2
Joined: December 8th, 2016, 12:32 am

Post Posted December 8th, 2016, 12:56 am

Hi all, not sure whether this is the right place to ask for help regarding the downthemall add-on. I'm using the
dTa Manager -> Advanced -> Import from file
feature a lot, i.e. I have a plain text file with one URL per line, where the URL points to some website/file to be downloaded. Works like charm.

I would like to be able to specify a filename of my choice on each line in this text file, in order to make dTa rename the downloaded object to what I want it to be named.

Does anybody know whether this is possible, and if so what the syntax in the text file needs to be?

Thanks in advance. Member morat has posted a lot regarding downthemall on this forum...

PS: Of course, I have checked the original downthemall website, and I had also mailed the authors of dTa incl. donation, but to no avail.

morat
 
Posts: 2423
Joined: February 3rd, 2009, 6:29 pm

Post Posted December 8th, 2016, 12:24 pm

Not possible. DTA only has renaming masks.

Renaming mask
http://www.downthemall.net/howto/help/e ... ming-mask/

I would use wget for something like that.

http://en.wikipedia.org/wiki/wget
http://gnuwin32.sourceforge.net/packages/wget.htm

e.g.

Code: Select all
wget http://www.gnu.org/licenses/gpl.txt -O license.txt

111MilesToGo
 
Posts: 2
Joined: December 8th, 2016, 12:32 am

Post Posted December 10th, 2016, 1:04 am

Thank you, morat, for authoritatively clarifying DTA's capabilities.

I will check into wget as soon as time allows. I am on Windows 7 64-bit and the current Firefox. Regarding wget for Windows, it bothers me that
http://gnuwin32.sourceforge.net/packages/wget.htm
is v1.11 only, since a vulnerability seems to have been closed on the way between 1.11 and the current 1.18. On the other hand,
https://eternallybored.org/misc/wget/
is 1.18, but it is reported to crash on large files and cause a false virus alarm.

More generally, my task is more complicated since it involves username and password input before downloading the desired object. I will check out wget anyway, not sure which version.

morat
 
Posts: 2423
Joined: February 3rd, 2009, 6:29 pm

Post Posted December 10th, 2016, 7:59 am

You can use PowerShell.

http://en.wikipedia.org/wiki/PowerShell

e.g.

Code: Select all
$wc = New-Object System.Net.WebClient;
$wc.DownloadFile("http://www.gnu.org/licenses/gpl.txt", "license.txt");

Return to Extension Development


Who is online

Users browsing this forum: No registered users and 1 guest