diff --git a/deluge/plugins/AutoAdd/deluge/plugins/autoadd/core.py b/deluge/plugins/AutoAdd/deluge/plugins/autoadd/core.py index 81a4b08d2..ae74b02f6 100644 --- a/deluge/plugins/AutoAdd/deluge/plugins/autoadd/core.py +++ b/deluge/plugins/AutoAdd/deluge/plugins/autoadd/core.py @@ -252,12 +252,13 @@ class Core(CorePluginBase): # Skip directories continue else: - ext = os.path.splitext(filename)[1] + ext = os.path.splitext(filename)[1].lower() if ext == ".torrent": magnet = False elif ext == ".magnet": magnet = True else: + log.debug("File checked for auto-loading is invalid: %s", filename) continue try: filedump = self.load_torrent(filepath, magnet)