Added description to source (#124)

This commit is contained in:
Kieran
2024-03-25 15:40:09 -07:00
committed by GitHub
parent e051a37f0d
commit bf11cd0dd9
4 changed files with 30 additions and 0 deletions
@@ -32,6 +32,7 @@ defmodule Pinchflat.Metadata.SourceMetadataStorageWorker do
@doc """
Fetches and stores various forms of metadata for a source:
- Attributes like `description`
- JSON metadata for internal use
- The series directory for the source
- The NFO file for the source (if specified)
@@ -59,6 +60,7 @@ defmodule Pinchflat.Metadata.SourceMetadataStorageWorker do
%{
series_directory: series_directory,
nfo_filepath: store_source_nfo(source, series_directory, source_metadata),
description: source_metadata["description"],
metadata: Map.merge(%{metadata_filepath: source_metadata_filepath}, metadata_image_attrs)
},
source_image_attrs
+2
View File
@@ -17,6 +17,7 @@ defmodule Pinchflat.Sources.Source do
collection_id
collection_type
custom_name
description
nfo_filepath
poster_filepath
fanart_filepath
@@ -55,6 +56,7 @@ defmodule Pinchflat.Sources.Source do
schema "sources" do
field :custom_name, :string
field :description, :string
field :collection_name, :string
field :collection_id, :string
field :collection_type, Ecto.Enum, values: [:channel, :playlist]