mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Add fix for movies in search results
This commit is contained in:
parent
95bfe7e54c
commit
30724b6924
1 changed files with 5 additions and 0 deletions
|
@ -52,6 +52,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].content.includes? "·"
|
||||
next
|
||||
end
|
||||
|
||||
view_count = metadata[0].content.lchop("Streamed ").split(" ")[0].delete(",").to_i64
|
||||
published = Time.now
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue