Fix position for song and internet playlist items

Fixes #1430
This commit is contained in:
Jonas Kvinge 2024-04-23 20:18:28 +02:00
parent 6a2c2dbba1
commit 542efa17ff
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ InternetPlaylistItem::InternetPlaylistItem(InternetServicePtr service, const Son
bool InternetPlaylistItem::InitFromQuery(const SqlRow &query) {
metadata_.InitFromQuery(query, false, static_cast<int>(Song::kRowIdColumns.count()) * 3);
metadata_.InitFromQuery(query, false, static_cast<int>(Song::kRowIdColumns.count()));
InitMetadata();
return true;

View File

@ -33,7 +33,7 @@ SongPlaylistItem::SongPlaylistItem(const Song::Source source) : PlaylistItem(sou
SongPlaylistItem::SongPlaylistItem(const Song &song) : PlaylistItem(song.source()), song_(song) {}
bool SongPlaylistItem::InitFromQuery(const SqlRow &query) {
song_.InitFromQuery(query, false, static_cast<int>(Song::kRowIdColumns.count()) * 3);
song_.InitFromQuery(query, false, static_cast<int>(Song::kRowIdColumns.count()));
return true;
}