v1.3.0: Massive WebUI cleanup, Fixed/Stabilized scrobbling, Significant security hardening, added user login to WebUI, refactored searching/interleaving to work MUCH better, Tidal Powered recommendations for SquidWTF provider, Fixed double scrobbling, inferring stops much better, fixed playlist cron rebuilding, stale injected playlist artwork, and search cache TTL
Docker Build & Push / build-and-test (push) Has been cancelled
Docker Build & Push / docker (push) Has been cancelled

This commit is contained in:
2026-03-06 01:59:30 -05:00
parent dfac3c4d60
commit 48b40f89c0
127 changed files with 18679 additions and 7254 deletions
@@ -0,0 +1,47 @@
using System.Reflection;
using allstarr.Controllers;
namespace allstarr.Tests;
public class JellyfinSearchTermRecoveryTests
{
[Fact]
public void RecoverSearchTermFromRawQuery_PreservesUnencodedAmpersand()
{
var raw = "?SearchTerm=Love%20&%20Hyperbole&Recursive=true&IncludeItemTypes=MusicAlbum";
var recovered = InvokePrivateStatic<string?>("RecoverSearchTermFromRawQuery", raw);
Assert.Equal("Love & Hyperbole", recovered);
}
[Fact]
public void GetEffectiveSearchTerm_PrefersRecoveredWhenBoundIsTruncated()
{
var bound = "Love ";
var raw = "?SearchTerm=Love%20&%20Hyperbole&Recursive=true";
var effective = InvokePrivateStatic<string?>("GetEffectiveSearchTerm", bound, raw);
Assert.Equal("Love & Hyperbole", effective);
}
[Fact]
public void GetEffectiveSearchTerm_UsesBoundWhenRecoveredIsMissing()
{
var bound = "Love & Hyperbole";
var raw = "?Recursive=true&IncludeItemTypes=MusicAlbum";
var effective = InvokePrivateStatic<string?>("GetEffectiveSearchTerm", bound, raw);
Assert.Equal("Love & Hyperbole", effective);
}
private static T InvokePrivateStatic<T>(string methodName, params object?[] args)
{
var method = typeof(JellyfinController).GetMethod(
methodName,
BindingFlags.NonPublic | BindingFlags.Static);
Assert.NotNull(method);
var result = method!.Invoke(null, args);
return (T)result!;
}
}