From 07b4ba3c3fb9df0f690595491c6e82224569f487 Mon Sep 17 00:00:00 2001 From: Kieran Eglin Date: Wed, 10 Apr 2024 11:45:26 -0700 Subject: [PATCH] renamed yt-dlp config file --- lib/pinchflat/boot/pre_job_startup_tasks.ex | 2 +- lib/pinchflat/yt_dlp/command_runner.ex | 2 +- test/pinchflat/boot/pre_job_startup_tasks_test.exs | 2 +- test/pinchflat/yt_dlp/command_runner_test.exs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/pinchflat/boot/pre_job_startup_tasks.ex b/lib/pinchflat/boot/pre_job_startup_tasks.ex index f85144a..e054a57 100644 --- a/lib/pinchflat/boot/pre_job_startup_tasks.ex +++ b/lib/pinchflat/boot/pre_job_startup_tasks.ex @@ -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 -> diff --git a/lib/pinchflat/yt_dlp/command_runner.ex b/lib/pinchflat/yt_dlp/command_runner.ex index 4a0b691..de52981 100644 --- a/lib/pinchflat/yt_dlp/command_runner.ex +++ b/lib/pinchflat/yt_dlp/command_runner.ex @@ -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 -> diff --git a/test/pinchflat/boot/pre_job_startup_tasks_test.exs b/test/pinchflat/boot/pre_job_startup_tasks_test.exs index 3e13730..fda4b65 100644 --- a/test/pinchflat/boot/pre_job_startup_tasks_test.exs +++ b/test/pinchflat/boot/pre_job_startup_tasks_test.exs @@ -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) diff --git a/test/pinchflat/yt_dlp/command_runner_test.exs b/test/pinchflat/yt_dlp/command_runner_test.exs index 442e6db..49610d5 100644 --- a/test/pinchflat/yt_dlp/command_runner_test.exs +++ b/test/pinchflat/yt_dlp/command_runner_test.exs @@ -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