Remove advertisements from subtitle files
Project description
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
To install Subscleaner, you'll need Python 3.9 or higher. It's recommended to use Poetry for managing the project dependencies.
- Clone the repository:
git clone https://gitlab.com/rogs/subscleaner.git
- Navigate to the project directory:
cd subscleaner
- Install the dependencies with Poetry:
poetry install
Usage
To use Subscleaner, you can pipe a list of subtitle filenames into the script:
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
Release history Release notifications | RSS feed
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
Hashes for subscleaner-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14c0d3f31229e702cd976a705d7019f6e2f9b56cbd1e15a6b132413d1dd61006 |
|
MD5 | 75101a8e026514c963cb20ab45c339c2 |
|
BLAKE2b-256 | b119e207924a1fb5c1d87a10594fe9a36a6ba6c2a5b72a7e8d49f56273fbb851 |