From fd5ee775e04ea0f10c7dae1914e727291e53e846 Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Fri, 18 Dec 2015 23:57:07 +1030 Subject: [PATCH] add debugging to track down #894 --- TorrentToMedia.py | 2 ++ core/nzbToMediaUtil.py | 1 + 2 files changed, 3 insertions(+) diff --git a/TorrentToMedia.py b/TorrentToMedia.py index 68bd8c69..3e51b3d9 100755 --- a/TorrentToMedia.py +++ b/TorrentToMedia.py @@ -250,8 +250,10 @@ def processTorrent(inputDirectory, inputName, inputCategory, inputHash, inputID, # remove torrent if core.USELINK == 'move-sym' and not core.DELETE_ORIGINAL == 1: + logger.debug('Checking for sym-links to re-direct in: %s' % (inputDirectory)) for dirpath, dirs, files in os.walk(inputDirectory): for file in files: + logger.debug('Checking symlink: %s' % (os.path.join(dirpath,file))) core.replace_links(os.path.join(dirpath,file)) core.remove_torrent(clientAgent, inputHash, inputID, inputName) diff --git a/core/nzbToMediaUtil.py b/core/nzbToMediaUtil.py index 8029daa6..45dfa211 100644 --- a/core/nzbToMediaUtil.py +++ b/core/nzbToMediaUtil.py @@ -253,6 +253,7 @@ def copy_link(src, targetLink, useLink): def replace_links(link): if not os.path.islink(link): + logger.debug('%s is not a link' % (link)) return target = link n = 0