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

@@ -14,6 +14,7 @@ defmodule Pinchflat.Boot.PreJobStartupTasks do
alias Pinchflat.Repo
alias Pinchflat.Settings
alias Pinchflat.YtDlp.CommandRunner
alias Pinchflat.Filesystem.FilesystemHelpers
def start_link(opts \\ []) do
@@ -62,7 +63,10 @@ defmodule Pinchflat.Boot.PreJobStartupTasks do
end
defp apply_default_settings do
{:ok, yt_dlp_version} = CommandRunner.version()
Settings.fetch!(:onboarding, true)
Settings.fetch!(:pro_enabled, false)
Settings.set!(:yt_dlp_version, yt_dlp_version)
end
end