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:
parent
0d6aebce25
commit
5c8fbeb166
|
@ -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");
|
||||||
|
|
Loading…
Reference in New Issue