db/simple/Song: simplify Export()

This commit is contained in:
Max Kellermann 2019-09-03 20:36:39 +02:00
parent 7f9a8b8748
commit 05a29e8458

View File

@ -74,9 +74,8 @@ LightSong
Song::Export() const noexcept
{
LightSong dest(uri.c_str(), tag);
dest.directory = parent->IsRoot()
? nullptr : parent->GetPath();
dest.real_uri = nullptr;
if (!parent->IsRoot())
dest.directory = parent->GetPath();
dest.mtime = mtime;
dest.start_time = start_time;
dest.end_time = end_time;