GithubHelp home page GithubHelp logo

post2restflexget's Introduction

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 rewriting

Configuration 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"
   }
}

post2restflexget's People

Contributors

carlo-colombo avatar

Stargazers

Riccardo Cossu avatar Fabrizio Bisi avatar Daniel Mota avatar akuiraz avatar

Watchers

 avatar James Cloos avatar Fabrizio Bisi avatar  avatar

Forkers

fabriziobisi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.