You need to sign in or sign up before continuing.
warp-beacon 2.6.64__tar.gz → 2.6.66__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.64/warp_beacon.egg-info → warp_beacon-2.6.66}/PKG-INFO +1 -1
- warp_beacon-2.6.66/warp_beacon/__version__.py +2 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/scraper/instagram/instagram.py +17 -12
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/telegram/download_status.py +2 -1
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/telegram/edit_message.py +1 -1
- {warp_beacon-2.6.64 → warp_beacon-2.6.66/warp_beacon.egg-info}/PKG-INFO +1 -1
- warp_beacon-2.6.64/warp_beacon/__version__.py +0 -2
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/LICENSE +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/MANIFEST.in +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/README.md +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/assets/placeholder.gif +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/etc/.gitignore +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/etc/accounts.json +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/etc/proxies.json +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/etc/warp_beacon.conf +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/etc/warp_beacon.service +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/pyproject.toml +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/setup.cfg +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/setup.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/__init__.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/compress/__init__.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/compress/video.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/jobs/__init__.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/jobs/abstract.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/jobs/download_job.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/jobs/types.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/jobs/upload_job.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/mediainfo/__init__.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/mediainfo/abstract.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/mediainfo/audio.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/mediainfo/silencer.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/mediainfo/video.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/scheduler/__init__.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/scheduler/instagram_human.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/scheduler/scheduler.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/scraper/__init__.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/scraper/abstract.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/scraper/account_selector.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/scraper/exceptions.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/scraper/fail_handler.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/scraper/instagram/__init__.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/scraper/instagram/captcha.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/scraper/instagram/wb_instagrapi.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/scraper/link_resolver.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/scraper/utils.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/scraper/youtube/__init__.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/scraper/youtube/abstract.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/scraper/youtube/music.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/scraper/youtube/shorts.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/scraper/youtube/youtube.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/storage/__init__.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/storage/mongo.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/telegram/__init__.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/telegram/bot.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/telegram/caption_shortener.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/telegram/handlers.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/telegram/placeholder_message.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/telegram/progress_bar.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/telegram/progress_file_reader.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/telegram/types.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/telegram/utils.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/uploader/__init__.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/warp_beacon.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon/yt_auth.py +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon.egg-info/SOURCES.txt +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon.egg-info/dependency_links.txt +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon.egg-info/entry_points.txt +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon.egg-info/requires.txt +0 -0
- {warp_beacon-2.6.64 → warp_beacon-2.6.66}/warp_beacon.egg-info/top_level.txt +0 -0
@@ -41,6 +41,7 @@ class InstagramScraper(ScraperAbstract):
|
|
41
41
|
client_session_id = ""
|
42
42
|
|
43
43
|
def __init__(self, client_session_id: str, account: tuple, proxy: dict=None) -> None:
|
44
|
+
self._download_progress_threshold = 20
|
44
45
|
self.client_session_id = client_session_id
|
45
46
|
super().__init__(account, proxy)
|
46
47
|
#
|
@@ -334,7 +335,9 @@ class InstagramScraper(ScraperAbstract):
|
|
334
335
|
self.status_pipe.send({
|
335
336
|
"action": "report_download_status",
|
336
337
|
"report_type": ReportType.ANNOUNCE,
|
337
|
-
"label": "Collecting meta information ..."
|
338
|
+
"label": "Collecting meta information ...",
|
339
|
+
"chat_id": self.job.chat_id,
|
340
|
+
"message_id": self.job.placeholder_message_id
|
338
341
|
})
|
339
342
|
media_info = self.download_hndlr(self.cl.media_info, media_id, use_cache=False)
|
340
343
|
logging.info("media_type is '%d', product_type is '%s'", media_info.media_type, media_info.product_type)
|
@@ -429,14 +432,16 @@ class InstagramScraper(ScraperAbstract):
|
|
429
432
|
|
430
433
|
def download_progress(self, total: int | None, bytes_transferred: int, path: Path) -> None:
|
431
434
|
percentage_of_completion = round(bytes_transferred / (total or 1) * 100)
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
435
|
+
if total == 0 or percentage_of_completion >= self._download_progress_threshold:
|
436
|
+
logging.debug("[Download] IG file %s, %d", str(path), percentage_of_completion)
|
437
|
+
msg = {
|
438
|
+
"action": "report_download_status",
|
439
|
+
"current": bytes_transferred,
|
440
|
+
"total": total or 0,
|
441
|
+
"message_id": self.job.placeholder_message_id,
|
442
|
+
"chat_id": self.job.chat_id,
|
443
|
+
"completed": percentage_of_completion >= 100,
|
444
|
+
"report_type": ReportType.PROGRESS
|
445
|
+
}
|
446
|
+
self.status_pipe.send(msg)
|
447
|
+
self._download_progress_threshold += 20
|
@@ -22,7 +22,8 @@ class DownloadStatus(object):
|
|
22
22
|
message_id=msg.get("message_id", 0),
|
23
23
|
chat_id=msg.get("chat_id", 0),
|
24
24
|
operation="Downloading",
|
25
|
-
report_type=msg.get("report_type", ReportType.PROGRESS)
|
25
|
+
report_type=msg.get("report_type", ReportType.PROGRESS),
|
26
|
+
label=msg.get("label", "")
|
26
27
|
)
|
27
28
|
|
28
29
|
def on_status(self) -> None:
|
@@ -93,7 +93,7 @@ class EditMessage(object):
|
|
93
93
|
file_name: str = None
|
94
94
|
) -> None:
|
95
95
|
progress_bar = ProgressBar(self.client)
|
96
|
-
|
96
|
+
progress_bar.progress_callback(current=0, total=0, chat_id=chat_id, message_id=message_id, operation="Uploading", label=file_name, report_type="progress")
|
97
97
|
raw_file = await self.client.save_file(path=media.media, progress=progress_bar.progress_callback, progress_args=(chat_id, message_id, "Uploading", file_name, "progress"))
|
98
98
|
|
99
99
|
caption = media.caption
|
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
|