mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 09:34:44 +01:00
Fix plugin installation and correct api behaviour
The `/Packages/{Name}` endpoint would return a package that had either
the corrent name or the correct guid. In reality it shoud check if both
are correct.
This commit is contained in:
@@ -141,8 +141,7 @@ namespace Emby.Server.Implementations.Updates
|
||||
|
||||
if (guid != Guid.Empty)
|
||||
{
|
||||
var strGuid = guid.ToString("N", CultureInfo.InvariantCulture);
|
||||
availablePackages = availablePackages.Where(x => x.guid.Equals(strGuid, StringComparison.OrdinalIgnoreCase));
|
||||
availablePackages = availablePackages.Where(x => Guid.Parse(x.guid) == guid);
|
||||
}
|
||||
|
||||
return availablePackages;
|
||||
|
||||
Reference in New Issue
Block a user