Skip to content

Commit 5b93db0

Browse files
authored
Merge pull request #152 from yausername/fixMissingAuthorName
fix empty author name
2 parents 560c648 + 4effd0b commit 5b93db0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeCommentsInfoItemExtractor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public String getName() throws ParsingException {
3838
try {
3939
return YoutubeCommentsExtractor.getYoutubeText(JsonUtils.getObject(json, "authorText"));
4040
} catch (Exception e) {
41-
throw new ParsingException("Could not get author name", e);
41+
return "";
4242
}
4343
}
4444

@@ -95,7 +95,7 @@ public String getAuthorName() throws ParsingException {
9595
try {
9696
return YoutubeCommentsExtractor.getYoutubeText(JsonUtils.getObject(json, "authorText"));
9797
} catch (Exception e) {
98-
throw new ParsingException("Could not get author name", e);
98+
return "";
9999
}
100100
}
101101

@@ -104,7 +104,7 @@ public String getAuthorEndpoint() throws ParsingException {
104104
try {
105105
return "https://youtube.com/channel/" + JsonUtils.getString(json, "authorEndpoint.browseEndpoint.browseId");
106106
} catch (Exception e) {
107-
throw new ParsingException("Could not get author endpoint", e);
107+
return "";
108108
}
109109
}
110110

0 commit comments

Comments
 (0)