warp-beacon 2.6.56__tar.gz → 2.6.57__tar.gz
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-2.6.56/warp_beacon.egg-info → warp_beacon-2.6.57}/PKG-INFO +1 -1
- warp_beacon-2.6.57/warp_beacon/__version__.py +2 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/telegram/edit_message.py +6 -6
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/telegram/progress_bar.py +8 -8
- {warp_beacon-2.6.56 → warp_beacon-2.6.57/warp_beacon.egg-info}/PKG-INFO +1 -1
- warp_beacon-2.6.56/warp_beacon/__version__.py +0 -2
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/LICENSE +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/MANIFEST.in +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/README.md +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/assets/placeholder.gif +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/etc/.gitignore +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/etc/accounts.json +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/etc/proxies.json +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/etc/warp_beacon.conf +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/etc/warp_beacon.service +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/pyproject.toml +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/setup.cfg +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/setup.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/__init__.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/compress/__init__.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/compress/video.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/jobs/__init__.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/jobs/abstract.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/jobs/download_job.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/jobs/types.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/jobs/upload_job.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/mediainfo/__init__.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/mediainfo/abstract.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/mediainfo/audio.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/mediainfo/silencer.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/mediainfo/video.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/scheduler/__init__.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/scheduler/instagram_human.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/scheduler/scheduler.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/scraper/__init__.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/scraper/abstract.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/scraper/account_selector.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/scraper/exceptions.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/scraper/fail_handler.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/scraper/instagram/__init__.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/scraper/instagram/captcha.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/scraper/instagram/instagram.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/scraper/link_resolver.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/scraper/utils.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/scraper/youtube/__init__.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/scraper/youtube/abstract.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/scraper/youtube/music.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/scraper/youtube/shorts.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/scraper/youtube/youtube.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/storage/__init__.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/storage/mongo.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/telegram/__init__.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/telegram/bot.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/telegram/caption_shortener.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/telegram/download_status.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/telegram/handlers.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/telegram/placeholder_message.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/telegram/progress_file_reader.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/telegram/utils.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/uploader/__init__.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/warp_beacon.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon/yt_auth.py +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon.egg-info/SOURCES.txt +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon.egg-info/dependency_links.txt +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon.egg-info/entry_points.txt +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon.egg-info/requires.txt +0 -0
- {warp_beacon-2.6.56 → warp_beacon-2.6.57}/warp_beacon.egg-info/top_level.txt +0 -0
@@ -106,18 +106,18 @@ class EditMessage(object):
|
|
106
106
|
|
107
107
|
raw_media = None
|
108
108
|
if isinstance(media, types.InputMediaVideo):
|
109
|
-
progress_bar_thumb = ProgressBar(self.client)
|
110
|
-
raw_file_thumb = await self.client.save_file(path=media.thumb
|
109
|
+
#progress_bar_thumb = ProgressBar(self.client)
|
110
|
+
raw_file_thumb = await self.client.save_file(path=media.thumb)
|
111
111
|
raw_media = self.get_wrapped_video(raw_file=raw_file, raw_thumb=raw_file_thumb, media=media, file_name=file_name)
|
112
112
|
elif isinstance(media, types.InputMediaPhoto):
|
113
113
|
raw_media = self.get_wrapped_photo(raw_file=raw_file, media=media)
|
114
114
|
elif isinstance(media, types.InputMediaAudio):
|
115
|
-
progress_bar_thumb = ProgressBar(self.client)
|
116
|
-
raw_file_thumb = await self.client.save_file(path=media.thumb
|
115
|
+
#progress_bar_thumb = ProgressBar(self.client)
|
116
|
+
raw_file_thumb = await self.client.save_file(path=media.thumb)
|
117
117
|
raw_media = self.get_wrapped_audio(raw_file=raw_file, raw_thumb=raw_file_thumb, media=media, file_name=file_name)
|
118
118
|
elif isinstance(media, types.InputMediaAnimation):
|
119
|
-
progress_bar_thumb = ProgressBar(self.client)
|
120
|
-
raw_file_thumb = await self.client.save_file(path=media.thumb
|
119
|
+
#progress_bar_thumb = ProgressBar(self.client)
|
120
|
+
raw_file_thumb = await self.client.save_file(path=media.thumb)
|
121
121
|
raw_media = self.get_wrapped_animation(raw_file=raw_file, raw_thumb=raw_file_thumb, media=media, file_name=file_name)
|
122
122
|
|
123
123
|
peer = await self.client.resolve_peer(chat_id)
|
@@ -61,22 +61,22 @@ class ProgressBar(object):
|
|
61
61
|
logging.exception("Error in edit_message_caption", exc_info=exc)
|
62
62
|
|
63
63
|
async def progress_callback(self, current: int, total: int, chat_id: int | str, message_id: int, operation: str, label: str = "") -> None:
|
64
|
-
if self.complete:
|
65
|
-
return
|
66
64
|
percent = 0
|
67
65
|
if total:
|
68
66
|
percent = round(current * 100 / (total or 1))
|
67
|
+
if percent >= 100:
|
68
|
+
return
|
69
69
|
if total == 0 or percent >= self._next_threshold:
|
70
70
|
#pbar = self.make_progress_bar(percent, 100, 25)
|
71
71
|
pbar = self.make_emoji_progress_bar(percent, 14)
|
72
|
-
logging.info("[
|
72
|
+
logging.info("[Progress bar]: Operation: %s %d%%", operation, percent)
|
73
73
|
try:
|
74
|
-
await self.client.edit_message_caption(chat_id, message_id, f"{pbar} <b>{operation}</b> {label}", ParseMode.HTML)
|
74
|
+
#await self.client.edit_message_caption(chat_id, message_id, f"{pbar} <b>{operation}</b> {label}", ParseMode.HTML)
|
75
75
|
# we don't need to wait completion, waste of time and resources
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
76
|
+
task = self.client.loop.create_task(
|
77
|
+
self.client.edit_message_caption(chat_id, message_id, f"{pbar} <b>{operation}</b> {label}", ParseMode.HTML)
|
78
|
+
)
|
79
|
+
task.add_done_callback(self._on_edit_done)
|
80
80
|
except MessageNotModified:
|
81
81
|
logging.warning("bad_request_400.MessageNotModified")
|
82
82
|
except Exception as e:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|