From ba876be76dbc0ee811103e756c32b98410df5306 Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Wed, 29 Oct 2025 20:21:13 -0400 Subject: [PATCH] Filter out promo tiles --- CHANGELOG.md | 4 ++++ .../src/components/Services/Innertube/NodesParser.bs | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 05c23d44..e4f22d74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +- Nothing worth mentioning yet. + ## [0.43.2] - 2025-10-29 ### Fixed diff --git a/playlet-lib/src/components/Services/Innertube/NodesParser.bs b/playlet-lib/src/components/Services/Innertube/NodesParser.bs index 200a135c..342fa75a 100644 --- a/playlet-lib/src/components/Services/Innertube/NodesParser.bs +++ b/playlet-lib/src/components/Services/Innertube/NodesParser.bs @@ -1368,6 +1368,13 @@ namespace Innertube return invalid end if + ' YouTube promo (purchase premium, etc) tileRenderer + thumbailUrl = ValidString(ObjectUtils.Dig(nodeData, ["header", "tileHeaderRenderer", "thumbnail", "thumbnails", 0, "url"])) + if thumbailUrl.InStr("gstatic.com/youtube/img/promos") <> -1 + LogWarnNoTelemetry("Skipping tileRenderer without contentType for YouTube promo") + return invalid + end if + ' "More news" tileRenderer browseId = ValidString(ObjectUtils.Dig(nodeData, ["onSelectCommand", "browseEndpoint", "browseId"])) if browseId = "FEtopics_news"