improved console stuff

This commit is contained in:
Hellow2 2023-02-08 13:29:01 +01:00
parent 1d64e5901d
commit 42852fbd32
2 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ artist = song.main_artist_list[0]
# artist = EncyclopaediaMetallum.fetch_artist_details(artist, flat=False) # artist = EncyclopaediaMetallum.fetch_artist_details(artist, flat=False)
album = EncyclopaediaMetallum.fetch_album_details(song.album, flat=False) album = EncyclopaediaMetallum.fetch_album_details(song.album, flat=False)
print(album.tracklist) print(album)
# print_artist(artist) # print_artist(artist)

View File

@ -295,10 +295,10 @@ class Album(DatabaseObject, SourceAttribute, MetadataAttribute):
def __str__(self) -> str: def __str__(self) -> str:
return f"Album: \"{self.title}\"" return f"-----{self.title}-----\n{self.tracklist}"
def __repr__(self): def __repr__(self):
return self.__str__() return f"Album(\"{self.title}\")"
def __len__(self) -> int: def __len__(self) -> int:
return len(self.tracklist) return len(self.tracklist)