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:
1 parent
4dd9d837a3
commit
977b69b7c3
19 files changed
+5139
-872
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user