mirror of
https://github.com/neosubhamoy/neodlp.git
synced 2026-07-09 17:14:32 +02:00
feat: added custom commands, per-download configs and other minor improvements
This commit is contained in:
@@ -202,7 +202,8 @@ export const saveDownloadState = async (downloadState: DownloadState) => {
|
||||
embed_thumbnail = $28,
|
||||
sponsorblock_remove = $29,
|
||||
sponsorblock_mark = $30,
|
||||
use_aria2 = $31
|
||||
use_aria2 = $31,
|
||||
custom_command = $32
|
||||
WHERE download_id = $1`,
|
||||
[
|
||||
downloadState.download_id,
|
||||
@@ -235,7 +236,8 @@ export const saveDownloadState = async (downloadState: DownloadState) => {
|
||||
downloadState.embed_thumbnail,
|
||||
downloadState.sponsorblock_remove,
|
||||
downloadState.sponsorblock_mark,
|
||||
downloadState.use_aria2
|
||||
downloadState.use_aria2,
|
||||
downloadState.custom_command
|
||||
]
|
||||
)
|
||||
}
|
||||
@@ -270,8 +272,9 @@ export const saveDownloadState = async (downloadState: DownloadState) => {
|
||||
embed_thumbnail,
|
||||
sponsorblock_remove,
|
||||
sponsorblock_mark,
|
||||
use_aria2
|
||||
) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31)`,
|
||||
use_aria2,
|
||||
custom_command
|
||||
) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32)`,
|
||||
[
|
||||
downloadState.download_id,
|
||||
downloadState.download_status,
|
||||
@@ -303,7 +306,8 @@ export const saveDownloadState = async (downloadState: DownloadState) => {
|
||||
downloadState.embed_thumbnail,
|
||||
downloadState.sponsorblock_remove,
|
||||
downloadState.sponsorblock_mark,
|
||||
downloadState.use_aria2
|
||||
downloadState.use_aria2,
|
||||
downloadState.custom_command
|
||||
]
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user