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