Commit 0949ef13 authored by Geoffrey Métais's avatar Geoffrey Métais

Blacklist Whatsapp gifs folder

parent 155b66cc
......@@ -574,6 +574,7 @@ public class Medialibrary {
"/audio/alarms/",
"/audio/ringtones/",
"/audio/notifications/",
"/WhatsApp/Media/WhatsApp Animated Gifs/",
};
}
......
......@@ -254,7 +254,8 @@ public class MediaParsingService extends Service implements DevicesDiscoveryCb {
mMedialibrary.banFolder(AndroidDevices.EXTERNAL_PUBLIC_DIRECTORY + folder);
mMedialibrary.discover(AndroidDevices.EXTERNAL_PUBLIC_DIRECTORY);
} else if (upgrade) {
mMedialibrary.unbanFolder(AndroidDevices.EXTERNAL_PUBLIC_DIRECTORY+ "/WhatsApp/");
mMedialibrary.unbanFolder(AndroidDevices.EXTERNAL_PUBLIC_DIRECTORY + "/WhatsApp/");
mMedialibrary.banFolder(AndroidDevices.EXTERNAL_PUBLIC_DIRECTORY + "/WhatsApp/Media/WhatsApp Animated Gifs/");
mMedialibrary.forceParserRetry();
} else if (PreferenceManager.getDefaultSharedPreferences(MediaParsingService.this).getBoolean("auto_rescan", true))
reload(null);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment