Ticket #2466: patch.diff

File patch.diff, 991 bytes (added by Doadin, 10 years ago)

patch for the above issue use if approved.

  • deluge/plugins/AutoAdd/deluge/plugins/autoadd/core.py

    From f8a287c0426ea8bab44e8cf401d3dcc8241a120d Mon Sep 17 00:00:00 2001
    From: Doadin <tbkizle@gmail.com>
    Date: Wed, 2 Jul 2014 21:58:05 -0400
    Subject: [PATCH] [#2466] [AutoAdd] Fix Copy Torrent File
    
    ---
     deluge/plugins/AutoAdd/deluge/plugins/autoadd/core.py | 1 +
     1 file changed, 1 insertion(+)
    
    diff --git a/deluge/plugins/AutoAdd/deluge/plugins/autoadd/core.py b/deluge/plugins/AutoAdd/deluge/plugins/autoadd/core.py
    index 6d829b4..c9d916f 100644
    a b def update_watchdir(self, watchdir_id):  
    338338                              os.path.basename(filepath), copy_torrent_path)
    339339                    try:
    340340                        os.rename(filepath, copy_torrent_file)
     341                                                os.remove(filepath)
    341342                    except OSError, why:
    342343                        from errno import EXDEV
    343344                        if why.errno == errno.EXDEV: