warp-beacon 2.7.8__py3-none-any.whl → 2.7.10__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.
- warp_beacon/__version__.py +1 -1
- warp_beacon/telegram/progress_bar.py +7 -4
- {warp_beacon-2.7.8.dist-info → warp_beacon-2.7.10.dist-info}/METADATA +1 -1
- {warp_beacon-2.7.8.dist-info → warp_beacon-2.7.10.dist-info}/RECORD +8 -8
- {warp_beacon-2.7.8.dist-info → warp_beacon-2.7.10.dist-info}/WHEEL +0 -0
- {warp_beacon-2.7.8.dist-info → warp_beacon-2.7.10.dist-info}/entry_points.txt +0 -0
- {warp_beacon-2.7.8.dist-info → warp_beacon-2.7.10.dist-info}/licenses/LICENSE +0 -0
- {warp_beacon-2.7.8.dist-info → warp_beacon-2.7.10.dist-info}/top_level.txt +0 -0
warp_beacon/__version__.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
__version__ = "2.7.
|
1
|
+
__version__ = "2.7.10"
|
2
2
|
|
@@ -100,23 +100,26 @@ class ProgressBar(object):
|
|
100
100
|
percent = round(current * 100 / (total or 1))
|
101
101
|
if percent > 100:
|
102
102
|
return
|
103
|
+
if percent >= 100 and operation == "Uploading":
|
104
|
+
return
|
103
105
|
if total == 0 or percent == 0 or percent >= self._next_threshold:
|
104
106
|
#pbar = self.make_progress_bar(percent, 100, 25)
|
105
107
|
pbar = self.make_emoji_progress_bar(percent, 10)
|
106
108
|
logging.info("[Progress bar]: Operation: %s %d%%", operation, percent)
|
107
109
|
try:
|
110
|
+
fomatted_size = self.format_size_si(total)
|
108
111
|
text = f"{pbar}\n{operation}"
|
109
112
|
if label:
|
110
113
|
text += f"\n<code>{label}</code>"
|
111
114
|
if total:
|
112
|
-
text += f" <b>{
|
115
|
+
text += f" <b>{fomatted_size}</b>"
|
113
116
|
|
114
117
|
# avoid duplicate render
|
115
|
-
if text == f"{chat_id}:{message_id}:{
|
118
|
+
if text == f"{chat_id}:{message_id}:{operation}:{label}:{fomatted_size}:{percent}":
|
116
119
|
return
|
117
120
|
|
118
121
|
await self.client.edit_message_caption(chat_id, message_id, text, ParseMode.HTML)
|
119
|
-
self.rendered_text = f"{chat_id}:{message_id}:{
|
122
|
+
self.rendered_text = f"{chat_id}:{message_id}:{operation}:{label}:{fomatted_size}:{percent}"
|
120
123
|
#task = self.client.loop.create_task(
|
121
124
|
# self.client.edit_message_caption(chat_id, message_id, text, ParseMode.HTML)
|
122
125
|
#)
|
@@ -127,7 +130,7 @@ class ProgressBar(object):
|
|
127
130
|
logging.warning("An error occurred while setup task to update progress bar")
|
128
131
|
logging.exception(e)
|
129
132
|
if total > 0 and percent != 0:
|
130
|
-
self._next_threshold +=
|
133
|
+
self._next_threshold += 15
|
131
134
|
|
132
135
|
@staticmethod
|
133
136
|
def make_hash(chat_id: str | int, message_id: int, algorithm: str = 'sha256') -> str:
|
@@ -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=
|
7
|
+
warp_beacon/__version__.py,sha256=zbwrBWsm8-2p3TRaPY6g_QIfJekI6i1P8FGNjWhziq8,24
|
8
8
|
warp_beacon/warp_beacon.py,sha256=ADCR30uGXIsDrt9WoiI9Ghu2QtWs0qZIK6x3pQKM_B4,1109
|
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
|
@@ -47,14 +47,14 @@ warp_beacon/telegram/download_status.py,sha256=N-Qg13LVcPskyQNKG1lw50K1lhFtXu003
|
|
47
47
|
warp_beacon/telegram/edit_message.py,sha256=6DX8eJV70MG_b79WbuJG55qLBs66boElzYdCr8zpMeI,5380
|
48
48
|
warp_beacon/telegram/handlers.py,sha256=PaO90370v-S90nwr4PYMzrlHRFBU0VBO6YkqDqTbnjw,9634
|
49
49
|
warp_beacon/telegram/placeholder_message.py,sha256=wN9-BRiyrtHG-EvXtZkGJHt2CX71munQ57ITttjt0mw,6400
|
50
|
-
warp_beacon/telegram/progress_bar.py,sha256=
|
50
|
+
warp_beacon/telegram/progress_bar.py,sha256=_REQdzRx3lne8TFb6nfKtA-BPib9B652y0oyKa-mfxM,5169
|
51
51
|
warp_beacon/telegram/progress_file_reader.py,sha256=e3equyNKlKs764AD-iE9QRsh3YDHTzP78Mx5tdvPPWs,969
|
52
52
|
warp_beacon/telegram/types.py,sha256=Kvdng6uCF1HRoqQgGW1ZYYPJoVuYkFb-LDvMBbW5Hjk,89
|
53
53
|
warp_beacon/telegram/utils.py,sha256=S1N_JbHM_ExiM5tS0CeYKWIlvaJMlyq85TQNbK_GVds,5029
|
54
54
|
warp_beacon/uploader/__init__.py,sha256=ewvR60k9osJxw_kb5U-TlZkCGR_574biq3w_aR1tjIU,5689
|
55
|
-
warp_beacon-2.7.
|
56
|
-
warp_beacon-2.7.
|
57
|
-
warp_beacon-2.7.
|
58
|
-
warp_beacon-2.7.
|
59
|
-
warp_beacon-2.7.
|
60
|
-
warp_beacon-2.7.
|
55
|
+
warp_beacon-2.7.10.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
56
|
+
warp_beacon-2.7.10.dist-info/METADATA,sha256=HOkF4Lis09tYvjcO7nUQ9oUU8j7A9NRy4LHp9m_BsrY,23215
|
57
|
+
warp_beacon-2.7.10.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
|
58
|
+
warp_beacon-2.7.10.dist-info/entry_points.txt,sha256=eSB61Rb89d56WY0O-vEIQwkn18J-4CMrJcLA_R_8h3g,119
|
59
|
+
warp_beacon-2.7.10.dist-info/top_level.txt,sha256=5YQRN46STNg81V_3jdzZ6bftkMxhe1hTPSFvJugDu84,1405
|
60
|
+
warp_beacon-2.7.10.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|