warp-beacon 2.6.31__py3-none-any.whl → 2.6.32__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 +8 -1
- {warp_beacon-2.6.31.dist-info → warp_beacon-2.6.32.dist-info}/METADATA +1 -1
- {warp_beacon-2.6.31.dist-info → warp_beacon-2.6.32.dist-info}/RECORD +8 -8
- {warp_beacon-2.6.31.dist-info → warp_beacon-2.6.32.dist-info}/WHEEL +0 -0
- {warp_beacon-2.6.31.dist-info → warp_beacon-2.6.32.dist-info}/entry_points.txt +0 -0
- {warp_beacon-2.6.31.dist-info → warp_beacon-2.6.32.dist-info}/licenses/LICENSE +0 -0
- {warp_beacon-2.6.31.dist-info → warp_beacon-2.6.32.dist-info}/top_level.txt +0 -0
warp_beacon/__version__.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
__version__ = "2.6.
|
1
|
+
__version__ = "2.6.32"
|
2
2
|
|
@@ -161,7 +161,11 @@ class AccountSelector(object):
|
|
161
161
|
module_name = self.get_module_name(module_origin)
|
162
162
|
self.current_module_name = module_name
|
163
163
|
if self.current is None:
|
164
|
-
|
164
|
+
idx = self.account_index[self.current_module_name].value
|
165
|
+
self.current = self.accounts[self.current_module_name][idx]
|
166
|
+
if not self.current.get("enabled", True):
|
167
|
+
logging.info("Account '%d' is disabled. Probing next ...", idx)
|
168
|
+
self.next()
|
165
169
|
self.current_proxy = self.get_random_account_proxy()
|
166
170
|
|
167
171
|
def next(self) -> dict:
|
@@ -171,6 +175,9 @@ class AccountSelector(object):
|
|
171
175
|
idx = 0
|
172
176
|
self.account_index[self.current_module_name].value = idx
|
173
177
|
self.current = self.accounts[self.current_module_name][idx]
|
178
|
+
if not self.current.get("enabled", True):
|
179
|
+
logging.info("Account '%d' is disabled. Probing next ...", idx)
|
180
|
+
return self.next()
|
174
181
|
logging.info("Selected account index is '%d'", idx)
|
175
182
|
return self.current
|
176
183
|
|
@@ -4,7 +4,7 @@ var/warp_beacon/accounts.json,sha256=OsXdncs6h88xrF_AP6_WDCK1waGBn9SR-uYdIeK37GM
|
|
4
4
|
var/warp_beacon/placeholder.gif,sha256=cE5CGJVaop4Sx21zx6j4AyoHU0ncmvQuS2o6hJfEH88,6064
|
5
5
|
var/warp_beacon/proxies.json,sha256=VnjlQDXumOEq72ZFjbh6IqHS1TEHqn8HPYAZqWCeSIA,95
|
6
6
|
warp_beacon/__init__.py,sha256=_rThNODmz0nDp_n4mWo_HKaNFE5jk1_7cRhHyYaencI,163
|
7
|
-
warp_beacon/__version__.py,sha256=
|
7
|
+
warp_beacon/__version__.py,sha256=v7-I7W6QrOioZsgQWZyPae-SCQxdaUT_-IM-oMi8bTg,24
|
8
8
|
warp_beacon/warp_beacon.py,sha256=ED43vNzdjDUJ_9qLCbri0bjWLWEJ69BENGj9i7G6AvM,342
|
9
9
|
warp_beacon/yt_auth.py,sha256=GUTKqYr_tzDC-07Lx_ahWXSag8EyLxXBUnQbDBIkEmk,6022
|
10
10
|
warp_beacon/compress/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -24,7 +24,7 @@ warp_beacon/scheduler/instagram_human.py,sha256=0LaRUu0MBBuEOQeFzuq22HIYfJL9pTK_
|
|
24
24
|
warp_beacon/scheduler/scheduler.py,sha256=9OCh7Ta4wY_aTHGAOOZmaKXg56Ftx1N_aV1g6E3ZLKA,4941
|
25
25
|
warp_beacon/scraper/__init__.py,sha256=y6_26l18Bdrms9jeW1mJipmj6lKCpPQNZlieoXFnqLc,19822
|
26
26
|
warp_beacon/scraper/abstract.py,sha256=yP76ae9U73LYW2lDN6XWkXDkWX1h2UVOrkqv0Sqpu2Y,2985
|
27
|
-
warp_beacon/scraper/account_selector.py,sha256=
|
27
|
+
warp_beacon/scraper/account_selector.py,sha256=7sog5tFPNv6jWJ5m-7nAglAyzd3Qc3G4dfjk8iYFONI,8163
|
28
28
|
warp_beacon/scraper/exceptions.py,sha256=EKwoF0oH2xZWbNU-v8DOaWK5skKwa3s1yTIBdlcfMpc,1452
|
29
29
|
warp_beacon/scraper/fail_handler.py,sha256=zcPK3ZVEsu6JmHYcWP7L3naTRK3gWFVRkpP84VBOtJs,964
|
30
30
|
warp_beacon/scraper/link_resolver.py,sha256=Rc9ZuMyOo3iPywDHwjngy-WRQ2SXhJwxcg-5ripx7tM,2447
|
@@ -45,9 +45,9 @@ warp_beacon/telegram/handlers.py,sha256=uvR6TPHSqdSxigp3wR-ewiE6t3TvVcbVLVcYGwkg
|
|
45
45
|
warp_beacon/telegram/placeholder_message.py,sha256=wN9-BRiyrtHG-EvXtZkGJHt2CX71munQ57ITttjt0mw,6400
|
46
46
|
warp_beacon/telegram/utils.py,sha256=1Lq67aRylVJzbwSyvAgjPAGjJZFATkICvAj3TJGuJiM,4635
|
47
47
|
warp_beacon/uploader/__init__.py,sha256=j3qcuKhpchseZLGzSsSiogqe6WdMbkK8d3I-ConhNRs,5687
|
48
|
-
warp_beacon-2.6.
|
49
|
-
warp_beacon-2.6.
|
50
|
-
warp_beacon-2.6.
|
51
|
-
warp_beacon-2.6.
|
52
|
-
warp_beacon-2.6.
|
53
|
-
warp_beacon-2.6.
|
48
|
+
warp_beacon-2.6.32.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
49
|
+
warp_beacon-2.6.32.dist-info/METADATA,sha256=ksruKLkVesCra1SwNN0YaAqQIuQWgssQ5U1bou_vdgY,22706
|
50
|
+
warp_beacon-2.6.32.dist-info/WHEEL,sha256=wXxTzcEDnjrTwFYjLPcsW_7_XihufBwmpiBeiXNBGEA,91
|
51
|
+
warp_beacon-2.6.32.dist-info/entry_points.txt,sha256=eSB61Rb89d56WY0O-vEIQwkn18J-4CMrJcLA_R_8h3g,119
|
52
|
+
warp_beacon-2.6.32.dist-info/top_level.txt,sha256=4ML0-mXsezLtRXyxQUntL_ktc5HX9npTeQWzvV8kFvA,1161
|
53
|
+
warp_beacon-2.6.32.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|