fix(ytmusic): rename old class types

This commit is contained in:
LuanRT
2022-06-15 22:28:08 -03:00
parent 4ef546b3f0
commit e8a81084e6
3 changed files with 14 additions and 9 deletions

View File

@@ -8,9 +8,14 @@ class SectionList {
constructor(data) {
this.target_id = data.targetId || null;
this.contents = Parser.parse(data.contents);
data.continuations &&
(this.continuation = data.continuations[0].nextContinuationData.continuation);
if (data.continuations) {
if (data.continuations[0].nextContinuationData) {
this.continuation = data.continuations[0].nextContinuationData.continuation;
} else if (data.continuations[0].reloadContinuationData) {
this.continuation = data.continuations[0].reloadContinuationData.continuation;
}
}
this.header = Parser.parse(data.header);
}