Skip to content

Commit d337e53

Browse files
committed
[YouTube] Add a comment clarifying why the panelIdentfier can be null
1 parent 5c8fbeb commit d337e53

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,6 +1272,8 @@ public List<StreamSegment> getStreamSegments() throws ParsingException {
12721272
final String panelIdentifier = panels.getObject(i)
12731273
.getObject("engagementPanelSectionListRenderer")
12741274
.getString("panelIdentifier");
1275+
// panelIdentifier might be null if the panel has something to do with ads
1276+
// See https://github.com/TeamNewPipe/NewPipe/issues/7792#issuecomment-1030900188
12751277
if ("engagement-panel-macro-markers-description-chapters".equals(panelIdentifier)) {
12761278
segmentsArray = panels.getObject(i)
12771279
.getObject("engagementPanelSectionListRenderer").getObject("content")

0 commit comments

Comments
 (0)