diff --git a/default.py b/default.py
index 12c4b20..6de60f6 100644
--- a/default.py
+++ b/default.py
@@ -18,6 +18,7 @@
LOG_ENABLED = False
handle = int(sys.argv[1])
+RECURSIVE_SCANNING = True
# plugin modes
MODE_SCAN_SOURCE = 10
@@ -183,7 +184,8 @@ def walk_Path(path, walked_files, progress):
if progress.iscanceled():
return
if file['filetype'] == "directory":
- walk_Path(file["file"], walked_files, progress)
+ if RECURSIVE_SCANNING:
+ walk_Path(file["file"], walked_files, progress)
elif file['filetype'] == "file":
fileCount += 1
filename = file["file"]
@@ -512,7 +514,7 @@ def show_source_list():
FILE_EXTENSIONS = xbmc.getSupportedMedia('video').decode('utf-8').split('|')
BLACKLISTED_EXTENSIONS = xbmcplugin.getSetting(handle, "blacklisted_file_extensions").decode('utf-8').split('|')
BLACKLIST_STRINGS = get_blacklist(xbmcplugin.getSetting(handle, "blacklist").decode('utf-8'))
-
+RECURSIVE_SCANNING = xbmcplugin.getSetting(handle, "recursive_scanning") == "true"
# Depending on the mode do stuff
if not sys.argv[2]:
diff --git a/resources/language/english/strings.xml b/resources/language/english/strings.xml
index 699ec6b..c31ca65 100644
--- a/resources/language/english/strings.xml
+++ b/resources/language/english/strings.xml
@@ -7,6 +7,7 @@
Log Missing To
Blacklisted Words
Debug Logging
+ Recursive Scanning
Scanned : {0} Directories {1} Files
Processed : {0} Folders, {1} Files, {2} Matches
diff --git a/resources/settings.xml b/resources/settings.xml
index 76fec41..c7ecad9 100644
--- a/resources/settings.xml
+++ b/resources/settings.xml
@@ -4,6 +4,7 @@
+