db/proxy: copy "Last-Modified" from remote directories
This commit is contained in:
parent
a42f9e4ee3
commit
a6d9998e1d
1
NEWS
1
NEWS
|
@ -4,6 +4,7 @@ ver 0.19 (not yet released)
|
||||||
- "lsinfo" and "readcomments" allowed for remote files
|
- "lsinfo" and "readcomments" allowed for remote files
|
||||||
* database
|
* database
|
||||||
- proxy: forward "idle" events
|
- proxy: forward "idle" events
|
||||||
|
- proxy: copy "Last-Modified" from remote directories
|
||||||
- upnp: new plugin
|
- upnp: new plugin
|
||||||
* playlist
|
* playlist
|
||||||
- soundcloud: use https instead of http
|
- soundcloud: use https instead of http
|
||||||
|
|
|
@ -525,9 +525,10 @@ Visit(struct mpd_connection *connection,
|
||||||
VisitPlaylist visit_playlist, Error &error)
|
VisitPlaylist visit_playlist, Error &error)
|
||||||
{
|
{
|
||||||
const char *path = mpd_directory_get_path(directory);
|
const char *path = mpd_directory_get_path(directory);
|
||||||
|
time_t mtime = mpd_directory_get_last_modified(directory);
|
||||||
|
|
||||||
if (visit_directory &&
|
if (visit_directory &&
|
||||||
!visit_directory(LightDirectory(path, 0), error))
|
!visit_directory(LightDirectory(path, mtime), error))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (recursive &&
|
if (recursive &&
|
||||||
|
|
Loading…
Reference in New Issue