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

Commit 7bf1a3a

Browse files
committed
Fix special characters in name
1 parent 6363e46 commit 7bf1a3a

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

extension/background.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,9 @@ function isBlackListed(url) {
501501
* Check whether to interrupt the given url or not.
502502
*/
503503
function isWhiteListed(url) {
504+
if (url.includes("videoplayback")) {
505+
return true;
506+
}
504507
for (var keyword of keywordsToInclude) {
505508
if (url.includes(keyword)) {
506509
return true;

extension/popup.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ function saveChanges() {
5252
});
5353

5454
window.close();
55-
alert(document.getElementById("fileSize").value);
5655
}
5756

5857
// When the popup HTML has loaded

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ def read_message():
168168
pass
169169
if not filename:
170170
filename = extract_file_name(url)
171+
else:
172+
# Sometimes Firefox sends complete path
173+
filename = basename(filename)
171174

172175
# Add the referer url
173176
if referer:
@@ -184,6 +187,7 @@ def read_message():
184187
# Add the url
185188
command.append(url)
186189

190+
logger.debug('Execute command: ' + str(command))
187191
# Pass the parameters to uGet
188192
subprocess.call(command)
189193

0 commit comments

Comments
 (0)