aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-22 23:07:21 +0100
committerMax Kellermann <max@duempel.org>2014-01-22 23:07:21 +0100
commita6d9998e1d24ac9d160f71c0807f0ebb82ce2666 (patch)
treea5e637be3e9b8d389eba5359883a335b771f535c
parenta42f9e4ee30bf0d4a09dc5baa5aa9ba9da022988 (diff)
downloadmpd-a6d9998e1d24ac9d160f71c0807f0ebb82ce2666.tar.gz
mpd-a6d9998e1d24ac9d160f71c0807f0ebb82ce2666.tar.xz
mpd-a6d9998e1d24ac9d160f71c0807f0ebb82ce2666.zip
db/proxy: copy "Last-Modified" from remote directories
-rw-r--r--NEWS1
-rw-r--r--src/db/ProxyDatabasePlugin.cxx3
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 5354019f2..71ab008b3 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,7 @@ ver 0.19 (not yet released)
- "lsinfo" and "readcomments" allowed for remote files
* database
- proxy: forward "idle" events
+ - proxy: copy "Last-Modified" from remote directories
- upnp: new plugin
* playlist
- soundcloud: use https instead of http
diff --git a/src/db/ProxyDatabasePlugin.cxx b/src/db/ProxyDatabasePlugin.cxx
index 1b5c3e374..90b381027 100644
--- a/src/db/ProxyDatabasePlugin.cxx
+++ b/src/db/ProxyDatabasePlugin.cxx
@@ -525,9 +525,10 @@ Visit(struct mpd_connection *connection,
VisitPlaylist visit_playlist, Error &error)
{
const char *path = mpd_directory_get_path(directory);
+ time_t mtime = mpd_directory_get_last_modified(directory);
if (visit_directory &&
- !visit_directory(LightDirectory(path, 0), error))
+ !visit_directory(LightDirectory(path, mtime), error))
return false;
if (recursive &&