Skip to content

Commit

Permalink
fix problem with albums that have no cover image
Browse files Browse the repository at this point in the history
fixes issue #52
  • Loading branch information
thawn committed Apr 10, 2022
1 parent 2348e7d commit 365cab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/library.html
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
$track.find('input[name=title]').val(data[i].title)
$track.find('input[name=filename]').val(data[i].filename)
} else if (i === 'picture_filename') {
if (data[i]) {
if (data[i] !== '0') {
$id.find('img.cover').prop('src', '/assets/images/'+data['oid']+'/'+data[i]);
} else {
$id.find('img.cover').prop('src', '/assets/images/not_available-generic.png');
Expand Down

0 comments on commit 365cab6

Please sign in to comment.