diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-10-09 14:49:13 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-10-13 03:43:19 +0200 |
commit | 060db5c6cbd02e684a0c98c0f045da242b6ab218 (patch) | |
tree | f380f5eb398a3aa83f5c2c413c041137503c9589 /src/plugins/Peertube.cpp | |
parent | e2a510e8c94aae88aab6293659b1a0786c799bc2 (diff) |
Add lbry, attempt to fix 4chan posting when captcha is no-op
Diffstat (limited to 'src/plugins/Peertube.cpp')
-rw-r--r-- | src/plugins/Peertube.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/plugins/Peertube.cpp b/src/plugins/Peertube.cpp index 3b74871..b83daf5 100644 --- a/src/plugins/Peertube.cpp +++ b/src/plugins/Peertube.cpp @@ -56,28 +56,6 @@ namespace QuickMedia { return plugin_result_to_search_result(get_page(str, 0, result_items)); } - static std::string seconds_to_duration(int seconds) { - seconds = std::max(0, seconds); - - int minutes = seconds / 60; - int hours = minutes / 60; - char buffer[32]; - - if(hours >= 1) { - minutes -= (hours * 60); - seconds -= (hours * 60 * 60); - seconds -= (minutes * 60); - snprintf(buffer, sizeof(buffer), "%02d:%02d:%02d", hours, minutes, seconds); - } else if(minutes >= 1) { - seconds -= (minutes * 60); - snprintf(buffer, sizeof(buffer), "%02d:%02d", minutes, seconds); - } else { - snprintf(buffer, sizeof(buffer), "0:%02d", seconds); - } - - return buffer; - } - // TODO: Support remote content static std::shared_ptr<BodyItem> search_data_to_body_item(const Json::Value &data_json, const std::string &server, PeertubeSearchPage::SearchType search_type) { if(!data_json.isObject()) |