Skip to content

Commit

Permalink
[YouTube] Add a comment clarifying why the panelIdentfier can be null
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiGr committed Feb 18, 2022
1 parent 5c8fbeb commit 3aae121
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1269,6 +1269,9 @@ public List<StreamSegment> getStreamSegments() throws ParsingException {

// Search for correct panel containing the data
for (int i = 0; i < panels.size(); i++) {
// panelIdentifier might be null if the panel has something to do with ads
// See https://github.com/TeamNewPipe/NewPipe/issues/7792#issuecomment-1030900188
@Nullable
final String panelIdentifier = panels.getObject(i)
.getObject("engagementPanelSectionListRenderer")
.getString("panelIdentifier");
Expand Down

0 comments on commit 3aae121

Please sign in to comment.