From 592e1d6386c5190f82daad82c9a451731763e5ed Mon Sep 17 00:00:00 2001 From: ThetaDev Date: Thu, 3 Nov 2022 12:10:52 +0100 Subject: [PATCH] fix: parsing attributed description with no command runs --- .../extractor/services/youtube/YoutubeParsingHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeParsingHelper.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeParsingHelper.java index d6c9ac33..871d1c8a 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeParsingHelper.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeParsingHelper.java @@ -1029,7 +1029,7 @@ public final class YoutubeParsingHelper { final String content = attributedDescription.getString("content"); final JsonArray commandRuns = attributedDescription.getArray("commandRuns"); - if (content == null || commandRuns.isEmpty()) { + if (content == null) { return null; }