@@ 114,7 114,7 @@ processnode_chan(struct json_node *nodes, size_t depth, const char *value,
if (r->nitem > MAX_VIDEOS)
return;
- if (in_json_obj(nodes, depth, gridVideoRenderer, nelem(gridVideoRenderer))) {
+ if (in_json_obj(nodes, depth, ch_videoRenderer, nelem(ch_videoRenderer))) {
r->nitem++;
return;
}
@@ 76,17 76,17 @@ static struct json_layer ch_channeltitle[] = {
{ 1, TYPE_STRING, NMS("simpleText") },
};
-static struct json_layer gridVideoRenderer[] = {
- { 1, TYPE_OBJECT, NMS("gridVideoRenderer") },
+static struct json_layer ch_videoRenderer[] = {
+ { 1, TYPE_OBJECT, NMS("videoRenderer") },
};
static struct json_layer ch_videoid[] = {
- { 2, TYPE_OBJECT, NMS("gridVideoRenderer") },
+ { 2, TYPE_OBJECT, NMS("videoRenderer") },
{ 1, TYPE_STRING, NMS("videoId") },
};
static struct json_layer ch_title[] = {
- { 5, TYPE_OBJECT, NMS("gridVideoRenderer") },
+ { 5, TYPE_OBJECT, NMS("videoRenderer") },
{ 4, TYPE_OBJECT, NMS("title") },
{ 3, TYPE_ARRAY, NMS("runs") },
{ 1, TYPE_STRING, NMS("text") },