From ef343dec7c9ad7554ffbaf0b7301ce99666caaa9 Mon Sep 17 00:00:00 2001 From: I-Al-Istannen Date: Wed, 4 Nov 2020 15:06:58 +0100 Subject: [PATCH] Merge organizer download summaries --- PFERD/pferd.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/PFERD/pferd.py b/PFERD/pferd.py index f57f078..c01b5fd 100644 --- a/PFERD/pferd.py +++ b/PFERD/pferd.py @@ -343,6 +343,11 @@ class Pferd(Location): downloader = IpdDownloader(tmp_dir=tmp_dir, organizer=organizer, strategy=download_strategy) downloader.download_all(transformed) + if clean: + organizer.cleanup() + + self._download_summary.merge(organizer.download_summary) + return organizer @swallow_and_print_errors @@ -403,4 +408,6 @@ class Pferd(Location): if clean: organizer.cleanup() + self._download_summary.merge(organizer.download_summary) + return organizer