Skip to content

Clarification on usage of SignIn #53

@dimitarvdimitrov

Description

@dimitarvdimitrov

SignIn does not set the Plex.URL field. Because of this if I sign in with a username and password I can't use any of the query methods (e.g. GetSessions()) because the HTTP request goes to fmt.Sprintf("%s/status/sessions", p.URL) (code). So I get an error: Get "/status/sessions": unsupported protocol scheme ""

To overcome this I'm calling SignIn(), then using Plex.Token in a call to New(). New() sets the URL.

Is my use of SignIn the intended way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions