Initial yt-dlp implementation (#3)

* Added basic runner for yt-dlp commands

* Updated formatting rules

* Added JSON runner; Added test script for CLI interactions

* Reworked yt-dlp runner; added proper test mocks
This commit is contained in:
Kieran
2024-01-19 22:26:32 -08:00
committed by GitHub
parent 536f868ba0
commit 4827da3106
16 changed files with 259 additions and 10 deletions
+4 -1
View File
@@ -9,7 +9,10 @@ import Config
config :pinchflat,
ecto_repos: [Pinchflat.Repo],
generators: [timestamp_type: :utc_datetime]
generators: [timestamp_type: :utc_datetime],
# Specifying backend data here makes mocking and local testing SUPER easy
yt_dlp_executable: System.find_executable("yt-dlp"),
yt_dlp_runner: Pinchflat.DownloaderBackends.YtDlp.CommandRunner
# Configures the endpoint
config :pinchflat, PinchflatWeb.Endpoint,