Skip to content

Commit

Permalink
log chosen format language
Browse files Browse the repository at this point in the history
  • Loading branch information
shoce committed May 30, 2024
1 parent 9109fc9 commit 48f25e3
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tgzebot.go
Original file line number Diff line number Diff line change
Expand Up @@ -1230,11 +1230,12 @@ func postVideo(v YtVideo, vinfo *ytdl.Video, m TgMessage) error {
defer ytstream.Close()

log(
"Youtube video size:%dmb quality:%s bitrate:%dkbps duration:%s",
ytstreamsize/1000/1000,
"Downloading youtube video size:%dMB quality:%s bitrate:%dkbps duration:%s language:%#v",
ytstreamsize>>20,
videoFormat.QualityLabel,
videoFormat.Bitrate/1024,
videoFormat.Bitrate>>10,
vinfo.Duration,
videoFormat.LanguageDisplayName(),
)

var tgvideo *TgVideo
Expand Down Expand Up @@ -1423,10 +1424,11 @@ func postAudio(v YtVideo, vinfo *ytdl.Video, m TgMessage) error {
}

log(
"Downloading youtube audio size:%dmb bitrate:%dkbps duration:%s",
ytstreamsize/1000/1000,
audioFormat.Bitrate/1024,
"Downloading youtube audio size:%dMB bitrate:%dkbps duration:%s language:%#v",
ytstreamsize>>20,
audioFormat.Bitrate>>10,
vinfo.Duration,
audioFormat.LanguageDisplayName(),
)

var tgaudio *TgAudio
Expand Down

0 comments on commit 48f25e3

Please sign in to comment.