Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
HeiSir committed Jun 28, 2020
1 parent fb31eb2 commit d984e27
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<link rel="stylesheet" href="css/style.css">
</head>
<body class="heisir">
<div class="header"><span class="title">M3U8-Downloader v1.0.9</span>
<div class="header"><span class="title">M3U8-Downloader v1.1.1</span>
<div class="space"></div>
<a class="home" href="https://github.com/HeiSir2014/M3U8-Downloader" target="_blank">开放源码</a>
<a class="home" href="https://tools.heisir.cn/HLSDownload/" target="_blank">官网</a>
Expand Down
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;

Expand Down Expand Up @@ -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]);
});
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "m3u8-downloader",
"version": "1.0.9",
"version": "1.1.1",
"description": "hls 下载器,用于下载主流网站的视频和直播。",
"main": "main.js",
"dependencies": {
Expand Down

0 comments on commit d984e27

Please sign in to comment.