Allow subtitle downloading (#11)

* 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
This commit is contained in:
Kieran authored and GitHub committed 2024-01-31 10:55:02 -08:00
1 parent a5e7c48f70
commit d25e65f822
19 files changed
+5139 -872

No files matched your search

+2 -2
View File
@@ -19,14 +19,14 @@ defmodule Pinchflat.Media do
@doc """
Returns a list of pending media_items for a given channel, where
pending means the `video_filepath` is `nil`.
pending means the `media_filepath` is `nil`.
Returns [%MediaItem{}, ...].
"""
def list_pending_media_items_for(%Channel{} = channel) do
from(
m in MediaItem,
where: m.channel_id == ^channel.id and is_nil(m.video_filepath)
where: m.channel_id == ^channel.id and is_nil(m.media_filepath)
)
|> Repo.all()
end