Separate list by album

This commit is contained in:
Salt 2020-03-04 00:42:28 -06:00
parent e6da96f2e7
commit 6638260031

View File

@ -123,9 +123,9 @@ class BadWitch:
return return
elif self.args.action == 'list': elif self.args.action == 'list':
for album, albumcontent in lib.albums.items(): for album, albumcontent in lib.albums.items():
print(album)
for song, songcontent in albumcontent.items(): for song, songcontent in albumcontent.items():
print(album print(str(songcontent['track'])
+ ' - ' + str(songcontent['track'])
+ ' - ' + song + ' - ' + song
+ ' by ' + songcontent['artist']) + ' by ' + songcontent['artist'])
return return