Add support for streamed videos in search results

This commit is contained in:
Omar Roth 2018-08-06 23:06:06 -05:00
parent 25fc79974c
commit 95bfe7e54c

View file

@ -52,7 +52,7 @@ def search(query, page = 1, search_params = build_search_params(content_type: "v
if metadata.size == 0
next
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
else
# Skip movies