Fix view_count_text

pull/186/head
Omar Roth 6 years ago
parent 3b1df75061
commit c0bda13965

@ -2125,7 +2125,7 @@ get "/api/v1/videos/:id" do |env|
end end
json.field "author", rv["author"] json.field "author", rv["author"]
json.field "lengthSeconds", rv["length_seconds"].to_i 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 end
end end

Loading…
Cancel
Save