mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Merge branch 'master' of git.deluge-torrent.org:deluge
This commit is contained in:
commit
69b79756f2
2 changed files with 7 additions and 6 deletions
|
@ -76,12 +76,12 @@ class AutoAdd(component.Component):
|
||||||
return
|
return
|
||||||
|
|
||||||
for filename in os.listdir(self.config["autoadd_location"]):
|
for filename in os.listdir(self.config["autoadd_location"]):
|
||||||
if filename.split(".")[-1] == "torrent":
|
try:
|
||||||
try:
|
filepath = os.path.join(self.config["autoadd_location"], filename)
|
||||||
filepath = os.path.join(self.config["autoadd_location"], filename)
|
except UnicodeDecodeError, e:
|
||||||
except UnicodeDecodeError, e:
|
log.error("Unable to auto add torrent due to improper filename encoding: %s", e)
|
||||||
log.error("Unable to auto add torrent due to inproper filename encoding: %s", e)
|
continue
|
||||||
continue
|
if os.path.isfile(filepath) and filename.endswith(".torrent"):
|
||||||
try:
|
try:
|
||||||
filedump = self.load_torrent(filepath)
|
filedump = self.load_torrent(filepath)
|
||||||
except (RuntimeError, Exception), e:
|
except (RuntimeError, Exception), e:
|
||||||
|
|
1
setup.py
1
setup.py
|
@ -67,6 +67,7 @@ _extra_compile_args = [
|
||||||
"-D_FILE_OFFSET_BITS=64",
|
"-D_FILE_OFFSET_BITS=64",
|
||||||
"-DNDEBUG",
|
"-DNDEBUG",
|
||||||
"-DTORRENT_USE_OPENSSL=1",
|
"-DTORRENT_USE_OPENSSL=1",
|
||||||
|
"-DBOOST_FILESYSTEM_VERSION=2",
|
||||||
"-O2",
|
"-O2",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue