From b3249d6387eb5e42ba8eedeef476faa5e58f93f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20P=C5=82ocki?= Date: Tue, 20 Feb 2024 20:49:45 +0100 Subject: [PATCH] Changes for gap in downloaded files handling --- podcast_downloader/__main__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/podcast_downloader/__main__.py b/podcast_downloader/__main__.py index f442e31..468b6f6 100644 --- a/podcast_downloader/__main__.py +++ b/podcast_downloader/__main__.py @@ -249,12 +249,12 @@ def configuration_to_function_rss_to_name( last_downloaded_file = get_last_downloaded_file_before_gap( all_feed_files, downloaded_files ) - download_limiter_function = None else: last_downloaded_file = downloaded_files[0] - download_limiter_function = partial( - build_only_new_entities(to_name_function), last_downloaded_file - ) + + download_limiter_function = partial( + build_only_new_entities(to_name_function), last_downloaded_file + ) else: download_limiter_function = on_directory_empty