feat(ytkids): add getChannel() (#292)

This commit is contained in:
LuanRT
2023-01-23 05:38:53 -03:00
committed by GitHub
parent 2bbefefbb7
commit 0fc29f0bbf
8 changed files with 107 additions and 2 deletions

View File

@@ -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;
}
}
}