Fix null pointer exception

This commit is contained in:
chowder 2022-10-31 11:05:11 +00:00
parent 3fdc0e72cc
commit b1a899fd47
1 changed files with 2 additions and 2 deletions

View File

@ -350,10 +350,10 @@ public class YoutubeStreamInfoItemExtractor implements StreamInfoItemExtractor {
.orElse(null);
if (!isNullOrEmpty(thumbnailTimeOverlay)) {
isShort = thumbnailTimeOverlay.getString("style")
isShort = thumbnailTimeOverlay.getString("style", "")
.equalsIgnoreCase("SHORTS")
|| thumbnailTimeOverlay.getObject("icon")
.getString("iconType")
.getString("iconType", "")
.toLowerCase()
.contains("shorts");
}