From 498b0ef3d7d756aa6b9b4195dc1c1fe962378e22 Mon Sep 17 00:00:00 2001 From: b Date: Sat, 9 Mar 2024 21:57:11 +0000 Subject: [PATCH] dont' wait for mirror edit page (temporary hack) --- sendpost.1.pl | 6 +++--- settings.txt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sendpost.1.pl b/sendpost.1.pl index be46d4c..c5f4d52 100644 --- a/sendpost.1.pl +++ b/sendpost.1.pl @@ -392,7 +392,7 @@ sub post_to_mirror { $post_data{'forceID'} = $cmd_options->{'edit'}; } if ($previous_post{'st'} ne '') { - $post_data{'st'} = $previous_post{'st'}; + $post_data{'st'} = int($previous_post{'st'}) - 5; # time hack } $post_data{'post'} = 'Submit'; @@ -405,9 +405,9 @@ sub post_to_mirror { 0, 0, 0, '>>', 1 ); - print "WAIT 5s\n"; + # print "WAIT 5s\n"; } - sleep(5); # TODO: selectable wait time + # sleep(5); # TODO: selectable wait time print "SUBMIT post"; if ($cmd_options->{'verbose'} ne '') { print ": $post_url SAVE $tmp_path\n"; diff --git a/settings.txt b/settings.txt index c4587b8..239a092 100644 --- a/settings.txt +++ b/settings.txt @@ -15,7 +15,7 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -_version: 1.0.6 +_version: 1.0.7 _PERL_STR: '@_ESCAPE($0,')' _SHEBANG: #!$0 -- 2.30.2