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/Youtube.cpp | |
parent | b8e40694b539e74f1778b380087764bb76213fc5 (diff) |
4chan: add timeout for posting without pass, handle noop captcha challenge
Diffstat (limited to 'src/plugins/Youtube.cpp')
-rw-r--r-- | src/plugins/Youtube.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/Youtube.cpp b/src/plugins/Youtube.cpp index 7e5bd7b..f81d934 100644 --- a/src/plugins/Youtube.cpp +++ b/src/plugins/Youtube.cpp @@ -288,7 +288,7 @@ R"END( errno = 0; char *endptr; - content_length = strtol(content_length_str.c_str(), &endptr, 10); + content_length = strtoll(content_length_str.c_str(), &endptr, 10); if(endptr == content_length_str.c_str() || errno != 0) return ""; @@ -488,7 +488,7 @@ R"END( if(!upcoming_event_text) return nullptr; - time_t start_time = strtol(start_time_json.asCString(), nullptr, 10); + time_t start_time = strtoll(start_time_json.asCString(), nullptr, 10); struct tm message_tm; localtime_r(&start_time, &message_tm); char time_str[128] = {0}; |