Fix NullPointerException in YouTubeStreamExtractor.getStreamSegments() (#797)

Fix NullPointerException in YouTubeStreamExtractor.getStreamSegments()

Co-authored-by: litetex <40789489+litetex@users.noreply.github.com>
This commit is contained in:
Tobi 2022-02-16 23:39:26 +01:00 committed by GitHub
parent 0d6aebce25
commit 5c8fbeb166
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1272,8 +1272,7 @@ public class YoutubeStreamExtractor extends StreamExtractor {
final String panelIdentifier = panels.getObject(i)
.getObject("engagementPanelSectionListRenderer")
.getString("panelIdentifier");
if (panelIdentifier.equals(
"engagement-panel-macro-markers-description-chapters")) {
if ("engagement-panel-macro-markers-description-chapters".equals(panelIdentifier)) {
segmentsArray = panels.getObject(i)
.getObject("engagementPanelSectionListRenderer").getObject("content")
.getObject("macroMarkersListRenderer").getArray("contents");