db/simple/Song: simplify Export()
This commit is contained in:
parent
7f9a8b8748
commit
05a29e8458
@ -74,9 +74,8 @@ LightSong
|
|||||||
Song::Export() const noexcept
|
Song::Export() const noexcept
|
||||||
{
|
{
|
||||||
LightSong dest(uri.c_str(), tag);
|
LightSong dest(uri.c_str(), tag);
|
||||||
dest.directory = parent->IsRoot()
|
if (!parent->IsRoot())
|
||||||
? nullptr : parent->GetPath();
|
dest.directory = parent->GetPath();
|
||||||
dest.real_uri = nullptr;
|
|
||||||
dest.mtime = mtime;
|
dest.mtime = mtime;
|
||||||
dest.start_time = start_time;
|
dest.start_time = start_time;
|
||||||
dest.end_time = end_time;
|
dest.end_time = end_time;
|
||||||
|
Loading…
Reference in New Issue
Block a user