diff --git a/src/ytdl_sub/utils/file_handler.py b/src/ytdl_sub/utils/file_handler.py index ad48d73f..e3d087f5 100644 --- a/src/ytdl_sub/utils/file_handler.py +++ b/src/ytdl_sub/utils/file_handler.py @@ -267,6 +267,9 @@ class FileHandlerTransactionLog: for file_path in sorted(self.files_removed): lines.append(file_path) + if self.is_empty: + lines.append(f"No new, modified, or removed files in '{output_directory}'") + return "\n".join(lines) diff --git a/tests/e2e/resources/transaction_log_summaries/plugins/date_range/no_downloads.txt b/tests/e2e/resources/transaction_log_summaries/plugins/date_range/no_downloads.txt index 16888915..7192b6c7 100644 --- a/tests/e2e/resources/transaction_log_summaries/plugins/date_range/no_downloads.txt +++ b/tests/e2e/resources/transaction_log_summaries/plugins/date_range/no_downloads.txt @@ -1,10 +1 @@ -Files created in '{output_directory}' ----------------------------------------- -.ytdl-sub-recent-download-archive.json -fanart.jpg -poster.jpg -tvshow.nfo - NFO tags: - tvshow: - plot: Plugin and map updates for the server Project Zombie. - title: Project / Zombie \ No newline at end of file +No new, modified, or removed files in '{output_directory}' \ No newline at end of file diff --git a/tests/e2e/resources/transaction_log_summaries/plugins/date_range/test_channel_recent.txt b/tests/e2e/resources/transaction_log_summaries/plugins/date_range/test_channel_recent.txt index 9ad2da30..4b2d9005 100644 --- a/tests/e2e/resources/transaction_log_summaries/plugins/date_range/test_channel_recent.txt +++ b/tests/e2e/resources/transaction_log_summaries/plugins/date_range/test_channel_recent.txt @@ -53,4 +53,7 @@ tvshow.nfo NFO tags: tvshow: plot: Plugin and map updates for the server Project Zombie. - title: Project / Zombie \ No newline at end of file + title: Project / Zombie +Files modified in '{output_directory}' +---------------------------------------- +.ytdl-sub-recent-download-archive.json \ No newline at end of file diff --git a/tests/e2e/resources/transaction_log_summaries/plugins/date_range/test_channel_rolling_recent.txt b/tests/e2e/resources/transaction_log_summaries/plugins/date_range/test_channel_rolling_recent.txt index d9b74e8d..ee834a45 100644 --- a/tests/e2e/resources/transaction_log_summaries/plugins/date_range/test_channel_rolling_recent.txt +++ b/tests/e2e/resources/transaction_log_summaries/plugins/date_range/test_channel_rolling_recent.txt @@ -1,14 +1,6 @@ -Files created in '{output_directory}' +Files modified in '{output_directory}' ---------------------------------------- .ytdl-sub-recent-download-archive.json -fanart.jpg -poster.jpg -tvshow.nfo - NFO tags: - tvshow: - plot: Plugin and map updates for the server Project Zombie. - title: Project / Zombie - Files removed from '{output_directory}' ---------------------------------------- Season 2018/s2018.e1029 - Jesse's Minecraft Server | Teaser Trailer-thumb.jpg diff --git a/tests/e2e/resources/transaction_log_summaries/plugins/split_by_chapters_with_regex_no_chapters_video_drop.txt b/tests/e2e/resources/transaction_log_summaries/plugins/split_by_chapters_with_regex_no_chapters_video_drop.txt index e69de29b..7192b6c7 100644 --- a/tests/e2e/resources/transaction_log_summaries/plugins/split_by_chapters_with_regex_no_chapters_video_drop.txt +++ b/tests/e2e/resources/transaction_log_summaries/plugins/split_by_chapters_with_regex_no_chapters_video_drop.txt @@ -0,0 +1 @@ +No new, modified, or removed files in '{output_directory}' \ No newline at end of file diff --git a/tests/e2e/resources/transaction_log_summaries/soundcloud/test_soundcloud_discography.txt b/tests/e2e/resources/transaction_log_summaries/soundcloud/test_soundcloud_discography.txt index f34f9c00..c070302a 100644 --- a/tests/e2e/resources/transaction_log_summaries/soundcloud/test_soundcloud_discography.txt +++ b/tests/e2e/resources/transaction_log_summaries/soundcloud/test_soundcloud_discography.txt @@ -133,4 +133,7 @@ j_b/[2022] Acoustic Treats/11 - Untold History.mp3 title: Untold History track: 11 year: 2022 -j_b/[2022] Acoustic Treats/folder.jpg \ No newline at end of file +j_b/[2022] Acoustic Treats/folder.jpg +Files modified in '{output_directory}' +---------------------------------------- +.ytdl-sub-jb-download-archive.json \ No newline at end of file diff --git a/tests/e2e/resources/transaction_log_summaries/youtube/test_channel_full.txt b/tests/e2e/resources/transaction_log_summaries/youtube/test_channel_full.txt index 685e186c..1e5dc4e6 100644 --- a/tests/e2e/resources/transaction_log_summaries/youtube/test_channel_full.txt +++ b/tests/e2e/resources/transaction_log_summaries/youtube/test_channel_full.txt @@ -285,4 +285,7 @@ tvshow.nfo tvshow: plot: Plugin and map updates for the server Project Zombie. source_uploader: Project Zombie - title: Project / Zombie \ No newline at end of file + title: Project / Zombie +Files modified in '{output_directory}' +---------------------------------------- +.ytdl-sub-pz-download-archive.json \ No newline at end of file diff --git a/tests/e2e/resources/transaction_log_summaries/youtube/test_playlist.txt b/tests/e2e/resources/transaction_log_summaries/youtube/test_playlist.txt index 14e1f17f..b067edc1 100644 --- a/tests/e2e/resources/transaction_log_summaries/youtube/test_playlist.txt +++ b/tests/e2e/resources/transaction_log_summaries/youtube/test_playlist.txt @@ -36,4 +36,7 @@ tvshow.nfo test: source_description: Trailers, Updates, etc source_title: Jesse's Minecraft Server - source_uploader: Project Zombie \ No newline at end of file + source_uploader: Project Zombie +Files modified in '{output_directory}' +---------------------------------------- +.ytdl-sub-music_video_playlist_test-download-archive.json \ No newline at end of file