improved console stuff
This commit is contained in:
parent
1d64e5901d
commit
42852fbd32
@ -63,7 +63,7 @@ artist = song.main_artist_list[0]
|
||||
# artist = EncyclopaediaMetallum.fetch_artist_details(artist, flat=False)
|
||||
|
||||
album = EncyclopaediaMetallum.fetch_album_details(song.album, flat=False)
|
||||
print(album.tracklist)
|
||||
print(album)
|
||||
|
||||
# print_artist(artist)
|
||||
|
||||
|
@ -295,10 +295,10 @@ class Album(DatabaseObject, SourceAttribute, MetadataAttribute):
|
||||
|
||||
|
||||
def __str__(self) -> str:
|
||||
return f"Album: \"{self.title}\""
|
||||
return f"-----{self.title}-----\n{self.tracklist}"
|
||||
|
||||
def __repr__(self):
|
||||
return self.__str__()
|
||||
return f"Album(\"{self.title}\")"
|
||||
|
||||
def __len__(self) -> int:
|
||||
return len(self.tracklist)
|
||||
|
Loading…
Reference in New Issue
Block a user