[YouTube] Fix error message obtaining when there is none

This commit is contained in:
Stypox
2020-04-09 14:11:42 +02:00
parent 1d7a86e664
commit 7fb867c166

View File

@@ -606,7 +606,7 @@ public class YoutubeStreamExtractor extends StreamExtractor {
try {
return getTextFromObject(initialAjaxJson.getObject(2).getObject("playerResponse").getObject("playabilityStatus")
.getObject("errorScreen").getObject("playerErrorMessageRenderer").getObject("reason"));
} catch (ParsingException e) {
} catch (Exception e) {
return null;
}
}