Skip to content

Commit

Permalink
Fix: id escaping with colons (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
xjasonlyu authored Oct 13, 2023
1 parent a5fe5f8 commit 1f2ca35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static void SetPid(this IHasProviderIds instance, string name, string pro
var pid = new ProviderId
{
Provider = provider,
Id = id,
Id = Uri.EscapeDataString(id),
Position = position,
Update = update
};
Expand Down
2 changes: 1 addition & 1 deletion Jellyfin.Plugin.MetaTube/Helpers/ProviderId.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static ProviderId Parse(string rawPid)
return new ProviderId
{
Provider = values?.Length > 0 ? values[0] : string.Empty,
Id = values?.Length > 1 ? values[1] : string.Empty,
Id = values?.Length > 1 ? Uri.UnescapeDataString(values[1]) : string.Empty,
Position = values?.Length > 2 ? ToDouble(values[2]) : null,
Update = values?.Length > 3 ? ToBool(values[3]) : null
};
Expand Down

0 comments on commit 1f2ca35

Please sign in to comment.