Log audio quality change with bit rate info

Log the current bit rate when audio quality changes.
This commit is contained in:
GladistonXD
2026-01-29 09:17:17 -03:00
committed by GitHub
parent e903e5e8f3
commit 349d69b638
+5 -1
View File
@@ -260,7 +260,11 @@ class DownloaderSong(DownloaderAudio):
return
if stream_info.quality != self.audio_quality:
logger.warning(f"Quality has been changed to {stream_info.quality}")
if stream_info.quality == 128000:
info = '128 kb/s'
else:
info = '256 kb/s'
logger.info(f"The current bit rate is {info}")
if gid_metadata:
logger.debug("Getting lyrics")