Added duration limits to source model

This commit is contained in:
Kieran Eglin 2024-08-14 12:41:35 -07:00
parent 8e9f02c807
commit bae45ea335
No known key found for this signature in database
GPG key ID: 193984967FCF432D
3 changed files with 15 additions and 0 deletions

View file

@ -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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 449 KiB

After

Width:  |  Height:  |  Size: 436 KiB

View file

@ -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