Fix null pointer exception
This commit is contained in:
parent
3fdc0e72cc
commit
b1a899fd47
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue