Skip to content

Commit

Permalink
Fix album's songCount. Fixes #373
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Jun 29, 2020
1 parent 890ca64 commit c01d818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion persistence/album_repository.go
Expand Up @@ -128,7 +128,7 @@ func (r *albumRepository) Refresh(ids ...string) error {
f.sort_album_name, f.sort_artist_name, f.sort_album_artist_name,
f.order_album_name, f.order_album_artist_name, f.path,
f.compilation, f.genre, max(f.year) as max_year, sum(f.duration) as duration,
count(*) as song_count, a.id as current_id,
count(distinct(f.id)) as song_count, a.id as current_id,
f2.id as cover_art_id, f2.path as cover_art_path, f2.has_cover_art,
group_concat(f.disc_subtitle, ' ') as disc_subtitles,
group_concat(f.artist, ' ') as song_artists, group_concat(f.year, ' ') as years`).
Expand Down

0 comments on commit c01d818

Please sign in to comment.