Skip to content

Commit

Permalink
Update play.py
Browse files Browse the repository at this point in the history
  • Loading branch information
doraemon890 authored May 13, 2024
1 parent f8f22cd commit 802da04
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions ANNIEMUSIC/utils/inline/play.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,25 @@ def stream_markup_timer(_, chat_id, played, dur):
percentage = (played_sec / duration_sec) * 100
umm = math.floor(percentage)
if 0 < umm <= 10:
bar = "โ—‰โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”"
bar = "โœงโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”"
elif 10 < umm < 20:
bar = "โ€”โ—‰โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”"
bar = "โ”โ”โœงโ”โ”โ”โ”โ”โ”โ”โ”"
elif 20 <= umm < 30:
bar = "โ€”โ€”โ—‰โ€”โ€”โ€”โ€”โ€”โ€”โ€”"
bar = "โ”โ”โ”โ”โœงโ”โ”โ”โ”โ”โ”"
elif 30 <= umm < 40:
bar = "โ€”โ€”โ€”โ—‰โ€”โ€”โ€”โ€”โ€”โ€”"
bar = "โ”โ”โ”โ”โ”โœงโ”โ”โ”โ”โ”"
elif 40 <= umm < 50:
bar = "โ€”โ€”โ€”โ€”โ—‰โ€”โ€”โ€”โ€”โ€”"
bar = "โ”โ”โ”โ”โ”โ”โœงโ”โ”โ”โ”"
elif 50 <= umm < 60:
bar = "โ€”โ€”โ€”โ€”โ€”โ—‰โ€”โ€”โ€”โ€”"
bar = "โ”โ”โ”โ”โ”โ”โ”โœงโ”โ”โ”"
elif 60 <= umm < 70:
bar = "โ€”โ€”โ€”โ€”โ€”โ€”โ—‰โ€”โ€”โ€”"
bar = "โ”โ”โ”โ”โ”โ”โ”โ”โœงโ”โ”"
elif 70 <= umm < 80:
bar = "โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ—‰โ€”โ€”"
bar = "โ”โ”โ”โ”โ”โ”โ”โ”โœงโ”โ”"
elif 80 <= umm < 95:
bar = "โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ—‰โ€”"
bar = "โ”โ”โ”โ”โ”โ”โ”โ”โ”โœงโ”"
else:
bar = "โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ—‰"
bar = "โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โœง"
buttons = [

[
Expand Down Expand Up @@ -77,25 +77,25 @@ def telegram_markup_timer(_, chat_id, played, dur):
percentage = (played_sec / duration_sec) * 100
umm = math.floor(percentage)
if 0 < umm <= 10:
bar = "โ—‰โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”"
bar = "โœงโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”"
elif 10 < umm < 20:
bar = "โ€”โ—‰โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”"
bar = "โ”โ”โœงโ”โ”โ”โ”โ”โ”โ”โ”"
elif 20 <= umm < 30:
bar = "โ€”โ€”โ—‰โ€”โ€”โ€”โ€”โ€”โ€”โ€”"
bar = "โ”โ”โ”โ”โœงโ”โ”โ”โ”โ”โ”"
elif 30 <= umm < 40:
bar = "โ€”โ€”โ€”โ—‰โ€”โ€”โ€”โ€”โ€”โ€”"
bar = "โ”โ”โ”โ”โ”โœงโ”โ”โ”โ”โ”"
elif 40 <= umm < 50:
bar = "โ€”โ€”โ€”โ€”โ—‰โ€”โ€”โ€”โ€”โ€”"
bar = "โ”โ”โ”โ”โ”โ”โœงโ”โ”โ”โ”"
elif 50 <= umm < 60:
bar = "โ€”โ€”โ€”โ€”โ€”โ—‰โ€”โ€”โ€”โ€”"
bar = "โ”โ”โ”โ”โ”โ”โ”โœงโ”โ”โ”"
elif 60 <= umm < 70:
bar = "โ€”โ€”โ€”โ€”โ€”โ€”โ—‰โ€”โ€”โ€”"
bar = "โ”โ”โ”โ”โ”โ”โ”โ”โœงโ”โ”"
elif 70 <= umm < 80:
bar = "โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ—‰โ€”โ€”"
bar = "โ”โ”โ”โ”โ”โ”โ”โ”โœงโ”โ”"
elif 80 <= umm < 95:
bar = "โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ—‰โ€”"
bar = "โ”โ”โ”โ”โ”โ”โ”โ”โ”โœงโ”"
else:
bar = "โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ—‰"
bar = "โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โœง"
buttons = [

[
Expand Down

0 comments on commit 802da04

Please sign in to comment.