added aria2 start hook script to update file without a proper name;increased filename column to 50%;fixed minor issue in ripping audio

This commit is contained in:
huangjx
2021-10-11 22:09:29 +08:00
parent 871af03f7d
commit 0a492e9db9
7 changed files with 28 additions and 11 deletions

View File

@@ -56,7 +56,11 @@ class Aria2Command extends base
$this->dbconn->updateStatus($gid, Helper::STATUS[$status]);
}
if ($action === 'start') {
//Helper::log("$gid started");
if ($path = $input->getArgument('path')) {
$filename = basename($path);
$this->dbconn->updateFilename($gid,$filename);
}
}
return 1;
}