warp-beacon 2.6.73__py3-none-any.whl → 2.6.74__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 +6 -2
- {warp_beacon-2.6.73.dist-info → warp_beacon-2.6.74.dist-info}/METADATA +1 -1
- {warp_beacon-2.6.73.dist-info → warp_beacon-2.6.74.dist-info}/RECORD +8 -8
- {warp_beacon-2.6.73.dist-info → warp_beacon-2.6.74.dist-info}/WHEEL +0 -0
- {warp_beacon-2.6.73.dist-info → warp_beacon-2.6.74.dist-info}/entry_points.txt +0 -0
- {warp_beacon-2.6.73.dist-info → warp_beacon-2.6.74.dist-info}/licenses/LICENSE +0 -0
- {warp_beacon-2.6.73.dist-info → warp_beacon-2.6.74.dist-info}/top_level.txt +0 -0
warp_beacon/__version__.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
__version__ = "2.6.
|
1
|
+
__version__ = "2.6.74"
|
2
2
|
|
@@ -9,6 +9,8 @@ from pyrogram import Client
|
|
9
9
|
from warp_beacon.telegram.types import ReportType
|
10
10
|
|
11
11
|
class ProgressBar(object):
|
12
|
+
MAX_PROGRESS_RENDER_SIZE = 30_000_000
|
13
|
+
|
12
14
|
def __init__(self, client: Client) -> None:
|
13
15
|
self._next_threshold = 20
|
14
16
|
self.client = client
|
@@ -90,6 +92,8 @@ class ProgressBar(object):
|
|
90
92
|
logging.exception(e)
|
91
93
|
|
92
94
|
def render_progress_bar(self, current: int, total: int, chat_id: int | str, message_id: int, operation: str, label: str = "") -> None:
|
95
|
+
if total <= self.MAX_PROGRESS_RENDER_SIZE:
|
96
|
+
return
|
93
97
|
percent = 0
|
94
98
|
if total:
|
95
99
|
percent = round(current * 100 / (total or 1))
|
@@ -111,8 +115,8 @@ class ProgressBar(object):
|
|
111
115
|
self.client.edit_message_caption(chat_id, message_id, text, ParseMode.HTML)
|
112
116
|
)
|
113
117
|
task.add_done_callback(self._on_edit_done)
|
114
|
-
except MessageNotModified:
|
115
|
-
|
118
|
+
#except MessageNotModified:
|
119
|
+
# logging.warning("bad_request_400.MessageNotModified")
|
116
120
|
except Exception as e:
|
117
121
|
logging.warning("An error occurred while setup task to update progress bar")
|
118
122
|
logging.exception(e)
|
@@ -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=_zBdzgEWRCJjgVMp5eZN-lBaVJM3Na6LgycjEI1UwQo,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
|
@@ -47,14 +47,14 @@ warp_beacon/telegram/download_status.py,sha256=JNevX0VQh39fX98fjM9j_nm0Ribj8f3tf
|
|
47
47
|
warp_beacon/telegram/edit_message.py,sha256=jQjXhtumM2r7sVn3VtUnlwLj-H9ZP24r4SM6QaxE8nE,5478
|
48
48
|
warp_beacon/telegram/handlers.py,sha256=uvR6TPHSqdSxigp3wR-ewiE6t3TvVcbVLVcYGwkgD2s,9559
|
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=_UT_NLhKVmzKxid4KbypqXWugOkVzchNd4R99FQuXYc,4869
|
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=1Lq67aRylVJzbwSyvAgjPAGjJZFATkICvAj3TJGuJiM,4635
|
54
54
|
warp_beacon/uploader/__init__.py,sha256=j3qcuKhpchseZLGzSsSiogqe6WdMbkK8d3I-ConhNRs,5687
|
55
|
-
warp_beacon-2.6.
|
56
|
-
warp_beacon-2.6.
|
57
|
-
warp_beacon-2.6.
|
58
|
-
warp_beacon-2.6.
|
59
|
-
warp_beacon-2.6.
|
60
|
-
warp_beacon-2.6.
|
55
|
+
warp_beacon-2.6.74.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
56
|
+
warp_beacon-2.6.74.dist-info/METADATA,sha256=YQso6-F9oUkrKamh9GXz_63xbd4R6ZV1lUqKkd8XduU,22706
|
57
|
+
warp_beacon-2.6.74.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
58
|
+
warp_beacon-2.6.74.dist-info/entry_points.txt,sha256=eSB61Rb89d56WY0O-vEIQwkn18J-4CMrJcLA_R_8h3g,119
|
59
|
+
warp_beacon-2.6.74.dist-info/top_level.txt,sha256=5YQRN46STNg81V_3jdzZ6bftkMxhe1hTPSFvJugDu84,1405
|
60
|
+
warp_beacon-2.6.74.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|