Closed rinaldipratama closed 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':
if tag.name == 'div':
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).
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 beif 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).