Trigger custom post processing script after all subtitles attempted to download

1 votes

I would like to run a custom script of mine after bazarr has tried to download all of the subtitles for each language.

Some things that I would like to do in the custom script that requires *all results* to complete before running are:
- google translate any found subtitles to languages that were not found
- merge 2 language subtitles into one mutli-language subtitle (similar to this tool: https://subtitletools.com/merge-subtitles-online)

From my little understanding of the code, it looks like this functionality would live somewhere here after the for loop.
https://github.com/morpheus65535/bazarr/blob/70346950fd7ad13d6abf8b5a71f5531c1e280721/bazarr/subtitles/mass_download/movies.py#L106

Thank you so much for this tool!

Under consideration Suggested by: DekaiDekai Upvoted: 29 Nov, '22 Comments: 0

Comments: 0