Added yt-dlp version to sidebar (#155)

This commit is contained in:
Kieran authored and GitHub committed 2024-04-01 17:54:51 -07:00
1 parent 0eca0acbe8
commit c58e176619
6 files changed
+37 -4

No files matched your search

@@ -102,6 +102,14 @@ defmodule Pinchflat.YtDlp.CommandRunnerTest do
end
end
describe "version/0" do
test "adds the version arg" do
assert {:ok, output} = Runner.version()
assert String.contains?(output, "--version")
end
end
defp wrap_executable(new_executable, fun) do
Application.put_env(:pinchflat, :yt_dlp_executable, new_executable)
fun.()
@@ -12,5 +12,9 @@ for ((i = 1; i <= $#; i++)); do
fi
done
# Write all args to the file
echo "$@" >"$file_location"
if [ "${!i}" == "--print-to-file" ]; then
# Write all args to the file
echo "$@" >"$file_location"
else
echo "$@"
fi