From dcfe3cc6f2ed2b4f75f0b2969f9ab70b1715b838 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Tue, 2 Jun 2015 10:52:12 +0300 Subject: [PATCH] system/ytparser.cpp: allow to define youtube dev id at compile time Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/dc59c092ade343c1074fd73610ebefe73c4fcf4d Author: [CST] Focus Date: 2015-06-02 (Tue, 02 Jun 2015) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/system/ytparser.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/system/ytparser.cpp b/src/system/ytparser.cpp index d31e31608..f261b55d2 100644 --- a/src/system/ytparser.cpp +++ b/src/system/ytparser.cpp @@ -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) { std::string answer; +#ifdef YOUTUBE_DEV_ID + std::string key = YOUTUBE_DEV_ID; +#else std::string key = g_settings.youtube_dev_id; +#endif std::string url = "https://www.googleapis.com/youtube/v3/search?"; bool append_res = true;