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);
|
.orElse(null);
|
||||||
|
|
||||||
if (!isNullOrEmpty(thumbnailTimeOverlay)) {
|
if (!isNullOrEmpty(thumbnailTimeOverlay)) {
|
||||||
isShort = thumbnailTimeOverlay.getString("style")
|
isShort = thumbnailTimeOverlay.getString("style", "")
|
||||||
.equalsIgnoreCase("SHORTS")
|
.equalsIgnoreCase("SHORTS")
|
||||||
|| thumbnailTimeOverlay.getObject("icon")
|
|| thumbnailTimeOverlay.getObject("icon")
|
||||||
.getString("iconType")
|
.getString("iconType", "")
|
||||||
.toLowerCase()
|
.toLowerCase()
|
||||||
.contains("shorts");
|
.contains("shorts");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue