Commit b4b1728b authored by Max Kellermann's avatar Max Kellermann

DatabasePrint: don't print Last-Modified if unknown

parent 21792386
......@@ -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;
}
......
......@@ -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);
}
}
......
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