db/upnp: don't set mtime, start_ms, end_ms

Not necessary or useful.
This commit is contained in:
Max Kellermann 2014-01-10 09:01:28 +01:00
parent cfc25e08dc
commit 15eedfbb12
1 changed files with 0 additions and 5 deletions

View File

@ -300,14 +300,9 @@ upnpItemToSong(const UPnPDirObject &dirent, const char *uri)
Song *s = Song::NewFile(url.c_str(), nullptr);
// I don't think that upnp returns this.
s->mtime = time(0);
s->start_ms = 0;
std::string sprop("0:0:0");
dirent.getprop("duration", sprop);
int seconds = upnpDurationToSeconds(sprop);
s->end_ms = seconds * 1000;
TagBuilder tag;
tag.SetTime(seconds);