if someone asks, we're firefox

Origin commit data
------------------
Branch: ni/coolstream
Commit: 296c246d45
Author: TangoCash <eric@loxat.de>
Date: 2021-09-14 (Tue, 14 Sep 2021)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
TangoCash
2021-09-14 16:38:57 +02:00
committed by vanhofen
parent 56a00f0470
commit b6b421d2dc

View File

@@ -36,6 +36,8 @@
#include <curl/curl.h>
#include <curl/easy.h>
#define AGENT "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0"
typedef uint64_t t_channel_id;
int my_system(const char * cmd);
@@ -189,8 +191,8 @@ size_t WriteMemoryCallback(void *ptr, size_t size, size_t nmemb, void *data);
std::string encodeUrl(std::string txt);
std::string decodeUrl(std::string url);
bool getUrl(std::string &url, std::string &answer, const std::string userAgent = " ", unsigned int timeout = 60);
bool downloadUrl(std::string url, std::string file, const std::string userAgent = " ", unsigned int timeout = 60);
bool getUrl(std::string &url, std::string &answer, const std::string userAgent = AGENT, unsigned int timeout = 60);
bool downloadUrl(std::string url, std::string file, const std::string userAgent = AGENT, unsigned int timeout = 60);
bool isDigitWord(std::string str);