LyricsGenius icon indicating copy to clipboard operation
LyricsGenius copied to clipboard

no album/year attributes for Song

Open C-Gian opened this issue 2 years ago β€’ 2 comments

Describe the bug The Git example show how to retrieve info like album of release date but it's not working giving AttributeError: 'Song' object has no attribute 'year', same for album, I tried to get them from the dict but they are not there neither.

Expected behavior get the release date and album about a song

To Reproduce use the api search_song(a, t) and then use .year, .album

Command raised an exception: AttributeError: 'Song' object has no attribute 'year'

Version info

  • 3.0.1
  • windows

Additional context I read that the attributes works with the previous version of the package, but which one? I tried 2.00 but I got another error (object not subscribtable).

C-Gian avatar Dec 31 '21 13:12 C-Gian

@C-Gian I was having the same issue with the latest version, 1.8.6 seems to return year and album info.

aneesh3397 avatar Mar 01 '22 19:03 aneesh3397

AttributeError: 'Track' object has no attribute 'title'

RazyRo avatar Sep 27 '23 13:09 RazyRo