Make the COMMUNITY tab process not infinitely loop

Related to https://github.com/Benjamin-Loison/YouTube-operational-API/issues/49
This commit is contained in:
2023-02-13 06:17:23 +01:00
parent 9cd7c57e2f
commit 09c2a8eafe

View File

@@ -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"];
}