warp-beacon 2.6.91__tar.gz → 2.6.93__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.91/warp_beacon.egg-info → warp_beacon-2.6.93}/PKG-INFO +1 -1
- warp_beacon-2.6.93/warp_beacon/__version__.py +2 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/scraper/account_selector.py +5 -3
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/scraper/instagram/instagram.py +1 -1
- {warp_beacon-2.6.91 → warp_beacon-2.6.93/warp_beacon.egg-info}/PKG-INFO +1 -1
- warp_beacon-2.6.91/warp_beacon/__version__.py +0 -2
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/LICENSE +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/MANIFEST.in +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/README.md +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/assets/placeholder.gif +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/etc/.gitignore +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/etc/accounts.json +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/etc/proxies.json +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/etc/warp_beacon.conf +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/etc/warp_beacon.service +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/pyproject.toml +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/setup.cfg +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/setup.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/__init__.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/compress/__init__.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/compress/video.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/jobs/__init__.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/jobs/abstract.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/jobs/download_job.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/jobs/types.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/jobs/upload_job.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/mediainfo/__init__.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/mediainfo/abstract.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/mediainfo/audio.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/mediainfo/silencer.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/mediainfo/video.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/scheduler/__init__.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/scheduler/instagram_human.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/scheduler/scheduler.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/scraper/__init__.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/scraper/abstract.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/scraper/exceptions.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/scraper/fail_handler.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/scraper/instagram/__init__.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/scraper/instagram/captcha.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/scraper/instagram/wb_instagrapi.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/scraper/link_resolver.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/scraper/utils.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/scraper/youtube/__init__.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/scraper/youtube/abstract.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/scraper/youtube/music.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/scraper/youtube/shorts.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/scraper/youtube/youtube.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/storage/__init__.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/storage/mongo.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/telegram/__init__.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/telegram/bot.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/telegram/caption_shortener.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/telegram/download_status.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/telegram/edit_message.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/telegram/handlers.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/telegram/placeholder_message.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/telegram/progress_bar.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/telegram/progress_file_reader.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/telegram/types.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/telegram/utils.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/uploader/__init__.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/warp_beacon.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon/yt_auth.py +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon.egg-info/SOURCES.txt +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon.egg-info/dependency_links.txt +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon.egg-info/entry_points.txt +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon.egg-info/requires.txt +0 -0
- {warp_beacon-2.6.91 → warp_beacon-2.6.93}/warp_beacon.egg-info/top_level.txt +0 -0
@@ -61,8 +61,10 @@ class AccountSelector(object):
|
|
61
61
|
def save_ig_sessions_id(self) -> None:
|
62
62
|
try:
|
63
63
|
with self.lock:
|
64
|
+
sessions = dict(self.ig_accounts_session_id)
|
65
|
+
logging.info("Saving sessions: %s", sessions)
|
64
66
|
with open(f"{self.session_dir}/ig_sessions_client_id.json", "w+", encoding="utf-8") as f:
|
65
|
-
|
67
|
+
json.dump(sessions, f, indent=2)
|
66
68
|
except Exception as e:
|
67
69
|
logging.warning("Failed to save session ig_session_client_id!")
|
68
70
|
logging.exception(e)
|
@@ -76,7 +78,7 @@ class AccountSelector(object):
|
|
76
78
|
data = json.loads(f.read())
|
77
79
|
if data and isinstance(data, dict):
|
78
80
|
for k, v in data.items():
|
79
|
-
self.ig_accounts_session_id[k] = v
|
81
|
+
self.ig_accounts_session_id[int(k)] = v
|
80
82
|
except Exception as e:
|
81
83
|
logging.warning("Failed to read session ig_session_client_id!")
|
82
84
|
logging.exception(e)
|
@@ -265,7 +267,7 @@ class AccountSelector(object):
|
|
265
267
|
|
266
268
|
def get_ig_session_id(self) -> str:
|
267
269
|
with self.lock:
|
268
|
-
idx = self.account_index[self.current_module_name].value
|
270
|
+
idx = int(self.account_index[self.current_module_name].value)
|
269
271
|
if idx not in self.ig_accounts_session_id:
|
270
272
|
self.ig_accounts_session_id[idx] = str(uuid.uuid4())
|
271
273
|
#else:
|
@@ -209,7 +209,7 @@ class InstagramScraper(ScraperAbstract):
|
|
209
209
|
logging.error("LoginRequired occurred in download handler!")
|
210
210
|
logging.exception(e)
|
211
211
|
relogin_success = False
|
212
|
-
if self.cl.relogin_attempt
|
212
|
+
if self.cl.relogin_attempt == 0:
|
213
213
|
try:
|
214
214
|
relogin_success = self.cl.relogin()
|
215
215
|
except Exception as exc:
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|