cYTFeedParser: Add feed duration

Origin commit data
------------------
Branch: ni/coolstream
Commit: 6b628d9a8d
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-06-06 (Sat, 06 Jun 2015)


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

------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2015-06-06 15:48:53 +02:00
parent c20e245010
commit fbcc56554a
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);