You can use mutagen to get the length of the song (see the tutorial):
from mutagen.mp3 import MP3
audio = MP3("example.mp3")
print(audio.info.length)
You can use mutagen to get the length of the song (see the tutorial):
from mutagen.mp3 import MP3
audio = MP3("example.mp3")
print(audio.info.length)