warp-beacon 2.1.2__tar.gz → 2.1.4__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.1.2/warp_beacon.egg-info → warp_beacon-2.1.4}/PKG-INFO +1 -1
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/etc/warp_beacon.conf +1 -1
- warp_beacon-2.1.4/warp_beacon/__version__.py +2 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/jobs/abstract.py +2 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/scraper/__init__.py +3 -2
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/scraper/instagram/instagram.py +2 -1
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/uploader/__init__.py +1 -1
- {warp_beacon-2.1.2 → warp_beacon-2.1.4/warp_beacon.egg-info}/PKG-INFO +1 -1
- warp_beacon-2.1.2/warp_beacon/__version__.py +0 -2
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/LICENSE +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/MANIFEST.in +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/README.md +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/assets/placeholder.gif +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/etc/.gitignore +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/etc/accounts.json +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/etc/warp_beacon.service +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/pyproject.toml +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/setup.cfg +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/setup.py +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/__init__.py +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/compress/__init__.py +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/compress/video.py +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/jobs/__init__.py +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/jobs/download_job.py +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/jobs/types.py +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/jobs/upload_job.py +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/mediainfo/__init__.py +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/mediainfo/abstract.py +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/mediainfo/audio.py +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/mediainfo/silencer.py +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/mediainfo/video.py +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/scraper/abstract.py +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/scraper/account_selector.py +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/scraper/exceptions.py +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/scraper/instagram/__init__.py +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/scraper/youtube/__init__.py +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/scraper/youtube/abstract.py +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/scraper/youtube/music.py +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/scraper/youtube/shorts.py +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/scraper/youtube/youtube.py +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/storage/__init__.py +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/telegram/__init__.py +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/telegram/bot.py +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/telegram/handlers.py +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/telegram/placeholder_message.py +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/telegram/utils.py +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon/warp_beacon.py +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon.egg-info/SOURCES.txt +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon.egg-info/dependency_links.txt +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon.egg-info/entry_points.txt +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon.egg-info/requires.txt +0 -0
- {warp_beacon-2.1.2 → warp_beacon-2.1.4}/warp_beacon.egg-info/top_level.txt +0 -0
@@ -35,6 +35,7 @@ class JobSettings(TypedDict):
|
|
35
35
|
unvailable_error_count: int
|
36
36
|
geoblock_error_count: int
|
37
37
|
account_switches: int
|
38
|
+
yt_auth: bool
|
38
39
|
|
39
40
|
class AbstractJob(ABC):
|
40
41
|
job_id: uuid.UUID = None
|
@@ -64,6 +65,7 @@ class AbstractJob(ABC):
|
|
64
65
|
unvailable_error_count: int = 0
|
65
66
|
geoblock_error_count: int = 0
|
66
67
|
account_switches: int = 0
|
68
|
+
yt_auth: bool = False
|
67
69
|
|
68
70
|
def __init__(self, **kwargs: Unpack[JobSettings]) -> None:
|
69
71
|
if kwargs:
|
@@ -328,8 +328,9 @@ class AsyncDownloader(object):
|
|
328
328
|
def notify_task_failed(self, job: DownloadJob) -> None:
|
329
329
|
self.uploader.queue_task(job.to_upload_job(job_failed=True))
|
330
330
|
|
331
|
-
def send_message_to_admin(self, text: str) -> None:
|
331
|
+
def send_message_to_admin(self, text: str, yt_auth: bool = False) -> None:
|
332
332
|
self.uploader.queue_task(UploadJob.build(
|
333
333
|
is_message_to_admin=True,
|
334
|
-
message_text=text
|
334
|
+
message_text=text,
|
335
|
+
yt_auth=yt_auth
|
335
336
|
))
|
@@ -37,7 +37,7 @@ class InstagramScraper(ScraperAbstract):
|
|
37
37
|
#
|
38
38
|
self.inst_session_file = INST_SESSION_FILE_TPL % self.account_index
|
39
39
|
self.cl = Client()
|
40
|
-
self.cl.
|
40
|
+
#self.cl.logger.setLevel(logging.DEBUG)
|
41
41
|
self.setup_device()
|
42
42
|
self.cl.challenge_code_handler = self.challenge_code_handler
|
43
43
|
self.cl.change_password_handler = self.change_password_handler
|
@@ -164,6 +164,7 @@ class InstagramScraper(ScraperAbstract):
|
|
164
164
|
return ret_val
|
165
165
|
|
166
166
|
def download_video(self, url: str, media_info: dict) -> dict:
|
167
|
+
self.cl.request_timeout = int(os.environ.get("IG_REQUEST_TIMEOUT", default=60))
|
167
168
|
path = self._download_hndlr(self.cl.video_download_by_url, url, folder='/tmp')
|
168
169
|
return {"local_media_path": str(path), "media_type": JobType.VIDEO, "media_info": {"duration": round(media_info.video_duration)}}
|
169
170
|
|
@@ -84,7 +84,7 @@ class AsyncUploader(object):
|
|
84
84
|
if job is self.__JOE_BIDEN_WAKEUP:
|
85
85
|
continue
|
86
86
|
if job.is_message_to_admin and job.message_text and self.admin_message_callback:
|
87
|
-
asyncio.ensure_future(self.admin_message_callback(job.message_text), loop=self.loop)
|
87
|
+
asyncio.ensure_future(self.admin_message_callback(job.message_text, job.yt_auth), loop=self.loop)
|
88
88
|
continue
|
89
89
|
path = ""
|
90
90
|
if job.media_type == JobType.COLLECTION:
|
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
|