Resolved windows filesystem bug (#38)
This commit is contained in:
parent
52c0a1742a
commit
3bb7edba0b
2 changed files with 10 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ defmodule Pinchflat.Profiles.Options.YtDlp.DownloadOptionBuilder do
|
||||||
|
|
||||||
# This will be updated a lot as I add new options to profiles
|
# This will be updated a lot as I add new options to profiles
|
||||||
defp default_options do
|
defp default_options do
|
||||||
[:no_progress]
|
[:no_progress, :windows_filenames]
|
||||||
end
|
end
|
||||||
|
|
||||||
defp subtitle_options(media_profile) do
|
defp subtitle_options(media_profile) do
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,15 @@ defmodule Pinchflat.Profiles.Options.YtDlp.DownloadOptionBuilderTest do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
describe "build/1 when testing default options" do
|
||||||
|
test "it includes default options" do
|
||||||
|
assert {:ok, res} = DownloadOptionBuilder.build(@media_profile)
|
||||||
|
|
||||||
|
assert :no_progress in res
|
||||||
|
assert :windows_filenames in res
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
describe "build/1 when testing subtitle options" do
|
describe "build/1 when testing subtitle options" do
|
||||||
test "includes :write_subs option when specified" do
|
test "includes :write_subs option when specified" do
|
||||||
media_profile = %MediaProfile{@media_profile | download_subs: true}
|
media_profile = %MediaProfile{@media_profile | download_subs: true}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue