From 42852fbd32ef33f85fd88ed171d8663e7421f874 Mon Sep 17 00:00:00 2001 From: Hellow2 Date: Wed, 8 Feb 2023 13:29:01 +0100 Subject: [PATCH] improved console stuff --- src/metal_archives.py | 2 +- src/music_kraken/database/objects/song.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/metal_archives.py b/src/metal_archives.py index 7a92b97..ceef0cc 100644 --- a/src/metal_archives.py +++ b/src/metal_archives.py @@ -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) diff --git a/src/music_kraken/database/objects/song.py b/src/music_kraken/database/objects/song.py index 948818f..d2bbf7d 100644 --- a/src/music_kraken/database/objects/song.py +++ b/src/music_kraken/database/objects/song.py @@ -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)