mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-30 09:55:18 +00:00
fix(ytmusic): rename old class types
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user