Skip to content

Commit

Permalink
.Formats.WithAudioChannels()
Browse files Browse the repository at this point in the history
  • Loading branch information
shoce committed May 30, 2024
1 parent cd89996 commit 1770dae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tgzebot.go
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,7 @@ func postVideo(v YtVideo, vinfo *ytdl.Video, m TgMessage) error {
}
}(&tgdeleteMessages)

for _, f := range vinfo.Formats {
for _, f := range vinfo.Formats.WithAudioChannels() {
if !strings.Contains(f.MimeType, "/mp4") {
continue
}
Expand Down Expand Up @@ -1360,7 +1360,7 @@ func postAudio(v YtVideo, vinfo *ytdl.Video, m TgMessage) error {
}
}(&tgdeleteMessages)

for _, f := range vinfo.Formats {
for _, f := range vinfo.Formats.WithAudioChannels() {
if !strings.Contains(f.MimeType, "/mp4") {
continue
}
Expand Down

0 comments on commit 1770dae

Please sign in to comment.