flexget.plugins.input.text module#

Plugin for text file or URL feeds via regex.

class flexget.plugins.input.text.Text[source]#

Bases: object

Parse any text for entries using regular expression.

Example:

url: <url>
entry:
  <field>: <regexp to match value>
format:
  <field>: <python string formatting>

Note: each entry must have at least two fields, title and url

Example:

text:
  url: http://www.nbc.com/Heroes/js/novels.js
  entry:
    title: novelTitle = "(.*)"
    url: novelPrint = "(.*)"
  format:
    url: http://www.nbc.com%(url)s
format_entry(entry, d)[source]#
on_task_input(**kwargs)#
schema = {'additionalProperties': False, 'properties': {'encoding': {'type': 'string'}, 'entry': {'additionalProperties': {'format': 'regex', 'type': 'string'}, 'properties': {'title': {'format': 'regex', 'type': 'string'}, 'url': {'format': 'regex', 'type': 'string'}}, 'required': ['url', 'title'], 'type': 'object'}, 'format': {'additionalProperties': {'type': 'string'}, 'type': 'object'}, 'url': {'oneOf': [{'format': 'url', 'type': 'string'}, {'format': 'file', 'type': 'string'}]}}, 'required': ['entry', 'url'], 'type': 'object'}#
flexget.plugins.input.text.register_plugin()[source]#