[AutoAdd] Fix the logging for a failed added torrent
Add a missing arg to the failed added torrent callback and update the logging text based on magnet or not.
This commit is contained in:
parent
cbdde7bba5
commit
b2b7703081
@ -317,9 +317,14 @@ class Core(CorePluginBase):
|
|||||||
else:
|
else:
|
||||||
os.remove(filepath)
|
os.remove(filepath)
|
||||||
|
|
||||||
def fail_torrent_add(err_msg, filepath):
|
def fail_torrent_add(err_msg, filepath, magnet):
|
||||||
# torrent handle is invalid and so is the magnet link
|
# torrent handle is invalid and so is the magnet link
|
||||||
log.error('Cannot Autoadd torrent file: %s: %s', filepath, err_msg)
|
log.error(
|
||||||
|
'Cannot Autoadd %s: %s: %s',
|
||||||
|
'magnet' if magnet else 'torrent file',
|
||||||
|
filepath,
|
||||||
|
err_msg,
|
||||||
|
)
|
||||||
os.rename(filepath, filepath + '.invalid')
|
os.rename(filepath, filepath + '.invalid')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user