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:
Benjamin Loison 2023-02-13 06:17:23 +01:00
parent 9cd7c57e2f
commit 09c2a8eafe
Signed by: Benjamin_Loison
SSH Key Fingerprint: SHA256:BtnEgYTlHdOg1u+RmYcDE0mnfz1rhv5dSbQ2gyxW8B8

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