flexget.plugins.input.plex module#
Plugin for plex media server (www.plexapp.com).
- class flexget.plugins.input.plex.InputPlex[source]#
Bases:
objectUse 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:
allDefaultunwatchedrecentlyAddedrecentlyViewedrecentlyViewedShowsSeries only.
allandrecentlyViewedShowswill 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:
fileThe file itself, default.artSeries or movie art as configured in PMScoverSeries cover for series, movie cover for movies.thumbEpisode thumbnail, series only.season_coverSeason 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
- 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'}#