Page 1 of 1

avoid wget adding filehash to xpi file from amo

Posted: Tue Sep 03, 2019 7:51 am
by McI
Trying FlashGot with wget in SeaMonkey 2.53 (to get the correct file date) i see an issue with xpi files from amo or atn. it adds filehash to the file name while the download manger doesn't. Is this a FlashGot or a wget issue and how can it be avoided?

Re: avoid wget adding filehash to xpi file from amo

Posted: Tue Sep 03, 2019 11:11 am
by therube
I have seen hashes on the palemoon end, ca-archive in particular.
Don't think I've seen that on AMO?

Code: Select all

https://addons.palemoon.org/?component=download&id=AdvancedNightMode@Off.JustOff&version=1.0.9&hash=8659729bbf0142077b866646352b9198ea30d85dec811007b23b283f5b7fa236
Anyhow, any junk that follows the "URL" will come from the source.
(AMO might make note of the button clicked, or the "source" [like &search], or other crap)

A download manager may or may not parse the crap parts out.


MS too may add hashes to their downloads. But in that case, the hash is part of the file name.

Code: Select all

windowsxp-kb4500331-x86-custom-enu_d7206aca53552fececf72a3dee93eb2da0421188.exe

On the odd times I may have used wget to download a .xpi, I don't recall the file date to be off?


If I download, using wget - from command-line...

Code: Select all

https://addons.mozilla.org/firefox/downloads/file/3383315/noscript_security_suite-11.0.3-an+fx.xpi?src=featured
I get "noscript_security_suite-11.0.3-an+fx.xpi@src=featured" (as I'd expect), dated correctly.
(Remove the @src=featured part & all is well. Or I could have done that initially when I pasted the link.
AMO, sucks, is prejudicial again anything that is not "firefox".)

Re: avoid wget adding filehash to xpi file from amo

Posted: Thu Sep 05, 2019 8:00 am
by McI
Trying cURL it doesn't add ?filehash... but ?src..., weird.
BTW, cURL give the correct file time/date too when the remote-time command is added in .curlrc

Re: avoid wget adding filehash to xpi file from amo, got it with aria2

Posted: Sun Sep 08, 2019 4:17 am
by McI
Finally got it with aria2 which also can be set to remot-time with remote-time=true in the .aria2/aria2.conf file