I recently tried to use the python-opensubtitles XMLRPC module by Alexandre González (https://github.com/agonzalezro/python-o ... /README.md) , but found it lacking some of the features I needed.
Specifically, I was trying to get subtitles for videos with forced subtitles only (I didn't want to be enabling subtitles just for a quick Spanish part, only to disable them once the movie reverted to English)
After some searching, I found the API has a field for this "foreign_parts_only" .
However, I couldn't find any way of adding this field to the query. I didn't want to retrieve 20+ results and filter them out, as this felt like I was unnecessarily using server bandwidth. I may be completely wrong here, and I simply missed the relevant sections.
The XMLRPC API documentation was a little hard to follow. I discovered the new REST API (https://opensubtitles.stoplight.io/) is extremely well documented and easy to follow.
This API is still in BETA and any updates may break my python code, but if anyone is interested, please look up the code on the github link below.
https://github.com/tomburke25/python-op ... s-rest-api
Hope this can be of use to anyone looking to experiment with the new API system