From 15eedfbb12b2b3f9a4c843306bcff947d17b8b4c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 10 Jan 2014 09:01:28 +0100 Subject: db/upnp: don't set mtime, start_ms, end_ms Not necessary or useful. --- src/db/UpnpDatabasePlugin.cxx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/db/UpnpDatabasePlugin.cxx b/src/db/UpnpDatabasePlugin.cxx index 9613e6a8c..69248aadf 100644 --- a/src/db/UpnpDatabasePlugin.cxx +++ b/src/db/UpnpDatabasePlugin.cxx @@ -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); -- cgit v1.2.3