Scheduler
NZBmatrix, newznab Scores
This commit is contained in:
1 parent
9524306739
commit
7837adec1d
38 files changed
+856
-219
No files matched your search
@@ -27,6 +27,7 @@ class QualityPlugin(Plugin):
|
||||
|
||||
def __init__(self):
|
||||
addEvent('quality.all', self.all)
|
||||
addEvent('quality.single', self.single)
|
||||
addEvent('app.load', self.fill)
|
||||
|
||||
path = self.registerStatic(__file__)
|
||||
@@ -46,6 +47,14 @@ class QualityPlugin(Plugin):
|
||||
|
||||
return temp
|
||||
|
||||
def single(self, identifier = ''):
|
||||
|
||||
db = get_session()
|
||||
|
||||
quality = db.query(Quality).filter_by(identifier = identifier).first()
|
||||
|
||||
return dict(self.getQuality(quality.identifier), **quality.to_dict())
|
||||
|
||||
def getQuality(self, identifier):
|
||||
|
||||
for q in self.qualities:
|
||||
|
||||
Reference in new issue
Block a user