From af6026666218de02bd69ca51beca62955098be82 Mon Sep 17 00:00:00 2001 From: Ruud Date: Fri, 27 Apr 2012 11:18:43 +0200 Subject: [PATCH] Check if file exists before adding it to movie_files. fixes #146 --- couchpotato/core/plugins/scanner/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/couchpotato/core/plugins/scanner/main.py b/couchpotato/core/plugins/scanner/main.py index 8b183f3c..e71d5c20 100644 --- a/couchpotato/core/plugins/scanner/main.py +++ b/couchpotato/core/plugins/scanner/main.py @@ -165,6 +165,9 @@ class Scanner(Plugin): for file_path in files: + if not os.path.exists(file_path): + continue + # Remove ignored files if self.isSampleFile(file_path): leftovers.append(file_path)