kopia lustrzana https://github.com/TeamNewPipe/NewPipeExtractor
Merge pull request #1020 from TeamNewPipe/fix/yt-subscriber-count
[YouTube] Fix NPE in search when getting channel items without subscriber countpull/1021/head
commit
76eeabac45
|
@ -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(
|
||||
|
|
Ładowanie…
Reference in New Issue