mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-12-16 18:08:52 +00:00
Filter paid videos from RSS and channel list
This commit is contained in:
@@ -317,10 +317,10 @@ def extract_items(nodeset, ucid = nil)
|
||||
premium = false
|
||||
end
|
||||
|
||||
if node.xpath_node(%q(.//span[contains(text(), "Get YouTube Premium")]))
|
||||
paid = true
|
||||
else
|
||||
if !premium || node.xpath_node(%q(.//span[contains(text(), "Free episode")]))
|
||||
paid = false
|
||||
else
|
||||
paid = true
|
||||
end
|
||||
|
||||
items << SearchVideo.new(
|
||||
|
||||
Reference in New Issue
Block a user