mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
system/ytparser.cpp: allow to define youtube dev id at compile time
Origin commit data
------------------
Branch: ni/coolstream
Commit: dc59c092ad
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2015-06-02 (Tue, 02 Jun 2015)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -463,7 +463,11 @@ bool cYTFeedParser::ParseFeed(std::string &url)
|
|||||||
bool cYTFeedParser::ParseFeed(yt_feed_mode_t mode, std::string search, std::string vid, yt_feed_orderby_t orderby)
|
bool cYTFeedParser::ParseFeed(yt_feed_mode_t mode, std::string search, std::string vid, yt_feed_orderby_t orderby)
|
||||||
{
|
{
|
||||||
std::string answer;
|
std::string answer;
|
||||||
|
#ifdef YOUTUBE_DEV_ID
|
||||||
|
std::string key = YOUTUBE_DEV_ID;
|
||||||
|
#else
|
||||||
std::string key = g_settings.youtube_dev_id;
|
std::string key = g_settings.youtube_dev_id;
|
||||||
|
#endif
|
||||||
|
|
||||||
std::string url = "https://www.googleapis.com/youtube/v3/search?";
|
std::string url = "https://www.googleapis.com/youtube/v3/search?";
|
||||||
bool append_res = true;
|
bool append_res = true;
|
||||||
|
Reference in New Issue
Block a user