mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-01 21:38:27 +01:00
Store lyrics in the database as media streams (#9951)
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Text.Json.Serialization;
|
||||
@@ -27,6 +28,7 @@ namespace MediaBrowser.Controller.Entities.Audio
|
||||
{
|
||||
Artists = Array.Empty<string>();
|
||||
AlbumArtists = Array.Empty<string>();
|
||||
LyricFiles = Array.Empty<string>();
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
@@ -65,6 +67,16 @@ namespace MediaBrowser.Controller.Entities.Audio
|
||||
[JsonIgnore]
|
||||
public override MediaType MediaType => MediaType.Audio;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this audio has lyrics.
|
||||
/// </summary>
|
||||
public bool? HasLyrics { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the list of lyric paths.
|
||||
/// </summary>
|
||||
public IReadOnlyList<string> LyricFiles { get; set; }
|
||||
|
||||
public override double GetDefaultPrimaryImageAspectRatio()
|
||||
{
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user