mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 04:24:27 +00:00
[AutoAdd] Fix watch dir not accepting uppercase file extension
- Auto-add feature will now accept torrents when the .torrent extension has capital letters in it
This commit is contained in:
parent
aa10e084a4
commit
fcb65940d9
@ -259,12 +259,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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user