cYTFeedParser: Add feed duration

This commit is contained in:
M. Liebmann
2015-06-06 15:48:53 +02:00
parent 5611d65c66
commit 6b628d9a8d
2 changed files with 45 additions and 7 deletions

View File

@@ -82,6 +82,7 @@ class cYTFeedParser
std::string start; // start index
std::string total; // total results
std::string nextprevurl; // url for next/prev
std::string key; // youtube dev id
int feedmode;
int max_results;
@@ -108,6 +109,7 @@ class cYTFeedParser
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 parseFeedJSON(std::string &answer);
bool parseFeedDetailsJSON(cYTVideoInfo* vinfo);
bool decodeVideoInfo(std::string &answer, cYTVideoInfo &vinfo);
bool supportedFormat(int fmt);
bool ParseFeed(std::string &url);