From b650a0776cfbd5448c80d421c02deaa4e4e0ff7b Mon Sep 17 00:00:00 2001 From: Dovydas Date: Sat, 2 Dec 2023 17:07:59 +0000 Subject: [PATCH] use integer for bit rate --- namespace_podcast.go | 2 +- types_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/namespace_podcast.go b/namespace_podcast.go index 4e8237c..66dcff2 100644 --- a/namespace_podcast.go +++ b/namespace_podcast.go @@ -298,7 +298,7 @@ type PodcastAlternateEnclosure struct { XMLName xml.Name `xml:"podcast:alternateEnclosure"` Mimetype string `xml:"type,attr"` Length *int64 `xml:"length,attr"` - Bitrate *float64 `xml:"bitrate,attr"` + Bitrate *int64 `xml:"bitrate,attr"` Height *int64 `xml:"height,attr"` LanguageCode *string `xml:"lang,attr"` Title *string `xml:"title,attr"` diff --git a/types_test.go b/types_test.go index 643c6b0..d07e2c3 100644 --- a/types_test.go +++ b/types_test.go @@ -221,7 +221,7 @@ func TestMarshal(t *testing.T) { { Mimetype: "video/mp4", Length: pointer[int64](7924786), - Bitrate: pointer(511276.52), + Bitrate: pointer[int64](511276), Height: pointer[int64](720), Sources: []types.PodcastSource{ { @@ -451,7 +451,7 @@ func TestMarshal(t *testing.T) { full false - + 3