diff options
author | Max Kellermann <max@duempel.org> | 2014-01-10 09:01:28 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-10 09:01:28 +0100 |
commit | 15eedfbb12b2b3f9a4c843306bcff947d17b8b4c (patch) | |
tree | dea3c480995de6146eb0903b6c8d0bbff3cdb3fc /src/db/UpnpDatabasePlugin.cxx | |
parent | cfc25e08dc84b450aa1296ae031dfaa39178f4ae (diff) | |
download | mpd-15eedfbb12b2b3f9a4c843306bcff947d17b8b4c.tar.gz mpd-15eedfbb12b2b3f9a4c843306bcff947d17b8b4c.tar.xz mpd-15eedfbb12b2b3f9a4c843306bcff947d17b8b4c.zip |
db/upnp: don't set mtime, start_ms, end_ms
Not necessary or useful.
Diffstat (limited to 'src/db/UpnpDatabasePlugin.cxx')
-rw-r--r-- | src/db/UpnpDatabasePlugin.cxx | 5 |
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); |