summaryrefslogtreecommitdiff
path: root/src/BatchImport.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2023-06-14 20:35:58 +0200
committerJörg Frings-Fürst <debian@jff.email>2023-06-14 20:35:58 +0200
commitd443a3c2509889533ca812c163056bace396b586 (patch)
treee94ffc0d9c054ca4efb8fb327e18dfac88e15dc7 /src/BatchImport.vala
parentbb9797c14470641b082ebf635e2ae3cfd5f27a3b (diff)
New upstream version 0.32.1upstream/0.32.1
Diffstat (limited to 'src/BatchImport.vala')
-rw-r--r--src/BatchImport.vala11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/BatchImport.vala b/src/BatchImport.vala
index 0e31441..90ccba8 100644
--- a/src/BatchImport.vala
+++ b/src/BatchImport.vala
@@ -201,10 +201,10 @@ public abstract class BatchImportJob {
return false;
}
- // returns a non-zero time_t value if this has a valid exposure time override, returns zero
+ // returns a non-null DateTime value if this has a valid exposure time override, returns zero
// otherwise
- public virtual time_t get_exposure_time_override() {
- return 0;
+ public virtual DateTime? get_exposure_time_override() {
+ return null;
}
public virtual bool recurse() {
@@ -1597,6 +1597,11 @@ private class WorkSniffer : BackgroundImportJob {
}
public void search_dir(BatchImportJob job, File dir, bool copy_to_library, bool recurse) throws Error {
+ if (dir.get_child(".nomedia").query_exists()) {
+ debug("Folder %s contains \".nomedia\" file, ignoring.", dir.get_path());
+ return;
+ }
+
FileEnumerator enumerator = dir.enumerate_children("standard::*",
FileQueryInfoFlags.NOFOLLOW_SYMLINKS, null);