Skip to content

Commit

Permalink
added "language" to the Format struct
Browse files Browse the repository at this point in the history
  • Loading branch information
marcopiovanello committed Sep 6, 2024
1 parent 0555277 commit 8f8232e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/components/FormatsGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export default function FormatsGrid({
>
{format.format_note} - {format.vcodec === 'none' ? format.acodec : format.vcodec}
{(format.filesize_approx > 0) ? " (~" + Math.round(format.filesize_approx / 1024 / 1024) + " MiB)" : ""}
{format.language}
</Button>
</Grid>
))
Expand Down
1 change: 1 addition & 0 deletions frontend/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export type DLFormat = {
vcodec: string
acodec: string
filesize_approx: number
language: string
}

export type DirectoryEntry = {
Expand Down
1 change: 1 addition & 0 deletions server/internal/common_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ type Format struct {
VCodec string `json:"vcodec"`
ACodec string `json:"acodec"`
Size float32 `json:"filesize_approx"`
Language string `json:"language"`
}

// struct representing the response sent to the client
Expand Down

0 comments on commit 8f8232e

Please sign in to comment.