mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Filter paid videos from RSS and channel list
This commit is contained in:
parent
c2c224b16f
commit
0832fa9bdb
2 changed files with 5 additions and 3 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue