mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-20 04:51:16 +00:00
feat(ytkids): add getChannel() (#292)
This commit is contained in:
@@ -10,7 +10,8 @@ class ItemSection extends YTNode {
|
||||
|
||||
header: CommentsHeader | ItemSectionHeader | ItemSectionTabbedHeader | null;
|
||||
contents;
|
||||
target_id;
|
||||
target_id?: string;
|
||||
continuation?: string;
|
||||
|
||||
constructor(data: any) {
|
||||
super();
|
||||
@@ -20,6 +21,10 @@ class ItemSection extends YTNode {
|
||||
if (data.targetId || data.sectionIdentifier) {
|
||||
this.target_id = data?.target_id || data?.sectionIdentifier;
|
||||
}
|
||||
|
||||
if (data.continuations) {
|
||||
this.continuation = data.continuations?.at(0)?.nextContinuationData?.continuation;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user