Skip to content
This repository was archived by the owner on Mar 22, 2018. It is now read-only.

Commit 354cdd4

Browse files
committed
Skip Google doc and fix bug in downloading url with 'version' text
1 parent 628acf1 commit 354cdd4

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

chrome-extension/background.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ try {
2828
chromeVersion = 33;
2929
}
3030
chromeVersion = parseInt(chromeVersion);
31-
sendMessageToHost({ version: "1.1.1" });
31+
sendMessageToHost({ version: "1.1.2" });
3232

3333

3434
// Message format to send the download information to the uget-chrome-wrapper
@@ -137,16 +137,16 @@ chrome.webRequest.onHeadersReceived.addListener(function(details) {
137137
};
138138
}
139139

140-
interruptDownload = false;
141-
message.url = details.url;
142-
var contentType = "";
143-
144-
if (details.url.includes("//docs.google.com/")) { // Cannot download from Google Docs
140+
if (details.url.includes("//docs.google.com/") || details.url.includes("googleusercontent.com/docs")) { // Cannot download from Google Docs
145141
return {
146142
responseHeaders: details.responseHeaders
147143
};
148144
}
149145

146+
interruptDownload = false;
147+
message.url = details.url;
148+
var contentType = "";
149+
150150
for (var i = 0; i < details.responseHeaders.length; ++i) {
151151
if (details.responseHeaders[i].name.toLowerCase() == 'content-length') {
152152
message.filesize = details.responseHeaders[i].value;

chrome-extension/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@
3838
"webRequestBlocking",
3939
"nativeMessaging"
4040
],
41-
"version": "1.1.1"
41+
"version": "1.1.2"
4242
}

uget-chrome-wrapper/bin/uget-chrome-wrapper

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ from urlparse import urlparse
2828
from os.path import splitext, basename, join, expanduser
2929

3030
UGET_COMMAND = "uget-gtk"
31-
VERSION = "1.3.0"
31+
VERSION = "1.3.2"
3232

3333
# Platform specific configuration
3434
if sys.platform == "win32":
@@ -59,7 +59,7 @@ def read_message():
5959
text = sys.stdin.read(text_length).decode('utf-8')
6060

6161
if text:
62-
if "version" in text:
62+
if not 'url' in text:
6363
send_message('{"enable": true, "version": "' + VERSION + '"}')
6464
return
6565

uget-chrome-wrapper/debian/changelog

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
uget-chrome-wrapper (1.3.1-1) xenial; urgency=medium
1+
uget-chrome-wrapper (1.3.2-1) xenial; urgency=medium
22

3+
* Fixing bug in urls with 'version'
4+
35
* Downgrading Python dependency
46

57
* Adding support for Chromium and Vivaldi

0 commit comments

Comments
 (0)