Skip to content
This repository was archived by the owner on May 29, 2021. It is now read-only.

Commit 0b6483a

Browse files
committed
Read minutes on duplicate post.
1 parent 44ffe60 commit 0b6483a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Posting/QR.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -607,9 +607,9 @@ QR =
607607
# Too many frequent mistyped captchas will auto-ban you!
608608
# On connection error, the post most likely didn't go through.
609609
QR.cooldown.set delay: 2
610-
else if err.textContent and m = err.textContent.match /wait\s+(\d+)\s+second/i
610+
else if err.textContent and m = err.textContent.match /wait(?:\s+(\d+)\s+minutes)?\s+(\d+)\s+second/i
611611
QR.cooldown.auto = !QR.captcha.isEnabled
612-
QR.cooldown.set delay: m[1]
612+
QR.cooldown.set delay: (m[1] or 0) * 60 + Number m[2]
613613
else if err.textContent.match /duplicate\sfile/i
614614
if QR.nodes.proceed.checked and postsCount
615615
post.rm()

0 commit comments

Comments
 (0)