Make sure downloaders and providers match

Remove releases not found anymore on new searches
This commit is contained in:
Ruud committed 2013-01-12 16:07:11 +01:00
1 parent a0dc5c075a
commit 71b22345bc
13 files changed
+200 -124

No files matched your search

+8
View File
@@ -84,8 +84,16 @@ class YarrProvider(Provider):
login_opener = None
def __init__(self):
addEvent('provider.enabled_types', self.getEnabledProviderType)
addEvent('provider.belongs_to', self.belongsTo)
addEvent('yarr.search', self.search)
addEvent('%s.search' % self.type, self.search)
def getEnabledProviderType(self):
if self.isEnabled():
return self.type
else:
return []
def login(self):