mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Add fix for videos without metadata
This commit is contained in:
parent
ec399f5f7b
commit
bce01cba32
1 changed files with 3 additions and 1 deletions
|
@ -328,7 +328,9 @@ def extract_videos(nodeset, ucid = nil)
|
|||
end
|
||||
|
||||
metadata = node.xpath_nodes(%q(.//div[contains(@class,"yt-lockup-meta")]/ul/li))
|
||||
if metadata.size == 1
|
||||
if metadata.size == 0
|
||||
next
|
||||
elsif metadata.size == 1
|
||||
# Scheduled livestream
|
||||
if metadata[0].content.starts_with? "Starts"
|
||||
view_count = 0_i64
|
||||
|
|
Loading…
Reference in a new issue