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

[Feature Request] switch to show deleted line #25

Closed Irek7 closed 1 year ago

Irek7 commented 1 year ago

hi I tried to use --debug but it doesn't show what exactly is being deleted. would be nice to have switch to show what exactly is gonna be deleted.

Irek

DrKain commented 1 year ago

What more information do you require? When using --debug the line, node # and filter matched will be logged.

[Match] Advertising found in node 901 (/^sync(ed|) (and|&) correct(ed|ion) by/)
[Line] synced and corrected by Some Username

https://github.com/DrKain/subclean/blob/main/src/index.ts#L350

Irek7 commented 1 year ago

sorry, my bad. I just written alias for it and forgot to add Line into grep. its perfect as it is now.