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:
parent
9cd7c57e2f
commit
09c2a8eafe
2
main.cpp
2
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"];
|
pageToken = data["nextPageToken"];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user