DrKain / subclean

A cross-platform CLI tool and node module to remove advertising from subtitles. Supports Bazarr and bulk cleaning!
MIT License
54 stars 5 forks source link

1.3.0 - Queue system for multiple files #10

Closed DrKain closed 2 years ago

DrKain commented 2 years ago

Finally closes #9!

Preview Image

1

Developer notes

I've changed how files are cleaned by introducing a queue system. When using the --sweep "path/to/media" command, subclean will recursively search through sub-directories looking for subtitle files.

You can use the --depth n to limit how deep subclean will look. This has a hard limit of 25.

When all files have been added to the queue, the cleaning will begin one by one. Each subtitle file should take 1/4th of a second at most, even with 100+ filters.

Better error handling should make things run a bit smoother.

Warning

Using the --sweep argument will enable --overwrite!
This is because there's no dynamic naming system set up. You can still use --output for single files, but when using sweep it will be ignored.

If you encounter any issues, please open an issue on GitHub.