Giter Site home page Giter Site logo

put-io-sync's Introduction

put.io sync

Synchronze directories from put.io to your local file system.

This script is intended to run as a cron job. put.io sync will.

put.io sync uses the put.io API v2.

  • recreate your put.io file structure locally
  • delete all files that allready have been downloaded from put.io
  • delete empty directories from put.io

After downloading an file the script can optionaly notify you via Pushpin.

Requirements

  • node.js 0.10 or later (might work with older versions, havent tested it)
  • aria2 download manager

Installation

  • npm install typings --global # requirement of put.io package
  • npm install
  • cp config.sample.js config.js
  • you need to enter some API keys into the config.js file. look at the links inside this file

aria2 can run in two modes: in command line mode or in rpc-server mode. rpc mode is now the default mode. You can turn it of be changing aria2c.useRPC to false in the config.

To learn how to setup aria2 in RPC mode read more here.

Usage

Syncing directories from put.io to a local directory call:

node sync.js -d put.io-directory-id -l /path/to/your/local/sync/dir

If you want to sync TV shows you might so using the -s parameter. The script expects a subdirectory for every TV Show and will try to move TV shows directly to the correct dir.

node sync.js -d put.io-tvshow-directory -s /path/to/your/tv-shows -l /path/were/all/the/rest/should/got/to

put-io-sync's People

Contributors

343max avatar bbonifield avatar toto avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

ialqwaiz

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.