From 4948b3c4c141456d9b11c816ca78dcbac4b44c0e Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Sun, 17 Feb 2013 23:40:37 -0800 Subject: [PATCH] more fixes --- TorrentToMedia.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TorrentToMedia.py b/TorrentToMedia.py index 265994e0..a190a074 100755 --- a/TorrentToMedia.py +++ b/TorrentToMedia.py @@ -352,9 +352,10 @@ flatten(destination) for dirpath, dirnames, filenames in os.walk(destination): for file in filenames: file_path = os.path.join(dirpath, file) - file_ext = os.path.splitext(file) + file_ext = os.path.splitext(file)[1] if file_ext in video_files: #if the file is a video file. video2 = video2 + 1 + status = 0 if video2 >= video: #check that all video files were moved. status = 0