summaryrefslogtreecommitdiffstats
path: root/src/invidious.cr
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-08-31 22:53:14 -0500
committerOmar Roth <omarroth@hotmail.com>2018-08-31 22:53:41 -0500
commitc0bda13965f8486388cd7aea780e674d3985a74b (patch)
treeb6f5f13ba73cd352541ae6d959a24c149b1e9894 /src/invidious.cr
parent3b1df75061075c5de7bb958d7edec9945e1a99d0 (diff)
downloadinvidious-c0bda13965f8486388cd7aea780e674d3985a74b.tar.gz
invidious-c0bda13965f8486388cd7aea780e674d3985a74b.tar.bz2
invidious-c0bda13965f8486388cd7aea780e674d3985a74b.zip
Fix view_count_text
Diffstat (limited to 'src/invidious.cr')
-rw-r--r--src/invidious.cr2
1 files changed, 1 insertions, 1 deletions
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