geekpradd / PyLyrics

A Pythonic Implementation of lyrics.wikia.com for getting lyrics of songs
72 stars 27 forks source link

fixed getTracks bug error and rearranged PyLyrics Class #23

Open birozuru opened 4 years ago

birozuru commented 4 years ago

Hi, I noticed that "from PyLyrics import *

albums = PyLyrics.getAlbums(singer='Eminem') myalbum = albums[4] #Select your album based on Index

tracks = myalbum.tracks() #or PyLyrics.getTracks(myalbum) for track in tracks: print (track) #Each track is a track object print (track.getLyrics()) #Get the lyrics" throws an error which is not right for the PyLyrics library. So i tried fixing it and it worked. Kindly go through the code and confirm it works.

Best wishes Mark