Skip to main content

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

bettered-1.0.0.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

bettered-1.0.0-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file bettered-1.0.0.tar.gz.

File metadata

  • Download URL: bettered-1.0.0.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

Hashes for bettered-1.0.0.tar.gz
Algorithm Hash digest
SHA256 861f8dd5f2ab1a3d2b6af005d4fbcaff2c6856344bbd82b1fb7cc8969a201d1c
MD5 777b9b31985ed9e30c546d7b0c34fd4a
BLAKE2b-256 46f07458cb20201397fd0b5f3c687560502cb95f9a8f208c2fe1ef573e166e2f

See more details on using hashes here.

File details

Details for the file bettered-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: bettered-1.0.0-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

Hashes for bettered-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 314c45ced54b6de47c84a1b3710a5132f0699a0a4c784eae8e0ebec276789791
MD5 2d50af2f394bec7dc8091c0cb1acf72f
BLAKE2b-256 bf2718e061ac49f8f5ebac85e88c7bc2efe354be1ced4ca86eb32c523f4e326a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page