aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/db/UpnpDatabasePlugin.cxx5
1 files changed, 0 insertions, 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);