Skip to content

Commit

Permalink
Merge pull request #29 from 3rob3/dev.jw.fixtrailingslash
Browse files Browse the repository at this point in the history
Fix trailing slash in server url
  • Loading branch information
JW-CH authored Mar 18, 2024
2 parents 2306aa4 + ae4d131 commit c9b0d73
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 c9b0d73

Please sign in to comment.