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