mirror of
https://github.com/TeamNewPipe/NewPipeExtractor
synced 2025-09-01 23:05:23 +00:00
[YouTube] Fix NPE in search when getting channel items without subscriber count
This commit is contained in:
@@ -96,8 +96,12 @@ public class YoutubeChannelInfoItemExtractor implements ChannelInfoItemExtractor
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (withHandle) {
|
if (withHandle) {
|
||||||
return Utils.mixedNumberWordToLong(getTextFromObject(
|
if (channelInfoItem.has("videoCountText")) {
|
||||||
channelInfoItem.getObject("videoCountText")));
|
return Utils.mixedNumberWordToLong(getTextFromObject(
|
||||||
|
channelInfoItem.getObject("videoCountText")));
|
||||||
|
} else {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return Utils.mixedNumberWordToLong(getTextFromObject(
|
return Utils.mixedNumberWordToLong(getTextFromObject(
|
||||||
|
Reference in New Issue
Block a user