Add acceptformat=crx2,crx3.

Which still isn't working for some extensions but I will look
into it later maybe.
This commit is contained in:
voussoir 2020-09-17 01:22:47 -07:00
parent 6f53cb6d8a
commit abf3addba8

View file

@ -14,7 +14,7 @@ from voussoirkit import getpermission
FILENAME_BADCHARS = '\\/:*?<>|"' FILENAME_BADCHARS = '\\/:*?<>|"'
WEBSTORE_URL = 'https://chrome.google.com/webstore/detail/x/{extension_id}' WEBSTORE_URL = 'https://chrome.google.com/webstore/detail/x/{extension_id}'
CRX_URL = 'https://clients2.google.com/service/update2/crx?response=redirect&prodversion=59.0&x=id%3D{extension_id}%26installsource%3Dondemand%26uc' CRX_URL = 'https://clients2.google.com/service/update2/crx?response=redirect&prodversion=83.0.4103.116&acceptformat=crx2,crx3&x=id%3D{extension_id}%26uc'
def sanitize_filename(name): def sanitize_filename(name):
for c in FILENAME_BADCHARS: for c in FILENAME_BADCHARS: