From 25aaef7da435b3de49864725bea533daa6d2c8c5 Mon Sep 17 00:00:00 2001 From: Kieran Eglin Date: Wed, 10 Apr 2024 21:43:15 -0700 Subject: [PATCH] Fixed bug with redownloading not forcing download of the video --- lib/pinchflat/downloading/download_option_builder.ex | 3 ++- test/pinchflat/downloading/download_option_builder_test.exs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/pinchflat/downloading/download_option_builder.ex b/lib/pinchflat/downloading/download_option_builder.ex index 9e3a5c4..dec34a7 100644 --- a/lib/pinchflat/downloading/download_option_builder.ex +++ b/lib/pinchflat/downloading/download_option_builder.ex @@ -41,7 +41,8 @@ defmodule Pinchflat.Downloading.DownloadOptionBuilder do end defp default_options do - [:no_progress, :windows_filenames] + # Add force-overwrites to make sure redownloading works + [:no_progress, :windows_filenames, :force_overwrites] end defp subtitle_options(media_profile) do diff --git a/test/pinchflat/downloading/download_option_builder_test.exs b/test/pinchflat/downloading/download_option_builder_test.exs index 22ca4b2..a7a30cb 100644 --- a/test/pinchflat/downloading/download_option_builder_test.exs +++ b/test/pinchflat/downloading/download_option_builder_test.exs @@ -39,6 +39,7 @@ defmodule Pinchflat.Downloading.DownloadOptionBuilderTest do assert :no_progress in res assert :windows_filenames in res + assert :force_overwrites in res end end