aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-08-08 09:09:15 +0200
committerMax Kellermann <max@duempel.org>2012-08-08 09:27:42 +0200
commitb4b1728b6f673c398205d078c4935166ab31eb0c (patch)
treee894a915ad27393e68de441bb6a9469c1079fe90 /src
parent21792386d835903d2f9e2d04a1860d60bb8488e2 (diff)
downloadmpd-b4b1728b6f673c398205d078c4935166ab31eb0c.tar.gz
mpd-b4b1728b6f673c398205d078c4935166ab31eb0c.tar.xz
mpd-b4b1728b6f673c398205d078c4935166ab31eb0c.zip
DatabasePrint: don't print Last-Modified if unknown
Diffstat (limited to 'src')
-rw-r--r--src/DatabasePrint.cxx3
-rw-r--r--src/command.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/DatabasePrint.cxx b/src/DatabasePrint.cxx
index 843d218cb..d22d4db8a 100644
--- a/src/DatabasePrint.cxx
+++ b/src/DatabasePrint.cxx
@@ -106,7 +106,8 @@ PrintPlaylistFull(struct client *client,
{
print_playlist_in_directory(client, directory, playlist.name);
- time_print(client, "Last-Modified", playlist.mtime);
+ if (playlist.mtime > 0)
+ time_print(client, "Last-Modified", playlist.mtime);
return true;
}
diff --git a/src/command.c b/src/command.c
index 0856589b0..7bb49447d 100644
--- a/src/command.c
+++ b/src/command.c
@@ -119,7 +119,8 @@ print_spl_list(struct client *client, GPtrArray *list)
client_printf(client, "playlist: %s\n", playlist->name);
- time_print(client, "Last-Modified", playlist->mtime);
+ if (playlist->mtime > 0)
+ time_print(client, "Last-Modified", playlist->mtime);
}
}