mirror of
https://github.com/SoPat712/allstarr.git
synced 2026-02-10 16:08:39 -05:00
feat: Fork octo-fiestarr as allstarr with Jellyfin proxy improvements
Major changes: - Rename project from octo-fiesta to allstarr - Add Jellyfin proxy support alongside Subsonic/Navidrome - Implement fuzzy search with relevance scoring and Levenshtein distance - Add POST body logging for debugging playback progress issues - Separate local and external artists in search results - Add +5 score boost for external results to prioritize larger catalog(probably gonna reverse it) - Create FuzzyMatcher utility for intelligent search result scoring - Add ConvertPlaylistToJellyfinItem method for playlist support - Rename keys folder to apis and update gitignore - Filter search results by relevance score (>= 40) - Add Redis caching support with configurable settings - Update environment configuration with backend selection - Improve external provider integration (SquidWTF, Deezer, Qobuz) - Add tests for all services
This commit is contained in:
17
allstarr/Models/Download/DownloadInfo.cs
Normal file
17
allstarr/Models/Download/DownloadInfo.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace allstarr.Models.Download;
|
||||
|
||||
/// <summary>
|
||||
/// Information about an ongoing or completed download
|
||||
/// </summary>
|
||||
public class DownloadInfo
|
||||
{
|
||||
public string SongId { get; set; } = string.Empty;
|
||||
public string ExternalId { get; set; } = string.Empty;
|
||||
public string ExternalProvider { get; set; } = string.Empty;
|
||||
public DownloadStatus Status { get; set; }
|
||||
public double Progress { get; set; } // 0.0 to 1.0
|
||||
public string? LocalPath { get; set; }
|
||||
public string? ErrorMessage { get; set; }
|
||||
public DateTime StartedAt { get; set; }
|
||||
public DateTime? CompletedAt { get; set; }
|
||||
}
|
||||
12
allstarr/Models/Download/DownloadStatus.cs
Normal file
12
allstarr/Models/Download/DownloadStatus.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace allstarr.Models.Download;
|
||||
|
||||
/// <summary>
|
||||
/// Download status of a song
|
||||
/// </summary>
|
||||
public enum DownloadStatus
|
||||
{
|
||||
NotStarted,
|
||||
InProgress,
|
||||
Completed,
|
||||
Failed
|
||||
}
|
||||
Reference in New Issue
Block a user