Skip to content

Commit

Permalink
use integer for bit rate
Browse files Browse the repository at this point in the history
  • Loading branch information
joksas committed Dec 2, 2023
1 parent 5f939ad commit b650a07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion namespace_podcast.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
4 changes: 2 additions & 2 deletions types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
{
Expand Down Expand Up @@ -451,7 +451,7 @@ func TestMarshal(t *testing.T) {
<itunes:episodeType>full</itunes:episodeType>
<itunes:explicit>false</itunes:explicit>
<itunes:image href="https://rssblue.com/@bookworm-podcast/hello-again/cover-art.png"></itunes:image>
<podcast:alternateEnclosure type="video/mp4" length="7924786" bitrate="511276.52" height="720">
<podcast:alternateEnclosure type="video/mp4" length="7924786" bitrate="511276" height="720">
<podcast:source uri="https://example.com/file-720.mp4"></podcast:source>
</podcast:alternateEnclosure>
<podcast:episode>3</podcast:episode>
Expand Down

0 comments on commit b650a07

Please sign in to comment.