mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-29 00:10:35 +05:30
Fix null pointer exception
This commit is contained in:
parent
3fdc0e72cc
commit
b1a899fd47
@ -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…
x
Reference in New Issue
Block a user