From 60f22a9cba69a8443ed1442c5294a0102ed6f1a3 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 28 Jul 2021 15:50:26 +0200 Subject: 4chan: add timeout for posting without pass, handle noop captcha challenge --- src/plugins/NyaaSi.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/plugins/NyaaSi.cpp') diff --git a/src/plugins/NyaaSi.cpp b/src/plugins/NyaaSi.cpp index 0202322..ccf027d 100644 --- a/src/plugins/NyaaSi.cpp +++ b/src/plugins/NyaaSi.cpp @@ -4,6 +4,7 @@ #include "../../include/Notification.hpp" #include "../../include/StringUtils.hpp" #include "../../include/NetUtils.hpp" +#include "../../include/Utils.hpp" #include namespace QuickMedia { @@ -99,14 +100,6 @@ namespace QuickMedia { return timegm(&time); } - static std::string unix_time_to_local_time_str(time_t unix_time) { - struct tm time_tm; - localtime_r(&unix_time, &time_tm); - char time_str[128] = {0}; - strftime(time_str, sizeof(time_str) - 1, "%Y %b %d, %a %H:%M", &time_tm); - return time_str; - } - static const std::array sort_type_names = { "Size desc 🡇", "Uploaded date desc 🡇", -- cgit v1.2.3