Plugins for “output” feed phase.
Bases: object
Downloads content from entry url and writes it into a file.
Example:
download: ~/torrents/
Allow HTML content:
By default download plugin reports failure if received content is a html. Usually this is some sort of custom error page without proper http code and thus entry is assumed to be downloaded incorrectly.
In the rare case you actually need to retrieve html-pages you must disable this feature.
Example:
download:
path: ~/something/
fail_html: no
You may use commandline parameter –dl-path to temporarily override all paths to another location.
Checks all entries for leftover temp files and deletes them.
Downloads entry by using url.
| Raises : | Several types of exceptions ... |
|---|---|
| Raises : | PluginWarning |
Tries to set filename extension from mime-type
Checks entry filename if it’s found from content-disposition
Download entry content and store in temporary folder. Fails entry with a reason if there was problem.
| Parameters: |
|
|---|
Download all feed content and store in temporary folder.
| Parameters: |
|
|---|
Make sure all temp files are cleaned up when feed is aborted.
Make sure all temp files are cleaned up when feed exits
Move downloaded content from temp folder to final destination
Get pathscrub method.
Moves temp-file into final destination
Return plugin configuration in advanced form
Processes entry by using url. Does not use entry[‘url’]. Does not fail the entry if there is a network issue, instead just log and return a string error.
| Parameters: |
|
|---|---|
| Returns: | String error, if failed. |
Return config validator
Bases: object
Outputs all entries to console
Dump entries to stdout
| Parameters: |
|
|---|
Bases: UserDict.UserDict
Helper class, same as a dict, but returns all string value with quotes escaped.
Bases: object
Execute commands
Simple example, xecute command for entries that reach output:
exec: echo 'found {{title}} at {{url}}' > file
Advanced Example:
exec:
on_start:
phase: echo "Started"
on_input:
for_entries: echo 'got {{title}}'
on_output:
for_accepted: echo 'accepted {{title}} - {{url}} > file
You can use all (available) entry fields in the command.
Bases: object
Get pathscrub method.
| Parameters: | directory – Path |
|---|---|
| Returns: | Size in bytes (recursively) |
Bases: object
Example:
notifymyandroid:
apikey: xxxxxxx
[application: application name, default FlexGet]
[event: event title, default New Release]
[priority: -2 - 2 (2 = highest), default 0]
Configuration parameters are also supported from entries (eg. through set).
Bases: object
Send prowl notifications
Example:
prowl:
apikey: xxxxxxx
[application: application name, default FlexGet]
[event: event title, default New Release]
[priority: -2 - 2 (2 = highest), default 0]
[description: notification to send]
Configuration parameters are also supported from entries (eg. through set).
Bases: object
Parse feed content or url for hoster links and adds them to pyLoad.
Example:
pyload:
api: http://localhost:8000/api
queue: yes
username: my_username
password: my_password
folder: desired_folder
hoster:
- YoutubeCom
parse_url: no
multiple_hoster: yes
enabled: yes
Default values for the config elements:
pyload:
api: http://localhost:8000/api
queue: no
hoster: ALL
parse_url: no
multiple_hoster: yes
enabled: yes
Adds accepted entries
Return config validator
Bases: object
Write RSS containing succeeded (downloaded) entries.
Example:
make_rss: ~/public_html/flexget.rss
You may write into same file in multiple feeds.
Example:
my-feed-A:
make_rss: ~/public_html/series.rss
.
.
my-feed-B:
make_rss: ~/public_html/series.rss
.
.
With this example file series.rss would contain succeeded entries from both feeds.
Number of days / items
By default output contains items from last 7 days. You can specify different perioid, number of items or both. Value -1 means unlimited.
Example:
make_rss:
file: ~/public_html/series.rss
days: 2
items: 10
Generate RSS that will containg last two days and no more than 10 items.
Example 2:
make_rss:
file: ~/public_html/series.rss
days: -1
items: 50
Generate RSS that will contain last 50 items, regardless of dates.
RSS location link:
You can specify the url location of the rss file.
Example:
make_rss:
file: ~/public_html/series.rss
rsslink: http://my.server.net/series.rss
RSS link
You can specify what field from entry is used as a link in generated rss feed.
Example:
make_rss:
file: ~/public_html/series.rss
link:
- imdb_url
List should contain a list of fields in order of preference. Note that the url field is always used as last possible fallback even without explicitly adding it into the list.
Default list: imdb_url, input_url, url
Store finished / downloaded entries at exit
Write RSS file at application terminate.
Validate given configuration
Bases: object
Example:
sabnzbd:
apikey: 123456
url: http://localhost/sabnzbd/api?
category: movies
All parameters:
sabnzbd:
apikey: ...
url: ...
category: ...
script: ...
pp: ...
priority: ...
Bases: object
Send an e-mail with the list of all succeeded (downloaded) entries.
Configuration options
| Option | Description |
|---|---|
| from | The email address from which the email will be sent (required) |
| to | The email address of the recipient (required) |
| smtp_host | The host of the smtp server |
| smtp_port | The port of the smtp server |
| smtp_username | The username to use to connect to the smtp server |
| smtp_password | The password to use to connect to the smtp server |
| smtp_tls | Should we use TLS to connect to the smtp server |
| smtp_ssl | Should we use SSL to connect to the smtp server Due to a bug in python, this only works in python 2.6.3 and up |
| active | Is this plugin active or not |
Config basic example:
email:
from: xxx@xxx.xxx
to: xxx@xxx.xxx
smtp_host: smtp.host.com
Config example with smtp login:
email:
from: xxx@xxx.xxx
to: xxx@xxx.xxx
smtp_host: smtp.host.com
smtp_port: 25
smtp_login: true
smtp_username: my_smtp_login
smtp_password: my_smtp_password
smtp_tls: true
Config multi-feed example:
global:
email:
from: xxx@xxx.xxx
to: xxx@xxx.xxx
smtp_host: smtp.host.com
feeds:
feed1:
rss: http://xxx
feed2:
rss: http://yyy
email:
active: False
feed3:
rss: http://zzz
email:
to: zzz@zzz.zzz
GMAIL example:
from: from@gmail.com
to: to@gmail.com
smtp_host: smtp.gmail.com
smtp_port: 587
smtp_login: true
smtp_username: gmailUser
smtp_password: gmailPassword
smtp_tls: true
Default values for the config elements:
email:
active: True
smtp_host: localhost
smtp_port: 25
smtp_login: False
smtp_username:
smtp_password:
smtp_tls: False
smtp_ssl: False
Send email at exit.
Count the email as an output