Media downloading indexing options (round 2) (#14)
* Adds options + option builder + metadata parsing for media thumbnails * Added release-type options to media profile; built option parser for indexing operations * Added new media_profile options to creation form; made show helper for rendering database items * Added options for downloading/embedding metadata * Adds option on sources to not download media (index only) * reformatted docs
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
defmodule Pinchflat.Repo.Migrations.AddThumbnailOptionsToMediaProfiles do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
alter table(:media_profiles) do
|
||||
add :download_thumbnail, :boolean, default: true, null: false
|
||||
add :embed_thumbnail, :boolean, default: true, null: false
|
||||
end
|
||||
|
||||
alter table(:media_items) do
|
||||
add :thumbnail_filepath, :string
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,10 @@
|
||||
defmodule Pinchflat.Repo.Migrations.AddReleaseTypeBehaviourToMediaProfiles do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
alter table(:media_profiles) do
|
||||
add :shorts_behaviour, :string, null: false, default: "include"
|
||||
add :livestream_behaviour, :string, null: false, default: "include"
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,14 @@
|
||||
defmodule Pinchflat.Repo.Migrations.AddMetadataOptionsToMediaProfiles do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
alter table(:media_profiles) do
|
||||
add :download_metadata, :boolean, default: true, null: false
|
||||
add :embed_metadata, :boolean, default: true, null: false
|
||||
end
|
||||
|
||||
alter table(:media_items) do
|
||||
add :metadata_filepath, :string
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,9 @@
|
||||
defmodule Pinchflat.Repo.Migrations.AddDownloadMediaToSources do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
alter table(:sources) do
|
||||
add :download_media, :boolean, default: true, null: false
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user