mirror of
https://github.com/metatube-community/jellyfin-plugin-metatube.git
synced 2026-02-02 18:21:48 +08:00
Fix: id escaping with colons (#215)
This commit is contained in:
@@ -17,7 +17,7 @@ public static class ProviderIdsExtensions
|
||||
var pid = new ProviderId
|
||||
{
|
||||
Provider = provider,
|
||||
Id = id,
|
||||
Id = Uri.EscapeDataString(id),
|
||||
Position = position,
|
||||
Update = update
|
||||
};
|
||||
|
||||
@@ -16,7 +16,7 @@ public class ProviderId
|
||||
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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user