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
dc63de82f5
commit
9e650cf72a
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…
x
Reference in New Issue
Block a user