Skip to main content

Remove advertisements from subtitle files

Project description

Subscleaner

subscleaner

Subscleaner is a Python script that removes advertisements from subtitle files. It's designed to help you enjoy your favorite shows and movies without the distraction of unwanted ads in the subtitles.

Features

  • Removes a predefined list of advertisement patterns from subtitle files.
  • Supports various subtitle formats through the pysrt library.
  • Automatically detects the encoding of subtitle files using chardet.

Installation

Automatic installation

To install with pip:

sudo pip install subscleaner

Manual installation

To install Subscleaner, you'll need Python 3.9 or higher. It's recommended to use Poetry for managing the project dependencies.

  1. Clone the repository:
git clone https://gitlab.com/rogs/subscleaner.git
  1. Navigate to the project directory:
cd subscleaner
  1. Install the dependencies with Poetry:
poetry install

Usage

If you installed the package automatically, you can pipe a list of subtitle filenames into the script:

find /your/media/location -name "*.srt" | subscleaner

If you installed the package manually:

find /your/media/location -name "*.srt" | poetry run subscleaner

Alternatively, you can use the script directly if you've installed the dependencies globally:

find /your/media/location -name "*.srt" | python3 subscleaner.py

Contributing

Contributions are welcome! If you have any suggestions or improvements, feel free to fork the repository and submit a pull request.

License

Subscleaner is licensed under the GNU General Public License v3.0 or later. See the LICENSE file for more details.

Acknowledgments

This repository is a rewrite of this Github repository: https://github.com/FraMecca/subscleaner.

Thanks to FraMecca in Github!

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

subscleaner-0.1.5.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

subscleaner-0.1.5-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file subscleaner-0.1.5.tar.gz.

File metadata

  • Download URL: subscleaner-0.1.5.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Linux/5.4.109+

File hashes

Hashes for subscleaner-0.1.5.tar.gz
Algorithm Hash digest
SHA256 d38c6be5e063095ecb436059d9a526aab057575edd9e8c4aac0f5cd39ddf7ebd
MD5 2653f94be3c8d1d61945f7c26c943ba8
BLAKE2b-256 223e025ed946dee7fa6bd684451a7530fae0e9e7f19ec92cd42a59945aeb4e8b

See more details on using hashes here.

File details

Details for the file subscleaner-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: subscleaner-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Linux/5.4.109+

File hashes

Hashes for subscleaner-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 edd269ce1beabd3d0cf8be75275a1a268288137ce47b483a073633ec8547af38
MD5 acaa6bd721541e1e7000eebf218f379f
BLAKE2b-256 d6e653315097d3fe9724da1cd91bc2574a5dfe98324e15567e608c169654c4e2

See more details on using hashes here.

Supported by

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