diff options
| -rw-r--r-- | ChangeLog | 2 | ||||
| -rw-r--r-- | src/lib/content_factory.cc | 6 |
2 files changed, 5 insertions, 3 deletions
@@ -1,5 +1,7 @@ 2016-06-16 Carl Hetherington <cth@carlh.net> + * Ignore any hidden files when looking for image files. + * Remove seconds from KDM time period specification (#819). 2016-06-14 c.hetherington <cth@carlh.net> diff --git a/src/lib/content_factory.cc b/src/lib/content_factory.cc index 7b02ee111..38112b968 100644 --- a/src/lib/content_factory.cc +++ b/src/lib/content_factory.cc @@ -128,9 +128,9 @@ content_factory (shared_ptr<const Film> film, boost::filesystem::path path) LOG_GENERAL ("Checking file %1", i->path()); - if (boost::starts_with (i->path().leaf().string(), "._") || i->path().leaf().string() == ".DS_Store") { - /* We ignore these files */ - LOG_GENERAL ("Ignored %1 (starts with {._}, or .DS_Store)", i->path()); + if (boost::starts_with (i->path().leaf().string(), ".")) { + /* We ignore hidden files */ + LOG_GENERAL ("Ignored %1 (starts with .)", i->path()); continue; } |
