-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added subtitle options to media profile model * Updated media profile form * Adds subtitle-based options in options builder * Updates metadata parser to include subtitles * Adds subtitle_filepaths to media_item * renamed video_filepath to media_filepath * Added more fields to media profile show page
- Loading branch information
1 parent
a5e7c48
commit d25e65f
Showing
19 changed files
with
5,182 additions
and
915 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
alias Pinchflat.Repo | ||
|
||
alias Pinchflat.Tasks.Task | ||
alias Pinchflat.Media.MediaItem | ||
alias Pinchflat.Media.MediaMetadata | ||
alias Pinchflat.MediaSource.Channel | ||
alias Pinchflat.Profiles.MediaProfile | ||
|
||
alias Pinchflat.Tasks | ||
alias Pinchflat.Media | ||
alias Pinchflat.Profiles | ||
alias Pinchflat.MediaSource | ||
|
||
alias Pinchflat.MediaClient.{ChannelDetails, VideoDownloader} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
priv/repo/migrations/20240131042824_add_subtitle_options_to_media_profiles.exs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
defmodule Pinchflat.Repo.Migrations.AddSubtitleOptionsToMediaProfiles do | ||
use Ecto.Migration | ||
|
||
def change do | ||
alter table(:media_profiles) do | ||
add :download_subs, :boolean, default: true, null: false | ||
add :download_auto_subs, :boolean, default: true, null: false | ||
add :embed_subs, :boolean, default: true, null: false | ||
add :sub_langs, :string, default: "en", null: false | ||
end | ||
end | ||
end |
9 changes: 9 additions & 0 deletions
9
priv/repo/migrations/20240131182114_add_subtitles_to_media_item.exs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
defmodule Pinchflat.Repo.Migrations.AddSubtitleFilepathsToMediaItem do | ||
use Ecto.Migration | ||
|
||
def change do | ||
alter table(:media_items) do | ||
add :subtitle_filepaths, {:array, {:array, :string}}, default: [] | ||
end | ||
end | ||
end |
7 changes: 7 additions & 0 deletions
7
priv/repo/migrations/20240131183153_rename_video_filepath_on_media_items.exs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
defmodule Pinchflat.Repo.Migrations.RenameVideoFilepathOnMediaItems do | ||
use Ecto.Migration | ||
|
||
def change do | ||
rename table(:media_items), :video_filepath, to: :media_filepath | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.