diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-07-28 15:50:26 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-07-28 15:50:26 +0200 |
commit | 60f22a9cba69a8443ed1442c5294a0102ed6f1a3 (patch) | |
tree | e78736a46c878002ce266042731b085c9987435d /src/plugins/NyaaSi.cpp | |
parent | b8e40694b539e74f1778b380087764bb76213fc5 (diff) |
4chan: add timeout for posting without pass, handle noop captcha challenge
Diffstat (limited to 'src/plugins/NyaaSi.cpp')
-rw-r--r-- | src/plugins/NyaaSi.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
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 <quickmedia/HtmlSearch.h> 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<const char*, 10> sort_type_names = { "Size desc 🡇", "Uploaded date desc 🡇", |