warp-beacon 2.2.25__py3-none-any.whl → 2.2.27__py3-none-any.whl
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/__version__.py +1 -1
- warp_beacon/scraper/account_selector.py +3 -2
- warp_beacon/telegram/bot.py +0 -2
- {warp_beacon-2.2.25.dist-info → warp_beacon-2.2.27.dist-info}/METADATA +1 -1
- {warp_beacon-2.2.25.dist-info → warp_beacon-2.2.27.dist-info}/RECORD +9 -9
- {warp_beacon-2.2.25.dist-info → warp_beacon-2.2.27.dist-info}/LICENSE +0 -0
- {warp_beacon-2.2.25.dist-info → warp_beacon-2.2.27.dist-info}/WHEEL +0 -0
- {warp_beacon-2.2.25.dist-info → warp_beacon-2.2.27.dist-info}/entry_points.txt +0 -0
- {warp_beacon-2.2.25.dist-info → warp_beacon-2.2.27.dist-info}/top_level.txt +0 -0
warp_beacon/__version__.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
__version__ = "2.2.
|
1
|
+
__version__ = "2.2.27"
|
2
2
|
|
@@ -4,7 +4,7 @@ import json
|
|
4
4
|
import re
|
5
5
|
|
6
6
|
import multiprocessing
|
7
|
-
from itertools import cycle
|
7
|
+
from itertools import cycle, isslice
|
8
8
|
|
9
9
|
from warp_beacon.jobs import Origin
|
10
10
|
|
@@ -64,7 +64,8 @@ class AccountSelector(object):
|
|
64
64
|
module_name = 'youtube' if next((s for s in ("yt", "youtube", "youtu_be") if s in module_origin.value), None) else 'instagram'
|
65
65
|
self.current_module_name = module_name
|
66
66
|
if self.current is None:
|
67
|
-
self.
|
67
|
+
self.current = self.accounts[self.current_module_name][self.index.value]
|
68
|
+
self.acc_pools[self.current_module_name] = isslice(self.acc_pools[self.current_module_name], self.index.value, None)
|
68
69
|
|
69
70
|
def next(self) -> dict:
|
70
71
|
self.current = next(self.acc_pools[self.current_module_name])
|
warp_beacon/telegram/bot.py
CHANGED
@@ -370,8 +370,6 @@ class Bot(object):
|
|
370
370
|
col_job_args = self.build_tg_args(job)
|
371
371
|
sent_messages = []
|
372
372
|
snd_grp_options = {"chat_id": job.chat_id, "reply_to_message_id": job.message_id}
|
373
|
-
if job.chat_type in (ChatType.GROUP, ChatType.SUPERGROUP):
|
374
|
-
snd_grp_options["reply_to_message_id"] = None
|
375
373
|
for i, media_chunk in enumerate(col_job_args["media"]):
|
376
374
|
snd_grp_options["media"] = media_chunk
|
377
375
|
messages = await self.client.send_media_group(**snd_grp_options)
|
@@ -3,7 +3,7 @@ lib/systemd/system/warp_beacon.service,sha256=lPmHqLqcI2eIV7nwHS0qcALQrznixqJuww
|
|
3
3
|
var/warp_beacon/accounts.json,sha256=rKFQM_b9eoDS4mJ1B_SZNolPLXx1SQdQMdY2F_ZcBt8,1523
|
4
4
|
var/warp_beacon/placeholder.gif,sha256=cE5CGJVaop4Sx21zx6j4AyoHU0ncmvQuS2o6hJfEH88,6064
|
5
5
|
warp_beacon/__init__.py,sha256=_rThNODmz0nDp_n4mWo_HKaNFE5jk1_7cRhHyYaencI,163
|
6
|
-
warp_beacon/__version__.py,sha256=
|
6
|
+
warp_beacon/__version__.py,sha256=i0MWUMx8EQvgPcKN4J3WzUAqBMp9H8FYmHANxqwIVmk,24
|
7
7
|
warp_beacon/warp_beacon.py,sha256=7KEtZDj-pdhtl6m-zFLsSojs1ZR4o7L0xbqtdmYPvfE,342
|
8
8
|
warp_beacon/compress/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
9
|
warp_beacon/compress/video.py,sha256=_PDMVYCyzLYxHv1uZmmzGcG_8rjaZr7BTXsXTTy_oS4,2846
|
@@ -21,7 +21,7 @@ warp_beacon/scheduler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
|
|
21
21
|
warp_beacon/scheduler/scheduler.py,sha256=d_TxhIpL_4s0a8tgUO3xokkLYPx1CaHZdldbuIl90yI,2585
|
22
22
|
warp_beacon/scraper/__init__.py,sha256=tkl7UyfqFcvPlxomVPB9GpWQvAoADaM6jGb_bmx1zRY,15229
|
23
23
|
warp_beacon/scraper/abstract.py,sha256=aNZ9ypF9B8BjflcIwi-7wEzIqF-XPeF0xvfX9CP_iIw,2708
|
24
|
-
warp_beacon/scraper/account_selector.py,sha256=
|
24
|
+
warp_beacon/scraper/account_selector.py,sha256=tYTh24mEinQXuuEY8am_3Yht3Vq-2IZRnjlU_rAIyvE,3381
|
25
25
|
warp_beacon/scraper/exceptions.py,sha256=lHsPrYy5iYnHsIdUHqRxZmzlqrkNj_TS4TkiTJfWhTs,1326
|
26
26
|
warp_beacon/scraper/instagram/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
27
27
|
warp_beacon/scraper/instagram/instagram.py,sha256=PpEammUP_InX5xj-sFJY6DkAUfIut2rqQsXd0uCtKOo,13579
|
@@ -32,14 +32,14 @@ warp_beacon/scraper/youtube/shorts.py,sha256=RqMYDq4XHChtp-LdlxXyHej4h3NI3Qi9T8U
|
|
32
32
|
warp_beacon/scraper/youtube/youtube.py,sha256=JvN5pVz0jtxCY9FGMl1dIg5Ccr2Kulaoxtym0Vb1QwQ,2224
|
33
33
|
warp_beacon/storage/__init__.py,sha256=m86MDXBMtZZsTPLI2cD-pM5Xkh2g2NYVvp_dtW8eH0Q,3548
|
34
34
|
warp_beacon/telegram/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
35
|
-
warp_beacon/telegram/bot.py,sha256=
|
35
|
+
warp_beacon/telegram/bot.py,sha256=aU1rhqXAAvEvNmzQZL9ziMXjod_Q3oDzeh6RBofZf50,15269
|
36
36
|
warp_beacon/telegram/handlers.py,sha256=xSNG_v4D4FaA5q1_5wXvJkjcDUhy5GaQnfpijJZpnPk,7039
|
37
37
|
warp_beacon/telegram/placeholder_message.py,sha256=32U-R_IMPRJd-S5UwlpemLkArJOxCmO7whcynduSbMA,6418
|
38
38
|
warp_beacon/telegram/utils.py,sha256=CeWXMwyzv2l4Af6I-wW2ySU490c-5k82sBhkjabv0n4,2452
|
39
39
|
warp_beacon/uploader/__init__.py,sha256=rsUkzzmtaeQY-kNkcIiPsrayS9idFKY3hBC71mR19XE,4743
|
40
|
-
warp_beacon-2.2.
|
41
|
-
warp_beacon-2.2.
|
42
|
-
warp_beacon-2.2.
|
43
|
-
warp_beacon-2.2.
|
44
|
-
warp_beacon-2.2.
|
45
|
-
warp_beacon-2.2.
|
40
|
+
warp_beacon-2.2.27.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
41
|
+
warp_beacon-2.2.27.dist-info/METADATA,sha256=GYdtmx8II_0dzg67ZOxC7ZHWZlHu3taPToNR0oig8y0,21251
|
42
|
+
warp_beacon-2.2.27.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
|
43
|
+
warp_beacon-2.2.27.dist-info/entry_points.txt,sha256=eSB61Rb89d56WY0O-vEIQwkn18J-4CMrJcLA_R_8h3g,119
|
44
|
+
warp_beacon-2.2.27.dist-info/top_level.txt,sha256=ALb_Ft_eG-OY4_m0TWUifNUOZsrx483L-zw7G7vqXoc,971
|
45
|
+
warp_beacon-2.2.27.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|