Skip to content
12 changes: 11 additions & 1 deletion src/renderer/helpers/api/local.js
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,17 @@ export function parseLocalChannelHeader(channel, onlyIdNameThumbnail = false) {
* @param {string} channelName
*/
export function parseLocalChannelVideos(videos, channelId, channelName) {
return videos.map((video) => parseLocalListVideo(video, channelId, channelName))
const parsedVideos = []

for (const video of videos) {
// `BADGE_STYLE_TYPE_MEMBERS_ONLY` used for both `members only` and `members first` videos
if (video.is(YTNodes.Video) && video.badges.some(badge => badge.style === 'BADGE_STYLE_TYPE_MEMBERS_ONLY')) {
continue
}
parsedVideos.push(parseLocalListVideo(video, channelId, channelName))
}

return parsedVideos
}

/**
Expand Down