mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 07:58:38 +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
1 changed files with 2 additions and 1 deletions
|
@ -259,12 +259,13 @@ class Core(CorePluginBase):
|
||||||
# Skip directories
|
# Skip directories
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
ext = os.path.splitext(filename)[1]
|
ext = os.path.splitext(filename)[1].lower()
|
||||||
if ext == ".torrent":
|
if ext == ".torrent":
|
||||||
magnet = False
|
magnet = False
|
||||||
elif ext == ".magnet":
|
elif ext == ".magnet":
|
||||||
magnet = True
|
magnet = True
|
||||||
else:
|
else:
|
||||||
|
log.debug("File checked for auto-loading is invalid: %s", filename)
|
||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
filedump = self.load_torrent(filepath, magnet)
|
filedump = self.load_torrent(filepath, magnet)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue