mirror of https://github.com/ErsatzTV/ErsatzTV.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
414 B
15 lines
414 B
namespace ErsatzTV.Core.Plex; |
|
|
|
public record PlexAuthPin(int Id, string Code, string ClientIdentifier) |
|
{ |
|
public string Url |
|
{ |
|
get |
|
{ |
|
var clientId = $"clientID={ClientIdentifier}"; |
|
var code = $"code={Code}"; |
|
var cdp = "context%5Bdevice%5D%5Bproduct%5D=ErsatzTV"; |
|
return $"https://app.plex.tv/auth#?{clientId}&{code}&{cdp}"; |
|
} |
|
} |
|
}
|
|
|