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
1 changed files with 1 additions and 2 deletions

View File

@ -1272,8 +1272,7 @@ 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");
if (panelIdentifier.equals( if ("engagement-panel-macro-markers-description-chapters".equals(panelIdentifier)) {
"engagement-panel-macro-markers-description-chapters")) {
segmentsArray = panels.getObject(i) segmentsArray = panels.getObject(i)
.getObject("engagementPanelSectionListRenderer").getObject("content") .getObject("engagementPanelSectionListRenderer").getObject("content")
.getObject("macroMarkersListRenderer").getArray("contents"); .getObject("macroMarkersListRenderer").getArray("contents");