GithubHelp home page GithubHelp logo

py-expander's Introduction

py-expander

A python script designed to post-process Transmission torrents.

The script extracts files recursively (if extract is necessary) and the moves the files to pre-configured directories based on their type. If no RARs are present in the download - the script will copy the files.

The script relies on the 'guessit' package to detect movies/tv downloads.

Original torrent files are conserved for upload.

The script can also fetch subtitles in chosen languages (change in the config file),
and upload the videos to an Amazon cloud storage account.

All original torrent names are kept the original names log file.

Currently only 7-Zip is supported. (Make sure to use the version with the rar plugin, or compile from source with 'make all')

Usage

Install the script as follows:

$ python setup.py develop

Edit the configuration with your directories

$ vim config.py

That's it.

The script can be used from the command line:

$ pyexpand /download/The.Wire.S01E01.HDTV

For transmission:

$ vim /var/lib/transmission/settings.json
..
 "script-torrent-done-enabled": true,
 "script-torrent-done-filename": "pyexpand",
..

Or for uTorrent:

Options -> Advanced -> Run Program
When download is finished, run (Change paths accordingly): 
'C:\Python35\pythonw.exe D:\Projects\py-expander\src\pyexpander\torrent_handler.py "%D" "%F"'

Important: Be sure to use different directories for new downloads and completed downloads, or else pyexpander won't work.
  • Make sure that the transmission user can run pyexpand. If not:

    $ ln -s /usr/local/bin/pyexpand /usr/bin/pyexpand

py-expander's People

Contributors

ofir123 avatar ohadravid avatar omerbenamram avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

py-expander's Issues

Symlink instead of copy?

Hello!

Seems to be a great script.
I'm wondering if it would be possible to symlink instead of copying the files to new location? That way would save some hard drive space.

Do you rename the content with Sickbeard/Couchpotato when moved?

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.