diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-08-06 23:06:06 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-08-06 23:06:16 -0500 |
| commit | 95bfe7e54c1d35b99582efd09be962819585db77 (patch) | |
| tree | 83639ab4f0ba39524ac9dde3e98893245e6010f6 | |
| parent | 25fc79974ca58537544a5056299bf0ca4828467c (diff) | |
| download | invidious-95bfe7e54c1d35b99582efd09be962819585db77.tar.gz invidious-95bfe7e54c1d35b99582efd09be962819585db77.tar.bz2 invidious-95bfe7e54c1d35b99582efd09be962819585db77.zip | |
Add support for streamed videos in search results
| -rw-r--r-- | src/invidious/search.cr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/search.cr b/src/invidious/search.cr index e608eb83..259b3825 100644 --- a/src/invidious/search.cr +++ b/src/invidious/search.cr @@ -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 |
