From 2101fefdc89a66c4f91c9202ac223f45648871ad Mon Sep 17 00:00:00 2001 From: Lev Date: Tue, 3 Jan 2023 17:22:37 +0700 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=8B=D0=B2=D0=BE=D0=B4=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B8=D1=87=D0=B8=D0=BD=D1=8B=20=D0=BF=D1=80=D0=BE=D0=BF=D1=83?= =?UTF-8?q?=D1=81=D0=BA=D0=B0=20=D0=B0=D0=BB=D1=8C=D0=B1=D0=BE=D0=BC=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 426f9b2..e8d106c 100644 --- a/main.py +++ b/main.py @@ -50,6 +50,7 @@ class BasicAlbumInfo: @staticmethod def from_json(json: dict): if json['metaType'] != 'music': + logging.info('"%s" пропущен т.к. не является музыкальным альбомом', json['title']) return None artists = [a['name'] for a in json['artists']] title = json['title'] @@ -351,6 +352,7 @@ if __name__ == '__main__': albums_count = 0 for album in artist_info.albums: if args.stick_to_artist and album.artists[0] != artist_info.name: + logging.info('Альбом "%s" пропущен из-за флага --stick-to-artist', album.title) continue full_album = get_full_album_info(session, album.id) result_tracks.extend(full_album.tracks)