Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/carlo-colombo/post2restflexget
Post flexget entry field to rest service as json payload
https://github.com/carlo-colombo/post2restflexget
Last synced: 8 days ago
JSON representation
Post flexget entry field to rest service as json payload
- Host: GitHub
- URL: https://github.com/carlo-colombo/post2restflexget
- Owner: carlo-colombo
- Created: 2012-11-01T20:59:04.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-10-02T18:12:22.000Z (about 11 years ago)
- Last Synced: 2024-04-14T15:54:42.342Z (7 months ago)
- Language: Python
- Size: 121 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Post2Rest Flexget plugin 0.2.0
================================
Post your entry data as json payload to a rest url endpoint. (couchdb anyone?)Install
-------
Drop `P2RFlexget.py` in `~/.flexget/plugins`Flexget info
------------
- It is an output plugin (`on_task_output`)
- All plain entry field are added (dict, string, list)
- Additional keys from data field are added to the payload
- Timestamp (human readable and seconds since epoch) are added to payload in post2rest key
- Field rewritingConfiguration example
---------------------
```
tasks:
my task:
rss: http://...
accept_all:yes
post2rest:
url: 'http://.../..'
data: #optional, entry will be extended with this data
additional_data: 'one more'
rewrite: #optional
-
field: series_name
old: 'Revolution 2012' #value to search
new: Revolution #value that replace
-
field: another_field
old: 'ye old value'
new: 'The New Value'
```Payload example
---------------
```
{
"accepted_by": "accept_all",
"task": "test P2R",
"subtitle": true,
"title": "Name.Of.The.Series.S01E01.XviD-FlexGet",
"url": "http://localhost/mock/z0koMotGz5OBNdsXC2kmkBJFjQM6A",
"series_name": "Name Of The Series",
"original_url": "http://localhost/mock/z0koMotGz5OBNdsXC2kmkBJFjQM6A",
"series_season": 1,
"series_episode": 1,
"post2rest": {
"timestamp": 1351802766.637263,
"time": "Thu Nov 1 21:46:06 2012"
}
}
```