diff --git a/lib/pinchflat/sources/source.ex b/lib/pinchflat/sources/source.ex index 3a23db8..1e0dfee 100644 --- a/lib/pinchflat/sources/source.ex +++ b/lib/pinchflat/sources/source.ex @@ -37,6 +37,8 @@ defmodule Pinchflat.Sources.Source do media_profile_id output_path_template_override marked_for_deletion_at + min_duration_seconds + max_duration_seconds )a # Expensive API calls are made when a source is inserted/updated so @@ -84,6 +86,9 @@ defmodule Pinchflat.Sources.Source do field :title_filter_regex, :string field :output_path_template_override, :string + field :min_duration_seconds, :integer + field :max_duration_seconds, :integer + field :series_directory, :string field :nfo_filepath, :string field :poster_filepath, :string diff --git a/priv/repo/erd.png b/priv/repo/erd.png index 958d3d5..deed712 100644 Binary files a/priv/repo/erd.png and b/priv/repo/erd.png differ diff --git a/priv/repo/migrations/20240814193939_add_duration_limits_to_sources.exs b/priv/repo/migrations/20240814193939_add_duration_limits_to_sources.exs new file mode 100644 index 0000000..75b55f4 --- /dev/null +++ b/priv/repo/migrations/20240814193939_add_duration_limits_to_sources.exs @@ -0,0 +1,10 @@ +defmodule Pinchflat.Repo.Migrations.AddDurationLimitsToSources do + use Ecto.Migration + + def change do + alter table(:sources) do + add :min_duration_seconds, :integer + add :max_duration_seconds, :integer + end + end +end