added "language" to the Format struct (#194)

This commit is contained in:
Marco Piovanello
2024-09-06 10:23:08 +02:00
committed by GitHub
parent ffc7f29688
commit fb2642de2c
3 changed files with 3 additions and 0 deletions

View File

@@ -101,6 +101,7 @@ export default function FormatsGrid({
> >
{format.format_note} - {format.vcodec === 'none' ? format.acodec : format.vcodec} {format.format_note} - {format.vcodec === 'none' ? format.acodec : format.vcodec}
{(format.filesize_approx > 0) ? " (~" + Math.round(format.filesize_approx / 1024 / 1024) + " MiB)" : ""} {(format.filesize_approx > 0) ? " (~" + Math.round(format.filesize_approx / 1024 / 1024) + " MiB)" : ""}
{format.language}
</Button> </Button>
</Grid> </Grid>
)) ))

View File

@@ -82,6 +82,7 @@ export type DLFormat = {
vcodec: string vcodec: string
acodec: string acodec: string
filesize_approx: number filesize_approx: number
language: string
} }
export type DirectoryEntry = { export type DirectoryEntry = {

View File

@@ -58,6 +58,7 @@ type Format struct {
VCodec string `json:"vcodec"` VCodec string `json:"vcodec"`
ACodec string `json:"acodec"` ACodec string `json:"acodec"`
Size float32 `json:"filesize_approx"` Size float32 `json:"filesize_approx"`
Language string `json:"language"`
} }
// struct representing the response sent to the client // struct representing the response sent to the client