After an equally one-year hiatus, (or more I think), I've returned to having this plugin in my life once more and I must say it's working really smoothly now, compared to before! I previously was on XBMC on Windows, now XBMC on a Mac.
fegunz I have a suggestion: might it somehow be possible, to make an option in the plugin to 'display subtitles for muted lines'? (And the way I can see it'd work, is you modify the srt to change all lines/entries that don't contain the filtered words (whether original form or ****'d out), into 'blank' lines so that in effect, only the muted lines are shown during the movie.)
I suppose if one really doesn't want exposure to profanity, the option would normally be used in conjunction with the 'replace with ****' one, and with them combined, it'd be a really smooth way to still follow the dialog with no effort, but still have no exposure to the profanity!
And because the '****' feature already modifies the srt file easily enough, and I know text replacement algorithms are fairly straightforward (I myself use textmechanic.com a lot), I assume this idea wouldn't actually be too troublesome to try?
cheers and thanks for continuing to work on the plugin again
.
thwap
PS just trying to analyse, laymans-way, how possible it may be (using this srt as an example):
assuming the srt will not throw errors with blank entries and also that there's not 10 different variations on the srt standard, whatever it is, the text replacement logic could be:
blank out all lines not containing '*****', except for lines:
- consisting of a blank space (/with nothing in them but space/line break) [so that rules out line spacing which I assume is still needed]
- containing '00:' OR '01:' OR '02:' (etc.....up to maybe 09 hours, any videos longer than 09 hours must be very rare lol) [so that rules out timestamp lines] - oh, unless '-->' is enough to cleanly filter out all timestamp lines? cool.
- NOT containing alphabetical letters [to filter out probably 99.99999% of subtitles lines ever, so isolating the entry numbers in this case, the lines above the timestamp ones]
And maybe there's an even easier way to code it anyway, that somehow understand srt structure so doesn't have to do it in that hacky txt way, I'm not sure, you're the expert!
Thanks