mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Add support for streamed videos in search results
This commit is contained in:
parent
25fc79974c
commit
95bfe7e54c
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ def search(query, page = 1, search_params = build_search_params(content_type: "v
|
||||||
if metadata.size == 0
|
if metadata.size == 0
|
||||||
next
|
next
|
||||||
elsif metadata.size == 1
|
elsif metadata.size == 1
|
||||||
view_count = metadata[0].content.split(" ")[0].delete(",").to_i64
|
view_count = metadata[0].content.lchop("Streamed ").split(" ")[0].delete(",").to_i64
|
||||||
published = Time.now
|
published = Time.now
|
||||||
else
|
else
|
||||||
# Skip movies
|
# Skip movies
|
||||||
|
|
Loading…
Reference in a new issue