Skip to content

Commit cc1e70d

Browse files
committedJan 31, 2018
fix text export
1 parent d18c75a commit cc1e70d

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed
 

‎chrome/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
"manifest_version": 2,
2424
"permissions": [ "cookies", "storage", "tabs", "*://*.115.com/*"],
2525
"name": "__MSG_appName__",
26-
"version": "0.2.5"
26+
"version": "0.2.6"
2727
}

‎chrome/package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎chrome/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "115",
3-
"version": "0.2.5",
3+
"version": "0.2.6",
44
"description": "Assistant for 115 to export download links to aria2-rpc.",
55
"main": "background.js",
66
"scripts": {

‎chrome/src/js/lib/core.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -185,17 +185,16 @@ class Core {
185185
const downloadLinkTxt = []
186186
const prefixTxt = 'data:text/plain;charset=utf-8,'
187187
fileDownloadInfo.forEach((file) => {
188-
const name = JSON.stringify(file.name)
189-
let aria2CmdLine = `aria2c -c -s10 -k1M -x16 --enable-rpc=false -o ${name} ${this.getHeader('aria2Cmd')} ${JSON.stringify(file.link)}`
190-
let aria2Line = [file.link, this.getHeader('aria2c'), ` out=${name}`].join('\n')
188+
let aria2CmdLine = `aria2c -c -s10 -k1M -x16 --enable-rpc=false -o ${JSON.stringify(file.name)} ${this.getHeader('aria2Cmd')} ${JSON.stringify(file.link)}`
189+
let aria2Line = [file.link, this.getHeader('aria2c'), ` out=${file.name}`].join('\n')
191190
const sha1Check = this.getConfigData('sha1Check')
192191
if (sha1Check) {
193192
aria2CmdLine += ` --checksum=sha-1=${file.sha1}`
194193
aria2Line += ` checksum=sha-1=${file.sha1}`
195194
}
196195
aria2CmdTxt.push(aria2CmdLine)
197196
aria2Txt.push(aria2Line)
198-
const idmLine = ['<', file.link, this.getHeader('idm'), `out=${name}`, '>'].join('\r\n')
197+
const idmLine = ['<', file.link, this.getHeader('idm'), '>'].join('\r\n')
199198
idmTxt.push(idmLine)
200199
downloadLinkTxt.push(file.link)
201200
})

‎chrome/src/js/lib/ui.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import Store from './store'
33

44
class UI {
55
constructor () {
6-
this.version = '0.2.5'
7-
this.updateDate = '2017/11/28'
6+
this.version = '0.2.6'
7+
this.updateDate = '2018/01/31'
88
this.context = document.querySelector('iframe[rel="wangpan"]').contentDocument
99
Store.on('updateView', (configData) => {
1010
this.updateSetting(configData)

0 commit comments

Comments
 (0)
Please sign in to comment.