diff --git a/cookbook/provider/dropbox.py b/cookbook/provider/dropbox.py index 0782c133..0a283eca 100644 --- a/cookbook/provider/dropbox.py +++ b/cookbook/provider/dropbox.py @@ -35,7 +35,7 @@ class Dropbox(Provider): import_count = 0 for recipe in recipes['entries']: # TODO check if has_more is set and import that as well path = recipe['path_lower'] - if not Recipe.objects.filter(file_path=path).exists() and not RecipeImport.objects.filter( + if not Recipe.objects.filter(file_path__iexact=path).exists() and not RecipeImport.objects.filter( file_path=path).exists(): name = os.path.splitext(recipe['name'])[0] new_recipe = RecipeImport(name=name, file_path=path, storage=monitor.storage, file_uid=recipe['id']) diff --git a/cookbook/provider/nextcloud.py b/cookbook/provider/nextcloud.py index 2c36ff4d..705c7280 100644 --- a/cookbook/provider/nextcloud.py +++ b/cookbook/provider/nextcloud.py @@ -32,7 +32,7 @@ class Nextcloud(Provider): import_count = 0 for file in files: path = monitor.path + '/' + file - if not Recipe.objects.filter(file_path=path).exists() and not RecipeImport.objects.filter( + if not Recipe.objects.filter(file_path__iexact=path).exists() and not RecipeImport.objects.filter( file_path=path).exists(): name = os.path.splitext(file)[0] new_recipe = RecipeImport(name=name, file_path=path, storage=monitor.storage)