From 3d389ee05b13b8b4f7c47368f2f1cfd77fa2ea4b Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Tue, 18 Apr 2023 19:14:47 +0100 Subject: [PATCH] add url info --- src/auto_archiver/core/orchestrator.py | 2 +- src/auto_archiver/enrichers/whisper_enricher.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/auto_archiver/core/orchestrator.py b/src/auto_archiver/core/orchestrator.py index 1835ae2..4378100 100644 --- a/src/auto_archiver/core/orchestrator.py +++ b/src/auto_archiver/core/orchestrator.py @@ -114,7 +114,7 @@ class ArchivingOrchestrator: # 6 - format and store formatted if needed # enrichers typically need access to already stored URLs etc if (final_media := self.formatter.format(result)): - final_media.store() + final_media.store(url=url) result.set_final_media(final_media) if result.is_empty(): diff --git a/src/auto_archiver/enrichers/whisper_enricher.py b/src/auto_archiver/enrichers/whisper_enricher.py index 9a3fd88..51aca86 100644 --- a/src/auto_archiver/enrichers/whisper_enricher.py +++ b/src/auto_archiver/enrichers/whisper_enricher.py @@ -42,7 +42,7 @@ class WhisperEnricher(Enricher): job_results = {} for i, m in enumerate(to_enrich.media): if m.is_video() or m.is_audio(): - m.store() + m.store(url=url) try: job_id = self.submit_job(m) job_results[job_id] = False