diff --git a/couchpotato/core/plugins/base.py b/couchpotato/core/plugins/base.py index 3f9519cb..2653341b 100644 --- a/couchpotato/core/plugins/base.py +++ b/couchpotato/core/plugins/base.py @@ -61,7 +61,9 @@ class Plugin(object): if add_to_head: for f in glob.glob(os.path.join(self.plugin_path, 'static', '*')): - fireEvent('register_%s' % ('script' if getExt(f) in 'js' else 'style'), path + os.path.basename(f)) + ext = getExt(f) + if ext in ['js', 'css']: + fireEvent('register_%s' % ('script' if ext in 'js' else 'style'), path + os.path.basename(f)) def showStatic(self, filename): d = os.path.join(self.plugin_path, 'static')