[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
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23
1 changed files with 1 additions and 1 deletions

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;
}
}