urlinfo:imdb: add thousand separator to rating count display

This commit is contained in:
ducklet 2020-11-10 21:42:20 +01:00
parent a8785ef961
commit a96704e1fa

View file

@ -175,7 +175,7 @@ async def handle(message: Message, url, info):
if ex.duration_s:
details.append(f"{pretty_duration(ex.duration_s)}")
if ex.rating_count:
details.append(f"⭐️ {ex.rating_value:_.01f} 10 (👤 {ex.rating_count})")
details.append(f"⭐️ {ex.rating_value:_.01f} 10 (👤 {ex.rating_count:_})")
details.append(f"🏷 {' '.join(ex.genres[:3])}")
lines = [
f"<b>{ex.title}</b> (<b>{ex.published:%Y}</b>)",