mirror of
https://github.com/beetbox/beets.git
synced 2025-12-30 20:42:37 +01:00
Adding album artist fix
This commit is contained in:
parent
8467b5e2be
commit
2118a41435
1 changed files with 5 additions and 2 deletions
|
|
@ -1178,6 +1178,7 @@ def show_stats(lib, query, exact):
|
|||
total_items = 0
|
||||
artists = set()
|
||||
albums = set()
|
||||
albumartists = set()
|
||||
|
||||
for item in items:
|
||||
if exact:
|
||||
|
|
@ -1188,6 +1189,7 @@ def show_stats(lib, query, exact):
|
|||
total_items += 1
|
||||
artists.add(item.artist)
|
||||
albums.add(item.album)
|
||||
albumartists.add(item.albumartist)
|
||||
|
||||
size_str = '' + ui.human_bytes(total_size)
|
||||
if exact:
|
||||
|
|
@ -1197,8 +1199,9 @@ def show_stats(lib, query, exact):
|
|||
Total time: {1} ({2:.2f} seconds)
|
||||
Total size: {3}
|
||||
Artists: {4}
|
||||
Albums: {5}""".format(total_items, ui.human_seconds(total_time), total_time,
|
||||
size_str, len(artists), len(albums)))
|
||||
Album Artists: {5}
|
||||
Albums: {6}""".format(total_items, ui.human_seconds(total_time), total_time,
|
||||
size_str, len(artists), len(albumartists), len(albums)))
|
||||
|
||||
|
||||
def stats_func(lib, opts, args):
|
||||
|
|
|
|||
Loading…
Reference in a new issue