Comma separate subscribers and video count in search results

This commit is contained in:
PrestonN 2018-10-16 11:16:51 -04:00
parent a6a64aa331
commit c31ad46c82
1 changed files with 3 additions and 3 deletions

View File

@ -140,7 +140,7 @@ function displayVideo(videoData, listType = '') {
} else {
video.duration = minutes + ":" + seconds;
}
video.publishedDate = videoData.publishedText;
}
@ -205,8 +205,8 @@ function displayChannel(channel) {
channelData.thumbnail = channel.authorThumbnails[4].url;
channelData.channelName = channel.author;
channelData.description = channel.description;
channelData.subscriberCount = channel.subCount;
channelData.videoCount = channel.videoCount;
channelData.subscriberCount = channel.subCount.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
channelData.videoCount = channel.videoCount.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
channelData.isVideo = false;
searchView.videoList = searchView.videoList.concat(channelData);