Added yt-dlp version to sidebar (#155)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user