You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Hi there! I got this error on my debugger TypeError: Cannot read property 'simpleText' of undefined from searching some channel.
Channel is hiding the information about subscribers
I think you need add try catch for this function. Thank you
constconvertSubs=(channel: any): number=>{constcount=channel.subscriberCountText.simpleText.split(' ').shift();// If there's no K, M or B at the end.if(!isNaN(+count))return+count;constchar=count.slice(-1);letslicedCount=Number(count.slice(0,-1));switch(char.toLowerCase()){case'k':
slicedCount*=1000;break;case'k':
slicedCount*=1e6;break;case'b':
slicedCount*=1e9;break;}return~~slicedCount;};
To Reproduce
Steps to reproduce the behavior:
Search query is UCadOPMAkX21lbuA1yj0JfCQ
See error
Expected behavior
It should return the channel's information with subscriberCount is zero or just '-'
Screenshots
Versions:
Package: 2.1.14
Node: 10.21.0
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
Hi there! I got this error on my debugger
TypeError: Cannot read property 'simpleText' of undefined
from searching some channel.Channel is hiding the information about subscribers
I think you need add try catch for this function. Thank you
To Reproduce
Steps to reproduce the behavior:
UCadOPMAkX21lbuA1yj0JfCQ
Expected behavior
It should return the channel's information with
subscriberCount
is zero or just '-'Screenshots
Versions:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: