kopia lustrzana https://github.com/bellingcat/auto-archiver
log levels updated
rodzic
216226e7cc
commit
c5a2fd45f9
|
@ -58,7 +58,7 @@ class InstagramTbotExtractor(Extractor):
|
||||||
"If you do, disable at least one of the archivers for the first-time setup of the telethon session: {e}"
|
"If you do, disable at least one of the archivers for the first-time setup of the telethon session: {e}"
|
||||||
)
|
)
|
||||||
with self.client.start():
|
with self.client.start():
|
||||||
logger.success(f"SETUP {self.name} login works.")
|
logger.info(f"SETUP {self.name} login works.")
|
||||||
|
|
||||||
def cleanup(self) -> None:
|
def cleanup(self) -> None:
|
||||||
logger.info(f"CLEANUP {self.name}.")
|
logger.info(f"CLEANUP {self.name}.")
|
||||||
|
|
|
@ -20,7 +20,7 @@ class OpentimestampsEnricher(Enricher):
|
||||||
# Get the media files to timestamp
|
# Get the media files to timestamp
|
||||||
media_files = [m for m in to_enrich.media if m.filename and not m.get("opentimestamps")]
|
media_files = [m for m in to_enrich.media if m.filename and not m.get("opentimestamps")]
|
||||||
if not media_files:
|
if not media_files:
|
||||||
logger.warning(f"No files found to timestamp in {url=}")
|
logger.debug(f"No files found to timestamp in {url=}")
|
||||||
return
|
return
|
||||||
|
|
||||||
timestamp_files = []
|
timestamp_files = []
|
||||||
|
@ -119,7 +119,7 @@ class OpentimestampsEnricher(Enricher):
|
||||||
if timestamp_files:
|
if timestamp_files:
|
||||||
to_enrich.set("opentimestamped", True)
|
to_enrich.set("opentimestamped", True)
|
||||||
to_enrich.set("opentimestamps_count", len(timestamp_files))
|
to_enrich.set("opentimestamps_count", len(timestamp_files))
|
||||||
logger.success(f"{len(timestamp_files)} OpenTimestamps proofs created for {url=}")
|
logger.info(f"{len(timestamp_files)} OpenTimestamps proofs created for {url=}")
|
||||||
else:
|
else:
|
||||||
to_enrich.set("opentimestamped", False)
|
to_enrich.set("opentimestamped", False)
|
||||||
logger.warning(f"No successful timestamps created for {url=}")
|
logger.warning(f"No successful timestamps created for {url=}")
|
||||||
|
|
|
@ -56,7 +56,7 @@ class TelethonExtractor(Extractor):
|
||||||
self.client = TelegramClient(self.session_file, self.api_id, self.api_hash)
|
self.client = TelegramClient(self.session_file, self.api_id, self.api_hash)
|
||||||
|
|
||||||
with self.client.start():
|
with self.client.start():
|
||||||
logger.success(f"SETUP {self.name} login works.")
|
logger.info(f"SETUP {self.name} login works.")
|
||||||
|
|
||||||
if self.join_channels and len(self.channel_invites):
|
if self.join_channels and len(self.channel_invites):
|
||||||
logger.info(f"SETUP {self.name} joining channels...")
|
logger.info(f"SETUP {self.name} joining channels...")
|
||||||
|
|
Ładowanie…
Reference in New Issue