KBlixt / subcleaner

removes ads from subtitle files cleanly.
288 stars 13 forks source link

How to run the script on all previously downloaded subtitles? #47

Closed AutoGitr closed 1 year ago

AutoGitr commented 1 year ago

I have just added the script to bazarr but if it only runs when a subtitle is grabbed, all previously downloaded subtitles will still contain their ads. How can it be made to run on all downloaded subtitles?

KBlixt commented 1 year ago

Python3 Subcleaner.py -r "/path/to/library"

ovizii commented 8 months ago

edit

my bad, I found it, sorry about that.

KBlixt commented 8 months ago

@ovizii Haha, yeah... Sorry about that. I was a bit conflicted about calling it library or recursive. I think -r is deeply ingrained in Linux users to mean recursive. But a user not super familiar with Linux might wonder what that word means...

So I seatled for a middle ground, long option for less experienced people and a short one for more Linux experienced ones.

In retrospect I regret calling it library mode.

ovizii commented 8 months ago

It was probably also due to a really stupid formatting output of my terminal. The “-r” looks like its part of the descriptive text while I kept reading the left part of the parameters over and over again looking for “-r” :-/

image