You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java
+15-5Lines changed: 15 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -122,7 +122,9 @@ public String getName() throws ParsingException {
122
122
123
123
try {
124
124
title = getTextFromObject(getVideoPrimaryInfoRenderer().getObject("title"));
125
-
} catch (ParsingExceptionignored) { }
125
+
} catch (ParsingExceptionignored) {
126
+
// age-restricted videos cause a ParsingException here
127
+
}
126
128
127
129
if (isNullOrEmpty(title)) {
128
130
title = playerResponse.getObject("videoDetails").getString("title");
@@ -206,7 +208,9 @@ public Description getDescription() {
0 commit comments