forked from midou/invidious
Add view count to video items
This commit is contained in:
@@ -189,7 +189,9 @@ def number_to_short_text(number)
|
||||
|
||||
text = text.rchop(".0")
|
||||
|
||||
if number / 1000000 != 0
|
||||
if number / 1_000_000_000 != 0
|
||||
text += "B"
|
||||
elsif number / 1_000_000 != 0
|
||||
text += "M"
|
||||
elsif number / 1000 != 0
|
||||
text += "K"
|
||||
|
||||
Reference in New Issue
Block a user