https://github.com/343max/put-io-sync
sync put.io to a local directory
https://github.com/343max/put-io-sync
Last synced: 11 months ago
JSON representation
sync put.io to a local directory
- Host: GitHub
- URL: https://github.com/343max/put-io-sync
- Owner: 343max
- License: bsd-2-clause
- Created: 2013-03-20T16:22:17.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2017-04-03T17:57:12.000Z (almost 9 years ago)
- Last Synced: 2025-04-23T17:14:01.241Z (11 months ago)
- Language: JavaScript
- Size: 180 KB
- Stars: 19
- Watchers: 8
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](http://aria2.sourceforge.net/) download manager
# Installation
- `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](http://www.albertdelafuente.com/doku.php/wiki/dev/raspi/aria2c-raspi).
# 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`