db/LightSong: pass URI to constructor

This commit is contained in:
Max Kellermann
2018-07-06 16:56:12 +02:00
parent 80cb680fca
commit 45139f94bb
5 changed files with 20 additions and 19 deletions

View File

@@ -203,10 +203,8 @@ Copy(TagBuilder &tag, TagType d_tag,
}
ProxySong::ProxySong(const mpd_song *song)
:LightSong(tag2)
:LightSong(mpd_song_get_uri(song), tag2)
{
uri = mpd_song_get_uri(song);
const auto _mtime = mpd_song_get_last_modified(song);
if (_mtime > 0)
mtime = std::chrono::system_clock::from_time_t(_mtime);