diff --git a/index.html b/index.html index 2e6aec8..e4b36f9 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,7 @@ -
M3U8-Downloader v1.0.9 +
M3U8-Downloader v1.1.1
开放源码 官网 diff --git a/main.js b/main.js index b780ee8..9692dab 100644 --- a/main.js +++ b/main.js @@ -30,7 +30,7 @@ const globalConfigDir = app.getPath('userData'); const globalConfigPath = path.join(globalConfigDir,'config.json'); const globalConfigVideoPath = path.join(globalConfigDir,'config_videos.json'); -const httpTimeout = {socket: 30000, request: 30000, response:30000}; +const httpTimeout = {socket: 300000, request: 300000, response:300000}; const referer = `https://tools.heisir.cn/M3U8Soft-Client?v=${package_self.version}`; @@ -263,9 +263,9 @@ ipcMain.on('task-add', async function (event, arg, headers) { let _headers = {}; if(headers != '') { - let __ = headers.match(/([^ ]*?): ?([^ ]*?)(\n|\r|$)/g); + let __ = headers.match(/(.*?): ?(.*?)(\n|\r|$)/g); __ && __.forEach((_)=>{ - let ___ = _.match(/([^ ]*?): ?([^ ]*?)(\n|\r|$)/i); + let ___ = _.match(/(.*?): ?(.*?)(\n|\r|$)/i); ___ && (_headers[___[1]] = ___[2]); }); } diff --git a/package.json b/package.json index 049ed1a..ea8ed20 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "m3u8-downloader", - "version": "1.0.9", + "version": "1.1.1", "description": "hls 下载器,用于下载主流网站的视频和直播。", "main": "main.js", "dependencies": {