yt-trending-scraper
Advanced tools
Comparing version 1.1.2 to 1.1.3
{ | ||
"name": "yt-trending-scraper", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Identifies the currently trending videos on YouTube and returns all trending site information about every video without accessing the YouTube API.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -112,3 +112,3 @@ const requester = require("./TrendingRequester") | ||
video_entry.authorUrl = videoRenderer.longBylineText.runs[0].navigationEndpoint.commandMetadata.webCommandMetadata.url; | ||
video_entry.viewCount = this.calculate_view_count(videoRenderer.viewCountText.simpleText); | ||
video_entry.viewCount = ('viewCountText' in videoRenderer) ? this.calculate_view_count(videoRenderer.viewCountText.simpleText) : 0; | ||
video_entry.publishedText = videoRenderer.publishedTimeText.simpleText; | ||
@@ -115,0 +115,0 @@ video_entry.published = this.calculate_published(video_entry.publishedText, currentTime); |
50228