diff --git a/chrome-extension/background.js b/chrome-extension/background.js index ab5c706..0ea1c9b 100644 --- a/chrome-extension/background.js +++ b/chrome-extension/background.js @@ -28,7 +28,7 @@ try { chromeVersion = 33; } chromeVersion = parseInt(chromeVersion); -sendMessageToHost({ version: "1.1.1" }); +sendMessageToHost({ version: "1.1.2" }); // Message format to send the download information to the uget-chrome-wrapper @@ -137,16 +137,16 @@ chrome.webRequest.onHeadersReceived.addListener(function(details) { }; } - interruptDownload = false; - message.url = details.url; - var contentType = ""; - - if (details.url.includes("//docs.google.com/")) { // Cannot download from Google Docs + if (details.url.includes("//docs.google.com/") || details.url.includes("googleusercontent.com/docs")) { // Cannot download from Google Docs return { responseHeaders: details.responseHeaders }; } + interruptDownload = false; + message.url = details.url; + var contentType = ""; + for (var i = 0; i < details.responseHeaders.length; ++i) { if (details.responseHeaders[i].name.toLowerCase() == 'content-length') { message.filesize = details.responseHeaders[i].value; diff --git a/chrome-extension/manifest.json b/chrome-extension/manifest.json index bc445cb..463a3b4 100644 --- a/chrome-extension/manifest.json +++ b/chrome-extension/manifest.json @@ -38,5 +38,5 @@ "webRequestBlocking", "nativeMessaging" ], - "version": "1.1.1" + "version": "1.1.2" } \ No newline at end of file diff --git a/uget-chrome-wrapper/bin/uget-chrome-wrapper b/uget-chrome-wrapper/bin/uget-chrome-wrapper index 994f8b4..17d6637 100755 --- a/uget-chrome-wrapper/bin/uget-chrome-wrapper +++ b/uget-chrome-wrapper/bin/uget-chrome-wrapper @@ -28,7 +28,7 @@ from urlparse import urlparse from os.path import splitext, basename, join, expanduser UGET_COMMAND = "uget-gtk" -VERSION = "1.3.0" +VERSION = "1.3.2" # Platform specific configuration if sys.platform == "win32": @@ -59,7 +59,7 @@ def read_message(): text = sys.stdin.read(text_length).decode('utf-8') if text: - if "version" in text: + if not 'url' in text: send_message('{"enable": true, "version": "' + VERSION + '"}') return diff --git a/uget-chrome-wrapper/debian/changelog b/uget-chrome-wrapper/debian/changelog index 21bfaa5..08cde8b 100644 --- a/uget-chrome-wrapper/debian/changelog +++ b/uget-chrome-wrapper/debian/changelog @@ -1,5 +1,7 @@ -uget-chrome-wrapper (1.3.1-1) xenial; urgency=medium +uget-chrome-wrapper (1.3.2-1) xenial; urgency=medium + * Fixing bug in urls with 'version' + * Downgrading Python dependency * Adding support for Chromium and Vivaldi