warp-beacon 2.6.14__tar.gz → 2.6.16__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.14/warp_beacon.egg-info → warp_beacon-2.6.16}/PKG-INFO +1 -1
- warp_beacon-2.6.16/warp_beacon/__version__.py +2 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/scraper/__init__.py +17 -22
- {warp_beacon-2.6.14 → warp_beacon-2.6.16/warp_beacon.egg-info}/PKG-INFO +1 -1
- warp_beacon-2.6.14/warp_beacon/__version__.py +0 -2
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/LICENSE +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/MANIFEST.in +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/README.md +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/assets/placeholder.gif +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/etc/.gitignore +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/etc/accounts.json +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/etc/proxies.json +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/etc/warp_beacon.conf +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/etc/warp_beacon.service +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/pyproject.toml +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/setup.cfg +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/setup.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/__init__.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/compress/__init__.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/compress/video.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/jobs/__init__.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/jobs/abstract.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/jobs/download_job.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/jobs/types.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/jobs/upload_job.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/mediainfo/__init__.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/mediainfo/abstract.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/mediainfo/audio.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/mediainfo/silencer.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/mediainfo/video.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/scheduler/__init__.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/scheduler/instagram_human.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/scheduler/scheduler.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/scraper/abstract.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/scraper/account_selector.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/scraper/exceptions.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/scraper/fail_handler.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/scraper/instagram/__init__.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/scraper/instagram/captcha.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/scraper/instagram/instagram.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/scraper/link_resolver.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/scraper/youtube/__init__.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/scraper/youtube/abstract.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/scraper/youtube/music.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/scraper/youtube/shorts.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/scraper/youtube/youtube.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/storage/__init__.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/storage/mongo.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/telegram/__init__.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/telegram/bot.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/telegram/caption_shortener.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/telegram/handlers.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/telegram/placeholder_message.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/telegram/utils.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/uploader/__init__.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/warp_beacon.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon/yt_auth.py +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon.egg-info/SOURCES.txt +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon.egg-info/dependency_links.txt +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon.egg-info/entry_points.txt +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon.egg-info/requires.txt +0 -0
- {warp_beacon-2.6.14 → warp_beacon-2.6.16}/warp_beacon.egg-info/top_level.txt +0 -0
@@ -100,11 +100,11 @@ class AsyncDownloader(object):
|
|
100
100
|
while self.allow_loop.value == 1:
|
101
101
|
try:
|
102
102
|
job: DownloadJob = None
|
103
|
+
actor = None
|
103
104
|
try:
|
104
105
|
job = self.job_queue.get()
|
105
106
|
if job is self.__JOE_BIDEN_WAKEUP:
|
106
107
|
break
|
107
|
-
actor = None
|
108
108
|
try:
|
109
109
|
items = []
|
110
110
|
if job.job_origin is Origin.UNKNOWN:
|
@@ -249,27 +249,6 @@ class AsyncDownloader(object):
|
|
249
249
|
f"Task <code>{job.job_id}</code> failed. URL: '{job.url}'. Reason: '<b>YotubeAgeRestrictedError</b>'."
|
250
250
|
)
|
251
251
|
break
|
252
|
-
except AllAccountsFailed as e:
|
253
|
-
logging.error("All accounts failed!")
|
254
|
-
logging.exception(e)
|
255
|
-
self.send_message_to_admin(
|
256
|
-
f"Task <code>{e.job.job_id}</code> failed. URL: '{e.job.url}'. Reason: '<b>AllAccountsFailed</b>'."
|
257
|
-
)
|
258
|
-
self.uploader.queue_task(e.job.to_upload_job(
|
259
|
-
job_failed=True,
|
260
|
-
job_failed_msg="All bot accounts failed to download content. Bot administrator noticed about the issue.")
|
261
|
-
)
|
262
|
-
if e.job.job_origin == Origin.INSTAGRAM:
|
263
|
-
logging.info("Handling captcha postpone")
|
264
|
-
self.uploader.queue_task(job.to_upload_job(
|
265
|
-
job_warning=True,
|
266
|
-
job_warning_msg="Bot is experiencing issues, video delivery may be delayed.")
|
267
|
-
)
|
268
|
-
#self.try_next_account(selector, job, report_error="captcha")
|
269
|
-
#e.job.job_postponed_until = time.time() + 300
|
270
|
-
#self.job_queue.put(e.job)
|
271
|
-
fail_handler.store_failed_job(e.job)
|
272
|
-
break
|
273
252
|
except (UnknownError, Exception) as e:
|
274
253
|
logging.warning("UnknownError occurred!")
|
275
254
|
logging.exception(e)
|
@@ -385,6 +364,22 @@ class AsyncDownloader(object):
|
|
385
364
|
else:
|
386
365
|
logging.info("Job already in work in parallel worker. Redirecting job to upload worker.")
|
387
366
|
self.uploader.queue_task(job.to_upload_job())
|
367
|
+
|
368
|
+
except AllAccountsFailed as e:
|
369
|
+
self.send_message_to_admin(
|
370
|
+
f"Task <code>{job.job_id}</code> failed. URL: '{job.url}'. Reason: '<b>AllAccountsFailed</b>'."
|
371
|
+
)
|
372
|
+
if job.job_origin == Origin.INSTAGRAM:
|
373
|
+
logging.info("Handling captcha postpone")
|
374
|
+
self.uploader.queue_task(job.to_upload_job(
|
375
|
+
job_warning=True,
|
376
|
+
job_warning_msg="The bot is currently experiencing technical issues. Message delivery may be delayed.")
|
377
|
+
)
|
378
|
+
#self.try_next_account(selector, job, report_error="captcha")
|
379
|
+
#e.job.job_postponed_until = time.time() + 300
|
380
|
+
#self.job_queue.put(e.job)
|
381
|
+
fail_handler.store_failed_job(job)
|
382
|
+
self.notify_task_failed(job)
|
388
383
|
except Exception as e:
|
389
384
|
logging.error("Error inside download worker!")
|
390
385
|
logging.exception(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
|