mirror of
https://github.com/TeamNewPipe/NewPipeExtractor
synced 2025-01-07 17:35:16 +01:00
[YouTube] Add a comment clarifying why the panelIdentfier can be null
This commit is contained in:
parent
5c8fbeb166
commit
d337e537dc
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user