Apply astyle
formatting to main.cpp
This commit is contained in:
parent
dfd9ee9c41
commit
0675314fe6
6
main.cpp
6
main.cpp
@ -186,11 +186,11 @@ vector<string> getFileContent(string filePath)
|
|||||||
|
|
||||||
json getJson(string url)
|
json getJson(string url)
|
||||||
{
|
{
|
||||||
#ifdef USE_YT_LEMNOSLIFE_COM_NO_KEY_SERVICE
|
#ifdef USE_YT_LEMNOSLIFE_COM_NO_KEY_SERVICE
|
||||||
url = "https://yt.lemnoslife.com/noKey/" + url;
|
url = "https://yt.lemnoslife.com/noKey/" + url;
|
||||||
#else
|
#else
|
||||||
url = "https://www.googleapis.com/youtube/v3/" + url + "&key=" + API_KEY;
|
url = "https://www.googleapis.com/youtube/v3/" + url + "&key=" + API_KEY;
|
||||||
#endif
|
#endif
|
||||||
string content = getHttps(url);
|
string content = getHttps(url);
|
||||||
json data = json::parse(content);
|
json data = json::parse(content);
|
||||||
return data;
|
return data;
|
||||||
|
Loading…
Reference in New Issue
Block a user