ytparser: re-use exiting curl connection for bulk transfers

Origin commit data
------------------
Branch: ni/coolstream
Commit: 0e6848d7d9
Author: martii <m4rtii@gmx.de>
Date: 2013-06-09 (Sun, 09 Jun 2013)


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

------------------
This commit was generated by Migit
This commit is contained in:
martii
2013-06-09 08:28:13 +02:00
committed by [CST] Focus
parent 8a92c919f8
commit b6a01d2000
2 changed files with 16 additions and 10 deletions

View File

@@ -93,8 +93,8 @@ class cYTFeedParser
static void splitString(std::string &str, std::string delim, std::vector<std::string> &strlist, int start = 0);
static void splitString(std::string &str, std::string delim, std::map<std::string,std::string> &strmap, int start = 0);
static bool saveToFile(const char * name, std::string str);
bool getUrl(std::string &url, std::string &answer);
bool DownloadUrl(std::string &url, std::string &file);
bool getUrl(std::string &url, std::string &answer, CURL *curl_handle = NULL);
bool DownloadUrl(std::string &url, std::string &file, CURL *curl_handle = NULL);
bool parseFeedXml(std::string &answer);
bool decodeVideoInfo(std::string &answer, cYTVideoInfo &vinfo);
bool supportedFormat(int fmt);