From 1c592c679dd24942e7d4a7fbe427b60015b9900b Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Wed, 20 Nov 2013 22:18:54 +1030 Subject: [PATCH] more logging to help capture #205 --- TorrentToMedia.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/TorrentToMedia.py b/TorrentToMedia.py index 79516e3a..d4756745 100755 --- a/TorrentToMedia.py +++ b/TorrentToMedia.py @@ -156,9 +156,15 @@ def main(inputDirectory, inputName, inputCategory, inputHash, inputID): Logger.debug("MAIN: Removing sample file: %s", filePath) os.unlink(filePath) # remove samples else: + Logger.debug("MAIN: Found media file: %s", filePath) video2 = video2 + 1 + else: + Logger.debug("MAIN: File %s is not a media file", filepath) if video2 >= video and video2 > 0: # Check that all video files were moved + Logger.debug("MAIN: Found %s media files", video2) status = 0 + else: + Logger.debug("MAIN: Found %s media files in output. %s were found in input", video2, video) # Hardlink solution for uTorrent, need to implent support for deluge, transmission if clientAgent in ['utorrent', 'transmission'] and inputHash and useLink != "no":