mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 08:18:52 -05:00
Update feelingLucky
This commit is contained in:
parent
f595e7247b
commit
a10beebe68
@ -86,14 +86,13 @@ public enum SupportDialog {
|
||||
};
|
||||
|
||||
public boolean feelingLucky(int sessionRenameCount, int totalRenameCount, int currentRevision, int lastSupportRevision, int supportRevisionCount) {
|
||||
if (isAppStore()) {
|
||||
// ask for reviews at most once per revision
|
||||
if (currentRevision <= lastSupportRevision) {
|
||||
if (isAppStore() && currentRevision <= lastSupportRevision) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// ask for reviews only when a significant number of files have been processed
|
||||
if (sessionRenameCount <= 10 || totalRenameCount <= 5000) {
|
||||
if (isAppStore() && sessionRenameCount <= 10 || totalRenameCount <= 5000) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -101,7 +100,6 @@ public enum SupportDialog {
|
||||
if (Math.random() <= 0.777) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// lucky if many files are processed in a single session
|
||||
if (sessionRenameCount >= 2000 * Math.pow(2, supportRevisionCount)) {
|
||||
|
Loading…
Reference in New Issue
Block a user