yt: make search order selectable

Origin commit data
------------------
Branch: ni/coolstream
Commit: fd5f9f118d
Author: martii <m4rtii@gmx.de>
Date: 2013-10-06 (Sun, 06 Oct 2013)


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

------------------
This commit was generated by Migit
This commit is contained in:
martii
2013-10-06 12:11:20 +02:00
committed by Jacek Jendrzej
parent 2d01291316
commit 77e401b9e5
8 changed files with 47 additions and 3 deletions

View File

@@ -129,10 +129,17 @@ class cYTFeedParser
SEARCH,
MODE_LAST
};
enum yt_feed_orderby_t
{
ORDERBY_PUBLISHED = 0,
ORDERBY_RELEVANCE,
ORDERBY_VIEWCOUNT,
ORDERBY_RATING
};
cYTFeedParser();
~cYTFeedParser();
bool ParseFeed(yt_feed_mode_t mode = MOST_POPULAR, std::string search = "", std::string vid = "");
bool ParseFeed(yt_feed_mode_t mode = MOST_POPULAR, std::string search = "", std::string vid = "", yt_feed_orderby_t orderby = ORDERBY_PUBLISHED);
bool ParseVideoInfo(cYTVideoInfo &vinfo, CURL *_curl_handle = NULL);
bool DownloadThumbnail(cYTVideoInfo &vinfo, CURL *_curl_handle = NULL);
bool GetVideoUrls();