Subscleaner is a Python script that removes advertisements from subtitle files.
10K+
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.
To install with pip:
sudo pip install subscleaner
To install Subscleaner, you'll need Python 3.9 or higher. It's recommended to use Poetry for managing the project dependencies.
git clone https://gitlab.com/rogs/subscleaner.git
cd subscleaner
poetry install
Subscleaner is also available as a Docker image. You can pull the image from Docker Hub:
docker pull rogsme/subscleaner
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
To use the Docker image, you can run the container with the following command:
docker run -e CRON="0 0 * * *" -v /your/media/location:/files rogsme/subscleaner
0 0 * * * with your desired cron schedule for running the script./your/media/location with the path to your media directory containing the subtitle files.The Docker container will run the Subscleaner script according to the specified cron schedule and process the subtitle files in the mounted media directory.
YAMS is a highly opinionated media server. You can know more about it here: https://yams.media/
Add this container to your docker-compose.custom.yaml:
subscleaner:
image: rogsme/subscleaner
environment:
- CRON=0 0 * * *
volumes:
- ${MEDIA_DIRECTORY}:/files
To get more information on how to add your own containers in YAMS: https://yams.media/advanced/add-your-own-containers/
Contributions are welcome! If you have any suggestions or improvements, feel free to fork the repository and submit a pull request.
Subscleaner is licensed under the GNU General Public License v3.0 or later. See the LICENSE file for more details.
This repository is a rewrite of this Github repository: https://github.com/FraMecca/subscleaner.
Thanks to FraMecca in Github!
Content type
Image
Digest
sha256:3b6384646…
Size
29 MB
Last updated
8 months ago
docker pull rogsme/subscleaner