From 09c2a8eafed150ddb4366c91f84b38af89466c66 Mon Sep 17 00:00:00 2001 From: Benjamin Loison Date: Mon, 13 Feb 2023 06:17:23 +0100 Subject: [PATCH] Make the `COMMUNITY` tab process not infinitely loop Related to https://github.com/Benjamin-Loison/YouTube-operational-API/issues/49 --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 2841706..9e9b1b9 100644 --- a/main.cpp +++ b/main.cpp @@ -402,7 +402,7 @@ void treatChannelOrVideo(unsigned short threadId, bool isChannel, string id, str } } } - if(data.contains("nextPageToken")) + if(data.contains("nextPageToken") && data["nextPageToken"] != "") { pageToken = data["nextPageToken"]; }