Start integrating playlist support (#13)

* [WIP] updated the output of VideoCollection to include playlists

* Updated source's name to collection_name; supported playlist ID/name fetching

* Hooked up collection_type to form; refactored enqueue_pending_media_downloads

* Added friendly_name to form

* Added media profile link to source view

* Updates comment
This commit is contained in:
Kieran
2024-02-05 11:38:19 -08:00
committed by GitHub
parent bdef6c75bb
commit ca01f17b58
19 changed files with 291 additions and 100 deletions
@@ -1,6 +1,7 @@
defmodule PinchflatWeb.MediaSources.SourceController do
use PinchflatWeb, :controller
alias Pinchflat.Repo
alias Pinchflat.Profiles
alias Pinchflat.MediaSource
alias Pinchflat.MediaSource.Source
@@ -30,7 +31,10 @@ defmodule PinchflatWeb.MediaSources.SourceController do
end
def show(conn, %{"id" => id}) do
source = MediaSource.get_source!(id)
source =
id
|> MediaSource.get_source!()
|> Repo.preload(:media_profile)
render(conn, :show, source: source)
end