warp-beacon 2.7.10__tar.gz → 2.7.12__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.7.10/warp_beacon.egg-info → warp_beacon-2.7.12}/PKG-INFO +1 -1
- warp_beacon-2.7.12/warp_beacon/__version__.py +2 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/scraper/instagram/instagram.py +1 -1
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/scraper/youtube/abstract.py +2 -2
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/telegram/progress_bar.py +8 -13
- {warp_beacon-2.7.10 → warp_beacon-2.7.12/warp_beacon.egg-info}/PKG-INFO +1 -1
- warp_beacon-2.7.10/warp_beacon/__version__.py +0 -2
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/LICENSE +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/MANIFEST.in +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/README.md +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/assets/cc-group-black.png +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/assets/placeholder.gif +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/etc/.gitignore +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/etc/accounts.json +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/etc/proxies.json +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/etc/warp_beacon.conf +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/etc/warp_beacon.service +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/pyproject.toml +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/setup.cfg +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/setup.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/__init__.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/compress/__init__.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/compress/video.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/jobs/__init__.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/jobs/abstract.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/jobs/download_job.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/jobs/types.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/jobs/upload_job.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/mediainfo/__init__.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/mediainfo/abstract.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/mediainfo/audio.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/mediainfo/silencer.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/mediainfo/video.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/scheduler/__init__.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/scheduler/instagram_human.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/scheduler/scheduler.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/scraper/__init__.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/scraper/abstract.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/scraper/account_selector.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/scraper/exceptions.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/scraper/fail_handler.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/scraper/instagram/__init__.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/scraper/instagram/captcha.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/scraper/instagram/wb_instagrapi.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/scraper/link_resolver.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/scraper/utils.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/scraper/youtube/__init__.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/scraper/youtube/music.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/scraper/youtube/shorts.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/scraper/youtube/youtube.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/storage/__init__.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/storage/mongo.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/telegram/__init__.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/telegram/bot.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/telegram/caption_shortener.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/telegram/download_status.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/telegram/edit_message.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/telegram/handlers.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/telegram/placeholder_message.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/telegram/progress_file_reader.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/telegram/types.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/telegram/utils.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/uploader/__init__.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/warp_beacon.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon/yt_auth.py +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon.egg-info/SOURCES.txt +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon.egg-info/dependency_links.txt +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon.egg-info/entry_points.txt +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon.egg-info/requires.txt +0 -0
- {warp_beacon-2.7.10 → warp_beacon-2.7.12}/warp_beacon.egg-info/top_level.txt +0 -0
@@ -475,7 +475,7 @@ class InstagramScraper(ScraperAbstract):
|
|
475
475
|
"report_type": ReportType.PROGRESS
|
476
476
|
}
|
477
477
|
self.status_pipe.send(msg)
|
478
|
-
self._download_progress_threshold +=
|
478
|
+
self._download_progress_threshold += 20
|
479
479
|
|
480
480
|
def report_seen(self, items: dict) -> None:
|
481
481
|
try:
|
@@ -245,7 +245,7 @@ class YoutubeAbstract(ScraperAbstract):
|
|
245
245
|
self.status_pipe.send(msg)
|
246
246
|
logging.debug("[Download worker] Downloaded %d%%", percentage_of_completion)
|
247
247
|
if total_size > 0:
|
248
|
-
self._download_progress_threshold +=
|
248
|
+
self._download_progress_threshold += 20
|
249
249
|
|
250
250
|
def build_proxies(self, proxy_dsn: str) -> dict:
|
251
251
|
if not proxy_dsn:
|
@@ -310,7 +310,7 @@ class YoutubeAbstract(ScraperAbstract):
|
|
310
310
|
self.status_pipe.send(msg)
|
311
311
|
logging.debug("[Download worker][yt_dlp] Downloaded %d%%", percentage_of_completion)
|
312
312
|
if total_size > 0:
|
313
|
-
self._download_progress_threshold +=
|
313
|
+
self._download_progress_threshold += 20
|
314
314
|
|
315
315
|
def build_yt_dlp(self, timeout: int = 60) -> yt_dlp.YoutubeDL:
|
316
316
|
auth_data = {}
|
@@ -98,39 +98,34 @@ class ProgressBar(object):
|
|
98
98
|
percent = 0
|
99
99
|
if total:
|
100
100
|
percent = round(current * 100 / (total or 1))
|
101
|
-
if percent
|
102
|
-
return
|
103
|
-
if percent >= 100 and operation == "Uploading":
|
101
|
+
if percent >= 100:
|
104
102
|
return
|
105
103
|
if total == 0 or percent == 0 or percent >= self._next_threshold:
|
106
104
|
#pbar = self.make_progress_bar(percent, 100, 25)
|
107
105
|
pbar = self.make_emoji_progress_bar(percent, 10)
|
108
106
|
logging.info("[Progress bar]: Operation: %s %d%%", operation, percent)
|
109
107
|
try:
|
110
|
-
|
108
|
+
formatted_size = self.format_size_si(total)
|
111
109
|
text = f"{pbar}\n{operation}"
|
112
110
|
if label:
|
113
111
|
text += f"\n<code>{label}</code>"
|
114
112
|
if total:
|
115
|
-
text += f" <b>{
|
113
|
+
text += f" <b>{formatted_size}</b>"
|
116
114
|
|
117
115
|
# avoid duplicate render
|
118
|
-
if text == f"{chat_id}:{message_id}:{operation}:{label}:{
|
116
|
+
if text == f"{chat_id}:{message_id}:{operation}:{label}:{formatted_size}:{percent}":
|
119
117
|
return
|
120
118
|
|
121
|
-
await self.client.edit_message_caption(chat_id, message_id, text, ParseMode.HTML)
|
122
|
-
|
123
|
-
|
124
|
-
# self.client.edit_message_caption(chat_id, message_id, text, ParseMode.HTML)
|
125
|
-
#)
|
126
|
-
#task.add_done_callback(self._on_edit_done)
|
119
|
+
message = await self.client.edit_message_caption(chat_id, message_id, text, ParseMode.HTML)
|
120
|
+
logging.debug("Updated caption for message id '%d'", message.id)
|
121
|
+
self.rendered_text = f"{chat_id}:{message_id}:{operation}:{label}:{formatted_size}:{percent}"
|
127
122
|
except MessageNotModified:
|
128
123
|
logging.warning("bad_request_400.MessageNotModified")
|
129
124
|
except Exception as e:
|
130
125
|
logging.warning("An error occurred while setup task to update progress bar")
|
131
126
|
logging.exception(e)
|
132
127
|
if total > 0 and percent != 0:
|
133
|
-
self._next_threshold +=
|
128
|
+
self._next_threshold += 20
|
134
129
|
|
135
130
|
@staticmethod
|
136
131
|
def make_hash(chat_id: str | int, message_id: int, algorithm: str = 'sha256') -> str:
|
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
|
File without changes
|
File without changes
|