Skip to content

armgit / my-yt

Public Imported from GitHub
0

A clean and minimal youtube frontend, without all the ads and whistles

JavaScript

fix: exclude members-only video

Christian Fei5fd9a804153d
diff --git a/lib/youtube.js b/lib/youtube.js
index e8c4140..f413d47 100644
--- a/lib/youtube.js
+++ b/lib/youtube.js
@@ -119,6 +119,7 @@ export async function getVideosFor(channelName) {
function toInternalVideo(v) {
if (!v || !v.richItemRenderer) return
const data = v.richItemRenderer.content.videoRenderer
+ if (!data.viewCountText?.simpleText) return
return {
channelName,
title: data.title?.runs[0].text,