flexget.plugins.input.tail module#
- class flexget.plugins.input.tail.InputTail[source]#
Bases:
objectParse any text for entries using regular expression.
file: <file> entry: <field>: <regexp to match value> format: <field>: <python string formatting>
Note: each entry must have at least two fields, title and url
You may wish to specify encoding used by file so file can be properly decoded. List of encodings at http://docs.python.org/library/codecs.html#standard-encodings.
Example:
tail: file: ~/irclogs/some/log entry: title: 'TITLE: (.*) URL:' url: 'URL: (.*)' encoding: utf8
- schema = {'additionalProperties': False, 'properties': {'encoding': {'type': 'string'}, 'entry': {'properties': {'title': {'format': 'regex', 'type': 'string'}, 'url': {'format': 'regex', 'type': 'string'}}, 'required': ['url', 'title'], 'type': 'object'}, 'file': {'format': 'file', 'type': 'string'}, 'format': {'additionalProperties': {'type': 'string'}, 'type': 'object'}}, 'required': ['file', 'entry'], 'type': 'object'}#
- class flexget.plugins.input.tail.TailPosition(**kwargs)[source]#
Bases:
VersionedBase- _sa_class_manager = {'filename': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'position': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'task': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}#
- filename#
- id#
- position#
- task#