eyeD3 is a Python module and command line program for processing ID3 tags. Information about mp3 files (i.e bit rate, sample frequency, play time, etc.) is also provided. The formats supported are ID3v1 (1.0/1.1) and ID3v2 (2.3/2.4).
I try to get lyric from all file in one folder. Some file are ok, but some file i only recieved the last sentence of lyric.
I run on Python 3.7
My Code
import eyed3
import os
for root, dirs, files in os.walk("C:/Users/Hoang/Desktop/1"):
for file in files:
try:
if file.find(".mp3") < 0:
continue
path = os.path.abspath(os.path.join(root , file))
t = eyed3.load(path)
print("TRACK "+t.tag.title , t.tag.lyrics[0].text)
#print(t.getArtist())
except Exception as e:
print(e)
I try to get lyric from all file in one folder. Some file are ok, but some file i only recieved the last sentence of lyric.
I run on Python 3.7 My Code
1.zip
I attached zip file with two file: "11_Special Feature-7.mp3" file is ok but "03_News Spotlight News-1.mp3" file is only receive the last sentences "(©Reuters, March 11, 2021)"
Thank you!