Skip to content

BUG: Plex plugin schema validation fails #1713

@SirbyAlive

Description

@SirbyAlive

Expected behaviour:

Plex plugin config validation should be valid if a username/password is provided OR if a token is provided. ( merged with #1607 )

Actual behaviour:

The test always fails.

Steps to reproduce:

  • Step 1: Set up the plex plugin with a username/password or a token.
  • Step 2: bin/flexget check

Config:

configure_series:
  from:
    plex:
      section: 4
        token: xxxxx

Log:

2017-02-28 15:48 VERBOSE  check                         Pre-checked 33 configuration lines
2017-02-28 15:48 CRITICAL manager                       [/templates/tv/configure_series/from/plex] Cannot specify `username` and `password` with `token`
2017-02-28 15:48 CRITICAL manager                       Failed to load config file: Did not pass schema validation.
Could not start manager: Did not pass schema validation.

Additional information:

  • Flexget Version: 2.10.10.dev
  • Python Version: 3.6.0
  • Installation method: pip
  • OS and version: OSX 10.12.3

Solution:

username, password and token schemas are defaulted to an empty string; remove that and it works.

Cheers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions