mirror of
https://github.com/glomatico/votify.git
synced 2026-10-10 18:02:18 +02:00
Log audio quality change with bit rate info
Log the current bit rate when audio quality changes.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user