db/simple/Song: simplify Export()
This commit is contained in:
parent
7f9a8b8748
commit
05a29e8458
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user