From 3125135609c76028fa330bc7d614c934fe150e83 Mon Sep 17 00:00:00 2001 From: fakelag <35497506+fakelag@users.noreply.github.com> Date: Sat, 3 Aug 2024 20:21:21 +0300 Subject: [PATCH] Add filesize apprx --- youtubeapi/youtube.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/youtubeapi/youtube.go b/youtubeapi/youtube.go index e13da41..b79020b 100644 --- a/youtubeapi/youtube.go +++ b/youtubeapi/youtube.go @@ -29,13 +29,14 @@ type YtDlpObject struct { } type YtDlpVideoFormat struct { - FormatID string `json:"format_id"` - Format string `json:"format"` - Ext string `json:"ext"` - Url string `json:"url"` - Fps float64 `json:"fps"` - Resolution string `json:"resolution"` - FileSize int `json:"filesize"` + FormatID string `json:"format_id"` + Format string `json:"format"` + Ext string `json:"ext"` + Url string `json:"url"` + Fps float64 `json:"fps"` + Resolution string `json:"resolution"` + FileSize int `json:"filesize"` + FileSizeApprox int `json:"filesize_approx"` } type YtDlpVideo struct {