Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
HeiSir committed Aug 9, 2020
2 parents e8d65b5 + bff03b3 commit 041caf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -608,9 +608,9 @@ class QueueObject {
let key_uri_ = path.join(fileDir,key_uri);
if(!fs.existsSync(key_uri_))
{
var me = key_uri.match(/[^\\\/\?]{1,}\?|$/i);
var me = key_uri.match(/([^\\\/\?]{1,})(\?|$)/i);
if(me && me.length > 1){
key_uri_ = path.join(fileDir,me[0].replace(/\?$/,''));
key_uri_ = path.join(fileDir,me[1]);
}
if(!fs.existsSync(key_uri_))
{
Expand Down Expand Up @@ -929,7 +929,7 @@ async function startDownloadLive(object) {
let myKeyIV = object.myKeyIV;
let url = object.url;
if(!taskName){
taskName = id;
taskName = `${id}`;
}
let dir = path.join(app.getAppPath().replace(/resources\\app.asar$/g,""), 'download/'+taskName.replace(/["“”,\.。\|\/\\ \*:;\?<>]/g,""));
if(globalConfigSaveVideoDir)
Expand Down

0 comments on commit 041caf1

Please sign in to comment.