warp-beacon 2.6.48__py3-none-any.whl → 2.6.50__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- __version__ = "2.6.48"
1
+ __version__ = "2.6.50"
2
2
 
@@ -14,7 +14,7 @@ class ProgressBar(object):
14
14
  def make_progress_bar(self, current: int, total: int, length: int = 10) -> str:
15
15
  """
16
16
  Returns string
17
- [████▌────] 55.0%
17
+ [████▌────] 55%
18
18
  length — amount of characters in bar
19
19
  """
20
20
  # fraction of completed job from 0.0 to 1.0
@@ -28,12 +28,12 @@ class ProgressBar(object):
28
28
  # building bar
29
29
  pbar = '█' * filled + half_block + '─' * (length - filled - len(half_block))
30
30
  percent = frac * 100
31
- return f"[{pbar}] {round(percent)}%"
31
+ return f"<b>[{pbar}] {round(percent)}%</b>"
32
32
 
33
33
  def make_emoji_progress_bar(self, current: int, total: int, length: int = 10) -> str:
34
34
  """
35
35
  Returns string:
36
- [🟩🟩🟩⬜️⬜️⬜️⬜️⬜️⬜️⬜️] 30.0%
36
+ [🟩🟩🟩⬜️⬜️⬜️⬜️⬜️⬜️⬜️] 30%
37
37
  length — common number of emoji cells
38
38
  """
39
39
  frac = (current / total) if total else 0
@@ -50,7 +50,7 @@ class ProgressBar(object):
50
50
  pbar = self.make_emoji_progress_bar(percent, 100, 14)
51
51
  logging.info("[%s] Uploaded to Telegram %d%%", label, percent)
52
52
  try:
53
- await self.client.edit_message_caption(chat_id, message_id, f"{pbar}<br><b>Uploading <code>{label}</code></b>", ParseMode.HTML)
53
+ await self.client.edit_message_caption(chat_id, message_id, f"{pbar} <b>Uploading</b> {label}", ParseMode.HTML)
54
54
  except MessageNotModified:
55
55
  logging.warning("bad_request_400.MessageNotModified")
56
56
  except Exception as e:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: warp_beacon
3
- Version: 2.6.48
3
+ Version: 2.6.50
4
4
  Summary: Telegram bot for expanding external media links
5
5
  Home-page: https://github.com/sb0y/warp_beacon
6
6
  Author: Andrey Bagrintsev
@@ -4,7 +4,7 @@ var/warp_beacon/accounts.json,sha256=OsXdncs6h88xrF_AP6_WDCK1waGBn9SR-uYdIeK37GM
4
4
  var/warp_beacon/placeholder.gif,sha256=cE5CGJVaop4Sx21zx6j4AyoHU0ncmvQuS2o6hJfEH88,6064
5
5
  var/warp_beacon/proxies.json,sha256=VnjlQDXumOEq72ZFjbh6IqHS1TEHqn8HPYAZqWCeSIA,95
6
6
  warp_beacon/__init__.py,sha256=_rThNODmz0nDp_n4mWo_HKaNFE5jk1_7cRhHyYaencI,163
7
- warp_beacon/__version__.py,sha256=zs4BuKdJxx9o9qJ7xzVHPij03aEAmL9DN9F1bJlI6hk,24
7
+ warp_beacon/__version__.py,sha256=10yJziM5HibsQDK7LaH5t5_wCFrNjAQKMngdwAzByz8,24
8
8
  warp_beacon/warp_beacon.py,sha256=ED43vNzdjDUJ_9qLCbri0bjWLWEJ69BENGj9i7G6AvM,342
9
9
  warp_beacon/yt_auth.py,sha256=GUTKqYr_tzDC-07Lx_ahWXSag8EyLxXBUnQbDBIkEmk,6022
10
10
  warp_beacon/compress/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -45,13 +45,13 @@ warp_beacon/telegram/caption_shortener.py,sha256=EnguNCF52ne7y4P-iJAbI6K3sqoJqJb
45
45
  warp_beacon/telegram/edit_message.py,sha256=XDGBbQ3c6xzQsqwJ2ufVozgDZh3oWF-JQlk3wk78soo,5556
46
46
  warp_beacon/telegram/handlers.py,sha256=uvR6TPHSqdSxigp3wR-ewiE6t3TvVcbVLVcYGwkgD2s,9559
47
47
  warp_beacon/telegram/placeholder_message.py,sha256=wN9-BRiyrtHG-EvXtZkGJHt2CX71munQ57ITttjt0mw,6400
48
- warp_beacon/telegram/progress_bar.py,sha256=C0tBthrmsvVsFlP2wlfG2XiKtxODguFSWucrY-OAPJ8,2388
48
+ warp_beacon/telegram/progress_bar.py,sha256=KcS-cswDo-sShgOKionqNEpexs-o9e4qqFAtPf45Rlw,2375
49
49
  warp_beacon/telegram/progress_file_reader.py,sha256=e3equyNKlKs764AD-iE9QRsh3YDHTzP78Mx5tdvPPWs,969
50
50
  warp_beacon/telegram/utils.py,sha256=1Lq67aRylVJzbwSyvAgjPAGjJZFATkICvAj3TJGuJiM,4635
51
51
  warp_beacon/uploader/__init__.py,sha256=j3qcuKhpchseZLGzSsSiogqe6WdMbkK8d3I-ConhNRs,5687
52
- warp_beacon-2.6.48.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
53
- warp_beacon-2.6.48.dist-info/METADATA,sha256=AtGtWTBYvxEnprg6f_DwjkfetYR6Cm38JaM8mxOi6UI,22706
54
- warp_beacon-2.6.48.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
55
- warp_beacon-2.6.48.dist-info/entry_points.txt,sha256=eSB61Rb89d56WY0O-vEIQwkn18J-4CMrJcLA_R_8h3g,119
56
- warp_beacon-2.6.48.dist-info/top_level.txt,sha256=pYstFq5qRCQuQc4fOAAc1ti5UwsYldTREx7h2dNplI4,1297
57
- warp_beacon-2.6.48.dist-info/RECORD,,
52
+ warp_beacon-2.6.50.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
53
+ warp_beacon-2.6.50.dist-info/METADATA,sha256=Wovu5bRAbMvMY4GZxnBrqI3o3HN8jCep3Rb3xM1m3-4,22706
54
+ warp_beacon-2.6.50.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
55
+ warp_beacon-2.6.50.dist-info/entry_points.txt,sha256=eSB61Rb89d56WY0O-vEIQwkn18J-4CMrJcLA_R_8h3g,119
56
+ warp_beacon-2.6.50.dist-info/top_level.txt,sha256=pYstFq5qRCQuQc4fOAAc1ti5UwsYldTREx7h2dNplI4,1297
57
+ warp_beacon-2.6.50.dist-info/RECORD,,