New home view layout (#58)

* Home layout refactor, moved new download to dialog

* sort downloads by date
This commit is contained in:
Marco
2023-06-23 10:48:38 +02:00
committed by GitHub
parent 13cc89fe3b
commit 2ae4a5da3d
10 changed files with 451 additions and 300 deletions

View File

@@ -1,5 +1,7 @@
package server
import "time"
// Progress for the Running call
type DownloadProgress struct {
Percentage string `json:"percentage"`
@@ -9,14 +11,15 @@ type DownloadProgress struct {
// Used to deser the yt-dlp -J output
type DownloadInfo struct {
URL string `json:"url"`
Title string `json:"title"`
Thumbnail string `json:"thumbnail"`
Resolution string `json:"resolution"`
Size int32 `json:"filesize_approx"`
VCodec string `json:"vcodec"`
ACodec string `json:"acodec"`
Extension string `json:"ext"`
URL string `json:"url"`
Title string `json:"title"`
Thumbnail string `json:"thumbnail"`
Resolution string `json:"resolution"`
Size int32 `json:"filesize_approx"`
VCodec string `json:"vcodec"`
ACodec string `json:"acodec"`
Extension string `json:"ext"`
CreatedAt time.Time `json:"created_at"`
}
// Used to deser the formats in the -J output