Skip to content

Commit

Permalink
v17.2.0b
Browse files Browse the repository at this point in the history
- Small adjustments.
  • Loading branch information
EdenwareApps committed Sep 5, 2023
1 parent 2152b5c commit 87e5399
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion www/nodejs-project/modules/download/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ class Download extends Events {
this.end()
}
})
response.on('error', this.errorCallback.bind(this))
response.on('error', console.error)
const onend = () => {
if(!this.destroyed && !this.ended){
if(this.isResponseComplete(response.statusCode, response.headers)){
Expand Down
4 changes: 2 additions & 2 deletions www/nodejs-project/modules/lists/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ class Common extends Events {
this.stopWords = ['sd', 'hd', 'h264', 'h.264', 'fhd'] // common words to ignore on searching
this.listMetaKeyPrefix = 'meta-cache-'
this.opts = {
defaultCommunityModeReach: 18,
folderSizeLimitTolerance: 12,
offloadThreshold: 512,
defaultCommunityModeReach: global.cordova ? 12 : 18
offloadThreshold: 256
}
if(opts){
Object.keys(opts).forEach(k => {
Expand Down
1 change: 1 addition & 0 deletions www/nodejs-project/modules/lists/update-list-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ class UpdateListIndex extends ListIndexUtils {
if(!resolved){
resolved = true
fs.unlink(this.tmpfile, () => {})
opts.file && fs.unlink(opts.file, () => {})
reject('destroyed')
}
}
Expand Down
6 changes: 6 additions & 0 deletions www/nodejs-project/modules/options/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -1426,6 +1426,12 @@ class Options extends OptionsExportImport {
action: () => {
global.ui.emit('open-file', global.ui.uploadURL, 'config-import-file', 'application/json, application/zip, application/octet-stream, application/x-zip-compressed, multipart/x-zip', global.lang.IMPORT_CONFIG)
}
},
{
name: global.lang.RESET_CONFIG,
type: 'action',
fa: 'fas fa-undo-alt',
action: () => this.resetConfig()
}
]
}
Expand Down
1 change: 1 addition & 0 deletions www/nodejs-project/modules/streamer/utils/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ class StreamerProxy extends StreamerProxyBase {
url,
cacheTTL,
acceptRanges: !!cacheTTL,
timeout: this.opts.timeout || undefined,
retries: this.committed ? 10 : 2,
maxAuthErrors: this.committed ? 10 : 2,
headers: reqHeaders,
Expand Down

0 comments on commit 87e5399

Please sign in to comment.