renamed yt-dlp config file
This commit is contained in:
parent
b7565a0ec2
commit
07b4ba3c3f
4 changed files with 4 additions and 4 deletions
|
|
@ -51,7 +51,7 @@ defmodule Pinchflat.Boot.PreJobStartupTasks do
|
|||
end
|
||||
|
||||
defp create_blank_yt_dlp_files do
|
||||
files = ["cookies.txt", "yt-dlp-config.txt"]
|
||||
files = ["cookies.txt", "yt-dlp-configs/main.txt"]
|
||||
base_dir = Application.get_env(:pinchflat, :extras_directory)
|
||||
|
||||
Enum.each(files, fn file ->
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ defmodule Pinchflat.YtDlp.CommandRunner do
|
|||
|
||||
filename_options_map = %{
|
||||
cookies: "cookies.txt",
|
||||
config_locations: "yt-dlp-config.txt"
|
||||
config_locations: "yt-dlp-configs/main.txt"
|
||||
}
|
||||
|
||||
Enum.reduce(filename_options_map, [], fn {opt_name, filename}, acc ->
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ defmodule Pinchflat.Boot.PreJobStartupTasksTest do
|
|||
|
||||
test "creates a blank yt-dlp config file" do
|
||||
base_dir = Application.get_env(:pinchflat, :extras_directory)
|
||||
filepath = Path.join(base_dir, "yt-dlp-config.txt")
|
||||
filepath = Path.join([base_dir, "yt-dlp-configs", "main.txt"])
|
||||
File.rm(filepath)
|
||||
|
||||
refute File.exists?(filepath)
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ defmodule Pinchflat.YtDlp.CommandRunnerTest do
|
|||
setup do
|
||||
base_dir = Application.get_env(:pinchflat, :extras_directory)
|
||||
cookie_file = Path.join(base_dir, "cookies.txt")
|
||||
yt_dlp_file = Path.join(base_dir, "yt-dlp-config.txt")
|
||||
yt_dlp_file = Path.join([base_dir, "yt-dlp-configs", "main.txt"])
|
||||
|
||||
{:ok, cookie_file: cookie_file, yt_dlp_file: yt_dlp_file}
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue