[YouTube] Add a comment clarifying why the panelIdentfier can be null
This commit is contained in:
parent
5c8fbeb166
commit
d337e537dc
1 changed files with 2 additions and 0 deletions
|
@ -1272,6 +1272,8 @@ public class YoutubeStreamExtractor extends StreamExtractor {
|
||||||
final String panelIdentifier = panels.getObject(i)
|
final String panelIdentifier = panels.getObject(i)
|
||||||
.getObject("engagementPanelSectionListRenderer")
|
.getObject("engagementPanelSectionListRenderer")
|
||||||
.getString("panelIdentifier");
|
.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)) {
|
if ("engagement-panel-macro-markers-description-chapters".equals(panelIdentifier)) {
|
||||||
segmentsArray = panels.getObject(i)
|
segmentsArray = panels.getObject(i)
|
||||||
.getObject("engagementPanelSectionListRenderer").getObject("content")
|
.getObject("engagementPanelSectionListRenderer").getObject("content")
|
||||||
|
|
Loading…
Reference in a new issue