Skip to content

Commit

Permalink
Fix trailing slash in server url
Browse files Browse the repository at this point in the history
  • Loading branch information
JW-CH committed Mar 18, 2024
1 parent 2306aa4 commit ae4d131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ImmichFrame/Models/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private static Settings Parse()

var settings = new Settings
{
ImmichServerUrl = doc.Element("ImmichServerUrl")!.Value,
ImmichServerUrl = doc.Element("ImmichServerUrl")!.Value.TrimEnd('/'),
ApiKey = doc.Element("ApiKey")?.Value ?? string.Empty,
Albums = doc.Element("Albums")?.DescendantNodes().OfType<XElement>().Select(x => Guid.Parse(x.Value)).Distinct().ToList() ?? new(),
People = doc.Element("People")?.DescendantNodes().OfType<XElement>().Select(x => Guid.Parse(x.Value)).Distinct().ToList() ?? new(),
Expand Down

0 comments on commit ae4d131

Please sign in to comment.