Refactoring and small optimizations
This commit is contained in:
@@ -52,7 +52,14 @@ class Process {
|
||||
|
||||
log.info('proc', `Spawned a new process, pid: ${this.pid}`)
|
||||
|
||||
await insertDownload(this.url, this.info?.title, this.info?.thumbnail, null, this.pid);
|
||||
await insertDownload(
|
||||
this.url,
|
||||
this.info?.title,
|
||||
this.info?.thumbnail,
|
||||
null,
|
||||
this.params.reduce((prev, next) => `${prev} ${next}`),
|
||||
this.pid
|
||||
);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user