Commit 15eedfbb authored by Max Kellermann's avatar Max Kellermann

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

Not necessary or useful.
parent cfc25e08
...@@ -300,14 +300,9 @@ upnpItemToSong(const UPnPDirObject &dirent, const char *uri) ...@@ -300,14 +300,9 @@ upnpItemToSong(const UPnPDirObject &dirent, const char *uri)
Song *s = Song::NewFile(url.c_str(), nullptr); 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"); std::string sprop("0:0:0");
dirent.getprop("duration", sprop); dirent.getprop("duration", sprop);
int seconds = upnpDurationToSeconds(sprop); int seconds = upnpDurationToSeconds(sprop);
s->end_ms = seconds * 1000;
TagBuilder tag; TagBuilder tag;
tag.SetTime(seconds); tag.SetTime(seconds);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment