nicfit / eyeD3

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).
http://eyed3.nicfit.net/
GNU General Public License v3.0
541 stars 58 forks source link

Not get fully lyric from mp3 file. #548

Closed htm88 closed 2 years ago

htm88 commented 3 years ago

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)

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!

nicfit commented 2 years ago

03 file only has one line of lyrics, which is actually podcast news info, not really lyrics. The 11 file has newlines in the lyrics text.