[Bugfix] Partially revert custom codec selection (#279)

* Removed and re-added codec preference columns

* Removed custom codec work from download options builder

* Updated settings UI

* Made codec preferences non-optional fields
This commit is contained in:
Kieran
2024-06-04 09:19:37 -07:00
committed by GitHub
parent 1c9f8f6abc
commit 4994e70652
10 changed files with 48 additions and 285 deletions
@@ -0,0 +1,15 @@
defmodule Pinchflat.Repo.Migrations.RefactorCodecPreferences do
use Ecto.Migration
def change do
alter table(:settings) do
remove :video_codec_preference, {:array, :string}, default: []
remove :audio_codec_preference, {:array, :string}, default: []
end
alter table(:settings) do
add :video_codec_preference, :string, default: "avc", null: false
add :audio_codec_preference, :string, default: "m4a", null: false
end
end
end