My VLC extension searches (not usual OpenSubtitles.org) but our regional subtitles site called Titlovi.com. The site is not prepared for better interaction with my extension (it does not return query results in XML, does not have RPC etc.) but it does not mean that I cannot use its content to fetch subtitles.
My VLC extension creates query string according to selected parameters, fetches data from site using this query, and fulfills the list box with results of subtitles available for requested video content. Data is parsed from HTML content that sites returns as result of query. So I do have all subtitle names, additional data and IDs. So I got to the point where one can choose subtitle from a list and I have the full URL for downloading this subtitle in form of https://titlovi.com/download/?type=1&mediaid=324028
What is missing!? The final part - how to download zipped subtitle file, save it decompressed and run in VLC player along the video content. I need some help how to download, decompress and save file.
If ZIP decompression is not easy achievable (maybe some LUA extension is needed not available to ordinary VLC user), then I could arrange with site master to allow download of subtitles in plain format but the problem with download and saving stays.
One can find my it on GitHub https://github.com/sbrbot/vlc-titlovi