mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-22 21:47:26 +00:00
Add fix for movies in search results
This commit is contained in:
parent
0f778cbd9d
commit
870ee11553
@ -47,6 +47,11 @@ def search(query, page = 1, search_params = build_search_params(content_type: "v
|
||||
if metadata.size == 0
|
||||
next
|
||||
elsif metadata.size == 1
|
||||
# Skip movies
|
||||
if metadata[0]["class"].includes? "ytd-movie-renderer"
|
||||
next
|
||||
end
|
||||
|
||||
view_count = metadata[0].content.split(" ")[0].delete(",").to_i64
|
||||
published = Time.now
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user