Scanner, Downloaders, Providers

This commit is contained in:
Ruud
2011-05-18 12:37:22 +02:00
parent 7837adec1d
commit 09fed4ca63
27 changed files with 855 additions and 217 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
from couchpotato import addView
from couchpotato import addView, get_session
from couchpotato.environment import Env
from flask.helpers import send_from_directory
import os.path
@@ -7,8 +7,8 @@ import re
class Plugin():
def conf(self, attr):
return Env.setting(attr, self.getName().lower())
def conf(self, attr, default = None):
return Env.setting(attr, self.getName().lower(), default = default)
def getName(self):
return self.__class__.__name__