mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Don't discard search results with no metadata
This commit is contained in:
parent
687013c1b9
commit
abb15b82e6
1 changed files with 0 additions and 3 deletions
|
@ -302,9 +302,6 @@ def extract_items(nodeset, ucid = nil)
|
||||||
id = id.lchop("/watch?v=")
|
id = id.lchop("/watch?v=")
|
||||||
|
|
||||||
metadata = node.xpath_nodes(%q(.//div[contains(@class,"yt-lockup-meta")]/ul/li))
|
metadata = node.xpath_nodes(%q(.//div[contains(@class,"yt-lockup-meta")]/ul/li))
|
||||||
if metadata.empty?
|
|
||||||
next
|
|
||||||
end
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
published = decode_date(metadata[0].content.lchop("Streamed ").lchop("Starts "))
|
published = decode_date(metadata[0].content.lchop("Streamed ").lchop("Starts "))
|
||||||
|
|
Loading…
Reference in a new issue