feat: added custom commands, per-download configs and other minor improvements

This commit is contained in:
Subhamoy Biswas
2025-10-05 21:21:26 +05:30
parent 9498464fa2
commit 3046daffd8
12 changed files with 772 additions and 173 deletions
+9 -5
View File
@@ -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
]
)
}