mirror of
https://github.com/SoPat712/allstarr.git
synced 2026-02-10 16:08:39 -05:00
Add LRCLIB lyrics integration for Jellyfin
- Create LrclibService to fetch lyrics from lrclib.net API
- Add LyricsInfo model for lyrics data
- Add /Audio/{itemId}/Lyrics and /Items/{itemId}/Lyrics endpoints
- Support both local and external songs
- Cache lyrics for 30 days in Redis
- Return lyrics in Jellyfin format with synced/plain lyrics
This commit is contained in:
13
allstarr/Models/Lyrics/LyricsInfo.cs
Normal file
13
allstarr/Models/Lyrics/LyricsInfo.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace allstarr.Models.Lyrics;
|
||||
|
||||
public class LyricsInfo
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string TrackName { get; set; } = string.Empty;
|
||||
public string ArtistName { get; set; } = string.Empty;
|
||||
public string AlbumName { get; set; } = string.Empty;
|
||||
public int Duration { get; set; }
|
||||
public bool Instrumental { get; set; }
|
||||
public string? PlainLyrics { get; set; }
|
||||
public string? SyncedLyrics { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user