mirror of
https://github.com/TeamNewPipe/NewPipeExtractor
synced 2025-08-31 14:26:14 +00:00
[YouTube] Add a comment clarifying why the panelIdentfier can be null
This commit is contained in:
@@ -1272,6 +1272,8 @@ public class YoutubeStreamExtractor extends StreamExtractor {
|
||||
final String panelIdentifier = panels.getObject(i)
|
||||
.getObject("engagementPanelSectionListRenderer")
|
||||
.getString("panelIdentifier");
|
||||
// panelIdentifier might be null if the panel has something to do with ads
|
||||
// See https://github.com/TeamNewPipe/NewPipe/issues/7792#issuecomment-1030900188
|
||||
if ("engagement-panel-macro-markers-description-chapters".equals(panelIdentifier)) {
|
||||
segmentsArray = panels.getObject(i)
|
||||
.getObject("engagementPanelSectionListRenderer").getObject("content")
|
||||
|
Reference in New Issue
Block a user