From 442c4e5aead552919f2d49f273d9ff3a48c9703a Mon Sep 17 00:00:00 2001 From: Ruud Date: Fri, 18 May 2012 22:54:13 +0200 Subject: [PATCH] Don't use fanart that doesn't exist. fix #282 --- couchpotato/core/providers/metadata/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/providers/metadata/base.py b/couchpotato/core/providers/metadata/base.py index 0f59c9f..d7e9e03 100644 --- a/couchpotato/core/providers/metadata/base.py +++ b/couchpotato/core/providers/metadata/base.py @@ -75,7 +75,7 @@ class MetaDataBase(Plugin): break for cur_file in data['library'].get('files', []): - if cur_file.get('type_id') is file_type.get('id'): + if cur_file.get('type_id') is file_type.get('id') and os.path.isfile(cur_file.get('path')): return cur_file.get('path') def getFanart(self, movie_info = {}, data = {}):