From c0bda13965f8486388cd7aea780e674d3985a74b Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Fri, 31 Aug 2018 22:53:14 -0500 Subject: [PATCH] Fix view_count_text --- src/invidious.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious.cr b/src/invidious.cr index 3f84cd44..f3e2ad8e 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -2125,7 +2125,7 @@ get "/api/v1/videos/:id" do |env| end json.field "author", rv["author"] json.field "lengthSeconds", rv["length_seconds"].to_i - json.field "viewCountText", rv["short_view_count_text"].rchop(" views") + json.field "viewCountText", rv["short_view_count_text"] end end end