Automatic helper for redacted better.php.
Project description
BetteRED
Introduction
bettered automatically transcodes a given path of flac files to mp3 files based on desired quality (MP3 V0 or MP3 320). It will then create a corresponding torrent file to be uploaded to redacted.
bettered uses Moe to initialize and read the configuration, and the plugin moe_transcode to handle the transcoding logic.
Installation:
1. Install bettered
from PyPI
$ pip install bettered
2. Install mktorrent
mktorrent
must be built from source unless your package manager includes >=v1.1
$ git clone https://github.com/Rudde/mktorrent.git
$ cd mktorrent
$ sudo make install
3. Install ffmpeg
https://ffmpeg.org/download.html
Run ffmpeg -h
to ensure it's in your path.
4. Configure
Your configuration file should exist in "~/.config/bettered/config.toml" and should look like the following:
enable_plugins = ["transcode"]
[transcode]
transcode_path = "~/transcode"
[bettered]
torrent_file_path = "~/torrents"
redacted_announce_id = "1234abcd"
transcode_path
is where the transcoded albums will be placed.
torrent_file_path
is where the .torrent
files will be places
redacted_announce_id
can be found at https://redacted.ch/upload.php and is the 32 alphanumeric id in your "announce URL"
5. Run
bettered -h
Contributing:
1. Fork the repository and create a feature/bug fix branch
2. Install development requirements
$ poetry install
3. Hack away
4. Lint your code
$ pre-commit run -a
5. Submit a pull request
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file bettered-0.2.3.tar.gz
.
File metadata
- Download URL: bettered-0.2.3.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.6 Linux/5.15.74.2-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 173907ed27660bc585551024a8349b322924731d1a3d85a1b33c0ba0b0e1e3a5 |
|
MD5 | 7ccfa5b201532dc519041854bfdf0920 |
|
BLAKE2b-256 | d8218aa3ed8a21247662a0d2770ae4349c5fa35a07faf8fb5c04d22902a26722 |
File details
Details for the file bettered-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: bettered-0.2.3-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.6 Linux/5.15.74.2-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe3c3cf7eb88041811d640ff16a0ca7714d9f6d08ba551da25ba99540d930710 |
|
MD5 | 8dbb37dd5a570ac576e30ef72f496c20 |
|
BLAKE2b-256 | 7b632367418dbaffb0e7a3063a2ab23ee2ada67bb084bf180ebbed446e26e83a |