flexget.plugins.input.plex module#

Plugin for plex media server (www.plexapp.com).

class flexget.plugins.input.plex.InputPlex[source]#

Bases: object

Use a plex media server (www.plexapp.com) tv section as an input.

Option

Description

section

Required parameter, numerical (/library/sections/<num>) or section name.

selection

Can be set to different keys:

  • all Default

  • unwatched

  • recentlyAdded

  • recentlyViewed

  • recentlyViewedShows Series only.

all and recentlyViewedShows will only produce a list of show names while the other three will produce filename and download url.

token

Plex access token, used to connect to PMS

username

Myplex (http://my.plexapp.com) username, used to connect to shared PMS’.

password

Myplex (http://my.plexapp.com) password, used to connect to shared PMS’.

server

Host/IP of PMS to connect to.

lowercase_title

Convert filename (title) to lower case.

strip_non_alpha

Sanitize filename (title), stripping all non-alphanumeric letters. Better to turn off in case of non-english titles.

strip_year

Remove year from title, ex: Show Name (2012) 01x01 => Show Name 01x01. Movies will have year added to their filename unless this is set.

strip_parens

Remove information in parens from title, ex: Show Name (UK)(2012) 01x01 => Show Name 01x01.

original_filename

Use filename stored in PMS instead of transformed name. lowercase_title and strip_year will be ignored.

unwatched_only

Request only unwatched media from PMS.

fetch

What to download, can be set to the following values:

  • file The file itself, default.

  • art Series or movie art as configured in PMS

  • cover Series cover for series, movie cover for movies.

  • thumb Episode thumbnail, series only.

  • season_cover Season cover, series only. If used in movies, movie cover will be set.

Default parameters:

server: localhost
port: 32400
selection: all
lowercase_title: no
strip_non_alpha: yes
strip_year: yes
strip_parens: no
original_filename: no
unwatched_only: no
fetch: file

Example:

plex:
  server: 192.168.1.23
  section: 3
  selection: recentlyAdded
  fetch: series_art
on_task_input(task, config)[source]#
plex_format_server(config)[source]#
plex_get_accesstoken(config, globalaccesstoken='')[source]#
plex_get_globalaccesstoken(config)[source]#
plex_section_is_int(section)[source]#
prepare_config(config)[source]#
schema = {'additionalProperties': False, 'dependentRequired': {'password': ['username'], 'username': ['password']}, 'error_not': 'Cannot specify `username` and `password` with `token`', 'not': {'anyOf': [{'required': ['token', 'username']}, {'required': ['token', 'password']}]}, 'properties': {'fetch': {'default': 'file', 'enum': ['file', 'art', 'cover', 'thumb', 'season_cover'], 'type': 'string'}, 'lowercase_title': {'default': False, 'type': 'boolean'}, 'original_filename': {'default': False, 'type': 'boolean'}, 'password': {'type': 'string'}, 'port': {'default': 32400, 'type': 'integer'}, 'section': {'type': ['string', 'integer']}, 'selection': {'default': 'all', 'type': 'string'}, 'server': {'default': '127.0.0.1', 'type': 'string'}, 'strip_non_alpha': {'default': True, 'type': 'boolean'}, 'strip_parens': {'default': False, 'type': 'boolean'}, 'strip_year': {'default': True, 'type': 'boolean'}, 'token': {'type': 'string'}, 'unwatched_only': {'default': False, 'type': 'boolean'}, 'username': {'type': 'string'}}, 'required': ['section'], 'type': 'object'}#
flexget.plugins.input.plex.register_plugin()[source]#