Ignore tile
This commit is contained in:
1 parent
5f5b0bb8fd
commit
f505d01785
1 file changed
+9
-1
@@ -1253,12 +1253,20 @@ namespace Innertube
|
|||||||
' A tileRenderer can be without a contentType, such as a
|
' A tileRenderer can be without a contentType, such as a
|
||||||
' button that says "Open YouTube Kids" or similar CTAs
|
' button that says "Open YouTube Kids" or similar CTAs
|
||||||
if contentType = ""
|
if contentType = ""
|
||||||
eventTrigger = ValidString(ObjectUtils.Dig(nodeData, ["onSelectCommand", "authDeterminedCommand", "authenticatedCommand", "authRequiredCommand", "identityActionContext", "eventTrigger"]))
|
|
||||||
' "Open YouTube Kids" tileRenderer
|
' "Open YouTube Kids" tileRenderer
|
||||||
|
eventTrigger = ValidString(ObjectUtils.Dig(nodeData, ["onSelectCommand", "authDeterminedCommand", "authenticatedCommand", "authRequiredCommand", "identityActionContext", "eventTrigger"]))
|
||||||
if eventTrigger = "ACCOUNT_EVENT_TRIGGER_YTK_WORMHOLE"
|
if eventTrigger = "ACCOUNT_EVENT_TRIGGER_YTK_WORMHOLE"
|
||||||
LogWarnNoTelemetry("Skipping tileRenderer without contentType for YouTube Kids")
|
LogWarnNoTelemetry("Skipping tileRenderer without contentType for YouTube Kids")
|
||||||
return invalid
|
return invalid
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
' "More news" tileRenderer
|
||||||
|
browseId = ValidString(ObjectUtils.Dig(nodeData, ["onSelectCommand", "browseEndpoint", "browseId"]))
|
||||||
|
if browseId = "FEtopics_news"
|
||||||
|
LogWarnNoTelemetry("Skipping tileRenderer without contentType for FEtopics_news")
|
||||||
|
return invalid
|
||||||
|
end if
|
||||||
|
|
||||||
Warning("TileRenderer without contentType", nodeData, context)
|
Warning("TileRenderer without contentType", nodeData, context)
|
||||||
return invalid
|
return invalid
|
||||||
end if
|
end if
|
||||||
|
|||||||
Reference in new issue
Block a user