ytparser: fix youtube playback; change to APIv3

Origin commit data
------------------
Branch: ni/coolstream
Commit: acf3453fcd
Author: FlatTV <FlatTV@gmx.de>
Date: 2015-06-01 (Mon, 01 Jun 2015)

Origin message was:
------------------
- ytparser: fix youtube playback; change to APIv3

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

------------------
This commit was generated by Migit
This commit is contained in:
FlatTV
2015-06-01 12:00:00 +02:00
committed by vanhofen
parent ef7580097e
commit 2816525c84
6 changed files with 94 additions and 128 deletions

View File

@@ -81,6 +81,7 @@ class cYTFeedParser
std::string prev; // prev results
std::string start; // start index
std::string total; // total results
std::string nextprevurl; // url for next/prev
int feedmode;
int max_results;
@@ -106,7 +107,7 @@ class cYTFeedParser
static bool saveToFile(const char * name, std::string str);
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 parseFeedJSON(std::string &answer);
bool decodeVideoInfo(std::string &answer, cYTVideoInfo &vinfo);
bool supportedFormat(int fmt);
bool ParseFeed(std::string &url);