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;