gdmachado / bettertron

what.cd better.php automation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bettertron is a tool that will scan your better.php. It will check a specified directory for your seeded FLACs and transcode them into the needed MP3 bitrates. It is edition aware and will transcode all the needed bitrates for the edition you are seeding, regardless of better.php.
---------------------------------------------------------------------
bettertron uses several command line tools that are expected to exist:

*lame
*flac
*mktorrent

If you are running ubuntu/debian, this should get all of them:

apt-get install mktorrent flac lame
---------------------------------------------------------------------
This project uses some pre-existing perl modules from CPAN. To install them in Ubuntu/debian (and probaly anything else) in one line:

sudo perl -MCPAN -e 'install WWW::Mechanize, JSON, JSON::XS, Data::Dumper, Config::IniFiles, Bencode, Crypt::SSLeay'
---------------------------------------------------------------------
After that, simply run the better.pl script once. It will generate a config file called better.ini

Please fill it out:

username and password refer to your what.cd username and password

torrentdir is where bettertron will create torrents for your transcodes
flacdir is where bettertron will look for your already existing and seeded flacs
transcodedir is where your flac transcodes will end up
---------------------------------------------------------------------
TODO:

*Handle torrent upload errors more gracefully (had a couple rejected due to thumb.db restriction. 
Imagine 1982/original release/CD media will be a problem also)
*Better error or unexpected condition handling.

About

what.cd better.php automation


Languages

Language:Perl 100.0%