warp-beacon 2.2.36__tar.gz → 2.2.38__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.2.36/warp_beacon.egg-info → warp_beacon-2.2.38}/PKG-INFO +1 -1
- warp_beacon-2.2.38/warp_beacon/__version__.py +2 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/jobs/abstract.py +2 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/scraper/__init__.py +2 -1
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/scraper/account_selector.py +1 -1
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/uploader/__init__.py +1 -1
- {warp_beacon-2.2.36 → warp_beacon-2.2.38/warp_beacon.egg-info}/PKG-INFO +1 -1
- warp_beacon-2.2.36/warp_beacon/__version__.py +0 -2
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/LICENSE +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/MANIFEST.in +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/README.md +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/assets/placeholder.gif +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/etc/.gitignore +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/etc/accounts.json +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/etc/warp_beacon.conf +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/etc/warp_beacon.service +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/pyproject.toml +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/setup.cfg +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/setup.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/__init__.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/compress/__init__.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/compress/video.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/jobs/__init__.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/jobs/download_job.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/jobs/types.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/jobs/upload_job.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/mediainfo/__init__.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/mediainfo/abstract.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/mediainfo/audio.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/mediainfo/silencer.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/mediainfo/video.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/scheduler/__init__.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/scheduler/scheduler.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/scraper/abstract.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/scraper/exceptions.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/scraper/instagram/__init__.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/scraper/instagram/instagram.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/scraper/youtube/__init__.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/scraper/youtube/abstract.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/scraper/youtube/music.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/scraper/youtube/shorts.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/scraper/youtube/youtube.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/storage/__init__.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/telegram/__init__.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/telegram/bot.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/telegram/handlers.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/telegram/placeholder_message.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/telegram/utils.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon/warp_beacon.py +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon.egg-info/SOURCES.txt +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon.egg-info/dependency_links.txt +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon.egg-info/entry_points.txt +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon.egg-info/requires.txt +0 -0
- {warp_beacon-2.2.36 → warp_beacon-2.2.38}/warp_beacon.egg-info/top_level.txt +0 -0
@@ -40,6 +40,7 @@ class JobSettings(TypedDict):
|
|
40
40
|
yt_auth: bool
|
41
41
|
session_validation: bool
|
42
42
|
chat_type: ChatType
|
43
|
+
account_admins: str
|
43
44
|
|
44
45
|
class AbstractJob(ABC):
|
45
46
|
job_id: uuid.UUID = None
|
@@ -72,6 +73,7 @@ class AbstractJob(ABC):
|
|
72
73
|
yt_auth: bool = False
|
73
74
|
session_validation: bool = False
|
74
75
|
chat_type: ChatType = None
|
76
|
+
account_admins: str = None
|
75
77
|
|
76
78
|
def __init__(self, **kwargs: Unpack[JobSettings]) -> None:
|
77
79
|
if kwargs:
|
@@ -352,9 +352,10 @@ class AsyncDownloader(object):
|
|
352
352
|
def notify_task_failed(self, job: DownloadJob) -> None:
|
353
353
|
self.uploader.queue_task(job.to_upload_job(job_failed=True))
|
354
354
|
|
355
|
-
def send_message_to_admin(self, text: str, yt_auth: bool = False) -> None:
|
355
|
+
def send_message_to_admin(self, text: str, account_admins: str = None, yt_auth: bool = False) -> None:
|
356
356
|
self.uploader.queue_task(UploadJob.build(
|
357
357
|
is_message_to_admin=True,
|
358
358
|
message_text=text,
|
359
|
+
account_admins=account_admins,
|
359
360
|
yt_auth=yt_auth
|
360
361
|
))
|
@@ -66,7 +66,7 @@ class AccountSelector(object):
|
|
66
66
|
|
67
67
|
def next(self) -> dict:
|
68
68
|
idx = self.account_index[self.current_module_name].value + 1
|
69
|
-
if idx > len(self.accounts[self.current_module_name]):
|
69
|
+
if idx > len(self.accounts[self.current_module_name]) - 1:
|
70
70
|
idx = 0
|
71
71
|
self.current = self.accounts[self.current_module_name][idx]
|
72
72
|
self.account_index[self.current_module_name].value = idx
|
@@ -83,7 +83,7 @@ class AsyncUploader(object):
|
|
83
83
|
if job is self.__JOE_BIDEN_WAKEUP:
|
84
84
|
continue
|
85
85
|
if job.is_message_to_admin and job.message_text and self.admin_message_callback:
|
86
|
-
asyncio.ensure_future(self.admin_message_callback(job.message_text, job.yt_auth), loop=self.loop)
|
86
|
+
asyncio.ensure_future(self.admin_message_callback(job.message_text, job.account_admins, job.yt_auth), loop=self.loop)
|
87
87
|
continue
|
88
88
|
path = ""
|
89
89
|
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
|
File without changes
|
File without changes
|
File without changes
|