From bfdc8d1053be332c18b79261e9b84d56aa3eddc1 Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 30 Apr 2013 18:04:58 +0200 Subject: [PATCH] Don't remove version file --- couchpotato/core/plugins/file/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/file/main.py b/couchpotato/core/plugins/file/main.py index 87898f5..5239f1e 100644 --- a/couchpotato/core/plugins/file/main.py +++ b/couchpotato/core/plugins/file/main.py @@ -73,7 +73,7 @@ class FileManager(Plugin): db = get_session() for root, dirs, walk_files in os.walk(Env.get('cache_dir')): for filename in walk_files: - if root == python_cache or 'minified' in filename: continue + if root == python_cache or 'minified' in filename or 'version' in filename: continue file_path = os.path.join(root, filename) f = db.query(File).filter(File.path == toUnicode(file_path)).first() if not f: