Added duration limits to source model
This commit is contained in:
parent
8e9f02c807
commit
bae45ea335
3 changed files with 15 additions and 0 deletions
|
|
@ -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 |
|
|
@ -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
|
||||
Loading…
Reference in a new issue