mirror of
https://github.com/neosubhamoy/neodlp.git
synced 2026-05-06 23:05:50 +05:30
feat: added square crop thumbnail config
This commit is contained in:
@@ -101,12 +101,13 @@ export const saveDownloadState = async (downloadState: DownloadState) => {
|
||||
output_format,
|
||||
embed_metadata,
|
||||
embed_thumbnail,
|
||||
square_crop_thumbnail,
|
||||
sponsorblock_remove,
|
||||
sponsorblock_mark,
|
||||
use_aria2,
|
||||
custom_command,
|
||||
queue_config
|
||||
) 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, $33)
|
||||
) 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, $33, $34)
|
||||
ON CONFLICT(download_id) DO UPDATE SET
|
||||
download_status = $2,
|
||||
video_id = $3,
|
||||
@@ -135,11 +136,12 @@ export const saveDownloadState = async (downloadState: DownloadState) => {
|
||||
output_format = $26,
|
||||
embed_metadata = $27,
|
||||
embed_thumbnail = $28,
|
||||
sponsorblock_remove = $29,
|
||||
sponsorblock_mark = $30,
|
||||
use_aria2 = $31,
|
||||
custom_command = $32,
|
||||
queue_config = $33`,
|
||||
square_crop_thumbnail = $29,
|
||||
sponsorblock_remove = $30,
|
||||
sponsorblock_mark = $31,
|
||||
use_aria2 = $32,
|
||||
custom_command = $33,
|
||||
queue_config = $34`,
|
||||
[
|
||||
downloadState.download_id,
|
||||
downloadState.download_status,
|
||||
@@ -169,6 +171,7 @@ export const saveDownloadState = async (downloadState: DownloadState) => {
|
||||
downloadState.output_format,
|
||||
downloadState.embed_metadata,
|
||||
downloadState.embed_thumbnail,
|
||||
downloadState.square_crop_thumbnail,
|
||||
downloadState.sponsorblock_remove,
|
||||
downloadState.sponsorblock_mark,
|
||||
downloadState.use_aria2,
|
||||
|
||||
@@ -58,6 +58,7 @@ export const useDownloaderPageStatesStore = create<DownloaderPageStatesStore>((s
|
||||
output_format: null,
|
||||
embed_metadata: null,
|
||||
embed_thumbnail: null,
|
||||
square_crop_thumbnail: null,
|
||||
sponsorblock: null,
|
||||
custom_command: null
|
||||
},
|
||||
@@ -86,6 +87,7 @@ export const useDownloaderPageStatesStore = create<DownloaderPageStatesStore>((s
|
||||
output_format: null,
|
||||
embed_metadata: null,
|
||||
embed_thumbnail: null,
|
||||
square_crop_thumbnail: null,
|
||||
sponsorblock: null,
|
||||
custom_command: null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user