youtube fucking did it

This commit is contained in:
Evert Prants 2021-12-14 17:28:14 +02:00
parent 0d954d43cd
commit 4bb425429d
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
"main": "plugin.js", "main": "plugin.js",
"name": "urlreply", "name": "urlreply",
"description": "Fetch titles from web pages, specifically made for IRC", "description": "Fetch titles from web pages, specifically made for IRC",
"version": "1.0.3", "version": "1.0.4",
"tags": ["irc"], "tags": ["irc"],
"dependencies": [], "dependencies": [],
"npmDependencies": ["cheerio@^1.0.0-rc.10"] "npmDependencies": ["cheerio@^1.0.0-rc.10"]

View File

@ -178,10 +178,10 @@ async function getYoutubeFromVideo(
if (vid.statistics && vid.statistics.likeCount != null) { if (vid.statistics && vid.statistics.likeCount != null) {
const likeCount = vid.statistics.likeCount.toString(); const likeCount = vid.statistics.likeCount.toString();
const dislikeCount = vid.statistics.dislikeCount.toString(); // const dislikeCount = vid.statistics.dislikeCount.toString();
keys.push(['field', likeCount, { color: 'limegreen', label: ['▲', 'Likes'], type: 'metric' }]); keys.push(['field', likeCount, { color: 'limegreen', label: ['▲', 'Likes'], type: 'metric' }]);
keys.push(['field', dislikeCount, { color: 'red', label: ['▼', 'Dislikes'], type: 'metric' }]); // keys.push(['field', dislikeCount, { color: 'red', label: ['▼', 'Dislikes'], type: 'metric' }]);
} }
keys.push(['field', vid.snippet.channelTitle, { label: ['By'] }]); keys.push(['field', vid.snippet.channelTitle, { label: ['By'] }]);