DatabasePrint: don't print Last-Modified if unknown
This commit is contained in:
parent
21792386d8
commit
b4b1728b6f
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user