@@ -166,7 +166,8 @@ class MovieSearcher(SearcherBase, MovieTypeBase):
|
|||||||
'quality': q_identifier,
|
'quality': q_identifier,
|
||||||
'finish': profile['finish'][index],
|
'finish': profile['finish'][index],
|
||||||
'wait_for': tryInt(profile['wait_for'][index]),
|
'wait_for': tryInt(profile['wait_for'][index]),
|
||||||
'3d': profile['3d'][index] if profile.get('3d') else False
|
'3d': profile['3d'][index] if profile.get('3d') else False,
|
||||||
|
'minimum_score': profile.get('minimum_score', 1),
|
||||||
}
|
}
|
||||||
|
|
||||||
could_not_be_released = not self.couldBeReleased(q_identifier in pre_releases, release_dates, movie['info']['year'])
|
could_not_be_released = not self.couldBeReleased(q_identifier in pre_releases, release_dates, movie['info']['year'])
|
||||||
|
|||||||
@@ -86,6 +86,7 @@ class ProfilePlugin(Plugin):
|
|||||||
'label': toUnicode(kwargs.get('label')),
|
'label': toUnicode(kwargs.get('label')),
|
||||||
'order': tryInt(kwargs.get('order', 999)),
|
'order': tryInt(kwargs.get('order', 999)),
|
||||||
'core': kwargs.get('core', False),
|
'core': kwargs.get('core', False),
|
||||||
|
'minimum_score': tryInt(kwargs.get('minimum_score', 1)),
|
||||||
'qualities': [],
|
'qualities': [],
|
||||||
'wait_for': [],
|
'wait_for': [],
|
||||||
'stop_after': [],
|
'stop_after': [],
|
||||||
@@ -217,6 +218,7 @@ class ProfilePlugin(Plugin):
|
|||||||
'label': toUnicode(profile.get('label')),
|
'label': toUnicode(profile.get('label')),
|
||||||
'order': order,
|
'order': order,
|
||||||
'qualities': profile.get('qualities'),
|
'qualities': profile.get('qualities'),
|
||||||
|
'minimum_score': 1,
|
||||||
'finish': [],
|
'finish': [],
|
||||||
'wait_for': [],
|
'wait_for': [],
|
||||||
'stop_after': [],
|
'stop_after': [],
|
||||||
|
|||||||
@@ -51,6 +51,11 @@
|
|||||||
margin: 0 5px !important;
|
margin: 0 5px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.profile .wait_for .minimum_score_input {
|
||||||
|
width: 40px !important;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
.profile .types {
|
.profile .types {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0 20px 0 -4px;
|
margin: 0 20px 0 -4px;
|
||||||
|
|||||||
@@ -53,12 +53,21 @@ var Profile = new Class({
|
|||||||
}),
|
}),
|
||||||
new Element('span', {'text':'day(s) for a better quality '}),
|
new Element('span', {'text':'day(s) for a better quality '}),
|
||||||
new Element('span.advanced', {'text':'and keep searching'}),
|
new Element('span.advanced', {'text':'and keep searching'}),
|
||||||
|
|
||||||
// "After a checked quality is found and downloaded, continue searching for even better quality releases for the entered number of days."
|
// "After a checked quality is found and downloaded, continue searching for even better quality releases for the entered number of days."
|
||||||
new Element('input.inlay.xsmall.stop_after_input.advanced', {
|
new Element('input.inlay.xsmall.stop_after_input.advanced', {
|
||||||
'type':'text',
|
'type':'text',
|
||||||
'value': data.stop_after && data.stop_after.length > 0 ? data.stop_after[0] : 0
|
'value': data.stop_after && data.stop_after.length > 0 ? data.stop_after[0] : 0
|
||||||
}),
|
}),
|
||||||
new Element('span.advanced', {'text':'day(s) for a better (checked) quality.'})
|
new Element('span.advanced', {'text':'day(s) for a better (checked) quality.'}),
|
||||||
|
|
||||||
|
// Minimum score of
|
||||||
|
new Element('span.advanced', {'html':'<br/>Releases need a minimum score of'}),
|
||||||
|
new Element('input.advanced.inlay.xsmall.minimum_score_input', {
|
||||||
|
'size': 4,
|
||||||
|
'type':'text',
|
||||||
|
'value': data.minimum_score || 1
|
||||||
|
})
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -126,6 +135,7 @@ var Profile = new Class({
|
|||||||
'label' : self.el.getElement('.quality_label input').get('value'),
|
'label' : self.el.getElement('.quality_label input').get('value'),
|
||||||
'wait_for' : self.el.getElement('.wait_for_input').get('value'),
|
'wait_for' : self.el.getElement('.wait_for_input').get('value'),
|
||||||
'stop_after' : self.el.getElement('.stop_after_input').get('value'),
|
'stop_after' : self.el.getElement('.stop_after_input').get('value'),
|
||||||
|
'minimum_score' : self.el.getElement('.minimum_score_input').get('value'),
|
||||||
'types': []
|
'types': []
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -389,8 +389,8 @@ class Release(Plugin):
|
|||||||
log.info('Ignored: %s', rel['name'])
|
log.info('Ignored: %s', rel['name'])
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if rel['score'] <= 0:
|
if rel['score'] < quality_custom.get('minimum_score'):
|
||||||
log.info('Ignored, score "%s" to low: %s', (rel['score'], rel['name']))
|
log.info('Ignored, score "%s" to low, need at least "%s": %s', (rel['score'], quality_custom.get('minimum_score'), rel['name']))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if rel['size'] <= 50:
|
if rel['size'] <= 50:
|
||||||
|
|||||||
Reference in New Issue
Block a user