adhorrig / azlyrics

A wrapper for azlyrics.com
MIT License
13 stars 8 forks source link

Update tag.name in songs method to listalbum-item and fix some comparison syntax #12

Closed rinaldipratama closed 2 years ago

rinaldipratama commented 2 years ago

I just fixed the songs method that didn't show the whole song name, since azlyrics HTML structure is changed I suppose. Instead of if tag.name == 'div':, it should be if tag.name == 'listalbum-item':

And for the syntax comparison, I changed to '==' comparison because I think it's good for value equality and check if two objects have the same value, and sometimes 'is' get inconsistent results like this answer says (https://stackoverflow.com/questions/132988/is-there-a-difference-between-and-is).