Skip to content

Commit

Permalink
debug formats
Browse files Browse the repository at this point in the history
  • Loading branch information
shoce committed May 30, 2024
1 parent 990ee51 commit cd89996
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 @@ -1192,7 +1192,7 @@ func postVideo(v YtVideo, vinfo *ytdl.Video, m TgMessage) error {
fsize = int64(f.Bitrate / 8 * int(vinfo.Duration.Seconds()))
}
if strings.HasPrefix(f.MimeType, "video/mp4") && f.QualityLabel != "" && f.AudioQuality != "" {
log("format: ItagNo:%s AverageBitrate:%s Language:%s", f.ItagNo, f.AverageBitrate, f.LanguageDisplayName())
log("format: ContentLength:%dMB Language:%v", f.ContentLength<<20, f.LanguageDisplayName())
if videoSmallestFormat.ItagNo == 0 || f.Bitrate < videoSmallestFormat.Bitrate {
videoSmallestFormat = f
}
Expand Down Expand Up @@ -1369,7 +1369,7 @@ func postAudio(v YtVideo, vinfo *ytdl.Video, m TgMessage) error {
fsize = int64(f.Bitrate / 8 * int(vinfo.Duration.Seconds()))
}
if strings.HasPrefix(f.MimeType, "audio/mp4") {
log("format: ItagNo:%s AverageBitrate:%s Language:%s", f.ItagNo, f.AverageBitrate, f.LanguageDisplayName())
log("format: ContentLength:%dMB Language:%v", f.ContentLength<<20, f.LanguageDisplayName())
if audioSmallestFormat.ItagNo == 0 || f.Bitrate < audioSmallestFormat.Bitrate {
audioSmallestFormat = f
}
Expand Down

0 comments on commit cd89996

Please sign in to comment.