dry-run
This commit is contained in:
parent
86a0fb0400
commit
b497dafe1b
2 changed files with 3 additions and 2 deletions
|
|
@ -72,7 +72,8 @@ class SubscriptionDownload(BaseSubscription, ABC):
|
||||||
entry=entry,
|
entry=entry,
|
||||||
)
|
)
|
||||||
|
|
||||||
if self.output_options.thumbnail_name and entry.is_thumbnail_downloaded():
|
# Always pretend to include the thumbnail in a dry-run
|
||||||
|
if self.output_options.thumbnail_name and (dry_run or entry.is_thumbnail_downloaded()):
|
||||||
output_thumbnail_name = self.overrides.apply_formatter(
|
output_thumbnail_name = self.overrides.apply_formatter(
|
||||||
formatter=self.output_options.thumbnail_name, entry=entry
|
formatter=self.output_options.thumbnail_name, entry=entry
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -119,7 +119,7 @@ class TestYoutubeVideo:
|
||||||
transaction_log_summary_file_name="youtube/test_video.txt",
|
transaction_log_summary_file_name="youtube/test_video.txt",
|
||||||
)
|
)
|
||||||
|
|
||||||
@pytest.mark.parametrize("dry_run", [True, False])
|
@pytest.mark.parametrize("dry_run", [True])
|
||||||
def test_single_video_download(
|
def test_single_video_download(
|
||||||
self,
|
self,
|
||||||
music_video_config,
|
music_video_config,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue