elias_rabl
(Elias Rabl)
October 20, 2015, 3:57pm
1
Hey there,
i just wondered if addons on AMO have a direct download link to the newest version of the addon.
Of course every addon has its own page (e.g. https://addons.mozilla.org/de/firefox/addon/identos-pw-manager-id50/ ) and every *.xpi version has its own download link (e.g. https://addons.mozilla.org/firefox/downloads/file/350818/identos_pw_manager_id50-0.8.6-fx-windows.xpi ).
So i would like to know if AMO provides a link which always directs to the latest addon version?
Something like https://addons.mozilla.org/de/firefox/ addon-id /download-now
Best regards
TheOne
(Andreas Wagner)
October 20, 2015, 5:45pm
2
Something like https://addons.mozilla.org/firefox/downloads/latest/<slug>/
should do.
elias_rabl
(Elias Rabl)
October 20, 2015, 6:14pm
3
Thanks for the quick answer!
Might be a silly question, but how can i figure out the <slug>
part for my addon?
I just realized that the “Add to Firefox” button on my addon page links to https://addons.mozilla.org/firefox/downloads/file/350818/identos_pw_manager_id50-0.8.6-fx-windows.xpi?src=dp-btn-primary
and the same button on Greasemonkey’s page for example links to https://addons.mozilla.org/firefox/downloads/latest/748/addon-748-latest.xpi?src=dp-btn-primary which matches to your pattern?
TheOne
(Andreas Wagner)
October 20, 2015, 6:16pm
4
The slug
is the url part linking to the add-on. So for example for https://addons.mozilla.org/en-US/firefox/addon/adblock-plus/
, the slug would be adblock-plus
.
The numbered ID of the add-on should work as well.
But keep in mind that neither of those are the Add-on GUID.
elias_rabl
(Elias Rabl)
October 20, 2015, 6:27pm
5
I’ve tried out the link for adblock-plus
https://addons.mozilla.org/firefox/downloads/latest/adblock-plus/
and it works as expected.
But for some reason the same pattern
https://addons.mozilla.org/firefox/downloads/latest/identos-pw-manager-id50/
returns a “Not Found” error for my addon.
Oddly enough the following links work both:
https://addons.mozilla.org/en-US/firefox/addon/adblock-plus/
https://addons.mozilla.org/en-US/firefox/addon/identos-pw-manager-id50/
1 Like
TheOne
(Andreas Wagner)
October 20, 2015, 7:26pm
6
I’m not sure what the reason is. Maybe this works for fully reviewed add-ons only.
jorgev
October 20, 2015, 8:54pm
7
Yes, fully reviewed add-ons only.
elias_rabl
(Elias Rabl)
October 20, 2015, 9:06pm
8
Ok, so there’s nothing i can do here
.
Thank you guys for the information!