I want to configure a tool so that I can just call with a movie as an argument and automatically download the appropriate english subtitle by file hash or name. I recall I had something configured like that but now I don’t remember what was the tool I used.
Not exactly what you are asking but have you tried https://www.bazarr.media/
You can automate and forget about it